Take the 2-minute tour ×
Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. It's 100% free, no registration required.

I want to build a project that contains multiple Arduino nano's, each connected to one controlling Raspberry Pi. I would like to send one signal (a string of characters or numbers) which would be the master state, which the other Arduinos would react to based on their programming. What is the best way to do this?

Can the Arduino support a protocol for this, or will it need additional hardware?

Max distance: 30 meters

share|improve this question
    
    
Interesting. is RS485 bus the way to go? Looks like it needs extra hardware. –  Hoytman Sep 5 at 4:08
    
Yes, but the extra hardware is pretty trivial. I read recently (I can try to find the reference) that RS232 (normal serial) was not intended for long runs. In any case a Nano is 5V signal, not even RS232. –  Nick Gammon Sep 5 at 4:59
    
Perhaps there is a better solution –  Hoytman Sep 5 at 15:53
    
Perhaps, but I2C and SPI are designed for even shorter cable runs. Serial is probably the most reliable, but the voltage drop over 30 m, plus noise picked up, is likely to make it unreliable. You could get one of those cheap radio transmitters, but that again is extra hardware. –  Nick Gammon Sep 5 at 21:10

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.