Processing and Arduino

Processing is an open-source IDE with a Java-based programming language that is aimed at lowering the learning threshold for interactive graphics creation. It can be used for teaching programming, making prototypes, creating art experiments or just generating crazy visual stuff in general. The community is very active and there are tons of useful contributed libraries. Wiring and the Arduino IDE are spin-offs from Processing and there are many cool things happening in the JavaScript version of Processing, p5.js (more about this in an upcoming post).

In this post I will connect a Processing sketch with an Arduino for the purpose of visualizing the input and output pins of the hardware board with graphics in Processing.

Continue reading →

Advertisements

A Lego robot car with Arduino and servo motors

With an Arduino and some servos lying around, I find it hard not to try out something robot-like. An obstacle-avoiding mini car is probably one of the easiest projects to get started with and as our house is abundant with Lego, the building blocks for the construction are readily available.

Continue reading →

Arduino to Raspberry wireless communication – some improvements

In my previous post, I experimented with sending measurements values from an Arduino UNO to a Raspberry Pi via a 433 MHz radio protocol. After testing the setup for a few days, I decided to make some improvements:

  • Add an additional sensor for measuring outdoor temperatures. Now there will be four different sensor values transmitted from the Arduino to the Raspberry Pi.
  • Add the possibility to send float values for more precision and, for adopting to the Swedish climate, allow negative values.
  • On the receiver side (the Raspberry Pi), add storage of the values to a csv file so that the measurements can be visualized in graphs with Excel or a similar application.
  • Improve the noise tolerance.

Continue reading →

Major Tom to Ground Control – simple radio communication between Arduino and Raspberry

The Arduino computers are excellent for reading sensor data, and they are so inexpensive and consume very little power that you can use plenty of them in your home without breaking your wallet.
The Raspberry on the other hand, is more powerful, a bit pricier, but can easily be programmed to perform more challenging tasks like storing data and hosting a web server.
What if your Arduinos (the Major Toms) could report their sensor measurements to the Raspberry (Ground Control) in a simple way? Then you could access and analyze all measurements via a Web interface on the Raspberry (using a mobile phone e.g.)

This blog post describes my setup for sending sensor data via the 433 MHz band to the Raspberry.

Continue reading →