ROBOTIC
TUTORIALS.COM

Popular Tutorial

Click on the image interested  to know what they are, how to do them and more...
Scroll down to check out to specific topic of tutorials on Electronics and Robotics.
Wi-Fi Controlled Robot
1

Items Required

   
     Product Name                             Quantity          
               

  • Acrylic Chassis                       1                    Buy Now 
  • Wheels                                  2                    Buy Now
  • Castor Wheel                         1                    Buy Now 
  • BO motor                               2                   Buy Now
  • Motor Clamp                          2                    Buy Now 
  • SPDuino Board                       1                    Buy Now
  • Xbee Shield                           1                    Buy Now 
  • Power Bank                           2                    Buy Now
  • WiFi Module                          1                    Buy Now 
  • Xbee USB Adapter  Board        1                   Buy Now 
  • USB A to mini B Cable            1                    Buy Now
  • USB A-B Cable                       1                    Buy Now
  • Adapter 5V 2Amps                 1                    Buy Now
  • Screw Assortment                  1                    Buy Now
  • USB to 2 Pin RMC Series         1                    Buy Now


2

Component Specifications

CHASSIS

          Length: 150mm
          Width:  120mm  
  • Either own chassis can be designed or available chassis can be used.
  • Provisions are made to fix sensors, SPDuino Board, small castor wheel etc.,
  • clamp is fixed to attach motors.
    



MOTOR

         RPM: 150 RPM at 12 v
  • This is plastic geared motor and has D type shaft.
  • This is used in autonomous robots and line follower robots etc.,
     

WHEEL

          Diameter: 7 cm      
          Width: 8 mm
  •   These wheels are used for BO/ Plastic geared, D type shaft motors.
      

CASTOR WHEEL

          Base plate diameter - 27.5 mm
          Caster wheel diameter - 13.5 mm
          Wheel height - 18 mm


  • The small castor wheel is an omni-directional wheel.
  • This wheel is used as free support front wheel for robots.


 
SPDUINO BOARD
  • Microcontroller: ATmega328
  • Operating Voltage: 5V
  • Input Voltage (recommended): 7-12V
  • Input Voltage (limits): 6-20V
  • Digital I/O Pins: 14 (of which 6 provide PWM output)
 


XBEE SHIELD
  • Provided with stackable headers
  • On board 5V, 1.5Amps regulator
  • Hassle free interface for xbee modules
  • Includes dual motor driver (L293D)
  • Indicators provided for Data-in, Data-out and RSSI (Signal strength indicator) compatible with all  Xbee versions  and   Rn Xv wifi module..



RN-XV WIFI MODULE (WIRE ANTENNA)
  • Based on common 802.15.4
  • Ultra low power
  • Onboard TCP/IP stack
  • Configurable
  • 8 general purpose digital I/O
  • 3 analog sensor inputs
  • Real-time clock
  • Wire antenna



XBEE USB ADAPTER BOARD 
  • Compatible for all modules with Xbee footprints  
  • Indicator for Signal strength(RSSI), power, TX and RX
  • Comes with Mini USB connector



USB A to mini B Cable

  •  This cable will be used to connect both the xbee modules to your computer for software  configuration 





USB A to B Cable

  •  This cable will be used for uploading the program code in spduino

       

  BATTERY

  • Battery Voltage: 5V 
  • Battery capacity: 2000mAh





Adapter 5V 2A




Screw Assortment 

Screw Assortment Consists of
  • 3 x 10 Spacer - 4 Nos
  • 3 X 20 Spacer - 4 Nos
  • 3 X 10 Bolt - 14 Nos
  • 3 X 25 Bolt - 7 Nos
  • 3 X 50 Bolt - 5 Nos
  • BO Screws - 5 Nos
  • 3mm Nut - 30 Nos
3

Robot Assembling

FIXING CLAMP AND CASTOR WHEEL
  • Clamp is fixed in the given provision with screws.
            


  • Small castor Wheel is fitted in front side of the chassis with screws.
                                
FIXING THE MOTOR
  • The clamp has many holes to connect the motor in any desired position.
  • Both the motors are fixed in the appropriate holes in the clamp.
  • The shaft of the motor should face the other end so as to fix the wheel.
                  
                 

