# Ideas for hardware

# making a balance bord

Since We are not able to connect the wii fit bord we have to come up with a solution. We thought of it for some time and what we want to do with it. Origanlly we wanted to use the balance bord for excersises such as standing on one leg. This is a simple leg excersise we wanted to have. We thaugt of multiple solutions to still have this excersise. However we still needed to think of a design for the frame. 

# the frame

We wanted it to have a similar style to the balance bord. howevere since we can make or own we wanted to make it a bit taller. This makes it easier to implement some other excersise such as the step up. This is na excersise that benefits from a taller box than the wii fit box. 

## LDR

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)