Skip to content
/ doortrig Public

Simple project using an arduino and reed switch to trigger events

Notifications You must be signed in to change notification settings

pvl1/doortrig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

This is a silly project to have an arduino trigger a computer over serial to do some action. Primarily, this was used with a reed switch on a door, to surprise friends with the Seinfeld theme song when they walked in for a Festivus party.

i cant find the arduino code, but its something like this: int analogPin = 5; // potentiometer wiper (middle terminal) connected to analog pin 3 // outside leads to ground and +5V int val = 0; // variable to store the value read

void setup() { Serial.begin(9600); // setup serial }

void loop() { val = analogRead(analogPin); // read the input pin //if (val<1022){ Serial.println(val); // debug value

// } }

About

Simple project using an arduino and reed switch to trigger events

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages