2 step | AEM
25 posts / 0 new
Last post
turboshelbys@att.net
Offline
Last seen: 5 years 3 weeks ago
Joined: 11/28/2014 - 06:26
2 step

What wire can I use?(gpio?) to trigger the 2 step?

AEM_RH
AEM_RH's picture
Offline
Last seen: 2 years 2 months ago
Joined: 01/14/2015 - 13:57
Navigate to the Limiters tab

Navigate to the Limiters tab on AEM Tuner. You will see the Two-Step Limits Option table. Double click on the Value next to the "2Step Input" name. This will pull down the menu of all available inputs for the 2 step limiter. You can use any of the available GPIOs under the Input assignment. 

 

JamesL
Offline
Last seen: 3 years 3 months ago
Joined: 02/19/2015 - 07:35
Hello AEM_RH. We have gpio7

Hello AEM_RH. We have gpio7 hooked up to one side of the brake switch and the other to a solid ground. The brake switch is not connected to any other circuit. It is a simple ground interrupt. 2Step Input is set to GPIO7 GND=ON. When your foot is off the bake, the circuit is open. The idea is that when the brake is depressed and the VSS < 12mph the second step should be ON. However, for some reason we find that when the key is on, touching the brake will turn the two step on, but when we start the car, the 2step shows on even though the brake is not depressed. And, while the software shows the 2step is on, the car does not respond to the 2step settings. What are we doing wrong?

AEM_NS
Offline
Last seen: 20 hours 16 min ago
Joined: 06/06/2014 - 09:31
Check all the options that

Check all the options that start with "Out".  Perhaps you're using GPIO7 as an output and don't realize it.  The channels Rev Ign/Fuel Limit will tell you exactly what your current limiter is.  Do you have VSS hooked up and reading correctly?

ruddyrid
ruddyrid's picture
Offline
Last seen: 4 months 3 weeks ago
Joined: 06/10/2014 - 20:52
??? Hope this will help

I think this is what they were reffering to:

JamesL
Offline
Last seen: 3 years 3 months ago
Joined: 02/19/2015 - 07:35
Thank you for the feedback

Thank you for the feedback guys. We did find these outputs and none were assigned to GPIO7. More confusing though is that we decided to take a more simple approach and still have issues. That is, we removed the hard wire ground switch and GPIO7 from the equation. We simply set the 2Step input to Always ON and the VSS anywhere from 5MPH to 15MPH. Still no joy. We know the VSS speed sensor works. It's a VSS from a 2005 Neon SRT 4 which has a configuration in the wizard. Interestly, using the wizard provided no inital satisfaction as the speed kept reading zero. After manipulating the settings on the speed sensor we got it to read relatively close to what the dyno was showing us. Still though, its not properly calibrated on the top end. we know we are hitting the 1/8 mile trap at 101 yet the data log shows 78. As far as 2Step though at the low end of 5-15MPH it looks pretty spot on. So the 2step should be activated while sitting there at 0 MPH but it is not.

AEM_NS
Offline
Last seen: 20 hours 16 min ago
Joined: 06/06/2014 - 09:31
Maybe you can email your cal

Maybe you can email your cal to emstech@aempower.com for us to test.  All the limiter functions have been bug free for a long time so it's likely a setting problem in your cal.

JamesL
Offline
Last seen: 3 years 3 months ago
Joined: 02/19/2015 - 07:35
Email sent

Email sent

AEM_NS
Offline
Last seen: 20 hours 16 min ago
Joined: 06/06/2014 - 09:31
Haven't had a chance to test

Haven't had a chance to test your cal yet but did take a look at it.  All GPIOs are assigned as general purpose outputs.  What exactly did this cal start as?  This looks like the test cal that gets loaded during QC testing in production.  You should probably start with one of our released base cals unless that's what you did and you set all your GPIOs to turn on at 1000 rpm for some reason.

JamesL
Offline
Last seen: 3 years 3 months ago
Joined: 02/19/2015 - 07:35
We started with a base cal

