|
Author |
Message |
steven_191 |
This post is not being displayed .
|
 steven_191 Nearly there...

Joined: 31 May 2009 Karma :   
|
 Posted: 12:52 - 12 May 2013 Post subject: Home made quickshift / Arduino version 2 |
 |
|
So anyone who might remember i started doing this some time again using a strain gauge that I cannibalised from a hand held digital scales.
this sort of worked but due to the need for amplifying the tiny signal, lack of 'off the shelf' parts and needing to mess around making a circuit board to suit everything, i gave up. Also would had to have done more than I wanted to on the gear linkage in order to get it going.
So anyway, since moving house and being lazy and not getting around to it, I recently went to the BSB at brands hatch and checked out how those guys do it. They all seemed to have a linear shaft driven sensor attached to, but not part of, the gear linkage. I liked this idea so done some research and found this. It was difficult to find something that wasnt a transducer, didnt need a 'supply voltage' and was small enough for what I wanted. It was however still £20 but this is cheaper than £200+ for a quickshift kit. So i thought fuck it, lets have a go.
the part is from RS and heres the datasheet for anyone who wants to look.
Its effectively a potentiometer but on a shaft linear type, rather than a rotating type.
I was considering doing it with a throttle position sensor, but again, the effort of trying to mount it and actuate it seemed more than i wouldve wanted to do.
https://docs-europe.electrocomponents.com/webdocs/002b/0900766b8002b95d.pdf
So ive written the code for an Arduino. The way I have it working is that it takes 5 readings of the sensors resting position and takes an average. This is just to account for any movement or wear and tear and also accounts for if I were to adjust the linkage. All I have to do it turn it off and on again and then its reset. This saves finding its position, then setting it manually.
This only other part that I wanted to add was the ability to trim the engine cut time by the use of another pot or pair of buttons but at the minute havent done this.
I do plan on simply cutting the power to the arduino if I want to not have the quickshift.
Heres the code
int POT = A0; // select the input pin for the potentiometer
int CutValue = 0; // variable for engine cut sensor value
int RunValue = 0; // variable for engine run sensor value
int PotValueX = 0; // variable for averaging the sensor reading to determine a value to cut the engine
int PotValue = 0; // variable to store current sensor reading
int CutTime = 500; // time to cut engine in milliseconds
int EngineCut = 13; // output for engine cut relay
boolean X = false; // boolean to store cut/run state
void setup() {
Serial.begin(9600);
pinMode(EngineCut, OUTPUT);
pinMode(POT, INPUT);
Serial.println("Hello Steven!");
delay(1000);
//take 5 readings of the current resting sensor position and make an average value
for (int i=0; i <=4 ; i++){
PotValueX = analogRead(POT);
CutValue = (CutValue + PotValueX); //take 5 readings and add them together
delay(50);
}
Serial.print("Pot Reading");
Serial.println(CutValue);
CutValue = (CutValue / 5); //divide the reading by 5 to get an average
CutValue = (CutValue + 50); //current position is the resting position of the sensor
//add a value in order to give room to move the sensor
RunValue = (CutValue - 2); //value below the cut valve to allow sensor to return to
//resting position - also give some hysteresis to the value
Serial.print("CutValue-");
Serial.print(CutValue);
Serial.print(" RunValue-");
Serial.print(RunValue);
Serial.print(" CutTime-");
Serial.println(CutTime);
digitalWrite(EngineCut, LOW);
}
void loop() {
PotValue = analogRead(POT); //read resting sensor value
Serial.print("PotValue - ");
Serial.println(PotValue);
if(PotValue > CutValue){
X = true; //boolean state for engine cut/run
}
if(PotValue < RunValue){
X = false; //CutValue and RunValue provide some hysteresis for enabling/disabling
} //the engine cut
if(X == true){
digitalWrite(EngineCut, HIGH);
delay(CutTime); //delay would normally be CutTime!!!!!!!!!!
}else if(X == false){
digitalWrite(EngineCut, LOW);
}
}
/*
average calculation helps to take a new reading each time the software runs
to account for any movement or wear and tear.
if the sensor value increases +10 above the resting reading, boolean X = true.
If the sensor reading is +8 above the resting reading, X = false.
If X is true, the engine is cut, delayed, then returned to a run state.
*/
and heres a picture of the current set up (not yet on the bike)
https://i1112.photobucket.com/albums/k493/steven_191/strain%20gauge%20quickshifter/2013-05-12132652_zpsc491394b.jpg
I have some ideas on how to mount and actuate it on the bike but the main problem will just be getting it in a fixed position where it has full throw up and down. I also have a few 3mm rose joints to link linkage arm and pot together to allow a slight amount of sideways movement.
(also a few alterations have been made so the descriptions in the software may not be 100% accurate) |
|
Back to top |
|
You must be logged in to rate posts |
|
 |
