nikens
Junior Member level 2
I am making a bike gear indicator circuit that would based on a 3 wire hall effect speed sensor and a 2 wire magnetic coil RPM sensor readings and I had allready opened a topic "PIC multiple interrupts" where user "Tahmid" was wery helpful explaining things.
At the beggining I didn't really know how to deal with the sensor signals and I learnt different approaches along the research.
I am now posting my rough circuit design and would need your help if I am using right approach.
Please mind only the diagram in a red square (circuit for hall effect and magnetic speed sensor), since power circuit and other inputs, outputs are not important right now (althow I don't mind if you find some error in a circuit - I won't be using a reset circuit or outside osscilator, also both NPNs will be connected to portB pins, where individual pull ups will be used).
My way of dealing with the AC signal that is generated in a RPM magnetic sensor when gear tooth pases the coil would be, to first rectify AC using a diode and then drive the signal through MOSFET rather than BJT (I could also use optocoupler). Signal from the MOSFET would then be connected to one of the PIC's CCP schmit triggered input. I have choosed 16F1827 since it offers more than one CCP input.
At the beggining I didn't really know how to deal with the sensor signals and I learnt different approaches along the research.
I am now posting my rough circuit design and would need your help if I am using right approach.
Please mind only the diagram in a red square (circuit for hall effect and magnetic speed sensor), since power circuit and other inputs, outputs are not important right now (althow I don't mind if you find some error in a circuit - I won't be using a reset circuit or outside osscilator, also both NPNs will be connected to portB pins, where individual pull ups will be used).
My way of dealing with the AC signal that is generated in a RPM magnetic sensor when gear tooth pases the coil would be, to first rectify AC using a diode and then drive the signal through MOSFET rather than BJT (I could also use optocoupler). Signal from the MOSFET would then be connected to one of the PIC's CCP schmit triggered input. I have choosed 16F1827 since it offers more than one CCP input.