- The problem -
Hi everyone, i am building a car gauge with an arduino uno, a mcp2515 and a display. Everything was working fine until i connected the LM2596(standard buck converter) that powers the arduino trought the jack from the car fuse box. This gave me an "Error initializing MCP2515..." error message on the screen. Thing tht does not happen when the arduino is powered via a power supply.
- the cause -
I managed to reproduce the error. When there is noise in the power supply line, when the mcp has to initialize, it fails.
If i connect my project to a regolable power supply set at 13v, it powers up and everything works. If i start playing with the voltage know, introducing noise, everything still works fine. So i se the voltage back to 13v, disconnect the project from the power supply and tada i get "Error initializing MCP2515...". Error shows up also when connecting the project to the power supply while playing with the voltage knob.
- how to return to normal operating -
so, we said that if i connect my project to the power supply when the voltage is (now) stable, the project says "Error initializing MCP2515...". This happens moltiple times if i disconnect and reconnect the project to the power supply, afer having exposed it to noisy voltage.
I tried waiting some time (about 10 minutes) does nothing. Error persists.
edit - waiiting 25 minutes has fixed it. -
what does immediately fix the error is setting the power supply to 1.1V (the minimum i can) and slowly (like 1V/s) increasing the voltage. This immedistely fixes the issue and the project returns to normal operating behavour.
- in search of the fix -
i tried various things to make the project work with the noisy car voltage. None seems th have made anything in the direction of solving the issue.
- adding a 2200uF 16v Nichicon HE capactir to the power cable, closest possible to project side
- adding a 0.3 ohm resistor to the power cable
- the solution i'd like to avoid -
i have a solution that should work, but iit is too bulky and i'd like to avoid if possible.
using the car 12v, charging a 18650, then using that battery topower the project
- my request -
Have anyone had to deal with such issue? how can i fix it? thanks