User Tools

Site Tools


wiki:diyplay

BE READY TO START

Some of the exercices of the book have been chosen to be used with the red Wi-Fi board, and managed through an App, available for Apple and Android. You can find these exercises when you see the red Wi-Fi symbol next to the exercise title.

TO BEGIN YOU WILL NEED
  • Your laptop
  • Your smartphone
  • The yellow D.I.Y. kit

It’s now time to download the yellow D.I.Y. app, available for Android and iPhone / iPad. Download it for your respective device, choose an exercise from the list and get ready to start!

Get the App for Android from Play Store

* What’s Next is a trademark of what’s next GmbH. Apple, the Apple logo, iPhone, and iPad are trademarks of Apple Inc., registered in the U.S. and other countries. App Store is a service mark of Apple Inc., registered in the U.S. and other countries. Google Play and the Google Play logo are trademarks of Google LLC.

LEDS

This exercise is based on the yellow D.I.Y. kit p. 102 - 4.9 D.I.Y. Led chasing effect

TASK DESCRIPTION

With a series of LEDs, create a sequence or chasing effect using the arrays. Compared to the D.I.Y. exercise version of the book made with the yellow board, you will have to add an extra LED to the circuit, with its relative resistor. Moreover, the pins used by the board have been modified, as in the red the pins the pin 10,11,12 and 13 used are used for the communication between the 328p and the ESP8266. Then if you’re using the Wi-Fi of the board, you will not be able to use these pins at the same time. Please refer to the circuit drawing below.

MATERIALS
  • Red board x 1
  • Micro USB cable x 1
  • Breadboard x 1
  • LED (any color) x 6
  • 330Ω (orange/orange/brown)
  • Resistor x 6
  • Jumper wires
CIRCUIT

Connect resistors and LEDs to pins 2, 3, 4, 5, 6, and 8 on the red board.

PROGRAM

This exercise needs the REDwifiHTTP library: if you have not installed it yet, please follow the procedure explained in guide 4, then come back here! Go to File → Examples → REDwifiHTTP and select the “leds” sketch. Compile and upload the code.

CONNECT THE APP

To use the app though the Wi-Fi of the red board, you can choose of these two different procedures, described below.

