DVK512 button and LED example
This is a simple example using the Waveshare DVK512. You press a key and this is displayed on the command line, one of the 4 LEDs is also lit for each of the 4 buttons on the board You can see the LEDS (9) and Buttons…
This is a simple example using the Waveshare DVK512. You press a key and this is displayed on the command line, one of the 4 LEDs is also lit for each of the 4 buttons on the board You can see the LEDS (9) and Buttons…
In this example we will connect one of the popular 8×8 LED matrix modules that can be found at low cost on various web sites. These commonly use a MAX7219 Here is how to connect this to your Raspberry Pi Board Pin Name RPi Pin…
If you need to add more I/O lines to your Raspberry PI you can connect an mcp23017. The MCP23017 uses two i2c pins and this gives you 16 general purpose pins. You can set each of 16 pins to be input, output, or input with a…
One of the frustrating things about the Raspberry PI is the lack of any analogue inputs, this means there are a number of sensors that are commonly used that cannot be used quite so easily on a Raspberry PI. Examples of these are light dependent…
MCP9808 digital temperature sensor example The MCP9808 digital temperature sensor converts temperatures between -20°C and +100°C to a digital word with ±0.5°C (max.) accuracy. The MCP9808 comes with user-programmable registers that provide flexibility for temperature sensing applications. The registers allow user-selectable settings such as Shutdown…
In this example we will display the red, green and blue colours on an RGB LED I used a breakout which came as part of a kit, it was a common anode type Here is a schematic that shows how to connect this to your…
In this example we will flash an RGB LED using C Schematics Here is a schematic and layout Code This example requires wiringPi to be installed – http://wiringpi.com/download-and-install/ [codesyntax lang=”c”] #include <wiringPi.h> #include <stdio.h> #define REDLED 0 #define GREENLED 1 #define BLUELED 2 void init(void) {…
This is a follow on from the Raspberry PI and python example – http://www.pibits.net/code/raspberry-pi-and-74hc595-python-example.php This example uses wiringPi Schematic Code This example is C++, it will flash an LED one at a time connected to the 74HC595 Call this shift.c [codesyntax lang=”cpp”] #include <wiringPi.h> #include <stdio.h>…
In this example we expand the amount of outputs using a 74HC595 The 74HC595; 74HCT595 are 8-stage serial shift registers with a storage register and 3-state outputs. The registers have separate clocks. Data is shifted on the positive-going transitions of the shift register clock input…
The DHT11 digital temperature and humidity sensor is a composite Sensor contains a calibrated digital signal output of the temperature and humidity. DHT11 uses a simplified single bus communication. Single bus that only one data line, the system of data exchange, control by a single…
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