Speedo out to drive DC motor

A forum for discussing applications and implementations of the MegaShift transmission controller code for the GPIO from B&G. This can control up to 8-speeds and 6 shift solenoids (plus a 16x9 table for controlling a PWM line pressure valve). It has manual and fully automatic modes (16x9 load x speed table), with under and over rev-limit protection, and full data logging of all inputs and outputs (among many other abilities). A TransStim to test your completed board is also available.
Bernard Fife
Posts: 1696
Joined: Fri Apr 04, 2008 1:28 pm

Re: Speedo out to drive DC motor

Post by Bernard Fife »

Tobmag,

Here's some code to test:
Monitor_test_2202.abs.s19
It fixes at least one issue (a conflict on the pin setting when bit-banging the outputs), and makes the PWM on/off behavior appropriate when using the 'always on' set-up. I'm not sure it will fix the 'drop out during shifting' issue - let me know if it doesn't.

Eventually the fixes in this code will be incorporated into 2.203 release code, once this is fully sorted to everyone's satisfaction.

Lance.
"Never wrestle with pigs. You both get dirty and the pig likes it." - George Bernard Shaw
tobmag
Posts: 206
Joined: Mon Jan 02, 2012 4:22 am

Re: Speedo out to drive DC motor

Post by tobmag »

Lance.

We have a winner!!

This sorted all issues.....
PWM percent is now responding exactly as it should (Ok just tested SP1)
Now I also get correct responce when changing PWM period.
I do not loose the signal anymore while shifting gear.

I'm very thrilled with the resulst and I can also confirm that it is possible to use a small DC motor to run your old mechanical speedo... got stuck there for a while testing different PWM periods to get most torque on lower speeds and by using the table speed/PWM% I manage to get the speedo spot on compared to the speedo in TS.

Many thanks Lance for your pation with me.

I can post some more scope screens if you want to see the result on my board

BR//Tobmag
Bernard Fife
Posts: 1696
Joined: Fri Apr 04, 2008 1:28 pm

Re: Speedo out to drive DC motor

Post by Bernard Fife »

Many thanks Lance for your patience with me.
Tobmag,

I am thrilled it's working now! And all my thanks to YOU for your patience with me. It really helps when people keep pushing when something doesn't work - just because I don't see a particular problem doesn't mean it's not there, as you have shown. Often this is due to different test methods, set-ups, etc.. Your persistence and commitment are exactly what's needed to make the code better.

I can see that it's better on my scope too, but if you put up a scope shot or two for people stumbling on this thread later, that would be helpful.

Lance.
"Never wrestle with pigs. You both get dirty and the pig likes it." - George Bernard Shaw
tobmag
Posts: 206
Joined: Mon Jan 02, 2012 4:22 am

Re: Speedo out to drive DC motor

Post by tobmag »

Lance.

I'll post some scope screens tomorrow, now its way past my bedtime

BR//Tobmag
tobmag
Posts: 206
Joined: Mon Jan 02, 2012 4:22 am

Re: Speedo out to drive DC motor

Post by tobmag »

So here are 3 more scope screens now showing a proper pwm signal, this is measured at SP1 on the Trans Stim

Please note that PWM% seen in TS and Duty cycle seen in my scope screen are inverted!!

BR//Tobmag
Attachments
pwm10%.png
pwm10%.png (8.47 KiB) Viewed 12276 times
pwm50%.png
pwm50%.png (8.83 KiB) Viewed 12276 times
pwm95%.png
pwm95%.png (8.32 KiB) Viewed 12276 times
tmoble
Posts: 55
Joined: Fri Nov 25, 2011 1:01 pm
Location: Glendale, Az

Re: Speedo out to drive DC motor

Post by tmoble »

Wow, tobmag, you are the MAN!

I've been off here for a few weeks while I built a couple engines, a Chevy 12 bolt posi rear and an M-22Z muncie conversion.

I trashed my GPIO while sanding off the end to get it in the case. Fried a couple components, lifted a pad, etc, etc. same old sad story. But now my wife (experienced in SMT build and repair on cruise missile guidance/control boards) has agreed to help me fix it. It won't be long.

Will you be willing to disclose what electric motor and associated parts you used? maybe schematics? My mechanical skills are excellent but my electronic skills are very limited.
tobmag
Posts: 206
Joined: Mon Jan 02, 2012 4:22 am

Re: Speedo out to drive DC motor

Post by tobmag »

tmoble.

I'm using an 12v DC motor coming from an old VCR I srapped a few years ago.

Have a look what the R/C peolpe use, there are a huge amount of different motors availible.

Wiring , nothing odd just add the diod over the motor to kill the spikes.


BR//Tobmag
Post Reply