Paso 4: Transmisor Software:
Yazılım Geliştirme por Robimek-2015
Yazılım Lisans por Robimek
www.robimek.com
#include < SoftwareSerial.h >
#define BT_SERIAL_TX 4
#define BT_SERIAL_RX 3
SoftwareSerial BluetoothSerial(BT_SERIAL_TX, BT_SERIAL_RX);
Int potpin = A0;
int val;
void setup()
{
Serial.Begin(9600);
BluetoothSerial.begin(9600);
}
void loop()
{
Val = analogRead(potpin);
Val = mapa (val, 0, 1023, 0, 179);
BluetoothSerial.print(val);
Delay(100);
}