EDIT: the breadboard was faulty, the + column didn’t transmit voltage all the way down
Hey, what am I doing wrong? I keep getting 0 for all sensors using the example code given in the IDE. So it must be on the hardware’s end.
When I unplug the analog input, the led flicker in the correspondant light. So red for A0, green for A1 and blue for A2 but as soon as I plug it it goes blank.
Here is my setup
[quote="dandaremon, post:1, topic:1418438"]
red for A0, green for A1 and blue for A2
[/quote]
Do you set the I/O direction of these with pinMode(pin, OUTPUT);?
Oops.. sorry.. photoxstr, not LED
Sometimes these (blue) gaps in the breadboard allow for a different circuit between the gaps and need a jumper over the gaps (both power and ground). Check for continuity over (blue) gaps.
Wow that was it, the gap made the circuit open. It wasn’t mentionned on the book so I thought it would travel all the way through the + column. Thank you !
Thank you for your answers, it was the fretboard which was not connected all the way through the « + » column on the right and I needed to add gap bridges even though the book weren’t mentioning them.