Skip to content

Instantly share code, notes, and snippets.

View futureshocked's full-sized avatar

Peter Dalmaris futureshocked

View GitHub Profile
@futureshocked
futureshocked / 07.40_-_Grove_controlled_blink.ino
Last active July 30, 2019 01:11
Grove - Project 1: Control the LED blink rate with a potentiometer (this Gist contains two files)
@futureshocked
futureshocked / 06.21_-_Grove_Quad_Alphaneumerical_positions.ino
Last active July 30, 2019 01:08
This sketch demonstrates how to use the Grove - 0.54 inch Red Quad Alphanumeric Display.
/* 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
----------
@futureshocked
futureshocked / 06.20_-_Grove_Quad_Alphanumerical_demo.ino
Last active July 30, 2019 01:06
This sketch demonstrates how to use the Grove - 0.54 inch Red Quad Alphanumeric Display.
/* 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
----------
@futureshocked
futureshocked / 06.12_-_Grove_LCD_RGB_Backlight_custom_chars.ino
Created July 30, 2019 01:04
This sketch demonstrates how to use the Grove LCD RGB Backlight module.
/* 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,
@futureshocked
futureshocked / 06.10_-_Grove_LCD_RGB_Backlight_Hello.ino
Created July 30, 2019 01:03
This sketch demonstrates how to use the Grove LCD RGB Backlight module.
/* 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
----------
@futureshocked
futureshocked / 05.60_-_Grove_servo_motor.ino
Last active July 30, 2019 01:02
This sketch demonstrates how to use the Grove servo motor.
/* 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.
@futureshocked
futureshocked / 05.50_-_Grove_relay_module.ino
Last active July 30, 2019 01:00
This sketch demonstrates how to use the Grove relay module.
/* 05.50 - Grove Relay module
*
This sketch demonstrates how to use the Grove relay module.
This sketch is identical to the one from 05.10, that we used with the
LED kit module. We'll use a digital pin to energise the relay coil, and
drive a large electrical load.
The load can be anything the draws less than 10A current and 30V.
@futureshocked
futureshocked / 05.40_-_Grove_buzzer_module.ino
Created July 30, 2019 00:58
This sketch demonstrates how to use the Grove buzzer module to make noise. This Gist contains two files.
/* 05.040 - Grove buzzer module
This sketch demonstrates how to use the Grove buzzer module to make noise.
This sketch is supported by a second file that contains definitions of tone names
and their frequencies. We use these tones to play some music.
Components
----------
@futureshocked
futureshocked / 05.10_-_Grove_LED_kit.ino
Last active July 30, 2019 00:56
This sketch demonstrates how to use the Grove LED kit.
/* 05.010 - Grove LED module
*
This sketch demonstrates how to use the Grove LED kit.
This module contains a header in which you can attach an LED. Take care
to connect the anode (long pin) of the LED into the socket marked with "+".
The cathode should go to the socket marked with "-".
You can use a Phillips screwdriver to adjust the brightens by turning the
on-board potentiometer.
@futureshocked
futureshocked / 04.30_-_Grove_sound_sensor.ino
Last active July 30, 2019 00:54
This sketch demonstrates how to use the Grove sound sensor.
/* 04.030 - Grove sound sensor
*
This sketch demonstrates how to use the Grove sound sensor.
The sound sensor is an analog device. It outputs a voltage
level that depends on the intensity of the sound it captures.
This sketch calculates the volume of the sound based on the
last 32 samples it captures.
Upload this sketch and start the Serial monitor (you can also use