From Arduino to Raspberry over digital pin

HI.

I have a proyect with an Arduino uno and a Raspberry pi.

I need to let Raspberry know when an event in Arduino has taken place. So I need to send the least amount of data possible. I cant use serial communication, Im alreayd using it on both devices for other purposes.

Is it possible to do it via digital pin?

any help?

Yes, but you will need to level shift the signal so that the 5V Uno output will not damage the 3.3V Pi input. That can be done with a resistor voltage divider. And the Uno ground must be connected to the Pi ground.

If you need to send data, not just one bit, there is I2C or SPI. They will need level shifting as well.

there's no need for a level shifter if you configure the receive pin with a pullup. you can use an open-collector circuit to pull the pin low.

you can use an npn transistor and probably a 1k resistor in series with it's base or some chip with open-collector outputs such as a 7407

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.