Friday, August 31, 2018

CircuitPython on Raspberry Pi: UPDATED GUIDES for DRV2605, SI4713, LSM303, FXAS21002C, and FXOS8700

adafruit_products_raspi_drv2605_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 (the last one is two together on one board):

Adafruit DRV2605L Haptic Motor Controller – The DRV2605 from TI is a fancy little motor driver. Rather than controlling a stepper motor or DC motor, its designed specifically for controlling haptic motors – buzzers and vibration motors. Normally one would just turn those kinds of motors on and off, but this driver has the ability to have various effects when driving a vibe motor. For example, ramping the vibration level up and down, ‘click’ effects, different buzzer levels, or even having the vibration follow a musical/audio input.

Adafruit Stereo FM Transmitter with RDS/RBDS Breakout – Si4713 – Yaaar! Become your very own pirate radio station with this FM radio transmitter. This breakout board, based on the best-of-class Si4713, is an all-in-one stereo audio FM transmitter that can also transmit RDS/RBDS data!

Triple-axis Accelerometer+Magnetometer (Compass) Board – LSM303 – Inside are two sensors, one is a classic 3-axis accelerometer, which can tell you which direction is down towards the Earth (by measuring gravity). The other is a magnetometer that can sense where the strongest magnetic force is coming from, generally used to detect magnetic north. By combining this data you can then orient your project!

Adafruit Precision NXP 9-DOF Breakout Board – FXOS8700 + FXAS21002 – The NXP Precision 9DoF breakout combines two of the best motion sensors we’ve tested here at Adafruit: The FXOS8700 3-Axis accelerometer and magnetometer, and the FXAS21002 3-axis gyroscope.

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

No comments:

Post a Comment