-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Further Documentation will be available soon
- Loading branch information
1 parent
296e022
commit bf86bec
Showing
1 changed file
with
38 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,39 @@ | ||
# SleepySocks | ||
Open Source Code for the SleepySocks project- closed from the public for two years, now has been open to public for improvement. | ||
# Code for the SleepySocks project has now been open to public for improvement | ||
|
||
|
||
int PressureSensyThingy = A0; | ||
|
||
# The Pressure Sensy Thingy here refers to the Piezo- Electric transducer | ||
|
||
byte val = 0; | ||
|
||
int heswokeup = 150; | ||
|
||
# heswokeup refers to he threshold value exceeding which triggers the signal shoot | ||
# Threshold values vary and depend on the quality, size and material of the Piezo-electric transducer | ||
|
||
|
||
void setup() { | ||
Serial.begin(9600); | ||
pinMode(PressureSensyThingy, INPUT); | ||
} | ||
|
||
# Some dev boards have different input pins. You can check the documentation to determine which input pin is the best. | ||
|
||
|
||
void loop() { | ||
|
||
val = analogRead(PressureSensyThingy); | ||
|
||
if (val >= heswokeup) | ||
|
||
{ | ||
Serial.println(val); | ||
} | ||
|
||
delay(100); | ||
|
||
} | ||
|
||
# if you have been observing me for a while, then you will understand why we use delays HAHA |