This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is the car code for the remote controlled Tank-like vehicle | |
# Build one by slapping two motors on the side of your hub. | |
# (c) 2021 Anton's Mindstorms & Ste7an | |
# Use with the the remote control tutorial here: | |
# [url] | |
# Most of it is library bluetooth code. | |
# Scroll to line 200 for the core program. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env pybricks-micropython | |
from pybricks.ev3devices import (Motor, TouchSensor, ColorSensor, | |
InfraredSensor, UltrasonicSensor, GyroSensor) | |
from pybricks.parameters import (Port, Stop, Direction, Button, Color, | |
SoundFile, ImageFile, Align) | |
from pybricks.tools import print, wait, StopWatch | |
import struct |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Hub to hub remote control program. Run this on the remote control | |
# Full tutorial here: | |
# https://antonsmindstorms.com/2021/06/19/how-to-remote-control-lego-spike-prime-and-robot-inventor-with-python/ | |
# TO STOP THIS SCRIPT ALWAYS USE THE BUTTON ON THE HUB. | |
# AVOID THE STOP BUTTON IN THE MINDSTORSM APP! | |
# Building instructions here: | |
# https://antonsmindstorms.com/product/remote-control-transmitter-with-mindstorms-51515/ |
OlderNewer