Skip to content

nickninov/Lego-Robotics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python Robotics

Launch Ev3

Terminal command:

ssh robot@ev3dev.local

Password:

maker

Run sudo commands without asking Ev3 for a password

  1. When you SSH in to the Ev3 type
sudo visudo
  1. In the bottom of the file - below #includedir /etc/sudoers.d, add
username ALL=(ALL) NOPASSWD: ALL

To check what is your robot's username type

whoami
  1. Exit and save the file

R2-D2

This project allows the user to control R2-D2 through the keyboard and ask it what the weather is.

  • Key 0 - Stops the motors
  • Key Q - Stops the server and shuts down Ev3
  • Key E - Tells the weather
  • Key W - Goes forward
  • Key S - Goes backward
  • Key A - Turns left and goes forward
  • Key D - Turns right and goes forward
  • R2-D2 TouchSensor - Stops the server and shuts down Ev3

How to launch:

  1. Launch Server.py
python3 Server.py
  1. Launch Main.py
python3 Main.py

F1

This project allows the user to remotely control the Lego F1 from a Raspberry Pi from a GUI and take pictures with the Raspberry Pi camera.

  • Key Q - Exit program
  • Key E - Snapshot
  • Key W - Go forward
  • Key S - Go backwards
  • Key A - Turn left
  • Key D - Turn right
  • Key Space - Stop motors

How to launch:

  1. Launch Ev3
python3 Main.py
  1. Launch Raspberry Pi
LD_PRELOAD=/usr/lib/arm-linux-gnueabihf/libatomic.so.1 python3
import os
os.system('python3 Main.py --output output')

About

Python Robotics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages