button

RaspberryPi shutdown button

RaspberryPi shutdown button

Last Friday I got some spare time (finally!) and, with the help and tools of my friend Alfredo, we placed a button in the RaspberryPi case so, when I push it, a custom command its executed on the RaspberryPi, like for example, a clean system shutdown. We mainly followed this post, but used a different …

RaspberryPi shutdown button Continue Reading

Hardware button and LED to control association in wireless networks

Hardware button and LED to control association in wireless networks

Almost all wireless technologies use some kind of association process to enable devices to join the network. Such a process is typically initiated by pressing a button on the network controller and by subsequently pressing another button on the device to associate. Software gateways, like Dog, cannot naturally support this press-and-join interaction and the association …

Hardware button and LED to control association in wireless networks Continue Reading

3 More LEDs and a Button

3: More LEDs and a Button

So we now have a traffic light/pelican (Tux!) crossing simulator. The 2nd Red LED is connected to wiringPi pin 3, (GPIO-22), and the 2nd Green LED is connected to wiringPi pin 4, (GPIO-23). Test them as before with the gpio command, e.g. for i in 0 1 2 3 4 ; do gpio mode $i …

3: More LEDs and a Button Continue Reading

Push Button Sample

Push Button Sample

In this sample, we connect a push button to your Raspberry Pi 2/MinnowBoard Max and use it to control an LED. We use GPIO interrupts to detect when the button is pressed and toggle the LED in response. This is a headed sample, so please ensure that your device is in headed mode by running …

Push Button Sample Continue Reading

Scroll to Top