T208-Software

From Geekworm Wiki
Revision as of 14:09, 10 August 2020 by Harry (talk | contribs)
Jump to navigation Jump to search

1. Update software source on Ubuntu

2. To install pip for Python 3 on Ubuntu, run the following commands as root or sudo user in your terminal:

sudo apt-get update
sudo apt-get install python-pip  

3. To install Jetson GPIO library:

sudo pip install Jetson.GPIO

4. To install I2C dev library

sudo apt-get install libi2c-dev i2c-tools
pip install smbus

5. To check what i2c devices connected

sudo i2cdetect -y -r 1   (T208 used the I2C address 0x36)

6. To install Nano editor on Ubuntu

sudo apt-get install nano 

7. Create a python file with the code sample below - For i2c battery voltage & percentage reading

sudo nano t208bat.py


Return to T208

Add your comment
Geekworm Wiki welcomes all comments. If you do not want to be anonymous, register or log in. It is free.


Anonymous user #2

25 months ago
Score 0++
Hi, is there any way to obtain the actual continuous value of current flowing into the T208 and out of it to the Jetson Nano?

Lisa

25 months ago
Score 0++

Hi,

you can use the python 'Pld.py' to check the input charge. Refer to step 7 above

Anonymous user #1

28 months ago
Score 0++

Not working

Traceback (most recent call last): File "Pld.py", line 13, in <module> GPIO.add_event_detect(4, GPIO.BOTH, callback=my_callback) File "/usr/lib/python2.7/dist-packages/Jetson/GPIO/gpio.py", line 500, in add_event_detect raise RuntimeError("You must setup() the GPIO channel as an input " RuntimeError: You must setup() the GPIO channel as an input first

fixme

Lisa

28 months ago
Score 0++
Hi,please send us some pictures, email 【support@geekworm.com】,and please . tell us your order NO.