شرح تطبيق Bluetooth Smart Switch وكيفية استخدامه
كود المصدر ووضع دبوس
اردوينو أونو إلى وحدة بلوتوث وضع PIN: RX دبوس 10 و TX دبوس 11.
الشفرة:
#include
SoftwareSerial mySerial (10، 11)؛ // Pin 10 = TX، Pin 11 = RX Bluetooth TX، RX
#define relay1 2 // Relay IN1 متصلة بـ PinOut 2 Arduino
#define relay2 3 // Relay IN2 متصلة بـ PinOut 3 Arduino
#define relay3 4 // Relay IN3 Connect to PinOut 4 Arduino
#define relay4 5 // Relay IN4 متصل بـ PinOut 5 Arduino
شار فال؛
الإعداد باطل()
{
pinMode (relay1، OUTPUT)؛
pinMode (relay2، OUTPUT)؛
pinMode (relay3، OUTPUT)؛
pinMode (relay4، OUTPUT)؛
digitalWrite (relay1، عالية)؛
digitalWrite (relay2، عالية)؛
digitalWrite (relay3، عالية)؛
digitalWrite (relay4، عالية)؛
mySerial.begin (9600)؛
Serial.begin (9600)؛
}
void loop () {/ cek data serial from bluetooth android App
if (mySerial.available ()andgt 0)
{
val = mySerial.read ()؛
Serial.println (فال)؛
}
// ترحيل على
/ *
---andgt يمكنك توصيله بقناة modul relay 4
إرسال البيانات التسلسلية من Arduino Bluetooth Relay 4CH.apk
البيانات and#391and#39 - and#394and#39 إلى هي Ralay CH 1-4
البيانات and#39Aand#39 - and#39Dand#39 إلى off هي Ralay CH 1-4
البيانات and9and على جميع CH 1-4
البيانات and#39Iand#39 من كل CH 1-4
* /
إذا (val == and#391and#39)
{
digitalWrite (relay1، LOW)؛
}
آخر إذا (val == and#392and#39)
{
digitalWrite (relay2، LOW)؛
}
آخر إذا (val == and#393and#39)
{
digitalWrite (relay3، LOW)؛
}
آخر إذا (val == and#394and#39)
{
digitalWrite (relay4، LOW)؛
}
// تتابع كل يوم
آخر إذا (val == and#399and#39)
{
digitalWrite (relay1، LOW)؛
digitalWrite
.
تنزيل APK الاصدار v2.0 المجانية Free Download
يمكنك تنزيل Bluetooth Smart Switch APK v2.0 لـ Android مجاناً Free Download الآن عبر أبك داون مود.
الوسوم: download bluetooth smart tvdownload bluetooth smart discover 10 for androiddownload bluetooth le spamdownload bluetooth le spam apkdownload bluetooth 40 driver for windows 10download bluetooth 40download bluetooth low energydownload bluetooth le spam app apkdownload bluetooth for samsung smart tvBluetooth Smart Switch