Laserlichtschranke als Alarmanlage

Heute bauen wir eine Laserlichtschranke mit akustischem Alarm für etwa 10 Euro.
Wenn die Lichtschranke durch einen physikalischen Gegenstand unterbrochen wird, ertönt eine nette Melodie, die uns das mitteilt.
Nun wissen wir: „Der Postbote ist da“ oder „Der Einbrecher ist da“ oder „Die Katze steht vor der Tür“ oder …

Die Bauteile für dieses Arduino-Projekt kann man sehr kostengünstig im Internet bestellen oder im Elekronikfachhandel bekommen. Es sind im einzelnen:

– Ein Arduino (hier: UNO)
– Eine Laserdiode (ky-008)
– Ein Fotowiderstand
– Ein Piezokeramik-Element
– Eine kleine Glasperle/Kugel (Frau oder Tochter fragen)
– Ein paar Drähte

Wie es funktioniert, ist anschaulich im Video erklärt. Den Arduino-Sketch kann man hier herunterladen.

Die Schaltungen sehen dann für die einzelnen Teile so aus:

Für fehlende Schaltungsteile bitte im Quellcode und im Video nachschauen.

Für die Tonerzeugung kann man auf http://www.arduino.cc/en/Tutorial/Tone nachschauen.

Für den Laser z.B. auf https://www.elabpeers.com/ky-008-laser-x-laser-detector.html

Für den Fotowiderstand sieht es so aus

fotodiode_arduino

Arduino lernt sehen

Heute bringen wir etwas Licht in’s Dunkel eines von Natur aus „blinden“ Arduino. Die amerikanische Firma nootropic design, LLC (http://nootropicdesign.com) hat ein  Arduino shield entwickelt, dass hervorragend für ein zukünftiges Licht/Laserprojekt gedacht ist. Es wird als Bausatz geliefert und ist hier für gut 26 Euro erhältlich.

Mit dem kleinen Ergänzungsboard zum Aufstecken für den Arduino lassen sich neben den Dingen, die im Video zu sehen sind noch eine ganze Reihe anderer Dinge bewerkstelligen. Für Details einfach mal hier auf die nootropic Projektseite hereinschauen -> http://nootropicdesign.com/ve/projects.html

Mein Einsatz wird sich erst einmal auf das Computer Vision Project beschränken, das es ermöglicht, helle oder dunkle Objekte in einem Video zu erkennen, diese mit einem Rechteck zu umgeben und den Mittelpunkt dieses Rechtecks anzuzeigen. Das beste daran ist: Es funktioniert nicht nur mit einer Taschenlampe, sondern sogar mit einem Laserstrahl.

Electronic Wind Instrument (EWI) for about 5 Euro

Hi,
today we learn how to build a simple EWI (Electronical Wind Instrument) from the parts shown in the video. The main part and a basic arduino sketch can be found here ->

http://www.hobbytronics.co.uk/yf-s201-water-flow-meter

for german user, buy it for about 5 Euro in your prefered online shop. Search  for  „Wasserdurchfluss Sensor Durchflussmesser“ or something similar.

So you can take off in a minute. On that website is described how to connect the three wires to your arduino:

Connection details:

Red wire : +5V
Black wire : GND
Yellow wire : PWM output.
It is simply a YF-S201 Hall Effect Water Flow Meter / Sensor. Originally used for measuring the amount of water that flows through it you can simply attach a small flexible sprinkler hose to it and use it as a wind controller, a so called EWI.

Just upload the sketch from your Arduino IDE, change the baudrate
from    Serial.begin(9600);
to      Serial.begin(38400);
and you are done!
Open the serial monitor. Set the baudrate from 9600 to 38400 and blow or suck the air into or from the tube and see how the values change.
Use these values in your midi software for the arduino to change pitchbend, octaves or anything else that a midi control message is able to change!
Have fun.

p.s.: yes, I know that „soap spender“ is a soap dispenser, a „Durchfluss Sensor“ is a water flow meter and a „Gummidichtung“  is a rubber gasket 😉

Odroid-C1 + Touchboard + Waveboard = mobile synth for everyone

Hi,

this is a setup that consists of an Odroid-C1 with self compiled realtime preemptive kernel connected to a Bare Conductive Touchboard that drives my Waveboard. You could use it headless (without screen) but in fact you don’t even need it. The quad core sbc Odroid-C1 is fast enough to play midi in realtime without any  xruns (buffer underruns). But for demonstrating how things are setup and work you can even fire up your desktop environment and midi sound works in realtime without any glitches. And the best thing is:

Everything is batterie driven so you can use this high configurable mobile DAW as a midi synth and connect all your midi devices like keyboards, or whatever midi things you own and connect them to your odroid. Take it with you in your pocket. It’s small!

For the Touchboard you can see some real exiting midi instruments from designer and musician Vahakn Matossian from Human Instruments which could be used everywhere inside or outside with the odroid-c1.

Here some first impressions on the possibilities of the Touchboard in conjunction with the Odroid-C1 and my Waveboard. If you want to know how to build something similar as the „flexible tube thing“ shown in the video from  Human Instruments above for cheap, then look here->https://blog.georgmill.de/2015/05/30/electronic-wind-instrument-ewi-for-about-5-euro/

Odroid-C1 goes IoT (Internet of Things)

Hi,
today I made a first attempt towards the IoT (Internet of Things). Wouldn’t it be nice if your wife says:“Darling, please turn on the lights. It’s too dark in here.“
Than you take your tablet or smartphone, open a shell, type some lines and … wow!!! the light begins to shine 🙂

Of course you could write a script (PHP, python or whatever) that is running on your webserver that does this job with a graphical interface. So you would only have to press a button to turn on/off your light, coffee machine, TV or anything else. When you manage the webserver to be available from the internet, you just became a member of the IOT. Congrats.

These are the simple 4 steps to make all your electrical 220 Volt powered hardware available from the internet.

Power on the Odroid-C1, open a shell and connect to it. Type:

sudo sh -c „echo 87 > /sys/class/gpio/export“ //export gpio pin #87
sudo sh -c „echo out > /sys/class/gpio/gpio87/direction“ //set gpio pin #87 as output pin
sudo sh -c „echo 0 > /sys/class/gpio/gpio87/value“ //light off
sudo sh -c „echo 1 > /sys/class/gpio/gpio87/value“ //light on

and your done! Yes, it is as easy as that.

Ardour and zynaddsubfx with kernel 3.10.75-rt80 on odroid-c1

Hi,

yesterday I have been asked by Rob Roy, Editor-in-Chief of ODROID Magazine, if I tried the rt-kernel with any recording software. After a basic test with arecord and aplay I tried it today with Ardour and ZynaddSubfx. And what should I say … it works.

You can download the original wav file exported by ardour on the odroid-c1 and listen to it.