Category: Arduino
Raspberry Pi Verkauf
Für den Raspberry Pi wurde gutes Marketing betrieben. Eigentlich sollte man das Ding bestellen können, aber die Farnell-Webseite ist nicht wirklich zu gebrauchen.
Es wird interessant sein zu sehen, wie es sich entwickelt. Wenn sie nicht ziemlich sch… more »
Analog input example for pyFirmata
Using pyFirmata to read from analog inputs is an easy task. pyFirmate provides a helper function (aka iterator) to simplify the reading. Below is a simple script.
import pyfirmata
# Definition of the analog pin
PINS = (0, 1, 2, 3)
# Creates… more »
Dimming a LED with pyFirmata
There are a lot of tutorials available for dimming a LED with sketches. My approach uses pyFirmata to do it.
import pyfirmata
# Time (approx. seconds) to get to the maximum/minimum
DURATION = 5
# Numbers of steps to get to the maximum/minimum… more »
pyFirmata GUI
Using Glade and GTK to make a simple GUI is not that hard. If you want to get rid of dealing with the serial connection, using pyFirmata is a good choice.
As shown in a previous blog post working with pyFirmata is similar to writing sketches in the A… more »
Firmata firmware and the Arduino
If your Arduino is running with the latest Firmata firmware (aka sketch), you will notice that not all bindings are still working. This is because the
I started with python-firmata more »
Firmata und Arduino
Wieso alles selbermachen, wenn andere Menschen das Problem schon gelöst haben? Firmata ist ein Kommuikations-Protokoll und soll die Interaktion von Software auf Host-Systemen mit Microcontroller vereinfachen.
Sketch auf Arduino laden: File -> Exa… more »
Arduino controlled by a GTK interface
For my little Arduino and relay project I started with the usage of the Serial monitor to switch the relay and the LED.
What's about a nice GUI for doing this? Using Python to grab data from Arduino is easy. The only missing part is the GUI.
As t… more »
Serial.read() and Arduino
Switching the Arduino with 0 and 1 is nice but Below 5 the state is 0, values greater than 5 set the state to 1.
if (Serial.available() > 0) {
inVal = Serial.read() - '0';
if (inVal >= 5) {
inState = 1;
} else {
inState = 0;… more »
Control the relay over the Serial monitor
Just a little intermezzo...in the previous blog post I wrote about the usage of a single channel relay for switching a fan. Now it's about the controlling the Arduino. Fixed intervals will not really work because I want to switch when I want or when a e… more »
Arduino and Relay
My R2duino has two relays for switching external devices on or off. 60 V AC/DC and 400 mA is nice, but the normal devices 230 V and little bit more A is the standard at least in Switzerland.
I made my first steps with a standard case fan with 12 V. T… more »