We started with a base cal suggested by one of your collegues. It came from the repository created when the software is installed. We made no edits to the outputs. It would have been one of the 60-2 cals. However, the unit was sent back to AEM when we were having connection issues with it. I honestly don't recall where we went from there because multiple laptops where used while trying to work out the connection issues before we sent it in. When we got it back, the connection issues where mostly fixed and I probably just started tunning based on the calibration that was DL'd from the unit believing it to be the same one that was on it when we sent it in. It seems like it would have had to be because I don;t recall reconfiguring it for the 60-2 crank signal, COP with no cam sensor.

AEM_NS
Offline
Last seen: 20 hours 16 min ago
Joined: 06/06/2014 - 09:31
Yeah, you definitely need to

Yeah, you definitely need to reload your original cal.  Also, you need to set the 2 Step C & M values in the wizard (select either soft, medium or hard cut).  Your cal has them zeroed out thus you get no 2 step limiter.  I copied your values into another cal running on a test bench and grounding GPIO7 makes the 2 step work so long as there's been a 2 step cut type selected.  

JamesL
Offline
Last seen: 3 years 3 months ago
Joined: 02/19/2015 - 07:35
Ok, I've already rebuilt the

Ok, I've already rebuilt the cal with a new base cal selection. And made the wizard selections you suggested. Is there anything in the Output configuration I need to address in the new base cal? Currently the Outputs are all blank in the "Configure Outputs" dialogue. I do have the 2Step Input set to GPIO7 Gnd=On. I may be suffering from a bit of ignorance as it applies to the context of defining and input vs. an output in this case. And what of the Drag Anti-Lag options? Can they be triggered by the same input event? i.e. grounding gpio7?

 

AEM_NS
Offline
Last seen: 20 hours 16 min ago
Joined: 06/06/2014 - 09:31
Ah well that's very strange.

A trigger intput isn't solely assignable to only one input so the state of GPIOX Gnd=On will trigger any and all functions assigned to it.  

**EDIT** Removed superfluous posts to clean up thread.

JamesL
Offline
Last seen: 3 years 3 months ago
Joined: 02/19/2015 - 07:35
Awesome..thanks :)

Awesome..thanks :)

Lucas_Harman
Offline
Last seen: 4 years 11 months ago
Joined: 06/11/2015 - 07:28
What was the resolution to

What was the resolution to the 2 step activation problem? I'm having a similar issue. I have GPIO7 assigned to the 2 step limiter, pin is enabled, gnd=on. I have gpio7 wire hooked to a momentary switch that switches to ground. No matter what I do the 2 step stays on the entire time. I have verified the switch functions properly by unhooking the main connector from the ems4 and checking continuity to ground from pin 16 through the switch to ground. I've gone over the settings in aem tuner for configure outputs and full options display. Any ideas on why it is staying on? Even when I disable the pin it stays on....HELP!

 

 

 

 

AEM_NS
Offline
Last seen: 20 hours 16 min ago
Joined: 06/06/2014 - 09:31
Go to the GPIOs tab.  Toggle

Go to the GPIOs tab.  Toggle the switch.  Does the analog voltage for GPIO7 change from high to low or vice versa when you toggle the switch?

Lucas_Harman
Offline
Last seen: 4 years 11 months ago
Joined: 06/11/2015 - 07:28
I switched the pin input to

I switched the pin input to 12v=on and moved the wire from a ground to a 12v connection and two step now works when I toggle the switch. Here is the weird thing...under the limiters tab you can watch it switch on and off but if you go to the GPIO tab it says ON and never changes. WTF am I doing wrong? Also another weird behavior now is when I press the 2 step,switch with key on, engine off, my auto meter tach jumps to 8k rpm and you can here a buzzing sound. Ever observed behavior like that before?

 

AEM_NS
Offline
Last seen: 20 hours 16 min ago
Joined: 06/06/2014 - 09:31
You absolutely should not be

