raspmz
Posts: 5
Joined: Fri Sep 05, 2014 11:13 pm

[solved] Stepper driver over I2C not recognized

Fri Sep 05, 2014 11:26 pm

Hi,

I'm new to the I2C programming.
I bought this stepper driver module (http://www.elv.de/output/controller.asp ... ail2=30930)

I then followed the instructions to enable i2c on my raspberry. (https://learn.adafruit.com/adafruits-ra ... guring-i2c)
This seems to work as I can get the address of another i2c device by using i2cdetect -y 1

But if I only connect the stepper driver, no address is found by i2cdetect.
Does anybody have experiences with this stepper driver?

Many thanks in advance!
Last edited by raspmz on Wed Sep 17, 2014 8:16 pm, edited 1 time in total.

User avatar
joan
Posts: 14935
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: Stepper driver over I2C not recognized

Sat Sep 06, 2014 7:52 am

That looks like a serious piece of kit.

How are you connecting it to the Pi? Does it need jumpers on the board to set its address?

raspmz
Posts: 5
Joined: Fri Sep 05, 2014 11:13 pm

Re: Stepper driver over I2C not recognized

Sat Sep 06, 2014 1:10 pm

I used 2 wires to connect it to the scl and sca (3 and 5) port of the pi.
There is a jumper to set to address to 192 or 194.
If i use my windows i2c to usb tool it is possible to control the driver, but my pi does not show any connected device if i attach it to it.

User avatar
hansotten
Posts: 341
Joined: Fri Jul 13, 2012 6:01 am
Contact: Website

Re: Stepper driver over I2C not recognized

Sat Sep 06, 2014 1:17 pm

raspmz wrote:I used 2 wires to connect it to the scl and sca (3 and 5) port of the pi.
There is a jumper to set to address to 192 or 194.
If i use my windows i2c to usb tool it is possible to control the driver, but my pi does not show any connected device if i attach it to it.
The RPIi is a 3.3V device, your device 5V. What pull up resistors are attached? The RPi has pullups, your device may or may not have pull ups. To strong pull ups are dangerous to the RPi btw. Bidirectional level convertors exist for I2C and also may have (optional) pullup resitors.

With the USB I2C device its all 5 V and possible stronger pullups?
http://duinorasp.hansotten.com for Raspberry Pi and Arduino and ESP8266
http://retro.hansotten.nl for retrocomputing with the 6502 cpu

User avatar
joan
Posts: 14935
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: Stepper driver over I2C not recognized

Sat Sep 06, 2014 1:19 pm

You also need to connect the ground wire between the Pi and the device (and the power if you are powering it from the Pi).

raspmz
Posts: 5
Joined: Fri Sep 05, 2014 11:13 pm

Re: Stepper driver over I2C not recognized

Sat Sep 06, 2014 7:37 pm

I know about the ground, i only forgott to mention that :D
My device is powered by an external powersupply as my stepper needs 10V.

Thx hansotten, i haven't thought about the 3.3 V :?

raspmz
Posts: 5
Joined: Fri Sep 05, 2014 11:13 pm

Re: Stepper driver over I2C not recognized

Sat Sep 06, 2014 8:10 pm

The RPIi is a 3.3V device, your device 5V. What pull up resistors are attached? The RPi has pullups, your device may or may not have pull ups. To strong pull ups are dangerous to the RPi btw. Bidirectional level convertors exist for I2C and also may have (optional) pullup resitors.

With the USB I2C device its all 5 V and possible stronger pullups?
thx hansotten, this pointed me in the right direction. The iSMT driver module uses 5V pullups.

raspmz
Posts: 5
Joined: Fri Sep 05, 2014 11:13 pm

Re: Stepper driver over I2C not recognized

Wed Sep 17, 2014 8:15 pm

Thanks for your help. It is working now. I needed a level shifter and some pullup resistors for the decice.

Return to “Interfacing (DSI, CSI, I2C, etc.)”