Skip to content

Instantly share code, notes, and snippets.

View ArduinoBasics's full-sized avatar

Scott C ArduinoBasics

  • Australia
View GitHub Profile
@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 / 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 / CHAIN_BLOCKS_Transmitter.ino
Created March 13, 2017 00:57
Use a HCSR04 ultrasonic sensor to trigger a signal to be sent wirelessly via a 433MHz RF transmitter
/* ===============================================================
Project: CHAIN BLOCKS : HC-SR04 433MHz RF Transmitter sketch
Author: Scott C
Created: 26th Feb 2017
Arduino IDE: 1.8.1
Website: http://arduinobasics.blogspot.com.au
Description: Use a HC-SR04 ultrasonic sensor to trigger a signal to be sent via
a 433Mhz RF transmitter.
================================================================== */
@ArduinoBasics
ArduinoBasics / CometEffect.ino
Created March 17, 2017 13:56
Comet effect for Jason Brown
//Comet Effect Written for Jason Brown
//Author: Scott C
//Date: 17th March 2017
//Arduino IDE version 1.8.1
//======================================================================
#include "FastLED.h" //Make sure to install the FastLED library into your Arduino IDE
//The total number of LEDs being used is 144
#define NUM_LEDS 144
@ArduinoBasics
ArduinoBasics / Hacking_OWI_Robotic_Arm.ino
Created March 27, 2017 04:01
Arduino Code for the Controllino MAXI to allow you to control the Robotic Arm using Cayenne
/* ===============================================================
Project: Hacking the OWI Robotic Arm with Controllino and Cayenne
Author: Scott C
Created: 14th March 2017
Arduino IDE: 1.8.1
Website: http://arduinobasics.blogspot.com.au
Description: Use Cayenne to control the OWI Robotic Arm via the Controllino MAXI.
A lot of functionality is built within the Cayenne library.
Library File: Install the library file as per the instructions on their website:
@ArduinoBasics
ArduinoBasics / Nextion_Enhanced_Stepper_Motor_Piano.ino
Created July 15, 2017 11:26
Using a Stepper motor as a musical instrument
//================================================================================================
// Title: Nextion Enhanced Stepper Motor Piano Project
// Author: ScottC, http://arduinobasics.blogspot.com
// Version: 1.0
// Date: 15th July 2017
// Arduino IDE: 1.8.1
// Arduino Board: Arduino Uno
// Nextion Board: Nextion Enhanced NX4827K043
// Description: The Arduino receives Serial messages from the Nextion board, and based on those messages, the Arduino will
@ArduinoBasics
ArduinoBasics / ReverseCometEffect.ino
Last active July 27, 2017 00:15
Reverse Comet Effect. Similar to the original comet effect, but coming in from the opposite direction.
//Reverse Comet Effect Written for Leon van der Meij
//Author: Scott C
//Date: 26th July 2017
//Arduino IDE version 1.8.1
//======================================================================
#include "FastLED.h" //Make sure to install the FastLED library into your Arduino IDE
//The total number of LEDs being used is 300
#define NUM_LEDS 300
@ArduinoBasics
ArduinoBasics / Tutorial1_RFBlink_TransmitCode.ino
Created August 29, 2017 04:15
A simple sketch to test RF transmission
@ArduinoBasics
ArduinoBasics / Tutorial1_RFBlink_ReceiveCode.ino
Created August 29, 2017 04:19
A simple sketch used to test RF transmission/receiver
@ArduinoBasics
ArduinoBasics / Tutorial2_RFRemoteCapture.ino
Last active August 29, 2017 04:52
Use an Arduino to Receive RF Remote signal
/*
RF Remote Capture sketch
Written by ScottC 24 Jun 2014
Arduino IDE version 1.0.5
Website: http://arduinobasics.blogspot.com.au/2014/06/433-mhz-rf-module-with-arduino-tutorial_27.html
Receiver: XY-MK-5V
Description: Use Arduino to Receive RF Remote signal
------------------------------------------------------------- */
const int dataSize = 500; //Arduino memory is limited (max=1700)