RhynoCZ |
This post is not being displayed .
|
 RhynoCZ Super Spammer

Joined: 09 Mar 2012 Karma :     
|
 Posted: 13:00 - 12 May 2013 Post subject: |
 |
|
Looks like a nice project
I once was thinking of quick shifter, but I wanted it to be a thumb button on the bars. Not the same, but still quicker than cutting the throttle.
I was young and stupid, well I'm still young  ____________________ '87 Honda XBR 500, '96 Kawasaki ZX7R P1, '90 Honda CB-1, '88 Kawasaki GPz550, MZ 150 ETZ
'95 Mercedes-Benz w202 C200 CGI, '98 Mercedes-Benz w210 E200 Kompressor |
|
Back to top |
|
You must be logged in to rate posts |
|
 |
steven_191 |
This post is not being displayed .
|
 steven_191 Nearly there...

Joined: 31 May 2009 Karma :   
|
 Posted: 21:55 - 12 May 2013 Post subject: |
 |
|
you mean like a push button kill switch or a button that will make it change gear for you?
one is cheap, the other requires expensive things  |
|
Back to top |
|
You must be logged in to rate posts |
|
 |
Legsy. |
This post is not being displayed .
|
 Legsy. Nova Slayer

Joined: 23 Dec 2008 Karma :     
|
|
Back to top |
|
You must be logged in to rate posts |
|
 |
RhynoCZ |
This post is not being displayed .
|
 RhynoCZ Super Spammer

Joined: 09 Mar 2012 Karma :     
|
|
Back to top |
|
You must be logged in to rate posts |
|
 |
steven_191 |
This post is not being displayed .
|
 steven_191 Nearly there...

Joined: 31 May 2009 Karma :   
|
|
Back to top |
|
You must be logged in to rate posts |
|
 |
steven_191 |
This post is not being displayed .
|
 steven_191 Nearly there...

Joined: 31 May 2009 Karma :   
|
|
Back to top |
|
You must be logged in to rate posts |
|
 |
Legsy. |
This post is not being displayed .
|
 Legsy. Nova Slayer

Joined: 23 Dec 2008 Karma :     
|
|
Back to top |
|
You must be logged in to rate posts |
|
 |
steven_191 |
This post is not being displayed .
|
 steven_191 Nearly there...

Joined: 31 May 2009 Karma :   
|
|
Back to top |
|
You must be logged in to rate posts |
|
 |
Turkish |
This post is not being displayed .
|
 Turkish Crazy Courier

Joined: 09 May 2012 Karma :  
|
|
Back to top |
|
You must be logged in to rate posts |
|
 |
ms51ves3 |
This post is not being displayed .
|
 ms51ves3 Super Spammer

Joined: 07 Jun 2007 Karma :     
|
 Posted: 11:48 - 21 May 2013 Post subject: |
 |
|
Turkish wrote: | Huh. This comment got me thinking a bit. Here's how it could work.
A N/C DPST relay takes one wire from each coil pack low voltage feed. I'm assuming 2 coils.
Pass button wired to the coil of the relay.
Mode of operation: Push pass, relay opens which cuts ignition & revs. Release pass and normal operation resumes.
Would be interesting to try it  |
Would it not be easier to just rewire the killswitch? |
|
Back to top |
|
You must be logged in to rate posts |
|
 |
