|Buy from US||Buy from UK||Buy from DE||Buy from IT||Buy from FR||Buy from ES||Buy from JP|
The OSOYOO Magic I/O Shield for Arduino is a powerful board for the beginners. With this Magic board, we can easily connect various sensors and actuators much easier than before.
In this lesson we will use Arduino to drive 4 LEDs and make a running LED light row.
First, please plug Osoyoo Magic I/O shield into UNO board:
Then connect the LED module to the ports of the Magic I/O shield with four 3-pin PNP cables as below:
White – D2
Yellow – D3
Red – D4
Green – D5
You should NOT connect a normal LED between 5V and GND pins in Arduino without a resistance. First, This will cause too much current passing through LED and burn it out. Second, the LED polarity is wrongly connected(i.e Positive Pin connected to GND pin) will also damage the LED.
To solve such problem. we designed OSOYOO LED module which has a build-in resistance to limit the current and fixed polarity socket to avoid these mistakes. In this project, we will use OSOYOO LED module.
After above operations are completed, connect the Arduino board to your computer using the USB cable. The green power LED (labelled PWR) should go on.
Open the Graphical Programming software Mixly, if Mixly is not English, you should change the language first:
You can download the code directly, then click “Open” in Mixly to choose the code you download:
Or you can do as following operations:
Repeat above operations (or just right click to duplicate the blocks), and define PIN 3, PIN 4 and PIN 5, just remember to change the parameter, the whole program blocks are as following:
Click Save after all the program blocks are installed. Select correct board type and serial port , then click upload.
Now, you should see four LEDs lighting one by one as per following video, this whole process will repeat until the circuit is powered off.
DownLoad Url osoyoo.com