Wiring schematic

Simple Bluetooth serial communications for your Arduino. Pair with your Mac, Linux, or Windows computer to send and receive messages using regular Serial.print() commands. [Product page]
andrew
Freetronics Staff
Freetronics Staff
Posts: 978
Joined: Sun Jul 14, 2013 7:06 am
Location: Melbourne, Australia
Contact:

Re: Wiring schematic

Post by andrew » Wed Jan 21, 2015 10:12 am

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);
}

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest