Example code of sakura.io Evaluation board.
Dependencies: AQM0802A BME280 MPU9250_SPI SakuraIO gps mbed
SakuraIo Evaluation Board Standard
Overview
This program is example code of sakura.io Evaluation board.
Functions
- Periodic measure from onboard sensors(period is 200ms)
- Motion sensor(gyro, accelometer, magnetometer)
- Environment sensor(temperatur, humidity, airpressur)
- GPS(longitude, latitude, timestamp)
- Periodic send the measuring datas to sakura.io platform(period is 300sec)
- Output the measured datas output to USB-Serial port
- baudrate is 9600bps
- Can select on / off of periodic running with switch `SW5`
Description
See the Getting Started page.
Diff: sensors.h
- Revision:
- 0:db3ec2781484
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sensors.h Thu Sep 07 08:32:10 2017 +0000 @@ -0,0 +1,17 @@ +typedef struct { + float temperature; + float pressure; + float humidity; +} BME280Data; + +typedef struct { + float temperature; + float accelerometer[3]; + float gyroscope[3]; + float magnetometer[3]; +} MPU9250Data; + +typedef struct { + BME280Data bme280; + MPU9250Data mpu9250; +} SensorData;