First things first, let me state that I am a beginner with Arduino.
I am trying to use an LCD and display characters to it, and I am using Adafruit's tutorial for it. The website is Overview | Arduino Lesson 11. LCD Displays - Part 1 | Adafruit Learning System . It uses a potentiometer, but when I turn it all the way counter-clockwise, it completely shuts off my Arduino. I don't know why this is happening, I would greatly appreciate some help.
Hi, and welcome to the forum.
Did you connect the center pin to the analogue input (or LCD), and the outside pins to supply and ground.
If not, then turning the pot to an endstop will short out the supply.
Post a picture if you're not sure.
Leo..
Wawa:
Hi, and welcome to the forum.
Did you connect the center pin to the analogue input (or LCD), and the outside pins to supply and ground.
If not, then turning the pot to an endstop will short out the supply.
Post a picture if you're not sure.
Leo..
The potentiometer that I am using is not the same potentiometer used in the Adafruit tutorial. Is this what could be causing problems?
It looks like this one, with two pins on one side and one pin of the opposite side.
The single pin on the other side is the wiper, and has to go to the LCD.
Maybe there is a short on the LCD side.
Disconnect the wire to the LCD, and try turning the pot then.
See if your Arduino still shuts off.
Leo..
Wawa:
The single pin on the other side is the wiper, and has to go to the LCD.
Maybe there is a short on the LCD side.
Disconnect the wire to the LCD, and try turning the pot then.
See if your Arduino still shuts off.
Leo..
Looking at the Adafruit breadboard layout, I unplugged the red wire that connected to the potentiometer and now the Arduino does not turn off upon turning. However, when I upload the AnalogInOutSerial example to my Arduino and open a Serial Monitor, the values are not changing when I turn the potentiometer. One of my friends told me that this is how you test to see if your potentiometer is functioning properly, so what is wrong now?
AidanG:
my potentiometer is now correctly functioning and is no longer shutting off my Arduino.
Cool: in the spirit mutual cooperation to help others who may have the same issue, you might explain what was actually happening and what you did to fix that.
manor_royal:
Cool: in the spirit mutual cooperation to help others who may have the same issue, you might explain what was actually happening and what you did to fix that.
Seeing as I had a different potentiometer than the one on Adafruit, I got confused by the diagram and dumb me put the pot in backwards, thus the wiper was not actually going to the LCD. Simply turning my potentiometer around literally fixed everything.
I am quite the beginner at this, but hey, I'm learning.
Plugging something in backwards is practically an initiation rite for this hobby. I just spent 2-3 days figuring out how to make some new microcontrollers (PICs) blink an LED. Don't let it get to you.
AidanG:
Seeing as I had a different potentiometer than the one on Adafruit, I got confused by the diagram and dumb me put the pot in backwards, thus the wiper was not actually going to the LCD. Simply turning my potentiometer around literally fixed everything.
I am quite the beginner at this, but hey, I'm learning.
Doesn't sound right. Potentiometers have 3 pins, with the wiper being the middle pin. Since the outer 2 pins are just the total resistance, and it makes no difference which direction voltage is applied, simply spinning the pot 180 degrees would not change the electrical characteristics of the potentiometer. The wiper would still be the center pin, and the outer pins would still be the total resistance.
You must have changed some wires, whether you know it or not. Since it was shorting it, I would guess ground or Vcc was on the wiper.