Dobrý den,
nechal jsem si vypsat i2c adresy na joycar. Našlo mi to adresy 0x38, 0x62 a 0x70.

0x38 je adresa pro vyčtení senzorů čáry a blízkosti (senzory rychlosti jsou přesunuty na pin14 a pin15 micro:bitu/pico:edu). Měl by to být io PCF8574.
0x70 je adresa pro ovládání motorů. Měl by to být io PCA9633.

Co za zařízení je na adrese 0x62?

Jan Chaloupek

08.03.25 07:54

Hello Jan,


the Address 0x62 is another address responsible for the motor controller. 🙂


Best regards,
Jens

Jens

10.03.25 11:19

Děkuji za odpověd.


PCA9633 (použitý pro motory) má opravdu 3 další i2c adresy. Implicitní hodnoty jsou 71, 72 a 73 (adresy jdou dokonce nastavit). Ale jsou nyní vypnuté. 

Podle datasheetu https://media.digikey.com/pdf/Data%20Sheets/NXP%20PDFs/PCA9633.pdf tam nic podobného nevidím.

Existuje nějaký dokument (popis), který by popisoval co na té adrese 0x62 je k nastavení/přečtení?


Jan Chaloupek

10.03.25 23:26

>>the Address 0x62 is another address responsible for the motor controller

Dobrý den, 


výše uvedená odpověď mě ani o kousek nepřiblížila k odpovědi, co je na adrese 0x62. Z dokumentace PCA9633 jsem se dozvěděl, že přiklady kódu joycar používají následující registry tohoto obvodu (Control register, MODE1, LEDOUT, PWMx). Nikde se tam ale nepíše o adrese 0x62. Můžete mě nasměrovat, kam se mám podívat abych tuto informaci získal?

--------------------


Control register


 


 



 


 



 


 



 


 


Jan Chaloupek

23.03.25 11:41

Hello Jan,


the address 0x62 is another address that can be used to communicate with the motor controler. But in the case of our Joy-Car, this address is not necessary.


The address 0x70 is  the regular address and also an "call all" address. In a circuit in which multiple of this motor controller type are used, all motor controllers can be addressed simultaneously with this address.


0x62 is an address to call this specific motor controller. With this address, if you use multiple motor controller, you can send commands to only this controller.


However, as we only use a single motor controller in our Joy-Car, the specific address 0x62 is not necessary and is therefore not used and not specified in more detail.


Best regards,
Jens

Jens

25.03.25 08:43