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@0:db3ec2781484, 2017-09-07 (annotated)
- Committer:
- misodengaku
- Date:
- Thu Sep 07 08:32:10 2017 +0000
- Revision:
- 0:db3ec2781484
init
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
misodengaku | 0:db3ec2781484 | 1 | typedef struct { |
misodengaku | 0:db3ec2781484 | 2 | float temperature; |
misodengaku | 0:db3ec2781484 | 3 | float pressure; |
misodengaku | 0:db3ec2781484 | 4 | float humidity; |
misodengaku | 0:db3ec2781484 | 5 | } BME280Data; |
misodengaku | 0:db3ec2781484 | 6 | |
misodengaku | 0:db3ec2781484 | 7 | typedef struct { |
misodengaku | 0:db3ec2781484 | 8 | float temperature; |
misodengaku | 0:db3ec2781484 | 9 | float accelerometer[3]; |
misodengaku | 0:db3ec2781484 | 10 | float gyroscope[3]; |
misodengaku | 0:db3ec2781484 | 11 | float magnetometer[3]; |
misodengaku | 0:db3ec2781484 | 12 | } MPU9250Data; |
misodengaku | 0:db3ec2781484 | 13 | |
misodengaku | 0:db3ec2781484 | 14 | typedef struct { |
misodengaku | 0:db3ec2781484 | 15 | BME280Data bme280; |
misodengaku | 0:db3ec2781484 | 16 | MPU9250Data mpu9250; |
misodengaku | 0:db3ec2781484 | 17 | } SensorData; |