ablab

Hello Readers, welcome to my Blog - A Blog For Bloggers By A Blogger. I'm Arun, an entrepreneur Blogger from India.

PC Controlled Wireless Robot with ATmega32 using 433MHz RF

2274
Mark as Favourite

In this project, we will learn How to design a PC controlled wireless robot with AVR ATmega32 microcontroller using 433MHz RF circuit. Here, we will use the PC keyboard as the input device and the 433MHz RF circuit to drive the robot wirelessly in different direction and we will display the direction of movement of robot in the PC.
PC will send the signal (ASCII value of pressed key value) to the ATmega32 microcontroller through its serial port. But current generation PCs and Laptops do not have serial port in them, so we will use one USB to Serial converter cable which will create a virtual serial port in the PC /Laptop. Again, the output of USB to Serial cable can not be connected to microcontroller directly as the output voltage of USB to Serial Cable corresponds to RS-232 level. But the ATmega32 microcontroller needs TTL/CMOS voltage levels. For this, we will use MAX-232 voltage converter which will convert RS-232 voltage level to TTL one and vice-versa. The ATmega32 microcontroller will read the serial output of MAX-232 through its USART and it will process it to know which key of the PC keyboard is pressed. After knowing which key of the PC keyboard is pressed, the ATmega32 microcontroller will send the required 4 bit signal to the HT12E encoder of RF transmitter circuit. The HT12E will encode the 8 bit address and 4 bit data given to it and then it will transmit the encoded signal serially to the RF module. The RF module will transmit the encoded data and address wirelessly and it will send the direction of movement of robot to PC also (direction of robot will be displayed in PC).

At the receiver end, the RF receiver module will receive the encoded 4 bit data and 8 bit address. Then, it will transmit the encoded signal serially to the HT12D decoder which will decode the received signal to 8 bit address and 4 bit data. After decoding, the HT12D will compare the received 8 bit address with its local 8 bit address. If the received address and the local address are same, then the received 4 bit data is sent to its output pins else the received data is discarded. The 4 bit output of HT12D is sent to the DC motor driver (L293D) of the robot to drive the robot in the desired direction.

The control keys for the robot are F or f, B or b, L or l, R or r and S or s to drive the robot in forward, backward, left, right direction and to stop it respectively. Now, press different keys from the PC and drive your robot wirelessly as you want.

Control Keys

Robot Direction

F or f

Forward

B orb

Backward

L or l

Left

R or r

Right

S or s

Stop

 

Softwares Required

Hardwares Required

Name Quantity
AVR Trainer Board-100 with ATmega32 1pc
AVR USB Programmer 1pc
12V, 1A DC SMPS Adaptor 2pc
DC Motor Driver 1pc
RS-232 Driver Board 1pc
Robot V 4.0 1pc
433MHz RF Transmitter & Receiver Board 1pc
Power Supply Board 1pc
USB to Serial Cable-Y-105 1pc
1 to 1 Connector-Female to Female 9pc
10 to 10 FRC Female to Female Connector 3pc

Circuit Diagram

Video

Connection Guide

