0

CircuitPython on Raspberry Pi: UPDATED GUIDES for BNO055, CCS811, LIS3DH, TCS34725, and VEML6070 #CircuitPython

sensors_raspi_bno055_i2c_bb.jpg

That’s right! It’s CircuitPython on Raspberry Pi! Wire up your favorite sensors and use the same great CircuitPython code you’ve been using with microcontrollers right on your Raspberry Pi!

We’ve got tons of projects, libraries and example code for CircuitPython on microcontrollers, and thanks to the flexibility and power of Python it’s easy to get it working with micro-computers like Raspberry Pi or other ‘Linux with GPIO pins available’ single board computers.

We’ve written a special library called Adafruit Blinka to provide the layer that translates the CircuitPython hardware API to whatever library the Linux board provides.

blinka-raspberry pi

We’ve added all the libraries to PyPi so installation is super simple via pip. We’ve also updated the CircuitPython guides! They now have sections for wiring up the sensor to and installing the libraries on your Raspberry Pi. The CircuitPython code works exactly the same way it works on microcontrollers, so the code examples will work on your Raspberry Pi too!

We have over 80 guides to update, so watch for updates to the Adafruit Learning System in batches. Here’s the next five:

Adafruit 9-DOF Absolute Orientation IMU Fusion Breakout – BNO055 – Rather than spending weeks or months fiddling with algorithms of varying accuracy and complexity, you can have meaningful sensor data in minutes thanks to the BNO055 – a smart 9-DOF sensor that does the sensor fusion all on its own!  You can read the data right over I2C and Bob’s yer uncle.

Adafruit 9-DOF Absolute Orientation IMU Fusion Breakout - BNO055

Adafruit CCS811 Air Quality Sensor – This sensor from AMS is a gas sensor that can detect a wide range of Volatile Organic Compounds (VOCs) and is intended for indoor air quality monitoring. When connected to your microcontroller (running our library code) it will return a Total Volatile Organic Compound (TVOC) reading and an equivalent carbon dioxide reading (eCO2) over I2C. There is also an onboard thermistor that can be used to calculate the local ambient temperature.

Adafruit CCS811 Air Quality Sensor Breakout - VOC and eCO2

Adafruit LIS3DH Triple-Axis Accelerometer (+-2g/4g/8g/16g) – The LIS3DH is a very popular low power triple-axis accelerometer. It’s low-cost, but has just about every ‘extra’ you’d want in an accelerometer: three axis sensing, 10-bit precision, selectable scaling, both I2C (2 possible addresses) and SPI interface options.

Adafruit LIS3DH Triple-Axis Accelerometer (+-2g/4g/8g/16g)

RGB Color Sensor with IR filter and White LED – TCS34725 – Your electronics can now see in dazzling color with this lovely color light sensor. We found the best color sensor on the market, the TCS34725, which has RGB and Clear light sensing elements. 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 made accurately. The filter means you’ll get much truer color than most sensors, since humans don’t see IR. The sensor also has an incredible 3,800,000:1 dynamic range with adjustable integration time and gain so it is suited for use behind darkened glass.

RGB Color Sensor with IR filter and White LED - TCS34725

Adafruit VEML6070 UV Index Sensor Breakout – This little sensor is a great way to add UV light sensing to any microcontroller project. The VEML6070 from Vishay has a true UV A light sensor and an I2C-controlled ADC that will take readings and integrate them for you over ~60ms to 500ms.

Adafruit VEML6070 UV Index Sensor Breakout

Check out these updated guides today in the Adafruit Learning System.


Make a robot friend with Adafruit’s CRICKIT – A Creative Robotics & Interactive Construction Kit. It’s an add-on to our popular Circuit Playground Express, FEATHER and other platforms to make and program robots with CircuitPython, MakeCode, and Arduino. Start controlling motors, servos, solenoids. You also get signal pins, capacitive touch sensors, a NeoPixel driver and amplified speaker output. It complements & extends your boards so you can still use all the goodies on the microcontroller, now you have a robotics playground as well.

Join 7,500+ makers on Adafruit’s Discord channels and be part of the community! http://adafru.it/discord

CircuitPython in 2018 – Python on Microcontrollers is here!

Have an amazing project to share? Join the SHOW-AND-TELL every Wednesday night at 7:30pm ET on Google+ Hangouts.

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Follow Adafruit on Instagram for top secret new products, behinds the scenes and more https://www.instagram.com/adafruit/


Maker Business — Fewer startups, and other collateral damage from the 2018 tariffs

Wearables — Light as a Worbla feather

Electronics — How to make your own magnetic field probe!

Biohacking — The State of DNA Analysis in Three Mindmaps

Python for Microcontrollers — One year of CircuitPython weeklies!

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !



No Comments

No comments yet.

Sorry, the comment form is closed at this time.