The document discusses using the Arduino platform and Eclipse's Koneki project for machine-to-machine (M2M) development. It presents Arduino as inexpensive and easy to program but with limited IDE features. The Koneki project provides an Eclipse-based IDE for building M2M applications from reusable software components. A demo controls a servo motor with a potentiometer and sends position data to a server using the Arduino IDE, Eclipse CDT, and Eclipse Koneki.
2024: Domino Containers - The Next Step. News from the Domino Container commu...
Do It Yourself coolness: Arduino and M2M development with Eclipse & Koneki
1. Do It Yourself coolness: Arduino and
M2M development with Eclipse & Koneki
EclipseCon Europe – Nov, 3rd 2011
Open Source M2M: The Koneki Project
Benjamin Cabé
Open Source Community Manager
Koneki project lead
Do It Yourself coolness: Arduino and M2M development with Koneki Page
2. Introduction to Arduino
Disclaimer
I didn’t know we would have David’s keynote
when I submitted the talk …
Open Source M2M: The Koneki Project
Do It Yourself coolness: Arduino and M2M development with Koneki Nov, 3rd 2011 Page 3
3. Introduction to Arduino
Open Source M2M: The Koneki Project
Do It Yourself coolness: Arduino and M2M development with Koneki Nov, 3rd 2011 Page 4
4. Introduction to Arduino
Open Source M2M: The Koneki Project
Inexpensive
Do It Yourself coolness: Arduino and M2M development with Koneki Nov, 3rd 2011 Page 5
5. Open Source M2M: The Koneki Project
Easy to program
Do It Yourself coolness: Arduino and M2M development with Koneki Nov, 3rd 2011 Page 6
6. Open Source M2M: The Koneki Project
Open Source!
Do It Yourself coolness: Arduino and M2M development with Koneki Nov, 3rd 2011 Page 7
7. Open Source M2M: The Koneki Project
Do It Yourself coolness: Arduino and M2M development with Koneki Nov, 3rd 2011 Page 8
8. How to program an Arduino?
The answer is simple… Using the C language!
• (actually, it is Wiring)
How cool is that?
Ahem… It depends!
Open Source M2M: The Koneki Project
Do It Yourself coolness: Arduino and M2M development with Koneki Nov, 3rd 2011 Page 9
9. The good…
The Arduino IDE is actually pretty neat:
• Syntax highlighting
• Code formatter
• Libraries and examples are easy to add
• Single-click compilation
• Single-click target download
• Pretty good serial port management
C/C++
Open Source M2M: The Koneki Project
• Produces small and efficient binary code
Do It Yourself coolness: Arduino and M2M development with Koneki Nov, 3rd 2011 Page 10
10. The… well… less good
Arduino IDE lacks
• Autocompletion
• Interactive syntax/compile error management
• SCM integration
C/C++
• How to produce easily reusable libraries?
Open Source M2M: The Koneki Project
Do It Yourself coolness: Arduino and M2M development with Koneki Nov, 3rd 2011 Page 11
11. Simple use case – 3 approaches
Control a servo-motor with a potentiometer and
send its position (angle) to an M2M server
1. Arduino IDE
2. Eclipse CDT (+ AVR plugin)
3. Eclipse Koneki
Open Source M2M: The Koneki Project
Do It Yourself coolness: Arduino and M2M development with Koneki Nov, 3rd 2011 Page 12
12. Open Source M2M: The Koneki Project
http://fritzing.org
Do It Yourself coolness: Arduino and M2M development with Koneki Nov, 3rd 2011 Page 13
13. Using Eclipse Koneki
Very simple model to
describe the interfaces of each SW component
• Data in/Data out
• Event in/Event out
• Type checking + type inference
Provides a good abstraction of the physical world
Open Source M2M: The Koneki Project
Koneki component model != Visual programming
Do It Yourself coolness: Arduino and M2M development with Koneki Nov, 3rd 2011 Page 16
14. In a nutshell…
Arduino IDE for beginners and hobbyists
Eclipse CDT + AVR plug-in for skilled embedded
developpers and to get a « real » IDE
Eclipse Koneki to manipulate actual software
components
Open Source M2M: The Koneki Project
• Tomorrow, 2.30pm, Burgersaal 2 - Modeling
technologies and Machine-to-Machine
Do It Yourself coolness: Arduino and M2M development with Koneki Nov, 3rd 2011 Page 17
15. Thank you!
http://www.eclipse.org/koneki
Contact:
Benjamin Cabé
bcabe@sierrawireless.com
http://blog.benjamin-cabe.com
@kartben
Open Source M2M: The Koneki Project
Do It Yourself coolness: Arduino and M2M development with Koneki 28th June 2011 Page 18
16. More…
Eclipse for Arduino development
• http://www.arduino.cc/playground/Code/Eclipse
Koneki
• http://www.eclipse.org/koneki
Open Source M2M: The Koneki Project
Do It Yourself coolness: Arduino and M2M development with Koneki Nov, 3rd 2011 Page 19