Thursday, September 8, 2016

Beginning Arduino: Project Three, Four

Project 3:

Traffic Lights

The only issue I had with this one was I put my LEDs in backwards. I know that the long end is the positive end, but I keep mixing up anode and cathode. I used to be a chemistry major, and so I associate anode with anion, a negatively charged ion, and cathode with cation, a positively charged ion. I'll have to remember to switch them in my head.


Project 4:

Interactive Traffic Lights

For this one, I initially forgot to connect it to ground and the power source. It took me a few minutes to realize what I was doing wrong because some of the LEDs were lighting up, but weren't behaving how they were supposed to; the two red LEDs just stayed on, and pressing the button did nothing.


2 comments:

  1. Ha! That's interesting about anion and cation, Desiree.

    So anions are attracted to the anode since that electrode has the positive charge and vice versa with cations and the cathode. You're correct in associating them, but an anion is attracted to the anode >because> they have opposing charges.

    Just remember the anode (long leg, positive charge) goes to your power supply, and the cathode (short leg, negative charge) goes to the ground. The confusing part is that the ions they attract are oppositely charged =O

    ReplyDelete
  2. Ha! That's interesting about anion and cation, Desiree.

    So anions are attracted to the anode since that electrode has the positive charge and vice versa with cations and the cathode. You're correct in associating them, but an anion is attracted to the anode >because> they have opposing charges.

    Just remember the anode (long leg, positive charge) goes to your power supply, and the cathode (short leg, negative charge) goes to the ground. The confusing part is that the ions they attract are oppositely charged =O

    ReplyDelete