I have built an ultrasonic distance measure with an Arduino nano 3.0 (clone) and a Maxbotix sensor.
I just bought a new Arduino nano every (original) to exchange with the old clone. This is to give higher memory and a better input voltage range.
However, I get some unstable readings with the new Arduino Nano every. Everything is wired up the exact same and I have tried with another NEW Arduino nano every - same problem.
I was not expecting the original to perform worse...
Any suggestions on what to look for or any idea why this could be?
I am pretty sure that this Arduino Nano Every runs on 5V internally and that must be the same reference as the previous one.
I have tried adding a resistor & capacitor but with no luck.
I have also tried using the internal 4.3V as a reference, but the same instability happens. The readings vary between 49-54 cm measuring close focus on a hard surface.
The instability is less running on USB, but it is still there. My plan is to power it with a 16V V lock battery and when doing so, I see a larger instability.
The Nano Every has an MPM3610 step-down converter module to generate 5V from Vin, I suspect this
is generating a lot of noise on the power rails (there's no room for large bulk decoupling on that PCB...)
I suggest putting 220uF or so directly across the power supply pins of the sensor module so it has much
cleaner power.
Thank you for looking into this. At the moment I only have a 100uF 10V at my disposal, but with no luck. I have tried using this package from maxbotix: MB7961 Power Supply Filter – MaxBotix
I have attached a picture of the readings when using the capacitor. I will try to get a 220 uF, but I guess the 100uF should be able to help a little?