GithubHelp home page GithubHelp logo

santhanalakshmi04 / experiment-no--03-interfacing-analog-input-sensor-pot-with-arduino- Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vasanthkumarch/experiment-no--02-interfacing-analog-input-sensor-pot-with-arduino-

0.0 0.0 0.0 16 KB

License: BSD 3-Clause "New" or "Revised" License

experiment-no--03-interfacing-analog-input-sensor-pot-with-arduino-'s Introduction

INTERFACING-ANALOG-INPUT-SENSOR-POT-WITH-ARDUINO-

AIM: To interface a Analog input (angular displacement sensor POT) and scale the values up on change in the input.

COMPONENTS REQUIRED:

  1. 10 KΩPOT
  2. 1 KΩ resistor
  3. Arduino Uno
  4. USB Interfacing cable
  5. Connecting wires
  6. LED of choice **

THEORY:

Analog signals:

Analog signals – directly measurable quantities in terms of some other quantity. Examples:

  1. Thermometer – mercury height rises as temperature rises
  2. Car Speedometer – Needle moves farther right as you accelerate
  3. Stereo – Volume increases as you turn the knob Reason for conversion of analog to digital quantity is that as the controller or any microprocessor works with digital signals in the form of 0 and 1s, in order to make the signal compatible most of the analog signals are converted into its equivalent digital level signals using an analog to digital converter . Quantizing - breaking down analog value is a set of finite states Encoding - assigning a digital word or number to each state and matching it to the input signal There are two ways to best improve accuracy of A/D conversion: Increasing the resolution which improves the accuracy in measuring the amplitude of the analog signal. Increasing the sampling rate which increases the maximum frequency that can be measured. General specifications of analog sensor  1. Range  2. Accuracy  3.Linearity  4.Compatiblity  5. signal conversion capability

Potentiometer A potentiometer, informally a pot, is a three-terminal resistor with a sliding or rotating contact that forms an adjustable voltage divider. If only two terminals are used, one end and the wiper, it acts as a variable resistor or rheostat. Potentiometers are commonly used to control electrical devices such as volume controls on audio equipment. Potentiometers operated by a mechanism can be used as position transducers, for example, in a joystick. Potentiometers are rarely used to directly control significant power (more than a watt), since the power dissipated in the potentiometer would be comparable to the power in the controlled load CIRCUIT DIAGRAM

image

**FIGURE -01 **

PROCEDURE:

  1. Connect the circuit as per the circuit diagram
  2. Connect the board to your computer via the USB cable.
  3. If needed, install the drivers.
  4. Launch the Arduino IDE.
  5. Select your board (If you the board is arduino uno, select accordingly).
  6. Select your serial port, accordingly ( E.g. COM5 )
  7. Open the file of the program and verify the error , clear if any errors that are existing
  8. Upload the program and check for the physical working.
  9. Ensure safety before powering up the device

PROGRAM

int led=4;
int sensorpot;
void setup()
{
  pinMode(led, OUTPUT);
  Serial.begin(9600);
}

void loop()
{
  sensorpot=analogRead(A0);
  //Serial.print("data=");
  Serial.println(sensorpot);
  delay(500);
  if(sensorpot>500)
  {
    digitalWrite(led,HIGH);
    	delay(100);
    digitalWrite(led,LOW);
    	delay(100);
  }
  else
  {
    digitalWrite(led,LOW);
    	delay(100);
  }
}

Serial Monitor:

image

** Simulation output: **

image

image

My image

**RESULT: ** Arduino uno analog input functioning is learned and interfaced with digital input switch .

experiment-no--03-interfacing-analog-input-sensor-pot-with-arduino-'s People

Contributors

santhanalakshmi04 avatar vasanthkumarch avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.