Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Further Documentation will be available soon
  • Loading branch information
AradhyaSpace11 authored Jul 3, 2021
1 parent 296e022 commit bf86bec
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion README.md
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

0 comments on commit bf86bec

Please sign in to comment.