Skip to content

Instantly share code, notes, and snippets.

View ArduinoBasics's full-sized avatar

Scott C ArduinoBasics

  • Australia
View GitHub Profile
@ArduinoBasics
ArduinoBasics / CHAIN_BLOCKS_Receiver.ino
Created March 13, 2017 00:52
The Arduino code for the Arduino Nano that Receives an RF signal to switch on a relay
/* ===============================================================
Project: CHAIN BLOCKS : 433MHz Receiver with Relay and Motor
Author: Scott C
Created: 26th Feb 2017
Arduino IDE: 1.8.1
Website: http://arduinobasics.blogspot.com.au
Description: Use the 433Mhz RF receiver to receive a signal. The Arduino
will process this signal and will trigger a relay
based on the result of the signal. A motor is attached to the
relay for extra effect.
@ArduinoBasics
ArduinoBasics / Cayenne_Garage_Door_Monitor.ino
Created December 4, 2016 15:43
The following sketch (in combination with Cayenne) will alert you when the direction of the magnetometer has changed by a pre-determined amount.
//================================================================================================
// Title: Garage Door Alert Project using Cayenne and a Magnetometer (HMC5883L on GY-80)
// Author: ScottC, http://arduinobasics.blogspot.com
// Version: 1.0
// Date: 8th Nov 2016
// Arduino IDE: 1.6.9
// Arduino Board: Seeeduino Cloud (or Arduino Yun)
//
// Description: The following sketch (in combination with Cayenne) will alert you when the
// direction of the magnetometer has changed by a pre-determined amount.
@ArduinoBasics
ArduinoBasics / HMC5883L_on_GY80_demo.ino
Created November 6, 2016 15:11
A demonstration of how to configure and extract data from the HMC5883L sensor on the GY-80 module (Arduino Code)
//================================================================================================
// Title: GY-80 3-axis Magnetometer (HMC5883L)
// Author: ScottC, http://arduinobasics.blogspot.com
// Version: 1.0
// Date: 24th Oct 2016
// Arduino IDE: 1.6.9
// Attribution: Inspired by Sparkfun Quickstart guide : https://www.sparkfun.com/tutorials/301
// Datasheet: https://cdn.sparkfun.com/datasheets/Sensors/Magneto/HMC5883L-FDS.pdf
// or
// https://cdn-shop.adafruit.com/datasheets/HMC5883L_3-Axis_Digital_Compass_IC.pdf
@ArduinoBasics
ArduinoBasics / RGB5050_light_cross_by_EasyEDA.ino
Created October 23, 2016 06:24
RGB5050_light_cross sketch provided by EasyEDA for the LED scroll bar project.
//RGB5050_light_cross sketch provided by EasyEDA for the LED scroll bar project.
int RGB1 =12; //Define digital interface
int RGB2 =11; //Define digital interface
int RGB3 =10; //Define digital interface
int RGB4 =9; //Define digital interface
int RGB5 =8; //Define digital interface
int RGB6 =7; //Define digital interface
int RGB7 =6; //Define digital interface
int RGB8 =5; //Define digital interface
@ArduinoBasics
ArduinoBasics / Seeeduino_Cloud_RFID_MP3_connected_to_Cayenne.ino
Created October 23, 2016 06:21
The Seeeduino Cloud is used to transmit a laser beam, identify the detected person, and play a scripted dialogue in response to an event.
/*
Title: Grove RFID and MP3 module with Seeeduino Cloud (Yun compatible) connected to Cayenne Dashboard
Author: ScottC
Date: 10th August 2016
Arduino IDE version: 1.6.9
Website: http://arduinobasics.blogspot.com.au/2016/08/arduino-based-security-project-using.html
Description: There are two Arduino MCUs involved in this project.
The Seeeduino Cloud (Arduino Yun compatible board) is used to transmit a laser beam, identify the detected person, and play a scripted dialogue in response to an event.
The other Arduino is responsible for detecting the presence of a person in the room. When a sensor is triggered, it will notify Cayenne, which
@ArduinoBasics
ArduinoBasics / Arduino_Ethernet_PIR_PhotoR_connected_to_Cayenne.ino
Created October 23, 2016 06:19
Using a PIR sensor to detect movement, and a Photoresistor as the trigger in a laser trip-wire setup.
/*
Title: PIR and Photoresistor with Ethernet Shield connected to Cayenne
Author: ScottC
Date: 10th August 2016
Arduino IDE version: 1.6.9
Website: http://arduinobasics.blogspot.com.au/2016/08/arduino-based-security-project-using.html
Description: Using a PIR sensor to detect movement, and a Photoresistor as the trigger in a laser trip-wire setup.
When motion is detected, or when the laser beam is broken, the Arduino will notify Cayenne of these events.
There are two Arduino MCUs involved in this project. This arduino is used to detect the presence of an intruder.
/* ==================================================================================================================================================
Project: Arduino Disco Ball Cake
LED chipset: ws2812B (IC Station item ID: 5248): http://goo.gl/uDQjZW
Author: Scott C
Created: 2nd June 2016
Arduino IDE: 1.6.4
FastLED library version: 3.0.3
Website: http://arduinobasics.blogspot.com/p/arduino-basics-projects-page.html
Description: Create a random LED sequence - Disco effect
FastLED library information at http://fastled.io/
@ArduinoBasics
ArduinoBasics / Stroboscopic_Animation_using_Arduino_MEGA.ino
Created October 23, 2016 06:13
This sketch will control various Magzor MIC boards using the Magzor I2C Arduino Shield on an Arduino MEGA to create a Stroboscopic animation.
/* ==================================================================================================================================================
Project: ArduinoBasics: Stroboscopic Animation using Arduino MEGA
Author: Scott C
Created: 24th Apr 2016
Arduino IDE: 1.6.4
Website: http://arduinobasics.blogspot.com/p/arduino-basics-projects-page.html
Description: This sketch will control various Magzor MIC boards using the Magzor I2C Arduino Shield on an Arduino MEGA to
create a Stroboscopic animation. The Arduino will listen for a Hall effect sensor to be triggered by a magnet,
which will cause an LED to flash rapidly (like a strobe light), allowing some pictures rotating on a disk to
appear motionless. We will string 4 of these pictures together to create an animation.
@ArduinoBasics
ArduinoBasics / Arduino_Code_for_Web_Data_Server.ino
Last active October 23, 2016 06:09
This Arduino sketch will set up a simple web data server which will send Analog Pin readings to any web browser that connects to it
/* ==================================================================================================================================================
Project: ArduinoBasics Web Data Server
Author: Scott C
Created: 15th Nov 2015
Arduino IDE: 1.6.4
Website: http://arduinobasics.blogspot.com/p/arduino-basics-projects-page.html
Description: This Arduino sketch will set up a simple web data server which will send Analog Pin readings
to any web browser that connects to it. It will send the data in JSON format.
Some sections code are borrowed from elsewhere - including:
- the WIZnet Ethernet library "WebServer" example sketch - https://github.com/Wiznet/WIZ_Ethernet_Library
@ArduinoBasics
ArduinoBasics / LED_Light_Box_Raindrop.ino
Created October 22, 2016 16:28
This sketch will create a randomised raindrop effect on a strand of 12mm Diffused Flat Digital RGB LED Pixels (25 LEDs).
/* ======================================================================================
Project: Arduino LED Light Box - Raindrop sketch
Author: Scott C
Created: 18th August 2015
Arduino IDE: 1.6.4
LED pixel chipset: WS8201
Website: http://arduinobasics.blogspot.com/p/arduino-basics-projects-page.html
Description: This sketch will create a randomised raindrop effect on a strand of 12mm Diffused
Flat Digital RGB LED Pixels (25 LEDs). This project makes use of the
FastLED library v3.0.3 (http://fastled.io/).