Hi there,
I have an ongoing project including:
- single wire keypad
- I2C LCD
- current sensor (ACS712)
- temperature (LM35)
- digital IR emitter / receiver for a tachometer
- a 10k pot
- a high power motor driver (module with 2 BTN7960 half h-bridges) to power à 24v/120w motor
- all controlled with a Chinese nanoV3 328
- a 24V/10A AC-DC PSU
- a buck converter (based on a LM2596) to step-down the 24v to 5v
in the current setup I power the nano via the 5V pin (so no regulator) and ALL the elements directly from the buck converter.
now, it happens that the potentiometer gives me a very much stable readings when powered by the PC USB (even if the buck converter is also plugged) and probably this was making even worse my readings stability for the current and temperature sensors (that I "solved) by code.
so, questions:
1- Any way to force the power to be taken by the buckConv and avoid the nano to supply power? (I guess this is what's happening when I plug both at the same time)
2- I've seen this a lot, getting no convincing answer, so here it goes, are the 2 ground pins the same? or should I reserve one only for analog inputs
3- would it be a good idea to change the AREF to external and supply it with the buckConv voltage?
4- I tried putting a 0.1µF ceramic cap between gnd and output of the pot, I guess it changed nothing when USB was plugged,, it makes it worse when the buckConv is plugged).
5- I'm a newbie in electronics, if you have an advise of any "good practice" I might be missing, it will be highly appreciated
Thank you all!