Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.
/ rpi5-robot Public archive

Personal project to turn an RPi5 into a simple robot.

Notifications You must be signed in to change notification settings

dainank/rpi5-robot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Running

If errors are thrown, check setup below!

Activating Environment After Setup

  1. activate
  2. python

Setup

SSH Pi

ssh {username}@{hostname} You might need to provide that user password.

Check Cricket Board

i2cdetect -y 1

$ i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- 49 -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- -- 

Issue the following commands once you were able to verify the above:

sudo apt update
sudo apt upgrade
sudo apt autoremove
sudo reboot

Install Libraries

Check if it is done by typing activate in terminal and seeing the following: PyEnv

python3 -m venv ~/pyenv
~/pyenv/bin/pip install adafruit-circuitpython-crickit
~/pyenv/bin/pip install tornado

Activate Python Environment

echo "alias activate='source ~/pyenv/bin/activate'" >> ~/.bashrc
~/pyenv/bin/python

Test Color Change

>>> from adafruit_crickit import crickit
>>> crickit.onboard_pixel.fill(0xFF0000)

Env Variables

  • env - view all
  • export ROBO_DC_ADJUST_R="0.8"
  • env | grep ROBO_

Import the vars like so:

import os
os.environ['ROBO_DC_ADJUST_R']
'0.8'

GIT Corruption

find .git/objects/ -type f -empty | xargs rm
git fetch -p
git fsck --full

Useful Tooling

About

Personal project to turn an RPi5 into a simple robot.

Topics

Resources

Stars

Watchers

Forks