Dalek bot - python @ raspberry pi, micropython @ stm32f4, mecanum drive robot
Set these:
- camera
- serial
- disable system serial console, but enable serial hw
$ rpi-config
sudo pip install pipenv
GPIO pins to control the direction and enable
GND
UART
GND
rpi_usb - stm_usb_micro
git clone <this-repo-address>
cd py
pipenv install -r req/base.in
connect to rpi via ssh
dalek_me
get into pipenv venv
cd $dirdalek/pi
pipenv shell
in pipenv-venv
python main.py
see the interactive console of micrpython running on stm from rpi and sync the filesystem
dalek_rshell_rsync
Add this to your ~/.bashrc
and change the dirdalek
accordingly.
alias src="source ~/.bashrc"
alias vrc="vim ~/.bashrc"
alias vimrc="vim ~/.vimrc"
# ###############################################
# include dalek bashrc if it exists
export dirdalek="/home/pi/DEV/gr4dalek/"
if [ -f $dirdalek/bashrc ]; then
. $dirdalek/bashrc
fi
The useful aliases are defined in bashrc
file.