Tuesday, November 24, 2015

How to use a Keypad - Arduino Tutorial

We are known very well about Keypad which is the combinations of buttons arranged in manner like a block or pad. A keypad usually had digits, symbols and the set of alphabetical letters. If we using mostly numbers then this keypad is called Numeric keypad. Keypads can be found in many alphanumeric keyboards and other devices such as calculators, push-button telephones, combination locks, and digital door locks, which require mainly numeric input.

Alphanumeric Arduino Keypad

Step 1: What you will need

Alphanumeric Arduino Keypad

You will need:
Step 2: The Circuit

We are using 7 pins keypad with 3 columns and 4 rows.

Alphanumeric Arduino Keypad

Note:

If your system does not work properly you can change the connections in the next step and pin no in the commands Search the web for additional help or find the datasheet for your keypad.

Byte row Pins[ROWS] = {7, 2, 3, 5}; //connect to the row pinouts of the keypad
Byte column Pins[COLS] = {6, 8, 4}; //connect to the column pinouts of the keypad

Step 3: Code

Alphanumeric Arduino Keypad

Here's the code, embedded using codebender!
The keypad that we are using has 4 rows and 3 columns:
const byte rows = 4; //four rows
const byte cols = 3; //three columns
char keys[rows][cols] =
{ {'1','2','3'},
{'4','5','6'},
{'7','8','9'},
{'#','0','*'} };
Tip: If you have another set of keypad you can change those values with yours ;)

Step 4: Good Work

Alphanumeric Arduino Keypad

In this system we can learn about Arduino and how to use a keypad with arduino.

Monday, November 23, 2015

Arduino Mini

I bought an Arduino Ethernet shield which is used for design the Arduino Nano. After that I thought that I could easily hook the Arduino Ethernet up to my Arduino nano but its can not be done so I feel I was wrong.

I have not much more information to this that how can its use but I have some knowledge about the IO pins.

I tried to hook up the all the matching wires with my Nano but it was not success.
After that I bought a proper Uno then I find in which 6 pin connector but its  not properly categorize and the 6 pin connector have not special shape its very simple so its can hook up very easily but in two ways.

After that I had to do little bit searching that what pin connecting to Nano nd what connected to shield, to make sure I could not be connecting backwards.

So facing these problems I thought that I would add this fast small instruct able so that any other would not face these problems again.

Then I am sure that I find the much more use for another Arduino.
Here we present a new instruct able that hook up an Arduino Nano with a smaller WIZ550io module.


arduino-mini




 Parts Of Arduino Nano

  •       1 ArduinoNano. (if you have already Arduino Uno, just plug it)
  • .    1 Ethernet shield with SD card slot, with Wiz net w5100 chip. The w5100 have lot of programming which is directly support the Arduino libraries.
  •       5 mm hookup wires.
  •      1 breadboard
  •        1 micro SD card
  • .     A couple of business cards or a piece of paper.


For software you will need the Arduino 1.0 software
The Nano is similar to the Uno but it is very small and has male header pins. Its is very wonderful for plugging into a board. You can buy the Ethernet shielded for the Nano but it is very expensive.

When you are going to buy the shield,you have to note the important point that some of the shield do not support the SD card.Here,I buy the shield which has SD card in it-that will not cost that much and it will be very beneficial for various other projects.
It also allows for much more advanced ethernet board examples!

When you are going the files in SD card you will find the many way to hook up into computer. To success this work we will need a micro to regular SD card adapter. I am using the SD to USB.


arduino-mini




Insert Arduino Nano into breadboard
We are using the Arduino Nano many times if we have interest in this. I joint my Nano at the right side of board so that the USB connect at the edge and this edge has two holes i.e. D12 & D13. It’s become very beneficial to use board at this time


 Plug ICSP of shield onto the Nano
We are going to make the connection but very carefully. At this time we can’t use the power in the board.

We can connect the shield in two ways firstly to cover the nano and other does not.we need to plug in the shield so that all nano make visible. This turns out well, as it gives full access to the Nano connections that way.

Also make sure that you get all 6 pins plugged in.
Because the shield's pins are all exposed underneath, I had some business cards underneath to ensure that the pins cann’t accidentally connect with the power bus.



arduino-mini



Connect the wires
Connecting the wires is easy - simply match up the label on the Arduino Nano with the same label on the ethernet shield. The ICSP connector does most of the work and hooks up the power, so we only need 5 wires to complete the setup:

Pins 11, 12, 13 (SPI bus)
Pin 10 selects the w5100
Pin 4 selects the SD card

arduino-mini

Test the setup

To test the setup, you can use the built in Arduino examples under the File-Examples menu list, under the Ethernet and the SD folders.

One thing that's a bit of a bother is that it only supports the old DOS style 8.3 filenames, not long file names.

We are going to test the Ethernet and the SD card at the same time.


Ladyada is the updated version and you can replace this outdated reference to server with Ethernet server and client with client server.



Thursday, November 19, 2015

Arduino board in India


It’s my blog in which we are going to use a gas alarm. In this system when pollution is detect user got a message.

