In the time since I left you to ponder the etymology of anions and cations, and how that relates to anodes and cathodes, I have continued working my way through The Arduino Projects Book. I built myself a simple circuit with a switch, a series circuit with a switch, and a parallel circuit with a switch. Then I moved over to the actually interesting projects, and right away I ran into something that left me confused. Suddenly, without explanation, the circuits I’m instructed to build are putting the resistors on the cathode side of the LEDs I’m lighting up, instead of the anode side like they were before. Does order not matter?
Quick Googling and a run to the public library have both left me still in the dark. Possibly this is because I was lured away from my intention of getting a kids’ book about circuits, and instead ended up with an introductory college textbook. Bad idea! Now I need to go back. Or I could ask the audience. Anyone have an answer in simple words that someone with zero background knowledge will understand?
The Love-O-Meter is supposed to measure someone’s hotness (literally, in degrees Celsius), and light up different numbers of LEDs depending on the person’s temperature. I had to adjust the baseline temperature up 4 degrees Celsius because it was so hot in my house that day. It was any easy fix in the code–nothing more than changing the value of the baselineTemp. Sharona (@linguomancer) helped me test it out after I made the change.
This color-mixing lamp is supposed to change the color of its LED depending on what color the light is in the room around it. This is where I started to get creative, because how on *earth* are you supposed to make those gels stay put on top of the photoresistors? They kept falling off!
Also, I wanted the LED to change colors. What good is a color-mixing lamp if the LED never changes colors? The only way it would change colors is if I moved the whole set-up to another room–at which point all the gels fell off *again*.
I may not know enough to rework the circuit in any meaningful way, but I do know enough to be able to change the code controlling what this thing does. In the end, I reworked the code until I could make the LED fade from one color to another based on which photoresistor had the most light on it (here’s my code). This is a video of what it looked like when I was finished. Much more fun than the original! I can make the LED fade from one color to the next just by hovering my finger over the various photoresistors.