Here are my custom scripts for my LetsRobot robot. They are designed to be copied into the letsrobot repository after going through their tutorial.
-
Go to the letsrobot repository and follow the instructions for setting up the raspberry pi and connecting your robot. Make sure you download and install the software for the Adafruit Motor Hat.
-
-
Go to the letsrobot.tv website click edit under your robot settings

-
Scroll to the bottom of the page and click the switch labeled custom panels. This should open a text box. Paste the following and click Save Robot Settings.
[{"button_panels":[{"button_panel_label":"movement controls","buttons":[{"label":"rotate left","command":"L"},{"label":"rotate right","command":"R"}, {"label":"forward","command":"F"}, {"label":"backward","command":"B"}, {"label":"left","command":"Q"}, {"label":"right","command":"E"}]}]},{"button_panels": [{"button_panel_label":"camera controls","buttons": [{"label":"tilt up","command":"U"},{"label":"tilt down","command":"D"}]}]},{"button_panels": [{"button_panel_label":"claw controls","buttons": [{"label":"grip","command":"C"}, {"label":"release","command":"O"}]}]}]
-
-
- Make sure your in your home folder
cd ~ - Clone this repository
git clone https://github.com/zeropt/kiwinkidinkily.git
- Make sure your in your home folder
-
- Copy letsrobot.conf
cp kiwinkidinkily/letsrobot.conf letsrobot/letsrobot.conf - Copy motor_hat.py
cp kiwinkidinkily/motor_hat.py letsrobot/hardware/motor_hat.py
- Copy letsrobot.conf
-
- From your home directory, type
nano letsrobot/letsrobot.conf - Enter your letsRobot Username, RobotID, CameraID, and Stream Key
# This is your username on the letsrobot site. This is the user that is allowed # to issue commands via chat owner=YourLetsRobotUserName # Your robots id. The site will provide you with this and the camera id when # you create a new robot. robot_id=YourRobotID # Your robots camera id camera_id=YourCameraID # Motor controller type for your robot. Current valid types are serial_board, # motor_hat, gopigo2, gopigo3, l298n, motozero, pololu, adafruit_pwm, owi_arm # or none. type=motor_hat # Your stream key, it's generally a good idea to change this. stream_key=hello - ctrl-x to exit, type y and enter to save.
- From your home directory, type
-
Reboot and open your robot stream page
sudo reboot

