Radar-like distance scanner on ESP32-S3/CircuitPython 9, using SG90 servo motor, VL53L0X distance sensor and SSD1306 OLED.
With previous exercises of SSD1306 I2C OLED , VL53L0X distance sensor and SG90 servo motor run on ESP32-S3-Zero with CircuitPython 9.0.0-beta.0 installed . The following exercise implement a Radar-like distance scanner. cpy_C3-Zero_ssd1306_fb_servo_scanner.py """ CircuitPython 9.0.0-beta.0 exercise run on Waveshare ESP32-S3-Zero: - drive servo moto SG90 using adafruit_motor - detect distance using using adafruit_vl53l0x - display on SSD1306 I2C OLED using adafruit_ssd1306 lib needed: - adafruit_framebuf.mpy - adafruit_simplemath.mpy - adafruit_ssd1306.mpy - adafruit_vl53l0x.mpy - adafruit_motor folder """ import os import sys import board import busio import time import math import adafruit_ssd1306 import pwmio from adafruit_motor import servo import adafruit_vl53l0x from adafruit_simplemath import map_range # create a PWMOut object on Pin A2. pwm = pwmio.PWMOut(board.IO7, duty_cycle=2 ** 15, frequency=50) # Create a serv...