I have been researching various communication technologies to interconnect around 10 ATmega328 devices, I2C, SPI, DMX, RS-485.......The list goes on, and gets confusing.
I would really appreciate some real world advice as to the suitability for my project. In essence:
- I will have 10 addressable ATmega328 nodes, that each contain a sensor, and a single RGB Led.
- Each node will receive PWM RGB data
- Each node will transmit sensor data - when it is activated (HIGH or LOW, usually one at a time)
- Each node will be approx 20cm from the next
- These will be connected to a Master device which will act as the USB Computer bridge.
As I see it there are two approaches:
1)the Master will write to each device, and continually scan through the array of devices asking for the sensor state.
2)the Master will write to each device and each device can write to the Master when its sensor is HIGH.
Which would be the best approach?
What would be the most suited communication technology to implement this?