# NRC Buoyancy testing for prototype 1: Floating Pavilion
Step 1. Download the Teensy Loader Application (https://www.pjrc.com/teensy/loader.html)
Step 2. Open the .hex file that you want to run. (File->Open HEX File)
Step 3. Plug in main board to computer and follow Teensy Loader prompts to load program
Step 4. It's logging to an SD card (if there's one in the Teensy). You can also monitor the Teensy with a serial monitor.
Be sure to record meta-data like which moon board (eg. R2A) is being used. This is needed in order to determine the conversion from unitless ADC integers to floats with proper units.
https://www.pjrc.com/teensy/tutorial.html
LSM9DS1 | Teensy | (Breadboard) | SPI Name |
---|---|---|---|
VIN | Vin | + | |
GND | GND | - | |
SCL | 13 | 20 (R) | SCK0 |
SDA | 11 | 19 (L) | MOSI0 |
CSAG | 15 | 18 (R) | CS0 |
SDOAG | 12 | 20 (L) | MISO0 |
Wind Speed | |||
black | 2 | ||
Wind Direction | |||
green | 20 |
Conversion equations
Conversion equation: a [g] = (V - 1.65)/0.33