1. From the Wi-Fi menu of your Smartphone, connect your computer to the RED board Access Point network (what’s next RED board will appear in the list of networks as Red-WiFi-XXXXXX, where XXXXXX is the final part of the board’s Wi-Fi MAC Address. You can check the MAC address by reading it on the label sitting on top of the metal shielding case on the board’s top side. Once connected, open the app, and select your board from the list in the settings menu. You will be redirected to the list of the exercises if the connection has been successful. Please note that the RED board is not able to connect to the Internet by itself, so you can’t surf the Web with your phone as long as it is connected to the board’s Access Point.

2. From the Wi-Fi menu of your laptop, connect your computer to the RED board Access Point network (what’s next RED board will appear in the list of networks as Red-WiFi-XXXXXX, where XXXXXX is the final part of the board’s Wi-Fi serial number (MAC Address). You can check the MAC address the Mac Address of your board by reading it printed on the label sitting on top of the metal shielding case on the board’s top side. Once the computer is connected to it, type http://192.168.240.1/ in your browser’s address bar. This will open the configuration panel which enables you to change the board’s name and connect it to your home Wi-Fi network (choose your Wi-Fi name (SSID) from the list, enter your Wi-Fi Password in the relevant field and click the connect button). At the end of the procedure, you can disconnect your computer from the RED board and connect it back to the network you were using before, in order to proceed with the online step-by-step guide. The RED is now connected to your home Wi-Fi and it can be accessed by any other device connected to the same network! Now, you can open the app and select your board from the list in the settings menu. You will be redirected to the list of the exercices if the connection has been successful.

OUTCOME

You can see now blinking the six LEDs depending on the sequence you choose from the APP, or customize a sequence from the sketch.

GOOD NIGHT

This exercice is based on the yellow D.I.Y. kit p. 151 - 6.2 D.I.Y. Automatic night-light using a LDR

TASK DESCRIPTION

Use a LDR to sense the light and make a night-light controlled by the red board. Turn on a LED if the ambient light falls below a given threshold.

MATERIALS
  • Red board x 1
  • Micro USB cable x 1
  • Breadboard x 1
  • LDRx1
  • LED (any color) x 1
  • 10kΩ (brown/black/orange) resistor x 1
  • 330Ω (orange/orange/brown) resistor x 1
  • Jumper wires
CIRCUIT

Create a voltage divider with a photoresistor, a 10kΩ resistor, and a few wires on the breadboard. Avoid pointing a light at the LDR directly as you want to follow the gradual change of data. As a maker, you can alter how your LDR detects data by adding a small piece of black straw, some folded paper, or other opaque materials to control the direction of light capture. Add a LED on pin 9, as shown in the picture to build your night lamp.

PROGRAM

This exercise needs the REDwifiHTTP library: if you have not installed it yet, please follow the procedure explained in guide 4, then come back here! Go to File → Examples → REDwifiHTTP and select the “goodNight” sketch. Compile and upload the code.

CONNECT THE APP

To use the app though the Wi-Fi of the red board, you can choose of these two different procedures, described below.

1. From the Wi-Fi menu of your Smartphone, connect your computer to the RED board Access Point network (what’s next RED board will appear in the list of networks as Red-WiFi-XXXXXX, where XXXXXX is the final part of the board’s Wi-Fi MAC Address. You can check the MAC address by reading it on the label sitting on top of the metal shielding case on the board’s top side. Once connected, open the app, and select your board from the list in the settings menu. You will be redirected to the list of the exercises if the connection has been successful. Please note that the RED board is not able to connect to the Internet by itself, so you can’t surf the Web with your phone as long as it is connected to the board’s Access Point.

2. From the Wi-Fi menu of your laptop, connect your computer to the RED board Access Point network (what’s next RED board will appear in the list of networks as Red-WiFi-XXXXXX, where XXXXXX is the final part of the board’s Wi-Fi serial number (MAC Address). You can check the MAC address the Mac Address of your board by reading it printed on the label sitting on top of the metal shielding case on the board’s top side. Once the computer is connected to it, type http://192.168.240.1/ in your browser’s address bar. This will open the configuration panel which enables you to change the board’s name and connect it to your home Wi-Fi network (choose your Wi-Fi name (SSID) from the list, enter your Wi-Fi Password in the relevant field and click the connect button). At the end of the procedure, you can disconnect your computer from the RED board and connect it back to the network you were using before, in order to proceed with the online step-by-step guide. The RED is now connected to your home Wi-Fi and it can be accessed by any other device connected to the same network! Now, you can open the app and select your board from the list in the settings menu. You will be redirected to the list of the exercises if the connection has been successful.

OUTCOME

Depending on the threshold you set up in the app, your night lamp will turn on or turn off sensing changes in ambient light!

LIGHT SWITCH

This exercice is based on the yellow D.I.Y. kit p. 167 - 6.6 D.I.Y. The double-clap activated on and off switch with a mic pre-amp

TASK DESCRIPTION

Turn the LED on or off after receiving two clap sounds. Remotely control the same LED through a software-rendered switch.

MATERIALS
  • Red board x 1
  • Micro USB cable x 1
  • Breadboard x 1
  • Electret capsule microphone x 1
  • LM358 op-amp x 1
  • 2.2kΩ (red/red/red) resistor x 1
  • 68kΩ (blue/gray/orange) resistor x 1
  • 1kΩ (brown/black/red) resistor x 1
  • 100kΩ (brown/black/yellow) resistor x 1
  • 0.1μF capacitor (μJ63) x 1
  • Wall power adapter (Output: >7V, 1A)
  • Jumper wires
CIRCUIT

Use an electret microphone to detect sounds and amplify them with an op-amp based audio amplifier. When the RED detects two consecutive claps (or intense sounds) it will toggle the LED status on or off; you can monitor the LED status and command it via Wi-Fi also on your smartphone (or two or three! Just download the yellow D.I.Y. app on more than one device and connect them to the same RED board, you will then get a multi-point control system for your light!). Please note that the Wi-Fi module draws current in spikes which could disturb the audio amplifier when running on low-power sources like a laptop’s USB port; in order to avoid those disturbances, please power the RED through the wall power adapter available in the D.I.Y. kit.

PROGRAM

This exercise needs the REDwifiHTTP library: if you have not installed it yet, please follow the procedure explained in guide 4, then come back here! Go to File → Examples → REDwifiHTTP and select the “onOff” sketch. Compile and upload the code.

CONNECT THE APP

To use the app though the Wi-Fi of the red board, you can choose of these two different procedures, described below.

1. From the Wi-Fi menu of your Smartphone, connect your computer to the RED board Access Point network (what’s next RED board will appear in the list of networks as Red-WiFi-XXXXXX, where XXXXXX is the final part of the board’s Wi-Fi MAC Address. You can check the MAC address by reading it on the label sitting on top of the metal shielding case on the board’s top side. Once connected, open the app, and select your board from the list in the settings menu. You will be redirected to the list of the exercises if the connection has been successful. Please note that the RED board is not able to connect to the Internet by itself, so you can’t surf the Web with your phone as long as it is connected to the board’s Access Point.

2. From the Wi-Fi menu of your laptop, connect your computer to the RED board Access Point network (what’s next RED board will appear in the list of networks as Red-WiFi-XXXXXX, where XXXXXX is the final part of the board’s Wi-Fi serial number (MAC Address). You can check the MAC address the Mac Address of your board by reading it printed on the label sitting on top of the metal shielding case on the board’s top side. Once the computer is connected to it, type http://192.168.240.1/ in your browser’s address bar. This will open the configuration panel which enables you to change the board’s name and connect it to your home Wi-Fi network (choose your Wi-Fi name (SSID) from the list, enter your Wi-Fi Password in the relevant field and click the connect button). At the end of the procedure, you can disconnect your computer from the RED board and connect it back to the network you were using before, in order to proceed with the online step-by-step guide. The RED is now connected to your home Wi-Fi and it can be accessed by any other device connected to the same network! Now, you can open the app and select your board from the list in the settings menu. You will be redirected to the list of the exercises if the connection has been successful.

OUTCOME

The LED will toggle on or off when two claps are detected by the microphone. You can use the APP to check if the light is turned on, or use the APP as a switch.

WRITE

This exercice is based on the yellow D.I.Y. kit p. 182 - 7.5 D.I.Y. 7-Segment display with serial connection

TASK DESCRIPTION

Use a 74HC595 IC to connect a 7-segment display in order to reduce the number of pins used on the red board. Touch any of the segments displayed on your smartphone’s screen and send a custom glyph to the LED display.

MATERIALS
  • Red board x 1
  • Micro USB cable x 1
  • Breadboard x 1
  • 7-segment display (Common Cathode) x 1
  • 330Ω (orange/orange/brown) resistor x 8
  • 74HC595 IC x 1
  • Jumper wires
CIRCUIT

This circuit uses a 74HC595 shift register IC to minimize the GPIO usage from the RED board. Compared to the exercise based on the yellow board, you'll need to add a resistor and a connection between the IC and the 7-segment display, which will be used to control the small dot on the latter device.

PROGRAM

This exercise needs the REDwifiHTTP library: if you have not installed it yet, please follow the procedure explained in guide 4, then come back here! Go to File → Examples → REDwifiHTTP and select the “write” sketch. Compile and upload the code.

CONNECT THE APP

To use the app though the Wi-Fi of the red board, you can choose of these two different procedures, described below.

1. From the Wi-Fi menu of your Smartphone, connect your computer to the RED board Access Point network (what’s next RED board will appear in the list of networks as Red-WiFi-XXXXXX, where XXXXXX is the final part of the board’s Wi-Fi MAC Address. You can check the MAC address by reading it on the label sitting on top of the metal shielding case on the board’s top side. Once connected, open the app, and select your board from the list in the settings menu. You will be redirected to the list of the exercises if the connection has been successful. Please note that the RED board is not able to connect to the Internet by itself, so you can’t surf the Web with your phone as long as it is connected to the board’s Access Point.

2. From the Wi-Fi menu of your laptop, connect your computer to the RED board Access Point network (what’s next RED board will appear in the list of networks as Red-WiFi-XXXXXX, where XXXXXX is the final part of the board’s Wi-Fi serial number (MAC Address). You can check the MAC address the Mac Address of your board by reading it printed on the label sitting on top of the metal shielding case on the board’s top side. Once the computer is connected to it, type http://192.168.240.1/ in your browser’s address bar. This will open the configuration panel which enables you to change the board’s name and connect it to your home Wi-Fi network (choose your Wi-Fi name (SSID) from the list, enter your Wi-Fi Password in the relevant field and click the connect button). At the end of the procedure, you can disconnect your computer from the RED board and connect it back to the network you were using before, in order to proceed with the online step-by-step guide. The RED is now connected to your home Wi-Fi and it can be accessed by any other device connected to the same network! Now, you can open the app and select your board from the list in the settings menu. You will be redirected to the list of the exercises if the connection has been successful.

OUTCOME

Tap on the segments displayed by the app and see them switching on or off in real time on the 7-segment display!

wiki/diyplay.txt · Last modified: 2019/05/28 11:18 (external edit)