Page 2 of 2

Re: Wiring schematic

Posted: Wed Jan 21, 2015 10:12 am
by andrew
Try this:

Code: Select all

#include <SoftwareSerial.h>
SoftwareSerial BT(2, 3);
int potpin = 0;
int value = 0;

void setup()
{
  BT.begin(9600);
  pinMode(potpin, INPUT);
}

void loop()
{
  value = analogRead(potpin);
  BT.println(value):
  delay(1000);
}