The step-by-step connection guide for PC Controlled Wireless Robot with ATmega32 using 433MHz RF is as follows

  • Steps - 1 ( 0f 19 )

    Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of AVR Trainer Board-100.

  • Steps - 2 ( 0f 19 )

    Connect PortB header of AVR Trainer Board-100 with RF Transmitter header of RF Transmitter Board with a 10 to 10 FRC Female Connector.

  • Steps - 3 ( 0f 19 )

    Connect the TE bar pin and GND of RF Transmitter Jumper header with a jumper.

  • Steps - 4 ( 0f 19 )

    Set the address of RF Transmitter to 0x00 with the help of 8 way DIP switch in RF Transmitter Board

  • Steps - 5 ( 0f 19 )

    Connect USB side of USB to Serial Cable to PC USB port and the other side to DB-9 connector of RS-232 Driver.

  • Steps - 6 ( 0f 19 )

    Connect PortD header of AVR Trainer Board-100 with RS-232 header of RS-232 Driver with a 10 to 10 FRC Female Connector.

  • Steps - 7 ( 0f 19 )

    Connect the ISP header of AVR Trainer Board-100 with AVR USB Programmer header of AVR USB Programmer with a 10 to 10 FRC Female Connector.

  • Steps - 8 ( 0f 19 )

    Connect the AVR USB Programmer to the PC/Laptop's USB Port directly or with the help of USB AM-AF Cable.

  • Steps - 9 ( 0f 19 )

    Download the PC Controlled Wireless Robot with ATmega32 using 433 MHz RF Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.

  • Steps - 10 ( 0f 19 )

    Open the RealTerm or any other terminal Software and set the COM port and USART configuration same as ATmega32 microcontroller.

  • Steps - 11 ( 0f 19 )

    Switch on the power with the help of Power Switch of AVR Trainer Board-100.

  • Steps - 12 ( 0f 19 )

    Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of Power Supply Board.

  • Steps - 13 ( 0f 19 )

    Connect the 5V and GND pins of 5V header and GND header of Power Supply Board to VCC and GND pins of Input header of DC Motor Driver and RF Receiver header of RF Receiver Board with 1 to 1 Connectors.

  • Steps - 14 ( 0f 19 )

    Set the address of RF Receiver to 0x00 with the help of 8 way DIP switch in RF Receiver Board.

  • Steps - 15 ( 0f 19 )

    Connect the D8, D9, D10 and D11 pins of RF Receiver header of RF Receiver Board with I/P1, I/P2, I/P3 and I/P4 pins of Input header of DC Motor Driver with 1 to 1 Female Connectors.

  • Steps - 16 ( 0f 19 )

    Connect the 12V pin of PWM & Motor Voltage header of DC Motor Driver with the 12V header of Power Supply Board with a 1 to 1 Connector.

  • Steps - 17 ( 0f 19 )

    Connect the Robot connector to the Output header of the DC Motor Driver.

  • Steps - 18 ( 0f 19 )

    Switch off the Mode Switch of DC Motor Driver.

  • Steps - 19 ( 0f 19 )

    Switch on the power with the help of Power Switch of Power Supply Board.

  • Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of AVR Trainer Board-100.

    Steps - 1 ( 0f 19 )

  • Connect PortB header of AVR Trainer Board-100 with RF Transmitter header of RF Transmitter Board with a 10 to 10 FRC Female Connector.

    Steps - 2 ( 0f 19 )

  • Connect the TE bar pin and GND of RF Transmitter Jumper header with a jumper.

    Steps - 3 ( 0f 19 )

  • Set the address of RF Transmitter to 0x00 with the help of 8 way DIP switch in RF Transmitter Board

    Steps - 4 ( 0f 19 )

  • Connect USB side of USB to Serial Cable to PC USB port and the other side to DB-9 connector of RS-232 Driver.

    Steps - 5 ( 0f 19 )

  • Connect PortD header of AVR Trainer Board-100 with RS-232 header of RS-232 Driver with a 10 to 10 FRC Female Connector.

    Steps - 6 ( 0f 19 )

  • Connect the ISP header of AVR Trainer Board-100 with AVR USB Programmer header of AVR USB Programmer with a 10 to 10 FRC Female Connector.

    Steps - 7 ( 0f 19 )

  • Connect the AVR USB Programmer to the PC/Laptop's USB Port directly or with the help of USB AM-AF Cable.

    Steps - 8 ( 0f 19 )

  • Download the PC Controlled Wireless Robot with ATmega32 using 433 MHz RF Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.

    Steps - 9 ( 0f 19 )

  • Open the RealTerm or any other terminal Software and set the COM port and USART configuration same as ATmega32 microcontroller.

    Steps - 10 ( 0f 19 )

  • Switch on the power with the help of Power Switch of AVR Trainer Board-100.

    Steps - 11 ( 0f 19 )

  • Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of Power Supply Board.

    Steps - 12 ( 0f 19 )

  • Connect the 5V and GND pins of 5V header and GND header of Power Supply Board to VCC and GND pins of Input header of DC Motor Driver and RF Receiver header of RF Receiver Board with 1 to 1 Connectors.

    Steps - 13 ( 0f 19 )

  • Set the address of RF Receiver to 0x00 with the help of 8 way DIP switch in RF Receiver Board.

    Steps - 14 ( 0f 19 )

  • Connect the D8, D9, D10 and D11 pins of RF Receiver header of RF Receiver Board with I/P1, I/P2, I/P3 and I/P4 pins of Input header of DC Motor Driver with 1 to 1 Female Connectors.

    Steps - 15 ( 0f 19 )

  • Connect the 12V pin of PWM & Motor Voltage header of DC Motor Driver with the 12V header of Power Supply Board with a 1 to 1 Connector.

    Steps - 16 ( 0f 19 )

  • Connect the Robot connector to the Output header of the DC Motor Driver.

    Steps - 17 ( 0f 19 )

  • Switch off the Mode Switch of DC Motor Driver.

    Steps - 18 ( 0f 19 )

  • Switch on the power with the help of Power Switch of Power Supply Board.

    Steps - 19 ( 0f 19 )

Downloads

PC Controlled Wireless Robot with ATmega32 using 433MHz RF
  • 5 downloads 0 Kb

Post a Comment