Hi so like the title says, when I supply power to my Arduino UNO WIFI REV 2 with anything but the USB-Type B input, the output of the TMP36 sensor drops at room temperature from about 750mV to jumping values between 541mV to 590mV.
What I have is a heating element connected to this PWM controlled driver from amazon . I am powering the Arduino and the heating element with a 12V USB Type-C power bank where I am using a USB Type-C PD trigger board to supply power to the components.
However, when I supply power to the Arduino using VIN and GND from the Battery the TMP36 sensor does not provide accurate readings and the values jump. If I remove the VIN and GND from the battery to the Arduino and instead power it via the USB Type-B port the sensor works without a problem. The same issue happens if I use the round 5.5mm x 2.1mm jack.
What can be causing this strange issue? Thank you in advance for any help you can provide!
The battery I am using is this Power Bank and to get positive and negative terminals out of it I am using this PD trigger board. I only showed the 9V battery to show the connections. But you still think that's the issue?
That should NOT be connected to the Arduino ground but that is not your problem.
As @Idahowalker pointed out unless it's an industrial enegizer 9V it will not last long.
You battery is probably almost dead.
Ok I disconnected DC- from the driver board to the Arduino GND but as you predicted that is not the problem since I am still measuring the incorrect VOUT from the TMP36 sensor. The battery currently has an 82% charge and it's brand new.
When using the alternate power connections, not Vin, is 12V being used as a supply?
12V is the limit of the Uno's power converter. The Uno will be taking 12V and converting it to 5V. The converter will take 2.5ish for its self and blow the rest into the air as heat. It's that heat that may become a issue.
Yes, the connection that does work correctly is when I connect both USB Type-C from the power bank to the driver, and USB Type-B from the same 12V power bank to the Arduino.