Controle Bluetooth Arduino

Controle Bluetooth Arduino Free App

Rated 3.00/5 (2) —  Free Android application by SuporteTécnicoSDKLAB

Advertisements

About Controle Bluetooth Arduino

App de conexão via modulo Bluetooth conectado a um Arduíno para controle de intensidade de 2 leds, só funciona em equipamentos que tenha Bluetooth.
Este APP so funciona em conjunto com aplicação com Arduíno e ou microcontroladores.
Este APP tem carácter didático, só funciona em luminárias feitas com este proposito.
App desenvolvido no B4A...

Segue o sketch a ser carregado em um Arduíno:


#include

SoftwareSerial mySerial(10, 11);

void setup()
{

pinMode(5, OUTPUT);
pinMode(6, OUTPUT);

Serial.begin(9600);
mySerial.begin(9600);
}

void loop()
{
int n;
n = mySerial.read();

if(n == '0')
{
analogWrite(5, 255);
Serial.println("Dimmer Led1 100%");
}
if(n == '1')
{
analogWrite(5, 200);
Serial.println("Dimmer Led1 80%");
}

if(n == '2')
{
analogWrite(5, 150);
Serial.println("Dimmer Led1 60%");
}
if(n == '3')
{
analogWrite(5, 100);
Serial.println("Dimmer Led1 40%");
}

if(n == '4')
{
analogWrite(5, 50);
Serial.println("Dimmer Led1 20%");
}
if(n == '5')
{
analogWrite(5, 10);
Serial.println("Dimmer Led1 10%");
}

if(n == 'A')
{
analogWrite(6, 255);
Serial.println("Dimmer Led2 100%");
}
if(n == 'B')
{
analogWrite(6, 200);
Serial.println("Dimmer Led2 80%");
}

if(n == 'C')
{
analogWrite(6, 150);
Serial.println("Dimmer Led2 60%");
}
if(n == 'D')
{
analogWrite(6, 100);
Serial.println("Dimmer Led2 40%");
}

if(n == 'E')
{
analogWrite(6, 50);
Serial.println("Dimmer Led2 20%");
}
if(n == 'F')
{
analogWrite(6, 10);
Serial.println("Dimmer Led2 10%");
}
if(n == 'X')
{
analogWrite(5, 0);
Serial.println("Dimmer Led1 OFF");
}
if(n == 'Y')
{
analogWrite(6, 0);
Serial.println("Dimmer Led2 OFF");
}
}

Como pode ser visto no Sketch, o APP depois de pareado com modulo Bluetooth, envia caracteres pelo canal serial do link. Cada tecla do APP envia uma string compreendida de um só byte, onde é lida e com parada pelas condicionais IF THEN, controlando a porta do MCU em modo PWM.

Bluetooth connection module connected to a Arduino App for intensity control of LEDs 2, only works for devices that have Bluetooth.
This APP only works with application or Arduino and microcontrollers.
This APP has didactic character, only works on fixtures made with this purpose.
App developed in B4A ...

Follows the sketch to be loaded on a Arduino:


#include

SoftwareSerial mySerial (10, 11);

void setup ()
{

  pinMode (5, OUTPUT);
  pinMode (6, OUTPUT);

Serial.begin (9600);
mySerial.begin (9600);
}

void loop ()
{
int n;
n = mySerial.read ();

if (n == '0')
{
 analogWrite (5, 255);
 Serial.println ("Dimmer LED1 100%");
}
if (n == '1')
{
analogWrite (5, 200);
Serial.println ("Dimmer LED1 80%");
}

if (n == '2')
{
analogWrite (5, 150);
Serial.println ("Dimmer LED1 60%");
}
if (n == '3')
{
analogWrite (5, 100);
Serial.println ("Dimmer LED1 40%");
}

if (n == '4')
{
analogWrite (5, 50);
Serial.println ("Dimmer LED1 20%");
}
if (n == '5')
{
analogWrite (5, 10);
Serial.println ("Dimmer LED1 10%");
}

if (n == 'A')
{
analogWrite (6, 255);
Serial.println ("Dimmer LED2 100%");
}
if (n == 'B')
{
analogWrite (6, 200);
Serial.println ("Dimmer LED2 80%");
}

if (n == 'C')
{
analogWrite (6, 150);
Serial.println ("Dimmer LED2 60%");
}
if (n == 'D')
{
analogWrite (6, 100);
Serial.println ("Dimmer LED2 40%");
}

if (n == 'E')
{
analogWrite (6, 50);
Serial.println ("Dimmer LED2 20%");
}
if (n == 'F')
{
analogWrite (6, 10);
Serial.println ("Dimmer LED2 10%");
}
if (n == 'X')
{
analogWrite (5, 0);
Serial.println ("Dimmer LED1 OFF");
}
if (n == 'Y')
{
analogWrite (6, 0);
Serial.println ("Dimmer LED2 OFF");
}
}

As can be seen in the sketch, the APP then paired with Bluetooth module sends characters by serial channel link. Each APP button sends a string comprised of one byte, which is read and stopping the conditional IF THEN, controlling the MCU port in PWM mode.

Application Screenshots

Screenshot #1: Controle Bluetooth Arduino for Android
Screenshot #2: Controle Bluetooth Arduino for Android

Never Miss An Update!

Follow Android Blip on Facebook / Google+


Download / Install

Download and install Controle Bluetooth Arduino version on your Android device!
Downloaded 100+ times, content rating: Everyone
Android package: spotLed.bluetooth.Arduino, download Controle Bluetooth Arduino.apk

All Application Badges

Free
downl.
Android
1.6+
For everyone
Android app

App History & Updates

More downloads  Controle Bluetooth Arduino reached 100 - 500 downloads

Share The Word!


Rating Distribution

RATING
3.05
2 users

5

4

3

2

1