fxsvelo
New here
I have a speed sensor mismatch between the hub (6 pulses per rev) and the controller (1 pulse per rev). The speed sensor setting in the controller is locked out and CAN NOT be changed.
The Bafang hub sensor uses 3.3 V logic so I have a 3.3 V Arduino Pro Mini that is programmed to look for a FALLING edge on the input signal, count 6 of them and then pull the output line LOW for 10 ms to match what the Bafang signal is.
This works correctly when tested with an input signal from a 555 timer at 4.8 Hz.
The problem is the temperature data “noise” on the dual sensor/temp lead is triggering extra pulses on the output.
How can I filter the data noise and just get speed sensor pulses?
I have:
Bafang G310 hub
King Meter head unit
Arduino Pro Mini 3.3 volt 8Mhz
The Bafang hub sensor uses 3.3 V logic so I have a 3.3 V Arduino Pro Mini that is programmed to look for a FALLING edge on the input signal, count 6 of them and then pull the output line LOW for 10 ms to match what the Bafang signal is.
This works correctly when tested with an input signal from a 555 timer at 4.8 Hz.
The problem is the temperature data “noise” on the dual sensor/temp lead is triggering extra pulses on the output.
How can I filter the data noise and just get speed sensor pulses?
I have:
Bafang G310 hub
King Meter head unit
Arduino Pro Mini 3.3 volt 8Mhz