diff --git a/docs/documentation/hardware/Ideasforfitbord.md b/docs/documentation/hardware/Ideasforfitbord.md index 8efdd05..b8ec804 100644 --- a/docs/documentation/hardware/Ideasforfitbord.md +++ b/docs/documentation/hardware/Ideasforfitbord.md @@ -10,8 +10,40 @@ We wanted it to have a similar style to the balance bord. howevere since we can ## LDR -We can use a LDR to determine if someone is standing on the bord +We can use a LDR to determine if someone is standing on the bord. We will have a small window where light can pass trought to let de LDR read out the light. We need to make clear that the user needs to stand on these points by providing an easy to udnerstand design. ## Knock sensor +A knock sensor is a sensor that detects impact. This could come in handy for us since it could detect impact on our fitbord. If we were to make a fitbord we would love to implement this sensor. We could use it to detect if someone is standing on the fitbord. This will not make the LDR useless since it only will detect one impact. This will be when someone will be standing on the fitbord it will not activate when someone is standing on the fitbord without moving. + +We could is it for excersises where u want someone to jog or walk in place. The knock sensor will detect the small impacts from walking. This will greatly expend our excersise pool since walking and running is really important for cardio excersises. We could also make people stamp on the ground. This is a fun and good excersise for your legs. + +```C++ +const int knockSensor = A0; +const int threshold = 200; + +int sensorReading = 0; + + +void setup() { + Serial.begin(9600); +} + +void loop() { + + sensorReading = analogRead(knockSensor); + + if (sensorReading >= threshold) { + + Serial.println(sensorReading); + } + + if (sensorReading >= 500) { +Serial.println(stamp detected) + } +} + delay(10); +``` + + ![alt text](../assets/knocksensor.png) \ No newline at end of file