Our website uses necessary cookies to enable basic functions and optional cookies to help us to enhance your user experience. Learn more about our cookie policy by clicking "Learn More".
Accept All Only Necessary Cookies
BShaniuno आइकन

1.0 by Work IT BD


Dec 19, 2017

BShaniuno के बारे में

यह तीन स्विच को नियंत्रित या Arduino बोर्ड के साथ रिले करने के एंड्रॉयड क्षुधा है।

This is android apps to control Three switches or relay with Arduino board. This is a simple example app to control anything. We give with code to operate and make a tutorial to use and learn about Android and Arduino Bluetooth communication. arduino code:-

---------------------------------------------------------------------------------------------------------------------------------------

char blueToothVal; //value sent over via bluetooth

char lastValue; //stores last state of device (on/off)

int led = 3;

int ledone = 5;

int ledtwo = 6;

void setup()

{

Serial.begin(9600);

pinMode(led,OUTPUT);

pinMode(ledone, OUTPUT);

pinMode(ledtwo, OUTPUT);

}

void loop()

{

if(Serial.available())

{//if there is data being recieved

blueToothVal=Serial.read(); //read it

}

if (blueToothVal=='n')

{//if value from bluetooth serial is n

digitalWrite(led,HIGH); //switch on LED

if (lastValue!='n')

Serial.println(F("LED is on")); //print LED is on

lastValue=blueToothVal;

}

else if (blueToothVal=='f')

{//if value from bluetooth serial is n

digitalWrite(led,LOW); //turn off LED

if (lastValue!='f')

Serial.println(F("LED is off")); //print LED is on

lastValue=blueToothVal;

}

if (blueToothVal=='a')

{//if value from bluetooth serial is n

digitalWrite(ledone,HIGH); //switch on LED

if (lastValue!='a')

Serial.println(F("ledone is on")); //print LED is on

lastValue=blueToothVal;

}

else if (blueToothVal=='b')

{//if value from bluetooth serial is n

digitalWrite(ledone,LOW); //turn off LED

if (lastValue!='b')

Serial.println(F("ledone is off")); //print LED is on

lastValue=blueToothVal;

}

if (blueToothVal=='c')

{//if value from bluetooth serial is n

digitalWrite(ledtwo,HIGH); //switch on LED

if (lastValue!='c')

Serial.println(F("ledtwo is on")); //print LED is on

lastValue=blueToothVal;

}

else if (blueToothVal=='d')

{//if value from bluetooth serial is n

digitalWrite(ledtwo,LOW); //turn off LED

if (lastValue!='d')

Serial.println(F("ledtwo is off")); //print LED is on

lastValue=blueToothVal;

}

delay(1000);

}

---------------------------------------------------------------------------------------------------------------------------------------

Want to know more and with

Bangla tutorial...

Visit.... http://workitbd.com/bshaniuno/ or http://workitbd.com/page.php?86

अनुवाद लोड हो रहा है...

अतिरिक्त ऐप जानकारी

नवीनतम संस्करण

निवेदन BShaniuno अपडेट 1.0

Android ज़रूरी है

1.6 and up

Available on

BShaniuno Google Play प्राप्त करें

अधिक दिखाएं

नवीनतम संस्करण 1.0 में नया क्या है

Last updated on Dec 19, 2017

Minor bug fixes and improvements. Install or update to the newest version to check it out!

अधिक दिखाएं

BShaniuno स्क्रीनशॉट

पिछले 24 घंटों में लोकप्रिय लेख

टिप्पणी लोड हो रहा है...
APKPure की सदस्यता लें
सर्वश्रेष्ठ एंड्रॉइड गेम और ऐप्स के शुरुआती रिलीज, समाचार और गाइड तक पहुंचने वाले पहले व्यक्ति बनें।
जी नहीं, धन्यवाद
साइन अप करें
सफलतापूर्वक सब्सक्राइब!
अब आप APKPure की सदस्यता ले रहे हैं।
APKPure की सदस्यता लें
सर्वश्रेष्ठ एंड्रॉइड गेम और ऐप्स के शुरुआती रिलीज, समाचार और गाइड तक पहुंचने वाले पहले व्यक्ति बनें।
जी नहीं, धन्यवाद
साइन अप करें
सफलता!
अब आप हमारे न्यूज़लेटर की सदस्यता ले चुके हैं।