Traction Control Mod

~TABASCO~

RIDE ON ADV is what I do !
Founding Member
2011 Site Supporter
2012 Site Supporter
2013 Site Supporter
2014 Site Supporter
Vendor
Joined
Apr 4, 2011
Messages
7,386
Location
TEXAS
This is outstanding.... the possibility of it staying in the same chosen location, and the ability to change on the fly will make me very happy....... ::015:: ::015:: ::015::
 

kenbro

New Member
Joined
Jun 16, 2013
Messages
11
Location
Orange County, CA
tpak said:
ken nice work! - care to share the source code you loaded into the micro controller? i'm assuming thats what you did after fiddling with the arduino?

I'm happy to share it for personal, non commercial, use. I would just ask that you not, post or share it, without my consent. I'm new to the arduino IDE so it may not be the prettiest code, and I have found some inconsistent behavior if you push the button while moving, the controller gets out of sync with the bike and next time you start the bike it goes into the wrong mode. This problem should go away if I am able to switch it on the fly.

I have hacked into the wiring harness between the traction control ECU and the ECU and am able to manipulate the speed signals to the ECU. My current setup is throwing fault codes to the ECU that disables traction control. I'm confident I can work around these problems though.

PM me if you are still interested in the arduino sketch and I will send it to you. I have several different versions. I started on a breadboard with a push button and 3 LEDs to work out the logic. The code is commented pretty well but I didn't make any schematics of the breadboard. You could figure it out if you are familiar with arduino and electronics or you have internet access. This is the first project I have done. A few months ago this last paragraph would have made no sense at all to me.

Ken
 

Karson

Active Member
2012 Site Supporter
2013 Site Supporter
2014 Site Supporter
Joined
Feb 26, 2012
Messages
2,001
Location
IOWA
If the arduino code gets shared, kenbro immediately assumes "Tenere Deity" status ::022::
 

tubebender

Active Member
Founding Member
2011 Site Supporter
2012 Site Supporter
2013 Site Supporter
2014 Site Supporter
Joined
Jan 6, 2011
Messages
656
Location
Oceanside, CA
Very cool, Kenbro. I figured sooner or later someone would come up with something.

A few questions.

Does the TC revert back to TC1 after a power cycle (key off)?
And, if it does, have you considered a 3 position switch that would set a state based on the input? [high, low, low = TC1, etc.]
This is assuming the ECU is just counting the button pushes.
Logically, I think this would only work on initial key on.

Are you using the voltage converter to step down and filter battery voltage?

Inquiring minds want to know!
 

kenbro

New Member
Joined
Jun 16, 2013
Messages
11
Location
Orange County, CA
tubebender said:
Very cool, Kenbro. I figured sooner or later someone would come up with something.

A few questions.

Does the TC revert back to TC1 after a power cycle (key off)?
No.
tubebender said:
Are you using the voltage converter to step down and filter battery voltage?
Yes, I read a lot about automotive voltage irregularities that can damage or interfere with electronics that are not specifically designed for it.

tubebender said:
Inquiring minds want to know!
 

patrickg450

Well-Known Member
Joined
Jun 20, 2012
Messages
2,074
Location
Memphis TN
kenbro said:

yea I was, sometimes we do stuff at work and I wonder who thinks this up? All these engineers and here I sit..........

We dont use breadboards, most of the time we draw crap out then find something close to what we need and make mods. Sometimes it works sometimes it smokes. You defiantly have talent, keep at it. My question is how to keep it latching so when you cycle the key. An on the fly makes sense to me, but the ability to duplicate it from 1 of 3 possibilities that makes me think.
 

kenbro

New Member
Joined
Jun 16, 2013
Messages
11
Location
Orange County, CA
patrickg450 said:
yea I was, sometimes we do stuff at work and I wonder who thinks this up? All these engineers and here I sit..........

We dont use breadboards, most of the time we draw crap out then find something close to what we need and make mods. Sometimes it works sometimes it smokes. You defiantly have talent, keep at it. My question is how to keep it latching so when you cycle the key. An on the fly makes sense to me, but the ability to duplicate it from 1 of 3 possibilities that makes me think.
There is actually 4 possible states TC 1-TC on, TC 2-TC on, TC 1-TC off, and TC 2-TC off, it has to remember the mode it was in when you turn TC off so it will go back to the same mode when you turn the TC back on. I store these values on the micro controller in the EEPROM, aka the on board memory. Then when bike is key is cycled the bike goes back to TC 1-TC on, then the controller simulates the appropriate button pushes to change to the proper mode. Simple right? ???
 

patrickg450

Well-Known Member
Joined
Jun 20, 2012
Messages
2,074
Location
Memphis TN
well yea it sounds simple, my big question is keeping the code on the controller. I guess the next auto-comparison would be a radio. How does it keep the stations/settings in memory? In the old days there was a constant hot wire. Now they have caps and batteries on board.


Back to the topic, my best guess if I were trying to duplicate would be eeproms. Then if there were a glitch they can be pulled out and rewritten.
 

patrickg450

Well-Known Member
Joined
Jun 20, 2012
Messages
2,074
Location
Memphis TN
question:


so how does it know where it was before you kill power? will it send a confirmation code? once read then the LED moves to the corresponding mode?
 
Top