YARPF

Raspberry Pi Logo YetAnotherRaspberryPiFanpage

4.0 - Un Potentiometro

Plan

wiring plan

Board

bread board

Code

int pinPot = 2;
int val = 0;

void setup()
{
  Serial.begin(9600);
}

void loop()
{
   int val = analogRead(pinPot);

   Serial.println(val);
   
   delay(300);
}

Download

Fritzing: poti.fzz

Comments ?

blog comments powered by Disqus