Your shopping cart is empty!
Object Sense With Servo Using Maker Pi RP2040
- Idris Zainal Abidin
- 08 Jun 2021
- 1397
Introduction
This tutorial shares how to move the sensor using a servo motor to detect objects. When the object distance is less than 200mm, a buzzer will sound.
Video
Hardware Preparation
- Maker Pi RP2040
- M5Stack ToF VL53L0X Sensor Unit
- RC Servo Motor (Metal Gear)
- USB Micro B Cable
- (Optional) LiPo Rechargeable Battery 3.7V 1300mAH
Sample Program
This is CircuitPython example code to control the servo motor and read the distance sensor. Please include these 4 libraries from CircuitPython Libraries bundle.
- adafruit_bus_device
- adafruit_motor
- adafruit_vl53l0x
- simpleio
Thank You
References:
Thanks for reading this tutorial. If you have any technical inquiries, please post at Cytron Technical Forum.
"Please be reminded, this tutorial is prepared for you to try and learn.
You are encouraged to improve the code for a better application."