You absolutely should not be inputting 12v into a GPIO.  12v=on is a logic statement - it does not mean that 12v should be used as a switch input into a GPIO.  What 12v=on means is that ground=off so when the GPIO voltage is low (0v/ground) the condition is off.  When the GPIO voltage is high (not 0v/ground), the condition is on.  You need to remove the 12v input immediately and either have a swith does goes to ground or a ground switch that goes open and let the pull up resistor in the EMS pull the voltage high.

Lucas_Harman
Offline
Last seen: 4 years 11 months ago
Joined: 06/11/2015 - 07:28
AEM_NS wrote:

AEM_NS wrote:

You absolutely should not be inputting 12v into a GPIO.  12v=on is a logic statement - it does not mean that 12v should be used as a switch input into a GPIO.  What 12v=on means is that ground=off so when the GPIO voltage is low (0v/ground) the condition is off.  When the GPIO voltage is high (not 0v/ground), the condition is on.  You need to remove the 12v input immediately and either have a swith does goes to ground or a ground switch that goes open and let the pull up resistor in the EMS pull the voltage high.

 

Wow, that is really confusing....why not call "12v=ON" a more accurate description of "ground=off"?

What is the most common way to wire the 2 step function then? I have a momentary push button switch on my steering wheel that is closed when it is depressed. I had  one wire to GPIO7 and the other to a ground, but this did not work, the 2 step was always on. I feel like I am taking a simple circuit and overthinking it to a point where I feel really stupid....help?

AEM_NS
Offline
Last seen: 20 hours 16 min ago
Joined: 06/06/2014 - 09:31
It's software logic created

It's software logic created by software engineers which aren't always logical in the human sense.  Go back to you original momentary switch to ground setup.  The first step is to make sure that the GPIO is switching on/off when the switch is pressed.  There are a few parts that make 2 Step work - you need to figure out which part isn't working.

Lucas_Harman
Offline
Last seen: 4 years 11 months ago
Joined: 06/11/2015 - 07:28
Is GPIO 7 normally a ground?

Is GPIO 7 normally a ground? I can probe pin 16 with my multimeter and put the other probe to ground, no continuity, depress the momentary switch and I have continuity. So the circuit works if the intent is to short pin 16 to ground. However the software does not recognize any change in the pin condition when I depress the switch. It just says the 2 step in on all the time. What should the switch input be set to?

AEM_NS
Offline
Last seen: 20 hours 16 min ago
Joined: 06/06/2014 - 09:31
I answered one of your

I answered one of your questions already in your OTHER THREAD.  I suggested that you make sure that the GPIO is switching on/off - you should do this by looking at the GPIO tab and making sure that the GPIO volts changes from 4v to 0v when you press the switch.  That would signify that the pin is actually pulling to ground.  The trigger logic would be GPIOX Gnd=On.  Are you sure that you don't have the GPIO being turned on (pulled to ground) by some other function in the cal?  That's what I suggested the OP check.

Lucas_Harman
Offline
Last seen: 4 years 11 months ago
Joined: 06/11/2015 - 07:28
I do appreciate your help!!

I do appreciate your help!! GPIO7 shows 0 volts whether I switch to ground or not. I double checked the wiring again by checking continuity from pin 16 to ground, and as expected, when I press the switch, it connects to ground.

I removed the ground wire completely and GPIO7 still shows 0 volts. Something is pulling it to ground regardless of my switch input. I have looked at the full options display list and do not see any other logic that would create this. Where else can I look for another function that may be influencing GPIO7?

AEM_NS
Offline
Last seen: 20 hours 16 min ago
Joined: 06/06/2014 - 09:31
Check Configure Outputs under

Check Configure Outputs under Tools.

Lucas_Harman
Offline
Last seen: 4 years 11 months ago
Joined: 06/11/2015 - 07:28
I checked there as well. I am

I checked there as well. I am going to move the 2 step input to GPIO5 and see how it responds.