Page 1 of 1

new to the eleven system and arduino programming

Posted: Mon Jun 11, 2012 11:49 am
by geelongnewbie
Hello people.
I have just brought a new 11 and some mosfet drivers to control a automatic transmission in a customers car. What i want to do is make this transmission full manual shifting for racing.

I know the the solinoid pattens for the desired gear.
I have all the voltages from the transmission range switch for the the desired gear also

Now for the gurus on here.

what i want to do is setup up analog 0 to detect the different voltages from the trans range switch to command pwm 10 and 11.

but this the tricky bit.....

When A0 sensor's 1v input i want pwm 10 only to be running. (1st gear)
When A0 sensor's 1.5v input i want pwm 10&11 to be running. (2nd gear)
When A0 sensor's 2v input i want NO pwm channels running. (3rd gear)
When A0 sensor's 2.5v input i want pwm 11 to be running. (4th gear)

Im stumped with the programming the electronic side is fine going to run mosfets that can handle 16amp peak (only need to drive 200mA) with a diode across to prevent the back E.M.F.

If someone can help me with a sketch it will be great.

Thanks in advance,
Gavin (Australia)

Re: new to the eleven system and arduino programming

Posted: Tue Sep 25, 2012 6:41 am
by csconsulting
That a fairly hefty bit of help you are asking for haha

It would be fairly easy to do however.
You have setup() just setting the pins to do the inputs and output pin settings.

in your main loop() you have it reading analog0, and then on a switch or a nested if/then
setup the rest of your code.

When you say "running" or "not running" concerning the PWM outputs, are you saying go open circuit? or output 0 or output 1?

To make them go open circuit just tell them to be inputs, then the logic will disconnect the drive and make them go into tri-state open.

As for the rest of the code though, this is a fairly simple sketch. You just need to define more of what you want those PWM outputs to be actually putting out.