Summary:
- I am using an Arduino UNO.
- I am using a potentiometer connected from 5V Arduino supply to ground to provide a variable voltage on the pot wiper, which I input to an analog input on the UNO to allow variation of a PWM signal.
- As I load the supply with peripherals the supply voltage droops from 5V to say 4.8V and this affects my PWM frequency.
- How do I prevent supply voltage changes affecting my PWM settings?
I'm working on a project, and since I have been adding things to it some new problems started to appear. Here is the diagram of the project:
I'm using a potentiometer to control an output pin (PWM). As seen in the diagram, the potentiometer takes the 5 V as reference and sends back to the pin 2 the voltage so it can be taken by the ADC. The problem is that, with all the new connections, I have had a drop of voltage on VCC from 5 to 4.8 V, which kind of messes up with the selection of voltage. For example, if I want the pin 2 to be on 5 V, once I put the potentiometer on the max ammount of voltage it will just give me 4.8 V.
I just checked and putting everything off except the potentiometer solves the problem.
Should I use an external feeding for the LCD display?
Or should I use the 4.8 V as a parameter of reference?

