Learning

Basic Python GPIO GUI example

In this example we will create a gui to switch on and off the LED that we used in the PWM example – Controlling the Brightness of an LED Here is a reminder of the schematics Code Save the following as gpiogui.py [codesyntax lang=”python”] from Tkinter…

Read more

Controlling the Brightness of an LED

In this example we will show you how to control the brightness of an LED connected . The RPi.GPIO library has a PWM feature that allows you to control the power to an LED and its brightness, we will use this in this example   Schematic…

Read more

Raspberry Pi and a PCF8574

The PCF8574 is an 8 bits I/O port expander that uses the I2C protocol. Using this IC, you can use only the SDA and SCL pins of your Arduino board to control up to 8 digital I/O ports. A0,A1,A2 are address pins P0,P1,P2,P3,P4,P5,P6,P7 are digital…

Read more

Pi and BMP180 sensor

The BMP180 is the new digital barometric pressure sensor of Bosch Sensortec, with a very high performance, which enables applications in advanced mobile devices, such as smart phones, tablet PCs and sports devices. It follows the BMP085 and brings many improvements, like the smaller size…

Read more

Pi and PIR example

In this example we connect a PIR module up to our Raspberry PI, this is quite a simple module to connect as it requires only 5v, Gnd and the output is PI friendly so does not require any level shifting. A passive infrared sensor (PIR…

Read more

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Read More