# PCB

## Headerpins
``` 
#define PIN_IMU_SDA D2
#define PIN_IMU_SCL D1
#define PIN_IMU_INT D5
#define PIN_IMU_INT_2 D6
```      
## What does the pcb do
The pcb on itself is a ESP8266 with no sensors or battery. You need to manual solder a battery and sensor of your choice to the pcb.

## Original usage
These pcb's where originally designed for virtual reality fullbody tracking. They are basicly movement trackers that can be used to track the movement of the body. We can also use this really well for our project.

## Why did we choose this pcb
We chose this pcb because its really small and it has a socket for a sensor and it also has a build in bms for the battery. 

## Usage in our project
We are going to rotational data from the sensor and use that to give feedback to the user based on how well they did the exercise. 
![alt text](../assets/pcbImage.png)

## How can i program this ESP?

To program this you need to use the Arduino IDE. You need to install the ESP8266 board in the board manager. You need to go to File -> prefrences -> additional board manager url's. Then you need to add this link `https://arduino.esp8266.com/stable/package_esp8266com_index.json`. Then you can find the LOLIN(WEMOS) D1 mini lite. Thats the board you need to select. When compiling you will see a lot of warnings but you can ignore them.

### Sources 
* https://github.com/Sorakage033/SlimeVR-CheeseCake