108640 Views
83860 Views
59555 Views
48723 Views
48311 Views
47806 Views
C2Pi-O Laser cut Camera holder
Build a laser-cut robot
Robots and Lasers
Arduino Plug and Make Kit Review
Pi to Pico W Bluetooth Communication
Two-Way Bluetooth Communication Between Raspberry Pi Picos
Introduction to the Linux Command Line on Raspberry Pi OS
How to install MicroPython
Wall Drawing Robot Tutorial
BrachioGraph Tutorial
Intermediate level MicroPython
Introduction to FreeCAD for Beginners
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 >