1-wire gear position sensor for cars: Critique my circuit

All sensor specific discussions! Temperature, pressure, steering angle, brake and throttle, etc. Post adaptations of OEM-style sensors, and also your clever DIY hacks and custom designs here too!

Moderators: JeffC, rdoherty, stieg

Post Reply
GameboyRMH
Posts: 55
Joined: Mon Jan 07, 2013 10:45 pm

1-wire gear position sensor for cars: Critique my circuit

Post by GameboyRMH »

I got this idea after hearing of the very convenient factory sensor on neoraptor's bike. Here's the circuit:

Image

The switches are magnetic and can be triggered by the shifter itself or the levers on a transaxle (so they're mechanically locked out such that only one can be closed at a time). The resistance values here should give a ~0.5v difference in the signal between gears. Looks good?

dimondjack
Posts: 101
Joined: Tue Jan 15, 2013 1:37 pm

Post by dimondjack »

Yep, but I think you'll get less than a 0.5v difference per gear. My quick calcs said that you are closer to 0.4v for the first three. You could adjust your resistor values to make it exactly 0.5v if you are interested in that.

That said, you'll be fine with this setup.

GameboyRMH
Posts: 55
Joined: Mon Jan 07, 2013 10:45 pm

Post by GameboyRMH »

I'm interested, what resistance value did you use in the calculations?

dimondjack
Posts: 101
Joined: Tue Jan 15, 2013 1:37 pm

Post by dimondjack »

I just did the very rough calcs (I did them on paper, didn't get to a second decimal) previously. Here are the full calcs as I see them:

1- 5v - 1.5/16.6*5v = 4.55v
(delta of 0.38v)
2 - 3/18.1*5v = 4.17v
(delta of 0.32v)
3 - 4.5/19.6*5v = 3.85v
(delta of 0.27v)
4 - 6/21.1*5 = 3.58v
(delta of 0.25v)
5 - 7.6/22.7*5 = 3.33v
(delta of 0.2)
Rev - 9/24.1*5 = 3.13v

To solve for the resistances to get you a desired voltage, you can use:

Req. resistance = (15.1*(5-DV))/(DV)

Where DV is your desired voltage.

dimondjack
Posts: 101
Joined: Tue Jan 15, 2013 1:37 pm

Post by dimondjack »

I just edited my post; I was doing a shortcut and all of my formulas were for the desired voltage drop. I changed it all to be the voltage you want the system to actually read.

GameboyRMH
Posts: 55
Joined: Mon Jan 07, 2013 10:45 pm

Post by GameboyRMH »

Thanks, my electronics experience is mostly digital. My only experience with analog circuits is making power supplies for the digital circuits :P

Recalculated resistor values:

Image

dimondjack
Posts: 101
Joined: Tue Jan 15, 2013 1:37 pm

Post by dimondjack »

Looks good! You should get a nice 0.5v drop for each gear.

brentp
Site Admin
Posts: 6282
Joined: Wed Jan 24, 2007 6:36 am

Post by brentp »

This is great! Could we add this to the wiki?
Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter

dimondjack
Posts: 101
Joined: Tue Jan 15, 2013 1:37 pm

Post by dimondjack »

Brent,

Are you referring to the sensor information (model, etc), or the information on how to calculate voltages (my replies)?

brentp
Site Admin
Posts: 6282
Joined: Wed Jan 24, 2007 6:36 am

Post by brentp »

I was referring to the whole thing. Also need to review neoraptor's sensor information.
Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter

GameboyRMH
Posts: 55
Joined: Mon Jan 07, 2013 10:45 pm

Post by GameboyRMH »

Hey, sorry that I missed your replies! Yes feel free to add this to the wiki.

Post Reply