colas-sebastien / M5StickC-RoverC

0 stars 0 forks source link

I2C bus error #1

Open Werner-G opened 9 months ago

Werner-G commented 9 months ago

I spent the whole weekend in getting the gripper worked. No chance. Can you please update informations for the hardware you used:

I there any way to operate the ToF- and the Catch-Unit at the same time?

Thanks for your help, Werner

colas-sebastien commented 9 months ago

Hi, I used the following hardware:

It seems RoverC Pro is just a bundle of RoverC + Catch Unit. RoverC is using IC2 address 0x38, the register 0x10 is reserved for the gripper. It seems you can control a second gripper with the register 0x11. I supposed 3 pins labeled S1 V G are for gripper 1, register 0x10 and 3 pins labeled S2 V G are for gripper 2, register 0x11 You can find the doc there: https://docs.m5stack.com/en/hat/hat_roverc_pro

So please verify you connected the good port.

The ToF (VL53L0X) is using IC2 address 0x29 so no conflict you can use both at the same time. You can use the Grove connector of your choice because I2C is a bus

I hope It will help you, Let me know if you need more help/explanation.

Regards, Sébastien

Werner-G commented 9 months ago

Hi Sébastien, the RoverC Pro has a different PCB with two dedicated 3pin terminals for servos and you can also exchange the battery. Meanwhile I was successful: Because the gripper is just like a servo, it works without a protocol like I2C. So I connected V, G and G26 for PWM and used the Pin Servo from uiFlow's Advanced menu. For your reference, attached please find my working example. The ToF only works on M5stick's PortA. Using one of the two Grove Ports on the Rover gives me a bus error. Regards, Werner

Am Mo., 11. Dez. 2023 um 18:58 Uhr schrieb colas-sebastien < @.***>:

Hi, I used the following hardware:

  • RoverC bought in standalone version
  • Catch Unit also bought in standalone version

It seems RoverC Pro is just a bundle of RoverC + Catch Unit. RoverC is using IC2 address 0x38, the register 0x10 is reserved for the gripper. It seems you can control a second gripper with the register 0x11. I supposed 3 pins labeled S1 V G are for gripper 1, register 0x10 and 3 pins labeled S2 V G are for gripper 2, register 0x11 You can find the doc there: https://docs.m5stack.com/en/hat/hat_roverc_pro

So please verify you connected the good port.

The ToF (VL53L0X) is using IC2 address 0x29 so no conflict you can use both at the same time. You can use the Grove connector of your choice because I2C is a bus

I hope It will help you, Let me know if you need more help/explanation.

Regards, Sébastien

— Reply to this email directly, view it on GitHub https://github.com/colas-sebastien/M5StickC-RoverC/issues/1#issuecomment-1850592274, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHKGTZAO7QJ7TOU3UWUMO6LYI5CTXAVCNFSM6AAAAABAPV3EWSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJQGU4TEMRXGQ . You are receiving this because you authored the thread.Message ID: @.***>