Code

Raspberry Pi and LM75 temperature sensor example

The LM75 temperature sensor includes a delta-sigma analog-to-digital converter, and a digital overtemperature detector. The host can query the LM75 through its I²C interface to read temperature at any time. The open-drain overtemperature output (OS) sinks current when the programmable temperature limit is exceeded. The…

Read more

Raspberry Pi and BMP280 sensor example

BMP280 is an absolute barometric pressure sensor especially designed for mobile applications. The sensor module is housed in an extremely compact package. Its small dimensions and its low power consumption allow for the implementation in battery powered devices such as mobile phones, GPS modules or…

Read more

Raspberry PI and MMA8451 accelerometer example

The MMA8451 is a low-power accelerometer with 14 bits of resolution, with the following features: Embedded functions with flexible user-programmable options, configurable to two interrupt pins Embedded interrupt functions for overall power savings relieving the host processor from continuously polling data Access to both low-pass filtered…

Read more

Raspberry Pi and TCS34725 Color Sensor

The TCS3472 device provides a digital return of red, green, blue (RGB), and clear light sensing values. An IR blocking filter, integrated on-chip and localized to the color sensing photodiodes, minimizes the IR spectral component of the incoming light and allows color measurements to be…

Read more

Using the TLC1543 with a Raspberry Pi

The TLV1543C, TLV1543I, and TLV1543M are CMOS 10-bit, switched-capacitor, successive-approximation, analog-to-digital converters. These devices have three inputs and a 3-state output [chip select (CS\), input-output clock (I/O CLOCK), address input (ADDRESS), and data output (DATA OUT)] that provide a direct 4-wire interface to the serial…

Read more

Raspberry Pi and TSL2561 luminosity sensor

This TSL2561 is an I2C light-to-digital converter TSL2561 that transforms light intensity to a digital signal. The TSL2561 features a selectable light spectrum range due to its dual light sensitive diodes: infrared and full spectrum. You can switch among three detection modes to take your…

Read more

Display simple flag images on a Sense hat

You can create simple images by setting individual pixels on the 8×8 led matrix to different colors. In these examples we create some basic flags Swedish flag [codesyntax lang=”python”] from sense_hat import SenseHat sense = SenseHat() r = (255, 0, 0) o = (255, 127,…

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