Knight Rider Light Arduino

 

Knight Rider Light Arduino


Introduction:

we'll delve into the exciting world of Arduino programming and simulation using Tinkercad, a fantastic online platform that allows you to bring your electronic projects to life virtually. 

Our mission: To create the Knight Rider LED pattern using 6 LEDs controlled by an Arduino. 

Will Need:
  • Arduino Uno 
  • USB Cable 
  • Windows 10, Windows 8, Windows 7, Mac, or Linux OS 
  • Arduino IDE or online simulator
What Is An Arduino Simulator? 

An Arduino simulator is a virtual representation of a real world Arduino circuit.

Below mentioned dashboard of Tinkercad:





Step 1: First, logging into Tinkercad and creating a new circuit project.  Add an Arduino board and six LEDs to the workspace. Connect the LEDs to digital pins on the Arduino, ensuring you arrange them in the desired order for the Knight Rider pattern.





Step 2:
Click on the Arduino board to open the code editor. Now, let's write the code for the Knight Rider pattern. Below is the code for knight rider LED pattern.



Step 3: 
Click on the "Start Simulation" button in Tinkercad to see your project come to life. You should observe the LEDs lighting up in the desired Knight Rider pattern, moving forward and backward.

Step 4: Troubleshooting: 
If your simulation doesn't work as expected, don't worry. Debugging is an integral part of the creative process. Check your connections, review the code for errors, and make necessary adjustments. 

Creator: P.A.Hirushan Niluminda✌

Comments