Archive

Archive for the ‘Arduino’ Category

Arduino Cheat Sheet — The most important Arduino commands and syntax

1 August 2013 4 comments

Arduino Cheat Sheet” is a poster that gives an overview of the most important Arduino commands and syntax.

It is based on ArduinoCheatSheet by The Mechatronics Guy and created with Brian Amberg’s baposter LaTeX poster style. All the information is based on the Arduino Language Reference website.

Download .pdf version

More info on the Arduino forum.

Complete poster (lowres):

(old screenshot, some typo’s have been fixed after posting this article)

Complete poster (lowres)

Complete poster (lowres)

Top right corner (zoomed):

Top right corner (zoomed):

Top right corner (zoomed):

Advertisements

Conference presentation: Arduino-based Wireless Sensor Network

4 October 2012 2 comments

Last week, I presented an article on the development of an Arduino-based wireless sensor network implementation at the AMBIENT 2012 conference in Barcelona. The conference was organised by IARIA, a non-for-profit, non-government organization that aims to promote scientific and industrial interchanges between scientific, academic and industrial researchers.

The presentation and the article are available for download.

Abstract—The paper presents an Arduino-based wireless sensor network to monitor parking lots using a non-standard low-power energy-balanced system. The event-driven routing protocol follows the hierarchical clustering philosophy. Energy is saved by minimising the number of transmissions needed to forward information to the base station. The smart sensor platform is build using the popular Arduino development platform, Sharp IR distance sensors and nRF24 low-power radio modules. Our practical results show that this platform is easy to use, but not the most appropriate platform to develop low-power wireless sensor network applications.

Keywords: Wireless Sensor Network (WSN); Smart Parking Application; Clustering; Arduino; nRF24.

The source code will be available on Google Code in the near future.

Conference presentation on the development of Arduino based smart objects

I presented an article at the ECUMICT conference in Ghent.
ECUMICT is a two-days conference on the use of modern information and communication technologies, organised by the engineering department of KaHo St Lieven, Ghent.

The presentation and the article are available for download.

Abstract
The fields of embedded systems and networking are being merged, giving rise to the “Internet Of Things”, built with smart objects that allow people to interact with everyday objects and vice-versa. We developed a cube, equipped with an Arduino based development board, various sensors and an XBee wireless interface, which enables us to develop new methods of human computer interaction. The cube was tested as an input controller for several computer games. The software was released under an open source license. This system will be used to develop new sensor driven applications.

Kate/KDevelop syntax highlighting style for Arduino code

16 January 2012 Leave a comment

Kate, my favorite text/code editor has no native support for Arduino code syntax highlighting.

Because Arduino code is very similar to c++ code I made some adjustments to an existing C++0x Kate highlighting style by adding some Arduino specific settings and keywords.

The colors are loosely based on the original Arduino IDE syntax highlighting style.

Code available at: Google Code

The result can be seen in the screenshot:

Kate screenshot

Arduino Library for the SRF04 Ultrasonic Ranger

26 December 2011 2 comments

I started a Google code project to share an Arduino library for the SRF04 Ultrasonic Ranger (distance sensor).

Overview:

This project is a free initiative to create an Arduino library for the SRF04 Ultrasonic Ranger. The main goal is to provide a library that simplifies the usage of this particular sensor in Arduino projects.

Range: approx. 3 to 300 cm

How the sensor works:

  1. You apply a short 10uS pulse to the trigger input to start the ranging.
  2. The SRF04  sends out an 8 cycle burst of ultrasound at 40khz and raises its echo line high.
  3. It then listens for an echo, and as soon as it detects one it lowers the echo line again.
  4. The echo line is  a pulse whose width is proportional to the distance to the object.
  5. By timing the pulse it is possible to calculate the range.

Library usage:

  1. Download the source
  2. Place the DistanceSRF04 folder in your Arduino1.0+ “libraries” folder
  3. Open example sketch: “file”, “Examples”, “DistanceSRF04”, “Centimeter” (or “Inch” or “Time”)
  4. Connect echoPin to pin 2, trigPin to pin 3 (and connect Vcc and GND)
  5. Compile & upload code
  6. Sensor data should be arriving over the serial port

More info & download: http://code.google.com/p/srf04-library/

Arduino Library for the Sharp GP2Y0A21YK IR Distance sensor

20 December 2011 19 comments

I started a Google code project to share an Arduino library for the Sharp GP2Y0A21YK IR Distance sensor

Overview:
This project is a free initiative to create an Arduino library for the Sharp GP2Y0A21YK IR distance sensor. The main goal is to provide a library that simplifies the usage of this particular sensor in Arduino projects.

How the sensor works:

  1. A pulse of IR light is emitted by the emitter.
  2. This light travels out in the field of view and hits an object.
  3. The reflected light returns to the detector and creates a triangle between the point of reflection, the emitter, and the detector.
  4. The angles in this triangle vary based on the distance to the object.
  5. The receiver uses a precision lens to transmits the reflected light onto various portions of the enclosed linear CCD array based on the angle of the triangle described above.
  6. The CCD array can then determine what angle the reflected light came back at and therefore, it can calculate the distance to the object.

Library usage:

  1. Download the source
  2. Place the DistanceGP2Y0A21YK folder in your Arduino1.0+ “libraries” folder
  3. Open example sketch: “file”, “Examples”, “DistanceGP2Y0A21YK”, “Centimeter” (or “Voltage” or “Raw”)
  4. Connect the analog sensor to port A0 (and connect Vcc and GND)
  5. Compile & upload code
  6. Sensor data should be arriving over the serial port

More info & download: http://code.google.com/p/gp2y0a21yk-library/