connect@howdiyworld.com
|

Rover Robot

What is Needed?

ZigBee X 2,
Robot Car Kit
5V 2 channel Relay
9V Battery
Arduino Uno
Jumpers
HowDIY

BLOCK DIAGRAM

Procedure

  1. Rover Robot Hardware
  2. Connections
  3. Program
  4. Output

Procedure

ZigBee

ZigBee is a IEEE 802.15.4 based, low power, low data rate supporting wireless networking standard, which is basically used for two-way communication between sensors and control system. It is a short-range communication standard like Bluetooth and Wi-Fi, covering range of 10 to 100 meters.

DC Motor

The DC motor is a machine that transforms electric energy into mechanical energy in form of rotation.

Relay

A relay is an electromagnetic switch operated by a relatively small electric current that can turn on or off a much larger electric current.

9V Battery

A battery is a device consisting of one or more electrochemical cells with external connections for powering electrical devices such as flashlights, mobile phones, and electric cars.

Robot Car Kit

Connections

Receiver Side:

  • Connect the 5V Relay’s VCC to Arduino Uno’s 5V pin.
  • Connect the 5V Relay’s Ground (GND) to Arduino Uno’s GND pin.
  • Connect the 5V Relay’s Input1 (I1) to Arduino Uno 5th pin.
  • Connect the 5V Relay’s Input2 (I2) to Arduino Uno 7th pin.
  • Connect the ZigBee’s Ground(GND) to Arduino Uno GND pin
  • Connect ZigBee’s VCC to Arduino Uno 3.3V pin
  • Connect one(Motor1) end of the motor with Relay1’s NO(Normally Open)
  • Connect the other (Motor1) end of the motor to Negative(-) side of 9V battery.
  • Connect Relay’s Common (COM) to Positive(+) side of 9V battery.
  • Inter connect the two Relay’s Common (COM)
  • Connect one(Motor2) end of the motor with Relay2’s NO(Normally Open)
  • Connect the other (Motor2) end of the motor to Negative(-) side of 9V battery
  • Give a Power Supply(9V) to Arduino Uno Directly

Transmitter Side:

  • ZigBee Module connects Raspberry Pi USB directly.

Program

import time
import serial
ser = serial.Serial(
port='/dev/ttyUSB0',
baudrate = 9600,
parity=serial.PARITY_NONE,
stopbits=serial.STOPBITS_ONE,
bytesize=serial.EIGHTBITS,
timeout=1)
def get_input(a):
if a=="right":
ser.write(str.encode(“1"))
if a=="left":
ser.write(str.encode(“2"))
if a=="forward":
ser.write(str.encode(“3"))

Output

Here if you press Forward Button the Rover robot moves forward, if you press Right Button the Rover robot move to the right direction, if you press Left Button the Rover robot will move in the left direction.

Social media & sharing icons powered by UltimatelySocial
Facebook
Twitter
YouTube
LinkedIn
Instagram