Friday, January 30, 2015

Development with Engduino

Engduino is a board that is similar to Arduino. Just that it includes accelerometer, led etc on the board itself. More technical info can be found here . It is developed by UCL, good for teaching or anyone who want to DIY Something. The programming environment is the same as Arduino.

You can download the installation files from here http://www.engduino.org/getting_started/downloads/.
*I strongly suggest download their installation package. For some reason the Arduino environment is a bit laggy during compilation in Windows 8.1. Also it will install everything for you including driver and Arduino programming environment, no need to do other settings. Just plug in your engduino after installation.

Let starts programming:
Just run Engduino. They included a wiki on their site. Same as Arduino they included a lot examples. In the Arduino compiler, goto File->Examples->100.Engduino. Upload your code and start running it. :)

I found another interesting project called platformio that allow code to be uploaded to Arduino, Engduino easily with cmd.

To download PlatformIO,
1) Have Python 2.7.9 installed in your system.
2) Add to PATH system variable ;C:\Python27;C:\Python27\Scripts;
3) In command type $ pip install platformio && pip install --egg scons

done!
For upgrading type $ pip install -U platformio

Now to setup platformIO to work with Engduino is a bit tricky but simple!
In command line:
1) type $ platformio init --project-dir [your project directory] --board=[board name, eg: engduinov2]
This will create a new project in the directory specified with 2 sub folders "lib", "src".
2) Copy the Engduino library from your engduino installation file eg: C:/arduino-1.0.5-Engduino->libraries to the project folder "lib"
3) Copy Wire.h, Wire.c and utility folder from C:/arduino-1.0.5-Engduino->libraries to project_folder/lib/Engduino/
4) Copy your source code to project_folder/src
5) cd to the project_folder, type $ platformio run in command line
*The first time you run, you will encounter wire.h not found problem. edit those files with error and change it to #include "wire.h" in the source code. I do not know why it has this problem.
6) now type $ platformio run again. This will upload code to Engduino


No comments:

Post a Comment