Hello all,
We are three students on the university of technology in Eindhoven, The Netherlands. We are working on a project where we want to create a kind of toy that changes color depending on the surface it is on. Software was not my particular area I had to work on in this project but the person actually responsible for this is gone for a few days so it seemed smart to me to already post it.
Might be that I explain something wrongly but he will take over when he returns (also answer questions).
Anyway, we already made the hardware for this. This includes a color sensor that can succesfully send information to the Arduino and a set of lights that will produce the light.
We are using the Arduino Deci. and Arduino 0011 programming.
PIC1
However, we came across a problem that we are not able to solve. Let me remind you that this is the first time we work with the Arduino and we have only just learned how programming in java environment (arduino) works.
We have the lights (+) attached to pins 8 to 11 (red, green, blue, yellow) and the - to the GND.
PIC2
PIC3
(I admit the pictures could be better.)
When running the following program:
PIC4
Only the red light turns on or none at all. Since the script is so short we are not able to indicate what is wrong or what we are missing. It does work when connecting a LED directly to the pin and to ground.
Also, the lights work like they should (tested with a battery).
The Arduino should be capable of producing the required voltage/current (I do not know the exact number but my team mate does). Even if it was only able to produce 50% of the current, we should still see the lights (although they might be very dimmed).
We did not have the chance yet to see whether the pins actually produce a current.
Excuse me if this is posted in the wrong forum but it is a problem related to multiple areas (also hardware).
Hope that we can solve this problem as soon as possible.
Thanks in advance, and of course.. a merry christmas to everybody