Hi. I'm measuring the temperature from a device that outputs 0-5V. The intention is to use Nano 33 IoT version which uses 3.3V as input so I will need to shift down the voltage to do an analogRead.
I've google and found that people either use simples double resistor voltage dividers, or logic level shifter modules. Any idea which one would be more suitable for my use case and why?
Does your device send an analog or a digital signal?
If analog: resistor divider
If digital: is communication both ways?
If yes: level shifter.
If no: both will work.
I saw in another thread that a cap is recommended to filter out noise. Would something like this work (not sure about the placement of the cap in particular):
You are trying to drive a motor, which by definition will take a lot of current, through a 10K load.
Potential dividers only work if the current being drawn through the two resistors is about ten times greater than the current through the resistor chain.
Yes a capacitor will reduce the noise from the motor but as you have it drawn in that diagram it will not work.
Is it perhaps it's the icon that's causing the confusion? I get the round icon when I press voltage source in LTSpice. In any case, I'm not driving anything with the circuit, simply reading a 0-5V out from a device
Maybe...
An arduino analog input is not a voltage source....
So the symbol there is not adequate.
Usually a standard dc motor has two squares on both sides. But there might be other symbols around..
In Europe a resistor is a rectangle in America it is a zigzag line. No problem as long as no one gets confused...
All right. Thanks for the feedback. I find it to be a very nice to program to sketch in but I'll look around if I can find another option. Circuit lab free seems is quite restricted.
Which symbol would you use to indicate Arduino or any other microcontroller/device?
A box, with the word Arduino written in it. And the inputs/outputs labelled also. You don't have to include every input/output, just the ones being used in the circuit (including power and ground).
Pencil and paper? Quite acceptable for simpler diagrams, provided it's reasonably neatly drawn. Squared paper helps, if you have some.
I'll have to switch to Esp32. After googling around some more I found that some people recommended using a separate ADC since the one in Esp32 doesn't have good resolution. ADS1115 seems like a good option.
Do you think the following setup will work? I'm particularly unsure about the red-coloured Esp32/device-common ground. Would this be the correct way to do it, or should I omit the ground from the Esp to the device?