Traffic Light Jam (Ramya)




Traffic Light Assignment








Summer started off a bit (very) excited with a meet and greet Arduino/Super Starter Kit, and our first assignment the traffic light.





On our first attempt, all lights insisted turning on at once.
We revisited our code thinking of the logical order of loops set to light the LED. As we kept altering the loop, we constantly had to change each loop for each LED light. I thought a constant could be helpful. Although I speak C++, I wasn’t entirely familiar with the functions of Arduino. A little research and it turned out to be simply defining integers as constants.



After a little code makeover, we started all over with the plugs, a lot of unplugging, re-plugging, and testing only this time no sign of light. A hint from Professor Kassem, to think about the number of positive on one circuit, and a change I kept resisting was all it took.

Mission accomplished and Vida la research!
    
                                                                                              
Before



  
                            After


Also, this guy wanted to say hello









Comments

Popular Posts