Skip to content

Instantly share code, notes, and snippets.

View ArduinoBasics's full-sized avatar

Scott C ArduinoBasics

  • Australia
View GitHub Profile
@ArduinoBasics
ArduinoBasics / ArduinoBasics WebServer Data Viewer.html
Created November 15, 2015 14:51
ArduinoBasics Analog Readings on Bar Chart using jQuery and AJAX
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ArduinoBasics WebServer Data Viewer</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
</head>
<body>
<style>
.table{
@ArduinoBasics
ArduinoBasics / RandomFontSelector.pde
Created June 22, 2016 02:26
Processing 3.1.1 Random Font Display
/* STAGE 8 : Random Font Selector with help from Arduino
ScottC : http://arduinobasics.blogspot.com/
Some of the Serial code was adapted from Tom Igoe's example
on this site: http://processing.org/reference/libraries/serial/Serial.html
and http://processing.org/reference/libraries/serial/serialEvent_.html
The rest of this code was written by ScottC on 11/07/2012
Updated for Processing 3.1.1 (32bit): on 22/06/2016
*/
@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/).
@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 / 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.
/* ==================================================================================================================================================
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 / 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.
@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 / 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 / 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