Turkish |
This post is not being displayed .
|
 Turkish Crazy Courier

Joined: 09 May 2012 Karma :  
|
|
Back to top |
|
You must be logged in to rate posts |
|
 |
RhynoCZ |
This post is not being displayed .
|
 RhynoCZ Super Spammer

Joined: 09 Mar 2012 Karma :     
|
 Posted: 12:22 - 21 May 2013 Post subject: |
 |
|
Well well well, it seems that my idea of a cheap version of quick shifter comes back on again
What about just kill the coil for a while, I'm not good at electronics but that's what the proper quick shifter does, right?
Find the power source to the coil, cut those wires put there a switch  ____________________ '87 Honda XBR 500, '96 Kawasaki ZX7R P1, '90 Honda CB-1, '88 Kawasaki GPz550, MZ 150 ETZ
'95 Mercedes-Benz w202 C200 CGI, '98 Mercedes-Benz w210 E200 Kompressor |
|
Back to top |
|
You must be logged in to rate posts |
|
 |
steven_191 |
This post is not being displayed .
|
 steven_191 Nearly there...

Joined: 31 May 2009 Karma :   
|
|
Back to top |
|
You must be logged in to rate posts |
|
 |
lihp |
This post is not being displayed .
|
 lihp World Chat Champion
Joined: 22 Sep 2010 Karma :   
|
|
Back to top |
|
You must be logged in to rate posts |
|
 |
steven_191 |
This post is not being displayed .
|
 steven_191 Nearly there...

Joined: 31 May 2009 Karma :   
|
|
Back to top |
|
You must be logged in to rate posts |
|
 |
lihp |
This post is not being displayed .
|
 lihp World Chat Champion
Joined: 22 Sep 2010 Karma :   
|
|
Back to top |
|
You must be logged in to rate posts |
|
 |
steven_191 |
This post is not being displayed .
|
 steven_191 Nearly there...

Joined: 31 May 2009 Karma :   
|
|
Back to top |
|
You must be logged in to rate posts |
|
 |
Legsy. |
This post is not being displayed .
|
 Legsy. Nova Slayer

Joined: 23 Dec 2008 Karma :     
|
|
Back to top |
|
You must be logged in to rate posts |
|
 |
steven_191 |
This post is not being displayed .
|
 steven_191 Nearly there...

Joined: 31 May 2009 Karma :   
|
 Posted: 15:29 - 23 May 2013 Post subject: |
 |
|
https://docs-europe.electrocomponents.com/webdocs/002b/0900766b8002b95d.pdf
datasheet says operational force 200-750g. doesnt say anything about lateral forces.
The longer the linkage is the less lateral force will be applied. Also if I mount the arm on the shaft at 90degrees to the sensor then this will also reduce the lateral force.
basically going to make do with it as best I can. This is the only sensor of this type to to this job in this way without spending nearly £100 on a transducer and that would need a 24V supply.
The other option, which if this fails I may revisit later, was to use a TPS that is also rotary and either mount it on the shaft or mount it remotely. |
|
Back to top |
|
You must be logged in to rate posts |
|
 |
Legsy. |
This post is not being displayed .
|
 Legsy. Nova Slayer

Joined: 23 Dec 2008 Karma :     
|
|
Back to top |
|
You must be logged in to rate posts |
|
 |
steven_191 |
This post is not being displayed .
|
 steven_191 Nearly there...

Joined: 31 May 2009 Karma :   
|
|
Back to top |
|
You must be logged in to rate posts |
|
 |
lihp |
This post is not being displayed .
|
 lihp World Chat Champion
Joined: 22 Sep 2010 Karma :   
|
|
Back to top |
|
You must be logged in to rate posts |
|
 |
steven_191 |
This post is not being displayed .
|
 steven_191 Nearly there...

Joined: 31 May 2009 Karma :   
|
|
Back to top |
|
You must be logged in to rate posts |
|
 |
Old Thread Alert!
The last post was made 12 years, 89 days ago. Instead of replying here, would creating a new thread be more useful? |
 |
|
|