arduino-board-in-india

Step 1: Materials Required

(2) GSM shield.
(3) Jumper Cables
(4) 10K Resistor
(5) Breadboard
(6) MQ 135 gas sensor

Step 2: How to make connection between GSM shield and Arduino:-

Firstly we have to connect the transmitter part of GSM module to the pin 2 of arduino and receiver part and make both part ground.and don’t forget to give the power to the GSM shield with a 12V when our device is active.


Step 3: Making Connections between sensor and Arduino:-

Make connections and Treat the Side of Sensor With"Mq135" Written As To and choose analog pin A0.

arduino-board-in-india


Step 4: The Time of test:-

Firstly we will run code attached so that we can see readings of sensor in normal and polluted environment on serial monitor.

int mqx_analogPin = A0; // connected to the output pin of MQ-X

void setup(){
  Serial.begin(9600); // open serial at 9600 bps
}

void loop()
{
  // give ample warmup time for readings to stabilize

  int mqx_value = analogRead(mqx_analogPin);
  Serial.println(mqx_value);

  delay(100); //Just here to slow down the output.
}



Step 5: Final testing

1.    Use the noted values to edit the final code attached and to change the cellphone number in code and then write the code in arduino.
2.    Open serial monitor and wait
3.    serial monitor will show "status OK" and soon will send sms to the cellphone.

 #include "SIM900.h"
#include <SoftwareSerial.h>

//#include "inetGSM.h"


#include "sms.h"
SMSGSM sms;



int numdata;
int value;
boolean started=false;
char smsbuffer[160];
char n[20];
int PIN = A0;
int sensor = 450;

int LED1 = 11;

void setup()
{
 pinMode(LED1, OUTPUT);
  pinMode (PIN,INPUT);
  value = analogRead (PIN);
  Serial.begin(9600);
  Serial.println(value);
  Serial.println("GSM Shield testing.");

 if (value > sensor){
    digitalWrite(LED1, HIGH);
 }
 
  if (gsm.begin(2400)){
    Serial.println("\nstatus=READY");
    started=true; 
  }
  else Serial.println("\nstatus=IDLE");
  if (value > sensor){
    digitalWrite(LED1, HIGH);
  
   
   
    (sms.SendSMS("+919461022454", "RJ27 CB 3**9 Pollution Level Exceeding , Attention Required "));
      Serial.println("\nSMS sent OK");
  }

};


void loop()
{
  if(started){
   
    if(gsm.readSMS(smsbuffer, 160, n, 20))
    {
      Serial.println(n);
      Serial.println(smsbuffer);
    }
   
   
  }
};











Wednesday, November 18, 2015

Arduino Uno R3


There are some problems in our country. One day me and my Friend discussd to this problems. In our streets there is little bit security because of social in equality. In or society no one is safe even not richer because the no of robbers are increase day by day they can get easily inside the homes. so we make  system for home security purpose. But this system is very expensive and in this system we use a ring alarm to scare the thieves. But they do not actually inform you in immediate time that your house is being secure. When this system being completed its very expensive.
So I have an idea to make my own ring alarm which based on arduino. For this purpose I bought a GSM shield for Arduino Uno and other part I had.


arduino-uno-r3



 Parts Of GSM shields Home Alarm
 For this project you will need:-
Arduino Uno (Robomart);
GSM Shield (Robomart);
PIR sensor (Robomart);
An Arduino based buzzer (Robomart);
An alarm siren horn 12V(Robomart);
12V power supply (Robomart);
Relay module (Robomart);
Keypad for the Arduino (Robomart);
A box;

 
arduino-uno-r3

 
arduino-uno-r3

 

How to make connections

Firstly we have to place the Arduino Uno below the GSM shielded, then we solder  the two wires to GND and VCC jointly from two sensors, the buzzer and relay module input. After that we can connect the two wires on the connecter from GSM shield. After that we make a connection from input/output signals to this parts. And the last remaining thing is that we connect shield below the keypad.

It will be:-

 

 ArduinoUno / GSM shield pins:

·         Pin 0: not connected
·         Pin 1: not connected
·         Pin 2: not connected (the GSM will use this pin)
·         Pin 3:  not connected (the GSM will use this pin)
·         Pin 4: last row from keypad (keypad pin 4 – from 8);
·         Pin 5: not connected;
·         Pin 6: second column from keypad (keypad pin 6 – from 8);
·         Pin 7: third column from keypad (keypad pin 7 – from 8);
·         Pin 8: not connected (the GSM will use this pin);
·         Pin 9: not connected (the GSM will use this pin);
·         Pin 10: PIR sensor number 2 data;
·         Pin 11: siren horn signal (goes to the relay module input);
·         Pin 12: PIR sensor number 1 data;
·         Pin 13: buzzer signal input;

