Okay, I have a raspberry pi, I use the pins to control LEDS and etc, but I have been thinking recently about using the pulses I can create from the raspberry pi, to control multiple things over a simple USB lead, is it possible to take pulses from a input and transfer them into something a computer can understand? Thank you, sorry if this question is vague, not good at explaining things..

  • 1
    Generally you wouldn't use arbitrary pulses, but some defined, common interface such as asynchronous serial, SPI, or I2C/TWI. You could also use the state of an assortment of GPIOs, but that tends to be less efficient. USB can make sense, but probably only if your other micro readily implements a USB device interface in hardware or software, and while good for large volumes of data it tends to actually be slower at moving the small amounts of data for which microconrollers are typically chosen. Dec 11, 2015 at 3:31

1 Answer 1


Absolutely. This is actually similar to how infrared communication such as TV remote controls work! Only difference is you want to have actual copper rather than infrared light as your transmission medium

Check out Pulse Modulation methods to get an idea of the foundation. The only application I can think of using this is IR communication which sparkfun has an amazing explanation on, but I'm sure there are other applications using this method you explain

As Chris Stratton noted, you would typically use a low level serial communication protocol for chip to chip communications. Typically SPI or UART if you need a lot of bandwidth, otherwise you could just use I2C. The Raspberry Pi has hardware engines for these protocols as well.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.