FIXING THE WHEELS TO CHASSIS
  • The wheels are fitted to the shaft of both the motors.
                
  • They are screwed in the axle of the wheel. 
                  


FIXING SPDUINO BOARD AND SHIELD
  • To fit the board in chassis the long screw is inserted the board and required spacers are added to it.
  • The space between the board and chassis is separated by the spacers.
                            Arduino Board

Now the board is fixed in the chassis with screws already connected to it.

                    

Above the board the Xbee shield is connected using the stackable headers.
4

Wi-Fi Module Configuration

RN XV modules can be configured to connect to your Wifi  network with the help of various configuration software such as Tera Term, Comm operator,etc.

We have used  Tera Term in this tutorial.

Step 1: Connect Rn Xv (Wifi)  module with the help of Xbee Adapter to the computer via USB

Step 2: Open Tera Term software.


Step 3 : Select serial communication  port (COM port at which Xbee adapter is connected)


Step 4: Click Ok. After it you will get a screen here you need to type the commands used to set network parameters in module memory.


Step 5: Commands used are as follows

  •     $$$     (TYPE $$$ it will be invisible)

                   Note:  It allows you to enter in command mode 

                              You will receive CMD as a reply in your screen

    

  •   set wlan ssid  *****  (refers to your network name)
  •   set wlan phrase *******  (refers to your network password)
  •   set wlan join 1
  •   set wlan channel 0
  •   set ip a 192.168.1.201 (depends on your router or modem )
  •   set ip localport 2000
  •   set ip dhcp 0
  •   set ip gateway 192.168.1.1 (depends on your router or modem )
  •   set ip netmask 255.255.255.0

             Note:  for all these commands you will get AOK as the response.                

  •   save
  •   reboot



             THIS WILL BE THE SCREEN AFTER CONFIGURATION   

Step 6: Configuration is complete now exit TERA TERM software. Remove your wifi module from adapter and attach it to the XBEE shield of your Robot like this pic.



Step 7: Connect the Motors and Battery to the Xbee Shield and upload the Program  in your SPduino.


5

Establishing Connection with Wifi Module

Now  to communicate with your robot using the Wifi  attached to it we need a network communication tool such as PUTTY, etc. 

We are using putty in this tutorial .
Open putty enter the IP address of the module (which you have configured)  and the port number. Now select RAW  in connection type and click open.



      You will receive hello as the response from the module once you are connected with it.

 

        Once you receive hello now give the commands you  programmed for moving the robot. That time the light on the module should be solid green.

IMPORTANT  NOTES

Your Computer or laptop should be connected to the same network which is configured in the Wifi module.
 

The jumpers of the xbee shield used in this tutorial should be in  microcontroller mode other wise the robot will not work and do not forget to adjust  the jumper of  Spduino board after uploading the program. 



 

LIGHT INDICATIONS of  Rn Xv MODULE

GREEN & RED alternate blinking  - Searching for the network.

GREEN Blinking  -  Connected to network.

GREEN Solid  -  Connected to a device.

      ( The green led will blink at a faster rate during module configuration) 




6

Sample Program


In this sample program the  robot performs these basic 5 movements:

  Forward
  Backward
  Right
  Left
  stops

Motor teminals in the Xbee shield are programmed to move the robot.
High and Low signals are given to control the motor.

FORWARD
  • Left and right motor rotates in same direction.
  • Now the robot moves forward.
    

BACKWARD
  • Left and right motor rotates in a direction opposite to forward action.
  • Robot moves backward.

RIGHT
  • The left motor has to move forward and right motor has to reverse.
  • Robot turns right.

LEFT
  • The left motor has to move backward and right motor has to forward.   
  • Robot turns right.

Stop

  • Left and right motor stops rotates.
  • Now the robot Stops.

View sample program to be uploaded in the Spduino from the link given. 

The program is explained briefly in this copy and use the program in arduino software.

View sample program


HAPPY ROBOTING !!!
Home | Shop | Terms & Conditions | Privacy Policy | Disclaimer | Contact Us
Copyright © SP Robotic Works. All Rights Reserved.