Browsing Category

Raspberry PI

Flash the ACT LED on a RAspberry PI from the terminal

Flash the ACT led from the command line, this tip was sent to me so I gave it a try, you could this in a script. The LED in question is seen below, this may depend on the version of Raspberry PI you have as well. First lets navigate to the LED folder cd /sys/class/leds/led0 Look what’s in the folder ls You should see something like this: brightness device max_brightness power subsystem trigger uevent The brightness file controls if the LED is on or off (1 or 0). Lets see what its currently set as. cat brightness The command…

Raspberry PI and capacitive sensor example

In this example we will connect a capacitive sensor to a GPIO pin on our Raspberry PI, when we touch the sensor we will display a message to the user. A practical use may be a touch activated lamp. This is the sensor we used which is low cost and available from multiple places Here is a schematic representation, fairly straightforward Lets look at the code, this is written in python and requires the RPi library to be installed, I recently downloaded NOOBs, installed RAspbian and python and this library were available…