embeded/jetson2026. 4. 4. 21:09

있다는데 어떻게 읽지?

Features
Support three 18650 batteries (not included), 7800mAh large capacity, up to 12.6V output, stronger motor power.
On-board S-8254AA + AO4407A Li-ion battery protection circuit, with anti-overcharge, anti-over-discharge, anti-over-current and short-circuit protection functions.
Onboard APW7313 voltage regulator chip, which can provide stable 5V voltage to Jetson Nano.
Onboard TB6612FNG dual H-bridge motor driver chip can drive the left and right two motor work.
Onboard 0.91" 128×32 resolution OLED, real-time display of car IP address, memory, power, and other conditions.
Onboard INA219 acquisition chip, convenient for real-time monitoring of battery voltage.

Datasheet
Ina219
PCA96_datasheet
S-8254AA
Ads1115
TB6612FNG

[링크 : https://www.waveshare.com/wiki/JetRacer_AI_Kit]

 

근데 회로도에 없다 -_-?

회로도에는 대신이라고 하긴 뭣하지만 ads1115가 존재한다.

[링크 : https://files.waveshare.com/upload/4/4a/JetRacer_Schematic.pdf]

 

그냥 검색하면 안나오는데

jetson@nano-4gb-jp451:~ $ i2cdetect -y 1
Warning: Can't use SMBus Quick Write command, will skip some addresses
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:
10:
20:
30: -- -- -- -- -- -- -- --
40:
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60:
70:

 

-r 주면 smbus 무시하고 하는건지 먼가 나오긴한다. 그런데.. 누가 ina219고 누가 ads1115냐..

jetson@nano-4gb-jp451:~$ i2cdetect -y -r 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- 08 -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- 3c -- -- --
40: 40 41 -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: 60 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- 71 -- -- -- -- -- --

 

ADS1115 - 0x4A, 0x4B, 0x48, 0x49 라고 검색되는데 안보이고..

INA219 - 0x40, 0x41, 0x44, 0x45 라는데 일단 0x40과 0x41이 보이긴한다.

 

APW7313 - voltage regulator

 

 S-8254AA + AO4407A * 3 배터리 보호회로

 

 

근데 회로도상으로는 4407에 붙은 10mohm도 없고 4개여야 하는데 6개나 있다. 멀까?

 

NXP PCA9685 - 16ch 12bit PWM

ina219  에 100밀리옴인가?

 

TB6612FNG - Driver IC for Dual DC motor

 

 

+

gpt로 대충 작성

$ cat in.py
import board
import busio
from adafruit_ina219 import INA219
import time

# I2C
i2c = busio.I2C(board.SCL, board.SDA)

# 주소 (Waveshare는 0x42인 경우 많음)
ina219 = INA219(i2c, addr=0x41)

# R100 = 0.1Ω 설정 (중요)
ina219.shunt_resistance = 0.1

while True:
    print(f"Voltage: {ina219.bus_voltage:.3f} V")
    print(f"Current: {ina219.current:.3f} mA")
    print(f"Power: {ina219.power:.3f} mW")
    print("------")
    time.sleep(1)

 

충전 중에는 12.6V가 맞는것 같은데

선을 뽑으면 current가 0으로 떨어진다. 젯슨 나노가 쓰는게 있으니 음수 전류가 나와야 할 것 같은데

충전만 모니터링하고 방전은 안하는걸려나?

일단 수치상으로는 power는 mW가 아니라 W 일 듯?

$ python3 in.py
Voltage: 12.608 V
Current: 379.400 mA
Power: 4.962 mW
------
Voltage: 12.616 V
Current: 374.700 mA
Power: 4.752 mW
------
Voltage: 12.616 V
Current: 358.400 mA
Power: 4.542 mW
------
Voltage: 12.620 V
Current: 356.100 mA
Power: 4.890 mW
------
Voltage: 12.512 V
Current: 0.000 mA
Power: 0.000 mW
------
Voltage: 12.512 V
Current: -0.200 mA
Power: 0.004 mW
------
Voltage: 12.520 V
Current: 0.100 mA
Power: 0.000 mW
------
Voltage: 12.516 V
Current: -0.100 mA
Power: 0.000 mW
------
Voltage: 12.496 V
Current: 0.100 mA
Power: 0.000 mW
Posted by 구차니