Create Arduino projects with your students.

Knight Rider

Hardware required

  • Arduino Board
  • LEDs
  • 220 Ohm resistors
  • Breadboard
  • Jumper wires

Theoretical concepts

A resistor is a passive component that limits the flow of electricity in a circuit. We can with a resistor reduce the voltage and current.
A diode is an active component that lights up when electricity passes through it in a certain direction.

This project is a good way for the student to familiarize with loops. Loops are groups of commands that are to be repeated a number of times. In our case we will use the loops to iterate over the different LEDs that we are using, making them light alternately.
There are many types of loops in programming, but for loops are one of the easiest to understand since it is the programmer who assigns the conditions for their execution and iteration.

Code

 

The Demeter Project