I hav a question “Write a program to read potentiometer voltage and displace voltage and equivalent resistance on serial monitor” what is the exact program
for this question?
@Ashwin Unfortunately we do not provide sample code, but the pseudo code would be to read the analog pin to which the potentiometer is connected, and convert the value (i.e. map it from 0 to 1023 to 0 to 10 ohms) using one equation. Note that this assumes the resistance of the pot is 10 ohms, otherwise use the value you have). You would then use serial output to display the converted value via the serial terminal.
sir, does the voltage can be set at any pin?
@zack Not sure what you mean. Digital IO pins tend to be 0 or 5V, though some can handle PWM. Most analog pins are 0 to 5V. There are also 3.3V microcontrollers, so a simple answer is not easy.
need video lesson!!!
hi I want to preparing arduino on/off system motor .how can i do this using potentiometer ?give please some idea about this with their programing development.
@Me You would still need a DC motor controller. You do not actually need the microcontroller if you select one which has analog voltage input. For details, please create a new topic on the RobotShop forum.
Hello Sir,
My teacher has asked us to execute the led working on a breadboard…can you guide me with the extra connections required…thanks!
Mohor Banerjee: For this kind of situation, it may be best to ask your teacher for clarification if you are unsure how to proceed. You may also want to refer to your course material (notes, books, etc.). If you still feel unsure, you may want to check out this video.
We are trying to get the pot to work with the extra code using (A1, Low); and (A2, HIGH);. I am not able to get the connection to work. I am using the RedBoard if that makes any difference. I have them under void setup (), as stated, but the pins A1 and A2 do not seem to be actually sending power to the pot. I am probably missing something very basic, but can you help? Thank you!
@Nikki You should not really be powering the pot from the analog / digital pins. It’s best to use the 5V output pin. The I/O pins can’t provide much current.
Why you shouldn’t use serial.befin(9600) in the previous one
@DINESH There is actually no serial communication with another device (like a computer) in the first example, so a baud rate does not need to be specified. In the second example, the value is sent serially (Serial.println) so a baud rate is specified.