ScOe
Advanced Member level 4
Multislave AVR system
Hi,
I was reading about multislave systems with AVR uC using different protocols, and came to a conclusion that i have no idea which protocol to use.
What i want to achieve is:
One master board avr 128, 5 slave boards with bunch of sensors and controlled by avr8. Max cable length would be 5-8m. I'm considering CAT5 or similar cables. Slave boards are passive which means that power is supplied by master board. Slave boards have to have ID's and need to support hot plug. Environment could be noisy, as in the same cable tube there is few other cables (TV, Ethernet, Telephone). Bit rate is not critical. My app is not time critical, so other slaves can wait while one is communicating with master.
Saying that, i was considering RS485 as it would be easiest to implement, but my design is star network that rs485 doesnt support. i2c was another consideration but i was reading that it has some problems with longer cables (not sure if 8m is in that category). CAN seems to be logical solution but it will increase the cost of every board, and that is what i want to avoid.
Any suggestions ?
Hi,
I was reading about multislave systems with AVR uC using different protocols, and came to a conclusion that i have no idea which protocol to use.
What i want to achieve is:
One master board avr 128, 5 slave boards with bunch of sensors and controlled by avr8. Max cable length would be 5-8m. I'm considering CAT5 or similar cables. Slave boards are passive which means that power is supplied by master board. Slave boards have to have ID's and need to support hot plug. Environment could be noisy, as in the same cable tube there is few other cables (TV, Ethernet, Telephone). Bit rate is not critical. My app is not time critical, so other slaves can wait while one is communicating with master.
Saying that, i was considering RS485 as it would be easiest to implement, but my design is star network that rs485 doesnt support. i2c was another consideration but i was reading that it has some problems with longer cables (not sure if 8m is in that category). CAN seems to be logical solution but it will increase the cost of every board, and that is what i want to avoid.
Any suggestions ?