This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 05.60 - Grove servo motors | |
| * | |
| This sketch demonstrates how to use the Grove servo motor. | |
| For the servo motor to | |
| work, you must connect it to a PWM-capable pin. | |
| Grove sockets that breakout PWM pins are D3, D5, D6, and D8 (inner pin only). | |
| Connect the servo motor to Grove socket D3 and upload the sketch. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 06.10 - Grove LCD RGB Backlight module Hello World | |
| * | |
| This sketch demonstrates how to use the Grove LCD RGB Backlight module. | |
| It will print a welcome message and start a counter, with a red backlight. | |
| Components | |
| ---------- | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 06.12 - Grove LCD RGB Backlight module, custom characters | |
| * | |
| This sketch demonstrates how to use the Grove LCD RGB Backlight module. | |
| Specifically, it shows how to create and display custom characters. | |
| To create a custom character, you must draw it using pixels. Each character | |
| is drawn on a 8x5 pixel array (8 rows, 5 columns). | |
| For example, a smily emoji would looks like this ("x" is an "off" pixel, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 06.20 - Grove - 0.54 inch Red Quad Alphanumeric Display demo | |
| * | |
| This sketch demonstrates how to use the Grove - 0.54 inch Red Quad Alphanumeric Display. | |
| It will print letters and numbers. | |
| Components | |
| ---------- | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 06.21 - Grove - 0.54 inch Red Quad Alphanumeric Display position demo | |
| * | |
| This sketch demonstrates how to use the Grove - 0.54 inch Red Quad Alphanumeric Display. | |
| It will print letters and numbers at specific positions, and also control the | |
| blink rate and dots. | |
| Components | |
| ---------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| 7.40 - Grove - Project 1: Control the LED blink rate with a potentiometer | |
| Control how fast an LED blinks with a potentiometer. | |
| Simply turn the pot one way to speed up blinking, and the other way to | |
| slow it. | |
| Components |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 9.40 - Grove - Project 3: Make an environment monitor | |
| This sketch implements an environment monitor. | |
| It measures and calculates the air temperature using the Grove temperature module (thermistor). | |
| It measures the ambient light using a photoresistor. | |
| It displays the calculated temperature and measured light intensity in the Grove LCD. | |
| If the light intensity is below a certain value, it turns on an LED strip via a Grove relay. | |
| *** A challenge for you: *** | |
| Can you adjust the circuit and sketch so that the value below which the LED strip is turned on can |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 10.40 - Grove - Project 4: Motor control with a potentiometer | |
| This sketch copies the position of a potentiometer to the servo motor. | |
| As you turn the knob of the potentiometer, the servo motor moves accordingLy. | |
| *** A challenge for you: *** | |
| Can you make the necessary changes to this sketch and the hardware so that the motor | |
| indicates the current temperature drawn on a sheet of paper? | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 11.40 - Project 5 - Grove loud noise detector | |
| This sketch implements a loud noise detector. It uses a simple soundsensor to pick up | |
| noise. It calculates the volume of the noise, and if it is above a certain threshold, | |
| it switches on an LED and increases the loud noise counter by 1. | |
| The threshold is configurable via a potentiometer. | |
| The sketch displays its operation parameters on an LCD screen. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 8.40 - Grove - Project 2: Make an electronic dice | |
| This sketch implements an electronic dice. | |
| When you press the momentary button or touch the touch sensor, the electronic dice | |
| will start to "roll", and then display your lucky number on the LCD. | |
| During the roll, the gadget will produce a tone of changin pitch, to add to the | |
| anticipation, and several random numbers will appear in the LCD. | |
| Components |