• The ADXL345 is a small, thin, low power, 3-axis accelerometer with high resolution (13-bit) measurement at up to ±16g. Digital output data is formatted as 16-bit twos complement and is accessible through either a SPI (3- or 4-wire) or I2C digital interface. The ADXL345 is…

  • 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…

  • Recently I bought a DVK512 Raspberry Pi Expansion Board from Waveshare for my raspberry Pi. If you have never heard of the DVK512 the its a reasonably priced add-on (hat). The following features and image are from the Waveshare site UART interface: easily connects to UART modules…

  • Handy if you lose the information Distribution | Username | Password —————|————|————- Debian Squeeze | pi | raspberry Arch | root | root QtonPi | root | rootme Raspbian | pi | raspberry OpenElec | root | openelec Pidora | root | raspberrypi RISC OS…

  • 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…

  • In a previous example at connecting a mcp23017 to your raspberry pi we used a python script to flash LEDs connected to mcp23017 but there are other options available. In this example we look at a command line tool called i2cset i2cset is a small helper…

  • 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…

  • Code

    RGB Example

    by shedboy71

    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…

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