Hello,
I have developed a personal project on my bicycle, as follow :
- I have equipped my bicycle with an electrical motor associated to a programmable controller.
- I am using a µC RaspberryPi-Pico to drive the programmable controller.
The use of the µC helps me driving the engine exactly as expected, based on some data collected from some Hall sensors and other push buttons. Things are working well : I do obtain what I am expecting ...
Note: the electrical signal from Pico to the controller is the following : Pico output per PWM signal => optocoupler PC817 => Low pass filter => controller.
However, things go wrong when I want to visualise the parameters with an LCD. The LCD works well, at least until the engine starts running. At this point, either the LCD freezes, or it displays nothing readable.
I temporary fixed the concern by fully segregating the electrical circuit of the Pico from the electrical engine / battery. I am not an expert in electronics, therefore I failed to use the 36V battery power to properly supply the Pico circuit: some parasite signals makes things wrong.
The only solution I found to fix the concern is the following :
1) the Pico + the Hall sensors + LCD + optocoupler LED are powered by a dedicated 9V battery + LM7805. The 36V battery which powers the engine/controller, also powers the downstream part of the optocoupler (transistor side).
2) the ground from Pico supply and 36V battery are separated.
The question is relative to filtering the 36V reduced to 5V. I failed to filter it properly to avoid any disturbance on my LCD.
Even using the two separate electric powers, but connecting the grounds, generates unacceptable disturbances.
Can anyone help me to solve the problem ?
thank you
PS1 : I tried using a DC-DC (LM2596) to get 5V. Disturbances are present.
PS2 : My LCD is a A2004. I removed the built-in pullup resistor, and replaced it with a specific pullup connected to 3.3V in my circuit.
I have developed a personal project on my bicycle, as follow :
- I have equipped my bicycle with an electrical motor associated to a programmable controller.
- I am using a µC RaspberryPi-Pico to drive the programmable controller.
The use of the µC helps me driving the engine exactly as expected, based on some data collected from some Hall sensors and other push buttons. Things are working well : I do obtain what I am expecting ...
Note: the electrical signal from Pico to the controller is the following : Pico output per PWM signal => optocoupler PC817 => Low pass filter => controller.
However, things go wrong when I want to visualise the parameters with an LCD. The LCD works well, at least until the engine starts running. At this point, either the LCD freezes, or it displays nothing readable.
I temporary fixed the concern by fully segregating the electrical circuit of the Pico from the electrical engine / battery. I am not an expert in electronics, therefore I failed to use the 36V battery power to properly supply the Pico circuit: some parasite signals makes things wrong.
The only solution I found to fix the concern is the following :
1) the Pico + the Hall sensors + LCD + optocoupler LED are powered by a dedicated 9V battery + LM7805. The 36V battery which powers the engine/controller, also powers the downstream part of the optocoupler (transistor side).
2) the ground from Pico supply and 36V battery are separated.
The question is relative to filtering the 36V reduced to 5V. I failed to filter it properly to avoid any disturbance on my LCD.
Even using the two separate electric powers, but connecting the grounds, generates unacceptable disturbances.
Can anyone help me to solve the problem ?
thank you
PS1 : I tried using a DC-DC (LM2596) to get 5V. Disturbances are present.
PS2 : My LCD is a A2004. I removed the built-in pullup resistor, and replaced it with a specific pullup connected to 3.3V in my circuit.