I’ve attached a rough schematic of what I did on a breadboard. I am trying to figure out how to sense the “voltage” output of my PWM controlled Motor.
I am driving a low amperage 5V motor with an Arduino using analogWrite commands to tell it to speed up and slow down over Arduino pin 5. Using an N-Channel MOSFET, it is chopping up the ground of the motor. I also used a rectifier diode to prevent fly-back.
Now, if I measure with a volt-meter between TP1 and TP2, I will see something like 3.8V-ish. But if I measure between hard ground and TP2, I will see 5V. So, if I put a trace or wire from TP2 to any of the Arduino’s analog pins, I will probably see “255” or 5V too, but I want it to see the 3.8V value, not the 5V. How do I do that?