Go Back  Bike Forums > Bike Forums > Bicycle Mechanics
Reload this Page >

Hacked di2 issue where not getting clean shifts

Search
Notices
Bicycle Mechanics Broken bottom bracket? Tacoed wheel? If you're having problems with your bicycle, or just need help fixing a flat, drop in here for the latest on bicycle mechanics & bicycle maintenance.

Hacked di2 issue where not getting clean shifts

Thread Tools
 
Search this Thread
 
Old 04-12-13, 11:02 AM
  #1  
Senior Member
Thread Starter
 
Join Date: Jul 2007
Posts: 87
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
Hacked di2 issue where not getting clean shifts

I purchased some of the DigiKey momentary switches, https://www.digikey.com/...t-detail/en/MTG72AD2 I originally used with Ultegra Di2 and they worked without a problem on my P4.

I recently purchased a P5 and built the bike with Di2 7970 and used the DigiKey switches. Everything is stock besides the cable splices on the front wire harness and the Digikey switches. The problem is that I can not get clean shifting in the rear. The shift will happen but not stop. The rear derailleur will continue to engage on it's own and make additional, random, shifts. I can hear it continue to engage when the Digikey switch is in an open position.

I am curious if anyone has run into this problem. I have not done much debugging on this yet. It is only a problem on the rear and not the front. It seems to me it could be a couple of problems

1) There is a short of some kind in my wiring causing the issue. I think this is most likely. But I have done many, many wire splices and never had a problem before.
2) These momentary switches work find with Ultegra Di2 but are not compatible with the old (7970) Dura Ace. The thinking being that the little black boxes that I harvested cleanup the signal from these switches to only send one shift to the rear derailleur with Ultegra.
3) The rear derailleur is defective. I actually believe this to be the most unlikely but you never know.

I am curious if anyone else has ever run into this issue? Any tips appreciated.

What I plan on doing

1) Disconnect the DigiKey switches and manually short the wires and see what happens with shifting. If this fixes it I plan on swapping the front and rear Digikey shifters and see if this helps. If this does not help then undo my wire splices and try the same thing with the wires directly out of the front wire harness. If still have issue with wires directly out of the front wire harness then I have a tough decision. Either replace everything with stock so purchase the Shimano front shifters and a new front wire harness that has not had the wires cut. Or just replace the rear derallieur. Thoughts?

2) The other option is just replace the 7970 with my Ultegra Di2 which I am not really using. But this would require me to re-cable the bike. Move the 7970 to different bike.

Thanks for any help in advance!
bartturner is offline  
Old 04-12-13, 11:20 AM
  #2  
Senior Member
 
Join Date: Mar 2013
Location: NW UK
Posts: 418

Bikes: 1992 Marin Eldridge Grade, 2007 Kona PHD and 199? Trek 1000 (current build project)

Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
Hmm - I don't suppose you have, or have access to an oscilloscope, do you?

It sounds like it would be interesting to see what the actuation of the originally-specced Shimano switch looks like plotted out...
Continuity is offline  
Old 04-12-13, 11:34 AM
  #3  
Senior Member
 
wphamilton's Avatar
 
Join Date: Apr 2011
Location: Alpharetta, GA
Posts: 15,280

Bikes: Nashbar Road

Mentioned: 71 Post(s)
Tagged: 0 Thread(s)
Quoted: 2934 Post(s)
Liked 341 Times in 228 Posts
Sounds like your switches need some de-bouncing, from a general electronics perspective.
wphamilton is offline  
Old 04-12-13, 11:50 AM
  #4  
What's a bike?
 
adclark's Avatar
 
Join Date: Sep 2009
Location: USA
Posts: 611

Bikes: Bianchi Veloce

Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Likes: 0
Liked 1 Time in 1 Post
Originally Posted by wphamilton
Sounds like your switches need some de-bouncing, from a general electronics perspective.
This was my first thought too, but I don't know much about how the Di2 works. I can say from experience with a microcontroller though that if you don't have anything setup to debounce a switch, you will probably read several button presses every time you press it.
adclark is offline  
Old 04-12-13, 12:23 PM
  #5  
Senior Member
 
Looigi's Avatar
 
Join Date: Dec 2010
Posts: 8,951
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 14 Post(s)
Likes: 0
Liked 13 Times in 12 Posts
Input can be edge sensed / interrupt driven or polled. Either way, it's not uncommon to debounce in software/firmware rather than use a hardware debounce. (e.g. 3 successive reads of closed for a make and 3 successive reads of open for a break). I don't know how the Di systems are set up. Have you disected or know what's inside the Shimano Di switches themselves, what type they are (SS or mechanical?), any additional components?
Looigi is offline  
Old 04-12-13, 02:58 PM
  #6  
