Audio Equipment/Electrical Discussions Based on Automotive Stereo Equipment Such As Amps , Head Units & Speakers Including Installation and System Set Up Information. Electrical or wiring issues on anything that requires wiring.

Arduino Module Programming?

Thread Tools
 
Search this Thread
 
  #21  
Old 04-30-2012, 03:09 AM
AdrianD's Avatar
Diesel Enthusiast
Join Date: Aug 2010
Location: Transylvania
Posts: 98
Received 10 Likes on 9 Posts
Default

Thank you for the further explanations. I am now back home and have access to my Arduino so I will start something. Dummy circuit is the first thing on the order of business

I see no reason not to use on and off buttons for the functions which need it. My suggestion was to simplify wiring.

---AutoMerged DoublePost---

A few more questions, now that I have a basic pseudocode done...

If the transmission is in automatic mode, do upshifting and downshifting still need to be available ? does the torque converter lock-out still need to be available ?

Pin 6 = Rly 2 on/off. What does this control ?

Do you need some delays between steps 1a, 1b and 1c ?

Do you want to be able to control the transmission during the 1 second pulse for O/D or the 1.5 second ramp for torque converter lock ?
 

Last edited by AdrianD; 04-30-2012 at 03:09 AM. Reason: Automerged Doublepost
  #22  
Old 04-30-2012, 11:23 AM
2004LB7's Avatar
Diesel Bomber
Thread Starter
Join Date: Dec 2010
Location: Fool's Golden State
Posts: 1,190
Likes: 0
Received 113 Likes on 109 Posts
Default

If the transmission is in automatic mode, do upshifting and downshifting still need to be available ? does the torque converter lock-out still need to be available ?

no to both. i prefer that when the TAP function is "off" then the transmission would work normally and up/down shift and TCC lock/unlock will do nothing when the button is pressed

Pin 6 = Rly 2 on/off. What does this control ?

when the TAP shifting is turned on then the output on pin #6 will be high. this transfers control of the TCC to the Arduino board. pin #5 is what will now make the TCC lock and unlock. relay #2 is needed to prevent the transmission from going into limp mode by tricking it into thinking it is powering a solenoid but it is powering a resistor unstead

Do you need some delays between steps 1a, 1b and 1c ?

only if needed to prevent it from running out of sequence

Do you want to be able to control the transmission during the 1 second pulse for O/D

5th gear is technically overdrive so when in 4th gear then the overdrive lockout will need to be activated to prevent the transmission from upshifting to 5th. when the upshift button is pushed then pin #8 is pulsed to turn off the O/D lock out and allow the transmission to shift to 5th. when the down button is now pushed then pin #8 is pulsed to turn on the O/D lockout to force the transmission to down shift from 5th to 4th.

Pin # 7 is used to monitor the current state of the lockout. if it is high then the O/D lock out is currently on and the transmission cant shift to 5th. i dont know of anything else that will tell us what state the O/D lockout is in other then the light on the dash

or the 1.5 second ramp for torque converter lock ?

