The I2C protocol is a way for multiple devices to talk to each other using just two wires, a clock and data line. Typically you use I2C to talk to devices like sensors, small displays, PWM or motor drivers, and other devices. Each device shares the same clock and data line and the I2C protocol allows them to talk to each other without interferance. With MicroPython you can talk to I2C devices with a few lines of Python code!
This guide will explore how to read data from a MCP9808 I2C temperature sensor using MicroPython. You’ll learn about basic I2C operations and how to perform them with MicroPython. Using this knowledge you can talk to any I2C device and build interesting MicroPython-powered projects!
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!
Learn resistor values with Mho’s Resistance or get the best electronics calculator for engineers “Circuit Playground” – Adafruit’s Apps!
Maker Business — Lessons Learned Scaling Airbnb 100X
Wearables — Start with a sketch
Electronics — When do I use X10?
Biohacking — What I Learned from Weighing Myself 15 Times in a Day
No comments yet.
Sorry, the comment form is closed at this time.