Bipolar stepper motor (Alfa Romeo 156 speedo) w/ L293D

arduinoautomotiveh-bridgestepper motor

I would like to use my Alfa Romeo speedo in my simrig, I have got the cluster pinout and the speed signal is coming from the ABS (Just like any other car, my BMW cluster works like charm). The only problem is, it's no moving. I have tried a wide range of square-waves to see if it's using a different frequency band, no joy. (A 4N35 opto switches the signal pin to GND, so it's isolated from the MCU.) Same goes for the Tachometer(REV) (The only difference it's getting it's signal from the ignition coil, SGN -> +12V.) I was able to pop this one up to 7000 1/min and by lowering the frequency it was going down to ~5000 1/min and after that back to 0. However incresing the frequency did not get it back to 5000 1/min. (It's quite weird, maybe this one is broken.) The Tachometer has a MLX14308IBF wired up to the stepper, I could not find the datasheet for this. The Speedometer only has an LCD Driver, some sort of MCU and an EEPROM (storing and calculating distance travelled?!)


I have decided to take it apart and drive the stepper motor directly. The stepper motor has 4 pins and of course has no markings on it except: 048.5302.9915 (38) 39/01 this get's us nowhere as it's a date code and some sort of serial number. After a quick google search I have figured out that I'm facing with a bipolar stepper motor, so I need a L293D to drive it. I have built the circuit and started testing ( http://www.tigoe.com/pcomp/code/circuits/motors/stepper-motors/ )
L293D 2 wire control

The site has the arduino code as well. No matter what I was setting the step the Speedometer showed 110km/h or 220km/h after some random needle "waving". So I have decided to use all 4 control lines instead of 2 (dropped the resistors and the NPNs). Now it only goes up to ~40km/h or ~240km/h (depends on the wiring). https://www.flickr.com/photos/zoszko/14995250153/in/photostream/
Here you can check out the PCB and the back of the stepper:
https://www.flickr.com/photos/zoszko/15616229922/in/photostream/ (has no driver IC)
https://www.flickr.com/photos/zoszko/15615403925/in/photostream/ (ignore the markings on it's back, those are mine)

I can upload the picture of the Tachometer as well if it helps. 🙂

So after the story telling, the actual question:

  • Shall I keep playing with the square waves (any actual value would help a lot or other method, to test emulating the ABS.)?
  • How can I determine the motorSteps for 1 circle? (If it's too low the stepper "vibrates" if it's to high it "cries".)
  • Does the L293D HBridge will do the trick or I should use something else?

Thank You for reading this 🙂
Z.

EDIT #1: The Power consumption is 0.08A @ 12V it sits at 0.08A even when it's "waving" .

Best Answer

Well, you might say I did not solved the problem of driving these gauges with an Arduino, but I have solved the problem. I have just ordered a couple X27.168 5V stepper motors (~$2/pc) and replaced these 'noone-realy-knows-how-to-drive-them' motors. They fit perfectly and it's really easy to interface them with the stepper library.