Turn on two LEDs with an obniz Board by block programing.
- LED ×2
- obniz Board
- power supply
- smartphone or PC
hardware connection
In the same way as Turning on an LED, connect the LED to the obniz Board as shown below.
Software
1. Connect the LED
In the same way as Turn on an LED, use “led wired on obniz” block and “Turn on led” block from Light item.
2. Name an LED
Name the first LED. You can enter the name from the menu, “New led variable…”
This new name is called "variable."3. Call the LED by its name
Select the one you just named.This makes the LED whose anode is connected to the 0 pin and cathode is to the 1 pin is “white LED.”
4. Name and set other LEDs
Name the other LEDs and set the pin number of anode and cathode.Now, you can turn on these LEDs.
It is possible to increase the number of LEDs, or to turn on them one after another.
ProgramBefore we get into the project, let's look into obniz.
Here → obniz for DIY electronics
obniz is a cloud-connected IoT development board. You can program on the web browser of any smartphone or computer and the command is sent to obniz through the internet via obniz cloud. By connecting the obniz to the cloud through wifi, users can remotely control devices that are physically connected to obniz.
Thanks to this cloud based approach, you can program with Python, Javascript, or other languages you prefer and control hardware directly. You don't need to integrate firmware into the device side. Recording and analyzing data is also easy with obniz cloud service.
Want to control hardware things with your current Python or Javascript skill? Want to start IoT project but don't know where to start? Want to learn programming with languages you prefer?
obniz will help you broaden your viewpoint and develop both your SW and HW skills.
For more information, please visit our official website → Official Website
Where to get obniz board? → Amazon /Official Store
![Turn on several LEDs [Block Program]](http://prod.hackster-cdn.online/assets/transparent-a0c1e3063bcabc548a5f3fa7328f3c1c97f747e6e764da4c14439567baa79ae1.gif)


![Turn on several LEDs [Block Program]](https://hackster.imgix.net/uploads/attachments/1187036/LED2_BP.jpg?auto=compress%2Cformat&w=900&h=675&fit=min)






Comments