Controlling Four Color Sensors Simultaneously

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
makeinspires
 
Posts: 32
Joined: Tue Nov 19, 2013 11:58 pm

Controlling Four Color Sensors Simultaneously

Post by makeinspires »

Hey everyone!
I'm about to begin a challenging project and I would love some help!
Our project will use adafruit four color sensors to detect colors and report them back. We'll have four colors and a few sequences of colors programmed so when you place the colors in the correct sequence on the sensors you get a positive result (like a green LED).
From what I understand I'll need multiple Arduinos to accomplish this. I have never connected multiple Arduinos together, only seen a few tutorials.
Anyone have suggestions?
Thanks!

User avatar
adafruit_support_bill
 
Posts: 88136
Joined: Sat Feb 07, 2009 10:11 am

Re: Controlling Four Color Sensors Simultaneously

Post by adafruit_support_bill »

There are a couple of ways to go about that. The problem is that the color sensors all have the same i2c address, so you can only put one on the i2c bus. There are i2c multiplexers that effectively give you more i2c busses, http://dangerousprototypes.com/2012/10/ ... er-shield/

The other option is to use multiple Arduinos. You could wire one sensor to each Arduino and communicate between them using Software Serial.
http://arduino.cc/en/Reference/softwareSerial

User avatar
makeinspires
 
Posts: 32
Joined: Tue Nov 19, 2013 11:58 pm

Re: Controlling Four Color Sensors Simultaneously

Post by makeinspires »

Do you have any examples of projects connecting multiple arduinos using SoftwareSerial?

User avatar
adafruit_support_bill
 
Posts: 88136
Joined: Sat Feb 07, 2009 10:11 am

Re: Controlling Four Color Sensors Simultaneously

Post by adafruit_support_bill »

We do not have any tutorials on the subject. The SoftwareSerial reference documentation is here http://arduino.cc/en/Reference/SoftwareSerial

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”