Skip to content

Instantly share code, notes, and snippets.

View ChrisNolan's full-sized avatar

Chris Nolan.ca ChrisNolan

View GitHub Profile
@ChrisNolan
ChrisNolan / PulseSensorAmped_Arduino_7Seg
Created April 5, 2015 23:09
Heartbeat Displayed on 7 segment
/*
>> Pulse Sensor Amped <<
This code is for Pulse Sensor Amped by Joel Murphy and Yury Gitman
www.pulsesensor.com
>>> Pulse Sensor purple wire goes to Analog Pin 0 <<<
Pulse Sensor sample aquisition and processing happens in the background via Timer 1 interrupt. 1mS sample rate.
PWM on pins 9 and 10 will not work when using this code!
The following variables are automatically updated:
Pulse : boolean that is true when a heartbeat is sensed then false in time with pin13 LED going out.
Signal : int that holds the analog signal data straight from the sensor. updated every 1mS.
@ChrisNolan
ChrisNolan / gist:3268825
Created August 6, 2012 01:19
WiiChuckDemo with 7-Segment Display for button presses
/*
* WiiChuckDemo --
*
* 2008 Tod E. Kurt, http://thingm.com/
*
* with code for 7-Segment Display added by Chris Nolan.ca
* based on https://gist.github.com/3268581
*
*/
@ChrisNolan
ChrisNolan / gist:3268581
Created August 6, 2012 00:46
example of using 7-Segment Serial Display
// example of using 7-Segment Serial Display
// product available from https://www.sparkfun.com/products/9765
// based on code from http://www.arunet.co.uk/tkboyd/ec/ec1led4x7ser.htm
// Note: solder wires at Gnd/Vcc & Rx, Rx goes to a digital pin on the arduino.
// Video available at http://www.youtube.com/watch?v=YVMAzYqV4kg
// Blogged @ http://chrisnolan.ca/2012/08/05/i-can-solder-7-segment-serial-display-nunchucky-operational/
#include <SoftwareSerial.h> // Arduino 1.0 included
#define SerInToArdu 2