working on my sandal tan
 
ThermionicScott's Avatar
 
Join Date: Aug 2011
Location: CID
Posts: 22,629

Bikes: 1991 Bianchi Eros, 1964 Armstrong, 1988 Diamondback Ascent, 1988 Bianchi Premio, 1987 Bianchi Sport SX, 1980s Raleigh mixte (hers), All-City Space Horse (hers)

Mentioned: 98 Post(s)
Tagged: 0 Thread(s)
Quoted: 3871 Post(s)
Liked 2,568 Times in 1,579 Posts
This may not be relevant at all, but if I were to hack Di2, it would be to add some kind of analog/"friction" mode so that I could always adjust my shifts from the cockpit.
__________________
Originally Posted by chandltp
There's no such thing as too far.. just lack of time
Originally Posted by noglider
People in this forum are not typical.
RUSA #7498
ThermionicScott is offline  
Old 04-12-13, 04:32 PM
  #7  
Senior Member
 
Join Date: Apr 2009
Location: New Rochelle, NY
Posts: 38,689

Bikes: too many bikes from 1967 10s (5x2)Frejus to a Sumitomo Ti/Chorus aluminum 10s (10x2), plus one non-susp mtn bike I use as my commuter

Mentioned: 140 Post(s)
Tagged: 1 Thread(s)
Quoted: 5772 Post(s)
Liked 2,563 Times in 1,420 Posts
Yo, This is a bike mechanics forum. You need an electrician.

As electronic shifting proliferates, and there more DIY done with it, I wouldn't be surprised if they broke out a separate electronic shift sub-forum.

Sorry I can't help you. I'm familar with the mechanical aspects of Di2, but have no idea of the electronic logic that controls it.
__________________
FB
Chain-L site

An ounce of diagnosis is worth a pound of cure.

Just because I'm tired of arguing, doesn't mean you're right.

“One accurate measurement is worth a thousand expert opinions” - Adm Grace Murray Hopper - USN

WARNING, I'm from New York. Thin skinned people should maintain safe distance.
FBinNY is offline  
Old 04-13-13, 08:50 AM
  #8  
Senior Member
 
Looigi's Avatar
 
Join Date: Dec 2010
Posts: 8,951
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 14 Post(s)
Likes: 0
Liked 13 Times in 12 Posts
Originally Posted by FBinNY
Yo, This is a bike mechanics forum. You need an electrician...
or possibly a programmer... Bikes now comprise mechanics, electronics, and software...

Back in the day I used to be able to work on my car, then they became "computerized", but at least I could work on my motorcycle, but now they're computerized too.
Looigi is offline  
Old 04-13-13, 09:02 AM
  #9  
Senior Member
 
wphamilton's Avatar
 
Join Date: Apr 2011
Location: Alpharetta, GA
Posts: 15,280

Bikes: Nashbar Road

Mentioned: 71 Post(s)
Tagged: 0 Thread(s)
Quoted: 2934 Post(s)
Liked 341 Times in 228 Posts
Originally Posted by Looigi
or possibly a programmer... Bikes now comprise mechanics, electronics, and software...
Software debouncing is a little trickier than you'd think at first grasp. Code using the obvious delay-and-sample schemes might work fine after tweaking for the switches used but fail for other switches. If the DI2 is using sw debouncing I'd lay odds that this is the problem. Either way it's probably a lot easier to add a debouncing circuit than hacking the DI2 code.

Originally Posted by ThermionicScott
This may not be relevant at all, but if I were to hack Di2, it would be to add some kind of analog/"friction" mode so that I could always adjust my shifts from the cockpit.
Given the cost of Di2, I'd want it to trim the shifts automatically. A sensor of some kind to know precisely where the chain is. I'll bet it does move off a bit after a shift already though.

Last edited by wphamilton; 04-13-13 at 09:06 AM.
wphamilton is offline  
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
colombo357
Tandem Cycling
13
09-27-17 04:28 PM
palmgreens
Road Cycling
15
05-10-16 12:17 AM
2manybikes
Bicycle Mechanics
1
01-24-15 12:33 PM
lesiz
Bicycle Mechanics
6
02-19-14 01:00 PM
jls209
Road Cycling
76
07-05-12 05:21 PM

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Contact Us - Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service -

Copyright © 2024 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.