Home        Store        Docs        Blog

Motor address I2C

(Quicky) #1

Hello,

I work on a project with the T200 and preinstalled ESC controlled by Raspberry PI 3. I can turn on the motor with PWM but I need the data from the SDA to get RPM. I know that the address is normally 0x29 but when i did "I2Cdetect -y 1 ", I don’t see the address. When I run my program i received :
"temperature:
Traceback (most recent call last):
File “motor2.py”, line 21, in
print(bus.read_word_data(DEVICE_ADRESS,TEMP))
IOError: [Errno 121] Remote I/O error "

I’m here because i don’t find anywhere my problem.

This is my program:

#!/usr/bin/env python

import time
import pigpio
import smbus

bus=smbus.SMBus(1)
DEVICE_ADRESS=0x29
TEMP=0x06
GPIO=4
square=
square.append(pigpio.pulse(1<<GPIO,0,1500)) #ON OFF MICROS
square.append(pigpio.pulse(0,1<<GPIO,1500))
pi=pigpio.pi() #connect
pi.set_mode(GPIO, pigpio.OUTPUT)
pi.wave_add_generic(square)
wid=pi.wave_create()
if wid >=0:
pi.wave_send_repeat(wid)
print(“temperature:”)
print(bus.read_word_data(DEVICE_ADRESS,TEMP))
time.sleep(60)
pi.wave_tx_stop()
pi.wave_delete(wid)
pi.stop()

My setup:

(Adam) #2

Hi @Quicky,

Please contact us at support@bluerobotics.com. The integrated Blue ESC was discontinued years ago, and is no longer supported.

-Adam