2015-05-01

Raspberry Pi - PIR Sensor

For my next project I want to detect movements and switch on/off something (or finally the monitor). Here is the experimental setup

  • Raspberry Pi Rev2.0
  • PIR sensor (connected to GPIO 4 + 17) - I use two pins because then I can assign a rising and falling edge event handler (see the code)
  • 2x LED (connected to GPIO 24 + 25)
  • 2x 100Ohm Resistor
  • (also on the board but not yet in use: temperature sensor)



and the corresponding source code:
To start the script at boot time I use the following initd script:

2015-03-15

Ring Clock

At end of 2014 I had enough time to finish my Ring Clock project (or at least push some steps forward).







I used a picture frame as casing. The passepartout serves as rack for the led ring. I have put a circle of red carton in the middle of the led ring. The carton masks the display board and contains a hole for the light sensor. Two thin carton frames act as spacer to put some distance between the glas plate and the led ring. A sheet of sandwich paper is used as diffusor.




The electronic part is assembled of a Arduino Pro Mini (Watterott), a DCF77 receiver (Pollin), a DS1307 RTC module (ebay), a DS18B20 temperature sensor (ebay), a light sensor (GL5528), a 8 digit display - using 8 old VQB18C modules and a driver (ebay) - and a 60 RGB led ring (Watterott).





The source code and further information can be found here.

2014-03-30

Arduino 1.5 does not start on Java 7

After updating to OSX 10.9.2 Mavericks and also update to Java 7 64 bit the Arduino app does not start any longer.
$ java -version
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

When I try to start it the icon flash up in the dock but nothing else happens. Further on no useful messages appears in log - just:
30.03.14 12:36:48,231 com.apple.launchd.peruser.501[279]: (cc.arduino.Arduino.86448[1902]) Exited with code: 1

To solve the problem I have to reinstall Java 1.6. An forum post in the Microchip forum give some further information about the installation.

2013-10-26

LED RGB Strip with Web Interface - Update

After some iterations (I hope) I reach a "done" state. The current version contains the following features:
  • Web page content depends on current mode - different pages when strip is on or off 
  • Web page to configure some runtime values (see right screen shot above)
  • Fav-Icon(s)
I mounted the LED strip on backsite of a strip of wood and mounted it on the wall with magnets. On the front side I mounted the PIR module.
 

Here you can see the mounted wooden strip in our hallway.

For the electronic part of the project please look at the project site.

2013-07-26

LED RGB Strip with Web Interface

Project site

Current issue: As you can see in the video there is a small delay between clicking the button and changing the light. This only appears when using a mobile device, on my mac the delay disappears. Any hint is welcome.

2013-07-25

Wattuino - erste Schritte

Bei Watterott gibt es einen kleinen Arduino Clone: Wattuino. (Im Bild schon bestückt mit Stiftleisten.)


Für die Entwicklung/Programmierung mit der Arduino Umgebung wird noch ein Programmieradapter benötigt, z.B. FTDI-Breakout. Beim FTDI-Breakout handelt es sich um einen USB-Seriell Wandler, damit kann der Wattuino (fast) wie ein normaler Arduino in der IDE verwendet werden. Update: Ggf. muss noch ein FTDI Treiber installiert werden.


Die Verwendung in der Arduino Entwicklungsumgebung gestaltet sich mit der genannten Kombination denkbar einfach.
  • Board: Arduino Pro or Pro Mini
  • Serial Port: /dev/tty.usbserialA1017RLQ (Nummer kann ggf. variieren)


Und das war es auch schon. Die ersten Tests mit den Arduino Beispielen "Blink" und "ReadASCIIString" liefen bei mir dann auf Anhieb.




2013-07-05

LED Matrix - Part 2

Es hat mehr als 4 Jahre gedauert, bis die LED Matrix wieder zum Leben erweckt wurde (vgl. LED Matrix - Erste Versuche). Angestachelt durch weitere Versuche mit Kollegen, konnte ich die Matrix jetzt von Processing aus ansteuern.

Zum Aufbau

Der Code

Arduino/Avr-Net-Io Code

Processing Code

Ergebnis