Appendix D

Practical guideline and code examples

D.1 Introduction

As reference some practical interfacing examples as illustration using the Arduino platform (http://arduino.cc) are given. In this section example code is presented. Two larger programs are used at the host PC side to capture and visualize the data which are written in Processing (http://www.processing.org).

As explained in Chapter 1, Introduction, the Arduino ecosystem has become a de-facto standard in recent years for education, hobby, and Do-It-Yourself (DIY) use. Although there are of course many boards and microcontrollers available that outperform the Arduino (Atmel AVR RISC combination) in price, performance, and connectivity, through its ease of use, large support, and wide ...

Get Sensors for Mechatronics, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.