Thursday 25 August 2016

Communicating with Arduino by using Bluethooth [Simple Steps]

Communicating with Arduino by using Bluetooth

What is Bluetooth?

Bluetooth is a global wireless communication standard that connects devices together over a certain distance. Think headset and phone, speaker and PC, basketball to smartphone and more. It is built into billions of products on the market today and connects the Internet of Things (IoT). For more information about IoT, Click here.

How does Bluetooth work?

A Bluetooth device uses radio waves instead of wires or cables to connect to a phone or computer. A Bluetooth product, like a headset or watch, contains a tiny computer chip with a Bluetooth radio and software that makes it easy to connect. When two Bluetooth devices want to talk to each other, they need to pair. Communication between Bluetooth devices happens over short-range, ad HOC networks known as piconets. A piconet is a network of devices connected using Bluetooth technology. The network ranges from two to eight connected devices. When a network is established, one device takes the role of the master while all the other devices act as slaves. Piconets are established dynamically and automatically as Bluetooth devices enter and leave radio proximity. If you want a more technical explanation, you can read the core specification or visit the Wikipedia page for a deeper technical dive.

About HC-05 Bluetooth module for arduino :

Correct connections:

NOTE:  Rx pin of arduino should connect to Tx of Bluetooth vice versa.

About Pins of  HC-05 Bluetooth module:
  • Vcc:  Indicated range is 3.6 to 6 volt. To be on safer side, you should connect it to 3.3 Volt.
  • GND: Ground
  • TX: Serial output pin
  • RX: Serial input pin

Baud rate of HC-05:

Generally the baud rate of 9600 but it can also differ for different module you can simply check by changing baud rate in your serial monitor of Arduino.

 Default password for connecting to your phone:
 Generally the default password for HC-05 is "1234" or you can check it on your datasheet  of your Bluetooth module.

Now this is the time for making a small project using Bluetooth

We are going to blink a LED via Bluetooth signal using Smartphone.
List of Parts needed:

  • Arduino
  • Breadboard 
  • Some jumpers wires
  • Bluetooth module (ex. HC-05)
  • Android Phone with this app multicontroller (click here to download)
  • LEDs, resistors etc.
First you need to build a circuit given blow by using breadboard and jumper wires.

Circuit Diagram

Now this is time to do code in arduino:
//initializing pin 8 for led 
int ledPin=8;
void setup() {
  // starting the serial port
  //initializing ledPin to OUTPUT mode
void loop() {
  //checking whether data is coming from the device
    int; //reading data from Bluetooth module 
    Serial.println(data);   //print data in serial monitor
    if(data==1)  //if button 1 pressed led blink
    if(data==2)   //if button 2 id pressed led will turn off
Now this is the time to upload the code into Arduino just click on Upload button
NOTE: One thing you should remember that at the time of uploading code into Arduino Tx& and Rx pin should be disconnected to Arduino.

Final steps:

Turn on your Bluetooth .
Open Multicontroller  (click here to download)  App than click on "Select Bluetooth Module" and than choose Module named as "HC-05" (or other).
Now you can control your LED by button "1" and "2".

That was all about basics of Bluetooth controlling. You can do many interesting projects by using Bluetooth and Android Phone. 

I hope you have enjoyed this :)
For any suggestion and query please write in comment box.




Thursday 18 August 2016

Practicing without Arduino (Online Simulation)

Arduino Simulation without arduino

Practicing  without Arduino (Online Simulation)

Most of you are interested in electronics and robotics but you also know that is difficult to make some projects due to unavailability of electronics items which you needed in your projects.
We are also know that electronics items are so costly and sometimes you can't able to get desirable items which you need.

So don't worry let's we start to make those projects on

Step 1: 

Free Sign Up on with your Email or Facebook account.

Step 2:

 Click on menu:>>

Then click on Electronics Lab:>>


 Then click on New Electronics Lab:>>

Now all are ready :)

For more clarification watch this video :

 If you like this video then subscribe for more videos :Subscribe

Let's try this pre designed circuit of above video: 

If you create something new on then paste the link in comment box :)

For any suggestion and query please write in comment box.






Saturday 13 August 2016

Arduino Setup for beginners

Arduino Setup for beginners 

What is Arduino?

Arduino is an open-source electronics prototyping platform based on flexible, easy-to-use hardware and software. It’s intended for artists, designers, hobbyists, and anyone interested in creating interactive objects or environments.
More details:

Let's start

Buy an anduino board and some starter kit (list)

Arduino UNO R3 is best for beginner as know.

  Arduino UNO

You can buy it from a local shop or online some links are given blow:

Install the arduino software

Click on the list on the side if you want to use another Arduino board. 

Setup the port and choosing arduino board in IDE

  • Open arduino software
  • Connecting the arduino to the computer via USB cable
  • Now click on Tools->Port->select port of your arduino( my port no is COM3 it can be different for your board)
  • Now select Arduino Board Model  given blow

Now all are set let'do it....

For any suggestion and query please write in comment box.


How to glow a LED using arduino

How to glow a LED using arduino (basic)

List of items needed:

  • Arduino Board 
  • Jumper wires 
  • LEDs
  • Resistance (47Ohm)
  • Breadboard (optional)

Connections and circuit diagram :

Let's do some coding in arduino:

// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 13;

// the setup routine runs once when you press reset:
void setup() 
      // initialize the digital pin as an output.
      pinMode(led, OUTPUT);

// the loop routine runs over and over again forever:

void loop() {

      digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
      delay(1000);                      // wait for a second

     digitalWrite(ledLOW);    // turn the LED off by making the voltage LOW
     delay(1000);                      // wait for a second

Uploading code in arduino:

Connect arduino to the computer then select port:(ex. COM3) 

And simply Click on the Upload Button as given blow :

Now See your LED it will glowing :)

You can do many experiments with time delay and connecting more LEDs .

If you make something new then post in the comment box that will be appreciable.

For any suggestion and query post in comment box.