Skip to content

Robo-Smith/robot

Repository files navigation

Code useful for home robots

  • Motor controls and digital sensor integration on the Arduino Nano.
    • Rationale: they have large example sets, are pretty forgiving hardware, cheap, and already are on hand.
  • Higher level and more complex logic will be handled through Python on the Raspberry Pi 4.
    • Rationale: adequate guides and similar examples, relatively cheap, and are already on hand.
  • This code will be used with differential drive robots, that will share the same root code and much of its functionality, with special configurations being addressed as the time comes.

To Do:(Not in any order)

References:

Build Instructions

  1. Hardware:
    • Yardbot - endless hours to build
    • Raspberry Pi4 and supplies
    • Wide FoV Pi camera
    • TF-Luna Sensor on I2C
    • 5x Jaguar Speed controllers or other PWM motor controller
    • circuit breaker for battery and fuse bus for each peripherial
    • Wiring pin layout in Arduino firmware
  2. Install Raspberry Pi OS using Raspberry Pi Imager https://www.raspberrypi.com/software/
  3. Configure Pi for wifi (2.4 ghz), VNC enabled, and bluetooth connection for controller
  4. Startup and configure software
    • Get github personal access token - settings - developer settings, copy and paste as password on clone command
    • git clone https://github.com/rsmith8/robot.git
    • setup Arduino https://magpi.raspberrypi.com/articles/program-arduino-uno-raspberry-pi
      • install library -> Adafruit NeoPixel
      • install 'Arduino-Nano.ino' firmware
    • sudo apt install python3-evdev
      • python -m evdev.evtest
    • Configure service to start Pi.py
      • sudo cp robot/robot.service /lib/systemd/system/
      • sudo systemctl daemon-reload
      • sudo systemctl enable robot.service
    • python3 -m pip config set global.break-system-packages true
    • pip3 install pvorca
    • Automate STARTUP....
  5. Run from terminal
  • cd robot
  • python3 Pi.py

About

Code for robots along with references and project logs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published