ICP - Sang-Ly/TCP-1-and-Bonus GitHub Wiki

ICP - 1

Blink LEDs

ICP-1 - Source Code

ICP-1 - Bonus - Source Code

Video - ICP - 1

Video - ICP - 1 - Bonus

Objective

Purpose of this ICP was to design and program the circuit:

  • Three LEDs

  • Green LED always ON

  • Button press

  • Other two LEDs blink

Steps

  1. Installed Arduino IDE.

  2. Design circuit by given diagram.

  3. Run source code and upload it to Arduino device.

  4. Modify source code to match ICP requirements.

  5. Upload code to Arduino chip.

  6. Press the button to start process.

Source Code

  1. Initialized input and outputs

  2. When button is not pressed

  3. Set LED Green ON, Red Off, White Off

  4. Button Pressed

  5. Set Green On, Red On, White off + delay + Green On, Red Off, White On - this part of the code in Loop mode