when the button for locking the torque converter is pressed (pin #A2 drops to 1.25 volts) then pin #5 will ramp on with a PWM signal. when the unlock button is pressed ( Pin #A2 drops to 1.60 volts) then pin #5 will go low (no PWM signal)
 
  #23  
Old 04-30-2012, 03:02 PM
AdrianD's Avatar
Diesel Enthusiast
Join Date: Aug 2010
Location: Transylvania
Posts: 98
Received 10 Likes on 9 Posts
Default

Alright, seems like I have most of the pseudocode right.
Basically when the O/D is turned on or off and the torque converter is locker/unlocked the controller will not handle any commands. Is that correct ?
 

Last edited by AdrianD; 04-30-2012 at 03:07 PM.
  #24  
Old 04-30-2012, 06:42 PM
2004LB7's Avatar
Diesel Bomber
Thread Starter
Join Date: Dec 2010
Location: Fool's Golden State
Posts: 1,190
Likes: 0
Received 113 Likes on 109 Posts
Default

the overdrive lockout would work together with the up/down shifting. any gear selected below 5th would have the O/D lockout enabled. when in 4th and the up shift button is pressed all that happens is the lockout is turned off allowing the transmission to up shift to 5th. when the down shift is pressed the O/D lockout is turned back on forcing the transmission to down shift to 4th.

the column shifter only has 1, 2, 3 & D. what we are trying to do is make the transmission "think" that the shifter has been moved between 1, 2, 3 or D. when in "D" the transmission has the ability to shift between 4th and 5th with the O/D lockout function enabled or disabled as needed.

the TCC lockup will be a separate set of buttons (still on pin A2) that will allow you to lock the torque converter at will. it would need to unlock when downshifting to 1st so as to not stall.

with the TCC locked or unlocked the up shift and down shift would still work.

when the controller is active (TAP shift enabled) then all of the commands [up shift/down shift], [TCC lock/TCC unlock] & [turn off TAP shift] are available.

when the TAP shift "off" button is pressed then the controller will turn off all of the relays, PWM and turn off the O/D lockout (enabling 5th gear). all of the up/down shift, TCC lock/unlock buttons will do nothing when pressed. the only thing the controller will be doing at that time is looking for the A2 pin to drop to 0.60 volts (TAP function on button) then it will activate the other functions

hope that make sense

Jason
 
  #25  
Old 05-13-2012, 07:20 AM
AdrianD's Avatar
Diesel Enthusiast
Join Date: Aug 2010
Location: Transylvania
Posts: 98
Received 10 Likes on 9 Posts
Default

Hello Jason,

I have compiled a first draft of the code, along with a second program, to check to what does each button voltage mean in ADC units. Comments on how to set it up are in the code. But basically you need to see how many ADC units each button has and set the values accordingly in the first part of the code.

Currently, this first draft only has the flowchart implemented and it does not set or read pins, except the ADC pin. Build the button resistor matrix, connect to the board through the serial monitor of the Ardiono IDE and check how everything works. You will also need to add a 10K resistor between GND and A0 to pull down the ADC to 0.

Please note, while switching the O/D on and ramping up the PWM signal, the controller is blocked in a loop, no other commands work. This is visible in the comments within the code
If this behavior is not ok, I will change it, so that the controller is not blocked.

In the meantime, I will work on setting the outputs according to what is needed. This is something you will have to check again, preferably not in the car but with some LED's or just with a DMM, checking all the pins and seeing if the turn on/off according to how it's needed.
 
Attached Files
File Type: zip
Allison_1000_controller.zip (108.0 KB, 12 views)
  #26  
Old 05-13-2012, 02:51 PM
2004LB7's Avatar
Diesel Bomber
Thread Starter
Join Date: Dec 2010
Location: Fool's Golden State
Posts: 1,190
Likes: 0
Received 113 Likes on 109 Posts
Default

thank you

i will check it out
 
  #27  
Old 05-26-2012, 04:54 PM
2004LB7's Avatar
Diesel Bomber
Thread Starter
Join Date: Dec 2010
Location: Fool's Golden State
Posts: 1,190
Likes: 0
Received 113 Likes on 109 Posts
Default

AdrianD,

so i wired up the button resistor network

it seems as if the controller is monitoring the previous state/value. when pressing any one if the buttons i get the value of 1000~1004. which i believe is the value of the 5 volts

if i hold down one of the buttons and momentarily press another i get the value if the button held down.

here are the values if i hold the buttons as described above

Ohms - volts ---- command -- Arduino value
120 -- 0.26V ---- on ----------- 66-98 ?
390 -- 0.74V ---- off ----------- 147-153
560 -- 0.99V ---- up shift ----- 205-207
1K --- 1.52V ---- dn shift ------ 316-319
1.5K - 1.97V ---- lock---------- 410-414
1.8K - 2.18V ---- unlock ------ 453-459
2.2K - 2.4V
2.7K - 2.66V
5.6K - 3.47V
10K -- 3.95V
22K -- 4.41V

the other ones with no values are extra buttons that are unneeded at this time.

Thanks Jason
 

Last edited by 2004LB7; 05-26-2012 at 04:59 PM.
  #28  
Old 05-26-2012, 10:57 PM
2004LB7's Avatar
Diesel Bomber
Thread Starter
Join Date: Dec 2010
Location: Fool's Golden State
Posts: 1,190
Likes: 0
Received 113 Likes on 109 Posts
Default

ok, using this code and wiring (attached) i was able to come up with these numbers

Ohms - volts ---- command -- Arduino value
120 -- 0.26V ---- on ----------- 51
390 -- 0.74V ---- off ----------- 154
560 -- 0.99V ---- up shift ----- 207
1K --- 1.52V ---- dn shift ------ 319
1.5K - 1.97V ---- lock---------- 414
1.8K - 2.18V ---- unlock ------ 460

Thanks
 
Attached Thumbnails Arduino Module Programming?-button-wiring.jpg  
Attached Files
File Type: txt
Check_button_value 2.txt (685 Bytes, 50 views)
  #29  
Old 05-28-2012, 03:13 AM
AdrianD's Avatar
Diesel Enthusiast
Join Date: Aug 2010
Location: Transylvania
Posts: 98
Received 10 Likes on 9 Posts
Default

I built my setup the other way around, with the buttons connected to 5v and R1 pulling the ADC to GND. Brainfart, sorry. The whole code was built around that but I'll change it

What value is R1 ?
 

Last edited by AdrianD; 05-28-2012 at 03:21 AM.
  #30  
Old 05-28-2012, 04:31 PM
2004LB7's Avatar
Diesel Bomber
Thread Starter
Join Date: Dec 2010
Location: Fool's Golden State
Posts: 1,190
Likes: 0
Received 113 Likes on 109 Posts
Default

i ended up using a 2.2K ohm. with the 10K and pulling the 5 volts (it is actually 4.86 volts) from the Arduino bord as most of the resistors i used would drop the voltage too much to work.

here is the schematic that will better illustrate why it is wired like this
 
Attached Thumbnails Arduino Module Programming?-button-wiring-2.jpg  

Last edited by 2004LB7; 05-28-2012 at 04:37 PM.


Quick Reply: Arduino Module Programming?



All times are GMT -5. The time now is 09:12 AM.