Hi all,
I have a project which runs ok on arduino mega but I need to move it on arduino due. I moved all sensors except 2 hall sensors (I read 2 rpm's) which have 5v output. How can I read with due these 2 sensors?
Thanks in advance
Hi all,
I have a project which runs ok on arduino mega but I need to move it on arduino due. I moved all sensors except 2 hall sensors (I read 2 rpm's) which have 5v output. How can I read with due these 2 sensors?
Thanks in advance
I guess this is fairly simple, if the sensor output is something between 0V and 5V, then a voltage divider in front of the Analog input pin will do the job.
Where Vout = R2/(R1 + R2) Vin.
Vin max = 5V and Vout max = 3.3V. I think it's a good choice to select R2 around 10KOhms.
When a sensor output is digital 0 (0V) or 1 (+5V) a logic level shifter is the solution to level shift to 3.3V
Thanks a lot
this is exactly what i did and is working fine
Thanks a lot again