update readme install
This commit is contained in:
parent
36310ab98e
commit
2219094bce
17
ReadMe.md
17
ReadMe.md
@ -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
2
resetCAN.sh
Normal 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
|
Loading…
x
Reference in New Issue
Block a user