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.
SakuraPinNames.h
- Committer:
- Fuminori OKUHARA
- Date:
- 2018-07-30
- Revision:
- 5:e92264bc120e
File content as of revision 5:e92264bc120e:
#ifndef __SAKURA_PIN_NAMES_H__
#define __SAKURA_PIN_NAMES_H__
#define DAP_UART_TX PB_6
#define DAP_UART_RX PB_7
// GPIO
#define SW1 PC_14
#define SW2 PH_0
#define SW3 PC_0
#define SW4 PC_1
#define SW5 PC_2
#define SW6 PC_3
#undef LED1
#undef LED2
#undef LED3
#undef LED4
#define LED1 PC_13
#define LED2 PC_15
#define LED3 PH_1
#define LED4 PC_4
// LCD
#define LED_LCD PC_5
// MPU-9250
#define MPU9250_INT PB_2
// GPS
#define GPS_EN PA_11
#define GPS_INT PB_5
#define GPS_1PPS PB_4
#define GPS_WAKEUP PD_2
#define GPS_TX PC_6
#define GPS_RX PC_7
// sakura.io
#define SCM_WAKE_IN PC_8
#define SCM_WAKE_OUT PA_9
/* Bus */
// I2C (LCD, BME280)
#define I2C_INTERNAL_SCL PB_8
#define I2C_INTERNAL_SDA PB_9
// I2C (sakura.io)
#undef I2C_SCL
#undef I2C_SDA
#define I2C_SCL PA_8
#define I2C_SDA PC_9
// I2C (External)
#define I2C_EXTERNAL_SCL PB_10
#define I2C_EXTERNAL_SDA PB_3
// SPI (MPU-9250)
#define SPI_MPU_MISO PA_12
#define SPI_MPU_MOSI PA_10
#define SPI_MPU_SCK PB_0
#define SPI_MPU_CS PB_1
#endif
SAKURA Internet