As it is possible to see, although the keypad has 8 pins, I just connected three (one row and two columns, allowing two numbers to be read – 1×2 matrix), because this way I can make passwords using these three wires, and there is no need to use all the pins from the keypad. This is because once the movement sensor detects a person walking inside the room, the person will have just 5 seconds to deactivate the alarm, so there is not enough time for the thief to figure out the alarm code. Once the alarm is not disabled on the given time, the GSM shield will proceed to send SMS to you, or to call your phone. The Arduino was programmed to call and once you answer the phone, it will finish the call. This way it will spare the credits from the mobile operator.
Of course, it is possible to get false readings from the sensor, or even the code can be buggy, so I put an option to disable the alarm just by sending an SMS text from my phone to the Arduino. Then we can send a message to show that this system will be correct.

 Conclusion of this system

After 5 sec you get a message or call in your phone when any thieves enter in your house after you can call police because I think you have much time to call the police.
When you receive the message after that the siren horn will alert the thieves and they will run without taking whatever they can. But if we do not use the siren then the thieves will not alert and they can catch by police. So by this system we can make our hose very secure.
If you have much better idea please suggest me so that I can improve my systems. 
Now You Can Visit This Link:------
 https://www.youtube.com/watch?v=_hBNhjIuz8k 




Tuesday, November 17, 2015

ARDUINO BLUETOOTH CONTROL BY WINDOWS DEVICE

Its my first blog post that how can we manage arduino with Bluetooth. Its very fast apps that we are use in windows app store. I am using arduino Bluetooth bot you can use further module.
Windows: 8.1 & 10
I am using arduino Bluetooth bot you can use further module.


ARDUINO BLUETOOTH CONTROLLER PARTS




arduino-bluetooth-control-board


















Arduino-bluetooth-control-board
















Arduino-bluetooth-control-board
















Arduino Sketch & Upload


int led = 13; 

void setup()
{
      Serial.begin(9600);
      Serial.flush();
      pinMode(led, OUTPUT);  
}



 void loop()
 {  
   String command = "";
  
      while (Serial.available() > 0)
    {
        command +=  Serial.readString();
       delay(5);
}

    if (command == "on")
    {
        digitalWrite(led, HIGH);
    }
    else if (command == "off")
     {
         digitalWrite(led, LOW);
     }
 }



 Assembling of the project


Arduino-bluetooth-control-board

We are assemble this project with the matching wires.
You can use shorter wires to remove difficulty.
-------------------------------------
-------------------------------------
Bluetooth = Arduino Pin
BLL VCC = 5v or Vin (USB only power arduinos)
BL GND = GND
BL Rx = TX pin
BL Tx = Rx pin
-------------------------------------
-------------------------------------
 Component = Arduino Pin
Led + = 13 pin
Led - = GND
.We can use arduino led in place of normal led.

Bluetooth Pair and Search

Arduino-bluetooth-control-board


 1.We can install very fast app from windows store and to install this we need windows 8.0 &10.

2. Pair your device to your laptop.
The initial pair only has to be done one time.
Most passcodes are 1234 or 0000.

 3.Open Quick Terminal and search for your device. 

How It Works:-

Arduino-bluetooth-control-board


 When we send ON command in circuit, then the Led will glow and when we send OFF command then our Led will turn off.
We can use different  type of command to control the more things in Bluetooth control Arduino.

You can also visit this link:


Saturday, November 7, 2015

Arduino Development Board

Arduino Development Board

Hello friends,
We are going to make a Bluetooth robot which is controlled by android.
We are making this robot with many codes & photos and we used step by step procedure to make this robot because everyperson know about that without any difficulty.
Step 1: Project components
1. One Arduino (Arduino 2560 in my case, but you can use any type of arduino)
3. Two 50:1 Micro Metal Gear motor.
4. Micro Metal Gear motor Bracket Pair
6. Chassis (You can by it from Robomart and you can see it From:https://www.robomart.com/multipurpose-13-8-cm-chassis-plate-for-imechano)
7. One Ball Caster with 3/8" Plastic Ball ( From:- https://www.robomart.com/l-caster-wheel-clamp-for-imechano)
8. Used 7.4 Volts, Li-Po Battery (and used some other similar batterys which having the voltage 7.4 V)
9. One, Li-Po balance charger
10. One, Bluetooth module (We used HC-05 module)
11. Led strip RGB (3 LEDs)
12. SmartPhone with android

Step 2:  Photos of the Component

 

 

Buy Arduino Development Board

 


Buy Arduino Development Board













 Step 3: Assembly Photos

Buy Arduino Development Board








 





Buy Arduino Development Board











Buy Arduino Development Board









Buy Arduino Development Board








Buy Arduino Development Board









Step 4: Connections

Bluetooth:
From Tx Bluetooth to Rx Arduino
From Rx Bluetooth to Tx Arduino
From VCC Bluetooth to 5 volts Arduino
From GND Bluetooth to GND Arduino
Led strip:
From B led strip to 22 Arduino
From G led strip to 24 Arduino
From R led strip to 26 Arduino
From 12v led strip to positive of battery.(purple-white wire)
Motor driver:

Follow the instructions:

https://www.robomart.com/l293d-motor-driver-arduino-v2.0

Step 5: App android:




Buy Arduino Development Board