Sunday, November 18, 2018

Week 3 It's getting deeper in Here!!



This week I worked on the 3rd circuit  in our starter kit guide.  I constructed the Arduino and Breadboard as instructed using 1 RGB LED, 3 330Q Resistors,  and 6 jumper wires.
It is so fun to build the circuit now as I feel I am getting more confident as I progress.  The code was very long this week that was written on the Arduino software.  As I typed the code, leaving out the instructional information I spent several hours getting it right.  I kept loosing my place as I typed and either skipping a section of code or doubling it.  Once I had the code checked and it was finally okay to download I was relieved.  My persistence paid off as the RGB LED blinked in the three colors as directed.



Here is my board and the code I followed.


Here is part of the code that gave me a hard time.  It was too long to screen shot all at one time.






Once I was successful by following the directions step by step I read what was asked for in the challenge.  It wanted me to incorporate 2 or 3 codes together to get a new result.   I worked for another 3 and 1/2 hours trying to accomplish something but after countless attempts at adding a yellow LED to the board and additional jumper wires then coding it to flash along with the RGB LED with no success by adding the 2 codes together. However, I combined the code from the first week adding a 10th of a delay, and removed the extra LED and jumper wires and I got the RGB LED to blink faster but that was my only success with this step.   I am sure many of you did this with no problem and I look forward to reviewing your blogs again to get more insight on what you did differently than me to be successful with this challenge.



Here is my small success by just adding delays to the code I wrote for this week.
     

No comments:

Post a Comment