In this example we connected an LDR to our Raspberry Pi, we will connect the output to a GPIO pin and detect whether its light or dark Here is a typical module You connect the module to you Raspberry Pi as follows. Pi GPIO header…
Programming
-
-
In a previous example we connected a Max7219 8×8 LED matrix display to our Raspberry Pi, you can also purchase a 7 segment display which uses the same ic. Here is a typical module To make life easy there is a python module already available…
-
The pibrella is a nice little board that connects yo the GPIO connector of your Raspberry PI. It has the folllowing to play around with Red, Green and yellow LEDs A push button switch A buzzer 4 inputs and 4 outputs (protected) I2C connector (not…
-
In a previous example we created a simple console program, in this example we will create a basic GUI program. To do this we need to install GTK. Lets begin by installing GTK for mono [codesyntax lang=”bash”] sudo apt-get install gtk-sharp2 [/codesyntax] Create a folder…
-
Before I start I will say that this isn’t going to be some petty post that spends lots of time justifying and then putting down other programming languages. I’ve used C# and many other languages and I personally have no real favourites. In this 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…