5% OFF Over $19, Code: Elephant5; 10% OFF Over $59, Code: Elephant10



PLUG Starter Kit For Arduino Project 19: Potentiometer

Posted by Fiona Su on

Overview
In this circuit you’ll work with a potentiometer sensor. You will learn how to simply test this potentiometer sensor to get the analog value.
Component Required

  • EASY plug control board*1
  • EASY plug Potentiometer Sensor *1
  • EASY plug 1602 LCD Module *1
  • EASY plug LED Module *1
  • RJ11 cable*1
  • USB cable*1

Component Introduction


Keyestudio EASY plug Analog Rotation Sensor
The sensor is based on a potentiometer. A potentiometer is also known as a variable resistor. It is a perfect demonstration of a variable voltage divider circuit. Its voltage can be subdivided into 1023, easy to be connected to Arduino with our sensor shield.
Combined with other sensors, you are able to make interesting projects by reading the analog value from the IO port.

  • Interface: Easy plug
  • Supply Voltage: 3.3V to 5V
  • Sensor type: Analog

Connect It Up
Connect the EASY Plug potentiometer sensor to control board using an RJ11 cable.

thumb

Upload the Code
Below is an example code.

thumb

What You Should See
After uploading the code, open the serial monitor and set the baud rate to 9600, you should see the analog value is showed on the monitor.

thumb

If rotate the potentiometer, the printed analog value will change within the range of 0-1023.

thumb

Extension Experiment
Controlling Light Brightness
Complete the above experiment, want to try a different experiment?
Next, you will learn how to display the potentiometer value on the 1602 LCD screen and to control the brightness of LED using a potentiometer sensor.
Let’s get started right now!
Hookup Guide
Connect the EASY Plug potentiometer sensor, a red LED module and 1602 LCD module to control board using RJ11 cables.

thumb

Test Code
Below is an example code.

thumb

What You Should See
After uploading the code, rotate the potentiometer knob, you can see the converted value by potentiometer within 0~255 on the 1602 LCD screen, controlling the brightness of LED module.

thumb

Little Knowledge:
Remember you can adjust the contrast by rotating a blue potentiometer on the LCD back if you can’t make out the words clearly.

thumb

All Tutorial

 Buy here>>EASY PLUG Super Starter Kit For Arduino STEM EDU

0 comments

Leave a comment

Please note, comments must be approved before they are published