Toll-Free Customer Support 24/7

Xbee Development Board with Voltage Regulator and Level Converter Compatible for Arduino (With XBEE)

/*
* Project name:
Xbee Development Board with Voltage Regulator and Level Converter Compatible for Arduino (With XBEE)
* Copyright
(c) Researchdesignlab.com
* Description:

* Test configuration:
MCU: ATMEGA328
Dev.Board: Arduino uno
Oscillator: 16 MHz
Software: Arduino

*/
/*

/*
Analog input, analog output, serial output

 

*/

// These constants won't change. They're used to give names
// to the pins used:
const int analogInPin = A0; // Analog input pin that the potentiometer is attached to

int sensorValue = 0; // value read from the pot

void setup() {
// initialize serial communications at 9600 bps:
Serial.begin(9600);
}

void loop() {
// read the analog in value:
sensorValue = analogRead(analogInPin);


// print the results to the serial monitor:
Serial.print("sensor = " );
Serial.println(sensorValue);

delay(1000);
}

Back to top