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.
sensors.h@9:ac019d9b57d7, 2018-08-07 (annotated)
- Committer:
- Fuminori OKUHARA
- Date:
- Tue Aug 07 12:20:25 2018 +0900
- Revision:
- 9:ac019d9b57d7
- Parent:
- 5:e92264bc120e
Merge branch 'master' of https://github.com/sakuraio/SakuraIO_Evaluation_Board_Standard
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Fuminori OKUHARA |
5:e92264bc120e | 1 | typedef struct { |
Fuminori OKUHARA |
5:e92264bc120e | 2 | float temperature; |
Fuminori OKUHARA |
5:e92264bc120e | 3 | float pressure; |
Fuminori OKUHARA |
5:e92264bc120e | 4 | float humidity; |
Fuminori OKUHARA |
5:e92264bc120e | 5 | } BME280Data; |
Fuminori OKUHARA |
5:e92264bc120e | 6 | |
Fuminori OKUHARA |
5:e92264bc120e | 7 | typedef struct { |
Fuminori OKUHARA |
5:e92264bc120e | 8 | float temperature; |
Fuminori OKUHARA |
5:e92264bc120e | 9 | float accelerometer[3]; |
Fuminori OKUHARA |
5:e92264bc120e | 10 | float gyroscope[3]; |
Fuminori OKUHARA |
5:e92264bc120e | 11 | float magnetometer[3]; |
Fuminori OKUHARA |
5:e92264bc120e | 12 | } MPU9250Data; |
Fuminori OKUHARA |
5:e92264bc120e | 13 | |
Fuminori OKUHARA |
5:e92264bc120e | 14 | typedef struct { |
Fuminori OKUHARA |
5:e92264bc120e | 15 | BME280Data bme280; |
Fuminori OKUHARA |
5:e92264bc120e | 16 | MPU9250Data mpu9250; |
Fuminori OKUHARA |
5:e92264bc120e | 17 | } SensorData; |