Expansion Modules

Interface I2C sensors and controllers

List Home


I2C Sensors

The hardware can read and write to devices that use the I2C protocol for communication. These include a wide variety of sensors for measuring physical parameters such as luminosity, acceleration, magnetic fields, pressure, and much more. Try out the following demos that range from simple to advanced

Connections to I2C devices are quite simple, and require 4 wires. You can also use the socket on the right side which is a 4 pole connector for 4 wire AUX cables, and saves the trouble of 4 separate wires.

Accelerometer Controlled Robot

This program reads the angle of rotation of the phone around 3 axes using the phone’s built in accelerometer and magnetometer, and maps the values to 3 servo motors that are a part of a robotic arm.

Since rotation values are unitless and range from -1 to 1 , and angle values are from 0-180 for the servo motors, the program adds 1 and multiplies by 90 to adjust the rotation values for the servos.

Run! No Hardware! HELP


Radar with VL53L0X and a Servo Motor

Explore polar plots with this demo.

Run! No Hardware! HELP


Measure heart beats

Run! No Hardware! HELP


Examples

interactive Schematic
Distance Sensor VL53L0X
interactive Schematic
Measure Heart Rate (MAX30100)
interactive Schematic
Phone Controlled Robot
interactive Schematic
Radar with VL53L0X and a Servo Motor
interactive Schematic
Robot Maintains Safe Distance
interactive Schematic
Robot Obeys Hand
interactive Schematic
SR04 Plot Distance