105800 Views
82496 Views
47243 Views
47066 Views
45458 Views
38527 Views
Pi-Apps
Intermediate MicroPython
Arduino Alvik
Raspberry Pi Time machine
Now Ad-Free
Guiding Light
Intermediate level MicroPython
Introduction to FreeCAD for Beginners
Building a Robot Arm with Raspberry Pi and PCA9685
Building User Authentication for Static Sites with FastAPI
Mastering Pydantic for Robust Data Validation
Mastering Markdown for Documentation with Jekyll
KevsRobots Learning Platform
42% Percent Complete
By Kevin McAleer, 2 Minutes
BurgerBot has a nice Python Library that controls the robotic vehicle, which includes motors and sensors, such as a distance sensor, line sensor and a servo for the pen.
This library uses the Pimoroni flavoured MicroPython.
The following libraries are required for the BurgerBot to function properly (and they are all inlcuded in the Pimoroni MicroPython):
motor
pico_motor_shim
REVERSED_DIR
pimoroni
Servo
servo
connect_to_wifi
logging
access_point
dns
server
redirect
phew
gc
Pin
machine
The BurgerBot class contains the following methods:
BurgerBot
__init__()
MOTOR_PINS
__speed
line_detected() -> bool
pen_middle()
pen_down()
pen_up()
forward(duration)
turnleft(duration)
turnright(duration)
stop()
left_motor(speed)
right_motor(speed)
speed() -> float
speed(value)
The BurgerBot also contains the following variables:
motors
Motor
pen_servo
line_sensor
< Previous Next >