Hello, I bought myself an arduino to play with since last week :). So I'm new to the world of Arduino.
I'm making a starter project in which you can see the temprature on an LCD. The sensor I'm using is an LM35.
The problem however is that with my USB everything is as its expected to be, but when I replace the USB supply with my 9V supply my sensor
reads 10° more then normal and de characters on my LCD are almost unreadble. I don't know what is causing this, so I hope someone can help me out
Do you have a multimeter ?
Is the 9V adapter really 9V, or perhaps 14V ? Some adapters are very bad. Is it a DC adapter ?
I use a switching adapter of 7.5V for my Arduinos.
If you use the USB to power the Arduino, what voltage is the 5V pin ? The LM35 works with different voltages, but the voltage read at the analog input of the Arduino depends on the 5V.
Can you open a serial communication with the serial monitor of the Arduino IDE ?
Use Serial.begin(9600); to initialize and in write the temperature also to the serial monitor with Serial.println(TempC);
Is that also unreadable ?
I've also posted a scheme of my project in my previous post.
Do you have a multimeter ?
Is the 9V adapter really 9V, or perhaps 14V ? Some adapters are very bad. Is it a DC adapter ?
I use a switching adapter of 7.5V for my Arduinos.
If you use the USB to power the Arduino, what voltage is the 5V pin ? The LM35 works with different voltages, but the voltage read at the analog input of the Arduino depends on the 5V.
Can you open a serial communication with the serial monitor of the Arduino IDE ?
Use Serial.begin(9600); to initialize and in write the temperature also to the serial monitor with Serial.println(TempC);
Is that also unreadable ?.
I don't have a multimeter at home atm. I've already tried with serial monitor but the problem is once hooked up with usb everyting is normal, also I should clarify that the characters of the LCD fade and thats why it so unreadable (you can see the characters if you look close).
It is weird. You need a multimeter to measure all the voltages.
Do you use the backlight without resistor ?
I would advise a resistor. Some LCD display schematics use 47 ohm to 5V, other use 330 Ohm.
Are the batteries fresh? A volt meter would tell you if the voltage from them is dropping when it is under load.
if I gently touch the LM35 the temprature jumps 20° higher en then back to lower.
That is because you are getting a poor connection with your bread board, that is why they are a bad idea. I never use then and I never recommend anybody does.
A couple of things. First, taking only one sample is going to result in a noisy reading, try averaging a bunch of samples, like dozens of them. They don't take long at all. Secondly, on the odd chance that the onboard regulator is current limiting, take one or two batteries out of your pack and see what happens. Just jumper across the missing battery location. This will reduce the power dissipation of the voltage regulator (heat output) but still allowing plenty of head room on the input voltage to output 5V. If you have 6 brand new "copper tops" in your pack, the supply voltage is above 10V; 7.5V is likely more than enough.