I am having issues getting a full 5v out of a OUTPUT, HIGH digital pin. When measuring with a multimeter I only get 2.8v. After soldering to the 5v (because the LCD covers it), I properly get 5v now. Are digital pins set as OUTPUT, HIGH not supposed to do 5v?
Are digital pins set as OUTPUT, HIGH not supposed to do 5v?
No they are not.
According to the data sheet a logic HIGH can be anything above 4.2V.
Of course it depends on what it is connected to. A load greater than 20mA will reduce this.
When testing the voltages, the only items hooked up were an LCD/Touch shield (not the actual LCD though). I had the hot wire going to a breadboard and made my measurements off of that, nothing else was hooked up to the breadboard.
2.8 still seems low, but it does get the job done with my relays....
An unloaded pin that's set HIGH should be millivolts away from the 5V supply - its being pulled high by a FET
with an on resistance of around 50 to 100 ohms. If its reading 2.8V it suggests its either not set as an OUTPUT
(ruled out by the code snippet) or there is too heavy a load on it or the pin is burnt out.