Intel Edison and Df Robot breakout board
I’ve recently purchased an Intel Edison, a relative new development platform from Intel Edison orientated at Internet of Things. The Intel breakout boards a a bit expensive, so I decided to buy an Df Robot breakout board.
Once you have everything installed/upgraded and want to start developing with a library like MRAA, you need a mapping for the pin numbers on the board to the pin number on the Edison. The code below shows a little C++ header file, containing a mapping.
#ifndef DF_ROBOT_HPP #define DF_ROBOT_HPP namespace df { const int d0 = 26; const int d1 = 35; const int d2 = 13; const int d3 = 20; const int d4 = 25; const int d5 = 14; const int d6 = 0; const int d7 = 33; const int d8 = 47; const int d9 = 21; const int d10 = 51; const int d11 = 38; const int d12 = 50; const int d13 = 37; const int uart_1_rx = 26; const int uart_1_tx = 35; const int uart_1_cts = 13; const int uart_1_rts = 25; const int pwm0 = 20; const int pwm1 = 14; const int pwm2 = 0; const int pwm3 = 21; const int i2c_6_sda = 8; const int i2c_6_scl = 6; } #endif
I’m currently struggling to create a libmraa based API for the MPU6050, a 6-axis IMU containing an onboard Digital Motion Processor. It works fine on my Arduino’s, but somewhere I’ve made a mistake in my code. As soon as I’ve got something working I’ll post it here and try to get it included in the UPM library.
A side project is to connect an MPU6050, a Beetle and the Edison to a single I2C bus. I can use the Arduino library on the Beetle to interact with the MPU6050 and use a simple I2C message to communicate the orientation. This allows me to runĀ open source IMU algorithms on the Beetle in the future.