Student Instructions
Let´s get started.
Open mBlock and design a program to control an LED. Light emitting diodes (LED) are used in many ways, so you start learning how to control them with mBlock and the Arduino.
Use a loop to repeat your code over and over again:
//set the LED on
//wait for a second
//set the LED off
//wait for a second
Connect 3, 4 or 5 LED´s in the same way. Use a different digital pin for each LED and write your own program. Can you create a traffic light? Or make them blink the way you want!
1. Tap the button.
2. Tap the
tool to record the Arduino experiment setup.
3. Explain what your program does while the experiment is running..
4. Tap the
button to add to your portfolio.