Control Arduino using Bluetooth with Android App — June 10, 2015

Control Arduino using Bluetooth with Android App

Hello friends, Today we are going to learn about the integration of Bluetooth HC – 06 module with the Arduino Uno. Bluetooth Module HC-06 operates in SLAVE module only. That means it cannot initiate the Bluetooth connection with any other Bluetooth Device. There are other Modules also which can be used.Other popular Bluetooth Module is HC-05 and it operates in both MASTER/SLAVE mode therefore it can initiate the connection when in MASTER mode. In this tutorial,we will use Android App BlueTerm+ to turn off and on the LED on Arduino Uno using Bluetooth Module HC06.

Steps

1.Download the circuit diagram and Arduino sketch from here .       NOTE:- If it is mentioned 3.3V on your module, then do not connect the 5V,instead connect the 3.3V from the Arduino.My module works fine with 5V. 2.The link of the Android app used is https://play.google.com/store/apps/details?id=de.jentsch.blueterm 3.Watch the video

So this is how we can control arduino using bluetooth.Hope you guys like it. Let me know in comments if you like the video or if you have any doubts.:)

Advertisements
Data Logger using ESP8266,Arduino and thingspeak.com — May 11, 2015

Data Logger using ESP8266,Arduino and thingspeak.com

Hello friends,in this project I am logging the data over Thingspeak.com by using arduino and esp8266. I am using 4 sensors whose values would be uploaded.

Steps

If you are new to my ESP8266,visit my previous blog here

I recommend watching video as it shows the major steps.

1. Download the zip file in the link below.. https://drive.google.com/file/d/0B2Y9-jpvsfOBRURNRVlONlVrQ2s/view?usp=sharing

2. Check the .jpg file in the zip folder and connect the circuit.

3. Upload esp_test.ino to the arduino and send commands as shown in the video and connect esp8266 to your network..

4. Open thingspeak_final.ino in the arduino IDE and change the apiKey to the Api Key you obtained from Thingspeak.com

1

5. I have used four sensors in the code and that’s why i added all the field values in the string getStr,If you have one sensor,keep only the one and delete the rest of them

. 2

6.Run the code and check on the Thingspeak.com,the data would be logged. Please comment if you have any doubt regrading it. 🙂

Arduino:How to find WiFi signal strength using ESP8266 — March 9, 2015

Arduino:How to find WiFi signal strength using ESP8266

Hello friends,have you ever thought about knowing the signal strength or the limit of your wifi network in your home?

You can do it easily with the help of ESP8266.If you do not know about ESP8266 Wifi module,view my previous blog Arduino:Getting started with ESP8266 WIFI module .

To buy ESP8266 from amazon, click here..

In the previous blog,we discussed about sending the AT commands to the ESP8266.The command AT+CWLAP can be used to find out the RSSI(Received signal strength indication).

The response of AT+CWLAP command is +CWLAP:<ecn>,<ssid>,<rssi>[,<mode>]

Untitled

Here the rssi block represents the signal strength.So,in the pic above,the strength in -35dBm

Arduino:Getting started with ESP8266 WiFi Module — March 8, 2015

Arduino:Getting started with ESP8266 WiFi Module

Do you want to connect your Arduino Board to the internet? Well you can,and even in a cheap and reliable way.You just have to use ESP8266 WiFi module with your Arduino. It is available for just 5$ or less than that. You can have your own ESP8266 module from the websites like Amazon and Ebay.

To buy ESP8266 from amazon, click here..
.

ESP8266 is a 3V device.It is just of 5$ but the power consumption is high.So we need to use 1 A current over here.For having the current of 1 A,we are using 1117 Voltage Regulator. In this tutorial,we will learn to send  AT commands to ESP8266 . Connect the circuit as shown in figure. Untitled-1

Paste the code in the Arduino Software.

 #include <SoftwareSerial.h>  
 SoftwareSerial esp8266(2,3); // make RX Arduino line is pin 2, make TX Arduino line is pin 3.  
                // This means that you need to connect the TX line from the esp to the Arduino's pin 2  
                // and the RX line from the esp to the Arduino's pin 3  
 void setup()  
 {  
  Serial.begin(9600);  
  esp8266.begin(9600); // your esp's baud rate might be different  
 }  
 void loop()  
 {  
  if(esp8266.available()) // check if the esp is sending a message   
  {  
   while(esp8266.available())  
   {  
    // The esp has data so display its output to the serial window   
    char c = esp8266.read(); // read the next character.  
    Serial.write(c);  
   }   
  }  
  if(Serial.available())  
  {  
   // the following delay is required because otherwise the arduino will read the first letter of the command but not the rest  
   // In other words without the delay if you use AT+RST, for example, the Arduino will read the letter A send it, then read the rest and send it  
   // but we want to send everything at the same time.  
   delay(1000);   
   String command="";  
   while(Serial.available()) // read the command character by character  
   {  
     // read one character  
    command+=(char)Serial.read();  
   }  
   esp8266.println(command); // send the read character to the esp8266  
  }  
 }  

Now upload the code and open Serial Monitor. Send the AT command “AT+RST”,the response will be OK. Send “AT+CWLAP” to show the available networks around ESP8266. SEND “AT+CWJAP=”SSID”,”PASSWORD”” to connect to any particular network. then “AT+CIFSR” to see the i.p address. This way we can test our WiFi module and use it to connect it to the network. Thank You 🙂