From: Jan "Yenya" Kasprzak Date: Tue, 5 Mar 2013 12:54:34 +0000 (+0100) Subject: Handlebar switches X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?p=bike-lights.git;a=commitdiff_plain;h=b643acf48495199cc7b0d1bfdacbd9921cab4fde Handlebar switches I have decided to implement a brake light, which I want to trigger using Hall-effect sensor mounted in the brake lever. Unfortunately I still have only three wires for two switches and a Hall-effect sensor, so I would have to change the digital switch readings (on/off) to ADC readings (voltages selected using voltage split on resistors). Here is the schematics for the whole handlebar electronics, and the symbol file and datasheet for the Honeywell SS341RT Hall-effect sensor. --- diff --git a/datasheets/ss341rt.pdf b/datasheets/ss341rt.pdf new file mode 100644 index 0000000..f640016 Binary files /dev/null and b/datasheets/ss341rt.pdf differ diff --git a/schematics/hall-1.sym b/schematics/hall-1.sym new file mode 100644 index 0000000..8a0caa7 --- /dev/null +++ b/schematics/hall-1.sym @@ -0,0 +1,51 @@ +v 20121123 2 +P 600 900 600 700 1 0 0 +{ +T 500 750 5 6 1 1 0 0 1 +pinnumber=1 +T 800 1050 5 6 0 0 0 0 1 +pinseq=1 +T 700 750 5 6 0 1 0 0 1 +pinlabel=+ +T 800 950 5 6 0 0 0 0 1 +pintype=pas +} +P 600 300 600 100 1 0 1 +{ +T 500 150 5 6 1 1 0 0 1 +pinnumber=3 +T 800 250 5 6 0 0 0 0 1 +pinseq=3 +T 700 150 5 6 0 1 0 0 1 +pinlabel=- +T 800 150 5 6 0 0 0 0 1 +pintype=pas +} +P 200 500 400 500 1 0 0 +{ +T 300 550 5 6 1 1 0 0 1 +pinnumber=2 +T 100 1050 5 6 0 0 0 0 1 +pinseq=2 +T 200 350 5 6 0 1 0 0 1 +pinlabel=Out +T 100 950 5 6 0 0 0 0 1 +pintype=out +} +T 900 500 8 10 1 1 0 0 1 +refdes=U? +T 1500 1100 9 10 0 0 0 0 1 +device=SS34x +T 1500 900 9 10 0 0 0 0 1 +description=Hall-effect sensor +T 1500 300 9 10 0 0 0 0 1 +footprint=SOT-23 +T 1500 700 9 10 0 0 0 0 1 +author=Jan "Yenya" Kasprzak +T 1500 100 9 10 0 0 0 0 1 +datasheet=http://sensing.honeywell.com/honeywell-sensing-ss340rt-ss440r%20series-productsheet.pdf +T 1500 500 9 10 0 0 0 0 1 +dist-license=GPL 2 +B 400 300 400 400 3 0 0 0 -1 -1 0 -1 -1 -1 -1 -1 +L 500 600 700 400 3 0 0 0 -1 -1 +L 700 600 500 400 3 0 0 0 -1 -1 diff --git a/schematics/handlebar.sch b/schematics/handlebar.sch new file mode 100644 index 0000000..6eafd25 --- /dev/null +++ b/schematics/handlebar.sch @@ -0,0 +1,99 @@ +v 20121123 2 +C 40000 40000 0 0 0 title-B.sym +C 49900 44900 1 0 0 hall-1.sym +{ +T 50800 45400 5 10 1 1 0 0 1 +refdes=U1 +T 50800 45200 5 10 1 1 0 0 1 +device=SS34x +T 51400 45200 5 10 0 0 0 0 1 +footprint=SOT-23 +T 50800 45000 5 10 1 1 0 0 1 +description=Hall-effect sensor +} +C 49100 46500 1 270 0 switch-spst-1.sym +{ +T 49800 46100 5 10 0 0 270 0 1 +device=SPST +T 49400 46200 5 10 1 1 270 0 1 +refdes=S2 +} +C 48300 46500 1 270 0 switch-spst-1.sym +{ +T 49000 46100 5 10 0 0 270 0 1 +device=SPST +T 48600 46200 5 10 1 1 270 0 1 +refdes=S1 +} +C 45800 45900 1 0 0 connector3-1.sym +{ +T 47600 46800 5 10 0 0 0 0 1 +device=CONNECTOR_3 +T 45800 47000 5 10 1 1 0 0 1 +refdes=CONN1 +} +C 49000 47800 1 270 0 resistor-2.sym +{ +T 49350 47400 5 10 0 0 270 0 1 +device=RESISTOR +T 49300 47600 5 10 1 1 270 0 1 +refdes=R1 +T 49300 47300 5 10 1 1 270 0 1 +value=1M5 +} +C 49000 45500 1 270 0 resistor-2.sym +{ +T 49350 45100 5 10 0 0 270 0 1 +device=RESISTOR +T 49300 45300 5 10 1 1 270 0 1 +refdes=R2 +T 49300 45000 5 10 1 1 270 0 1 +value=300K +} +C 49800 46500 1 270 0 resistor-2.sym +{ +T 50150 46100 5 10 0 0 270 0 1 +device=RESISTOR +T 50100 46500 5 10 1 1 270 0 1 +refdes=R3 +T 50100 46200 5 10 1 1 270 0 1 +value=150K +} +N 47900 46400 47900 48000 4 +N 47900 48000 50500 48000 4 +{ +T 46400 46500 5 10 1 1 0 0 1 +netname=PA3 (SW2/+5V) +} +N 47500 46100 47500 44400 4 +N 47500 44400 50500 44400 4 +{ +T 46400 46200 5 10 1 1 0 0 1 +netname=GND +} +N 50500 48000 50500 45800 4 +N 50500 45000 50500 44400 4 +N 47500 46700 49900 46700 4 +{ +T 46400 46800 5 10 1 1 0 0 1 +netname=PA4 (SW1/ADC3) +} +N 48300 46700 48300 46500 4 +N 48300 45700 48300 44400 4 +N 49100 48000 49100 47800 4 +N 49900 45600 49900 45400 4 +N 49900 45400 50100 45400 4 +N 49900 46700 49900 46500 4 +N 49100 46700 49100 46900 4 +N 49100 45700 49100 45500 4 +N 49100 44600 49100 44400 4 +T 50900 41000 9 16 1 0 0 0 1 +http://www.fi.muni.cz/~kas/bike-lights/ +T 50500 40700 9 10 1 0 0 0 1 +Distributable under the terms of GNU General Public LIcense, version 2 +T 54200 40200 9 14 1 0 0 0 1 +Jan "Yenya" Kasprzak +N 47500 46400 47900 46400 4 +N 49100 46700 49100 46500 4 +T 45700 48600 9 24 1 0 0 0 1 +Handlebar buttons & brake sensor