Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
TinyML Cookbook - Second Edition

You're reading from  TinyML Cookbook - Second Edition

Product type Book
Published in Nov 2023
Publisher Packt
ISBN-13 9781837637362
Pages 664 pages
Edition 2nd Edition
Languages
Author (1):
Gian Marco Iodice Gian Marco Iodice
Profile icon Gian Marco Iodice

Table of Contents (16) Chapters

Preface Getting Ready to Unlock ML on Microcontrollers Unleashing Your Creativity with Microcontrollers Building a Weather Station with TensorFlow Lite for Microcontrollers Using Edge Impulse and the Arduino Nano to Control LEDs with Voice Commands Recognizing Music Genres with TensorFlow and the Raspberry Pi Pico – Part 1 Recognizing Music Genres with TensorFlow and the Raspberry Pi Pico – Part 2 Detecting Objects with Edge Impulse Using FOMO on the Raspberry Pi Pico Classifying Desk Objects with TensorFlow and the Arduino Nano Building a Gesture-Based Interface for YouTube Playback with Edge Impulse and the Raspberry Pi Pico Deploying a CIFAR-10 Model for Memory-Constrained Devices with the Zephyr OS on QEMU Running ML Models on Arduino and the Arm Ethos-U55 microNPU Using Apache TVM Enabling Compelling tinyML Solutions with On-Device Learning and scikit-learn on the Arduino Nano and Raspberry Pi Pico Conclusion
Other Books You May Enjoy
Index

Communicating with the MPU-6050 IMU through I2C

Acquiring sensor data can be a challenging task in tinyML due to the need for direct interaction with hardware at a low level.

In this recipe, we will use the MPU-6050 Inertial Measurement Unit (IMU) to demonstrate the basic principles of a common communication protocol used with sensors known as the Inter-Integrated Circuit (I2C). By the end of this recipe, we will have developed an Arduino sketch that can read out the MPU-6050 address.

Getting ready

The IMU sensor is an electronic device capable of measuring accelerations, angular rates, and, in some cases, body orientations through a combination of integrated sensors. This device is at the heart of many technologies in various industries, including automotive, aerospace, and consumer electronics, to estimate position and orientation. For example, IMU allows the screen of a smartphone to auto-rotate and enables augmented reality/virtual reality ...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}