update readme install

This commit is contained in:
pique_n 2022-12-22 09:14:05 +01:00
parent 36310ab98e
commit 2219094bce
2 changed files with 18 additions and 1 deletions

View File

@ -7,4 +7,19 @@ There are 2 options, via the USB to CAN adapter (from seeed studio) or via the c
Because we don't need it anymore, i will not further document this, but i published it because may someone want to use it to control the TEC directly
in the tec.py file are also some TEST Routines for testing the TEC and controlling it, also with logs
in the tec.py file are also some TEST Routines for testing the TEC and controlling it, also with logs
## Install the CAN interface (for RPi CAN Hat)
Add the following line to your /boot/config.txt file:
`dtoverlay=mcp2515-can0,oscillator=12000000,interrupt=25,spimaxfrequency=2000000`
`sudo reboot`
`pip3 install python-can`
... for python module
maybe edit permissions
`./resetCAN.sh`
... for starting can0

2
resetCAN.sh Normal file
View File

@ -0,0 +1,2 @@
sudo ip link set can0 down; sudo ip link set can0 type can bitrate 125000; sudo ip link set can0 up