View serial
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//serial variables | |
var serial; // variable to hold an instance of the serialport library | |
var portName = "/dev/cu.usbmodem1421"; // fill in your serial port name here | |
// sensor variables | |
var lineBegin = 0; | |
var button1 = 0; | |
var button2 = 0; | |
View receiverV4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <RFM69.h> | |
#include <SPI.h> // the RFM69 library uses SPI | |
int ledPin = 9; | |
RFM69 radio; | |
#define myFrequency RF69_915MHZ // or RF69_433MHZ (check your radio) |
View transmitterV3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <RFM69.h> | |
#include <SPI.h> // the RFM69 library uses SPI | |
RFM69 radio; | |
#define myFrequency RF69_915MHZ // or RF69_433MHZ (check your radio) | |
int myNetwork = 147; // radios must share the same network (0-255) | |
int myID = 1; // radios should be given unique ID's (0-254, 255 = BROADCAST) | |
int hubID = 0; // the receiver for all sensor nodes in this example |
View gist:8d50ff263e5b62736231
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <RFM69.h> | |
#include <SPI.h> // the RFM69 library uses SPI | |
RFM69 radio; | |
#define myFrequency RF69_915MHZ // or RF69_433MHZ (check your radio) | |
int myNetwork = 147; // radios must share the same network (0-255) | |
int myID = 1; // radios should be given unique ID's (0-254, 255 = BROADCAST) | |
int hubID = 0; // the receiver for all sensor nodes in this example |
View gist:1a0eb79bf5fa19760b5b
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <RFM69.h> | |
#include <SPI.h> // the RFM69 library uses SPI | |
int ledPin = 9; | |
RFM69 radio; | |
#define myFrequency RF69_915MHZ // or RF69_433MHZ (check your radio) |
View Oscilloscope
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sound; | |
var slider1; | |
var toggle; | |
var center1; | |
var center2; | |
var soundColor; | |
var d; | |
function setup() { | |
createCanvas(500, 500); |
View lamp p5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var serial; // Declare a "SerialPort" object | |
var proxPin = 0; // Variable from the Proximity Sensor | |
function preload() { | |
music = loadSound('youFlyMe.mp4'); //load sound from project folder | |
} | |
function setup() { | |
createCanvas(600, 400); |
View lamp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int ledPins[] = {3, 5, 6 }; //Red Green Blue pins going out to the LED from the arduino | |
int proxPin = A0; //Proximity sensor - increases voltage as your hand gets closer - controls HUE | |
int potPin = A1; //potentiometer for brightness control | |
int maxVal = 500; | |
int minVal = 180; | |
int latestVal; | |
int previousVal; | |
int bottomRange = 180; |
View rgbw arduino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int redLed = 3; | |
int greenLed = 5; | |
int blueLed = 6; | |
int whiteLed = 9; | |
void setup() { | |
Serial.begin(9600); // initialize serial communications | |
Serial.setTimeout(10); // set the timeout for parseInt | |
pinMode(redLed, OUTPUT); |
View rgbw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var serial; // variable to hold an instance of the serialport library | |
var portName = '/dev/cu.usbmodem1411'; // fill in your serial port name here | |
//var portName = '/dev/cu.AdafruitEZ-Link744f-SPP'; // fill in your serial port name here | |
var outByte1; // for outgoing data | |
var outByte2; | |
var outByte3; | |
var outByte4; | |
var slider1; | |
var slider2; |
NewerOlder