Programming Real-Time Motion Control Robot Prototype



Similar documents
Automated Profile Vehicle Using GSM Modem, GPS and Media Processor DM642

Serial Communications

Single channel data transceiver module WIZ2-434

REAL TIME MONITORING AND TRACKING SYSTEM FOR AN ITEM USING THE RFID TECHNOLOGY

CONCEPTUAL DESIGN OF A HYBRID ROBOT

Accurate Measurement of the Mains Electricity Frequency

Wireless Security Camera

Bidimensional Control System through Successive Monitoring for Obstacles Identification

Design of Wireless Home automation and security system using PIC Microcontroller

EasyC. Programming Tips

MICROCONTROLLER BASED SMART HOME WITH SECURITY USING GSM TECHNOLOGY

Location-Aware and Safer Cards: Enhancing RFID Security and Privacy

Intelligent Home Automation and Security System

Construction and Application of a Computer Based Interface Card

INGENIERíA. Scada System for a Power Electronics Laboratory. Sistema SCADA para un laboratorio de electrónica de potencia Y D E S A R R O L L O

Android based Alcohol detection system using Bluetooth technology

A Surveillance Robot with Climbing Capabilities for Home Security

Project Development Plan

Tutorial 1. Introduction to robot

D755M CONTROL CARD FOR TWO SINGLE-PHASE MOTORS 220/230 VAC TARJETA DE MANDO PARA DOS MOTORES MONOFÁSICOS 220/230 VAC INSTALLATION GUIDE

VEHICLE TRACKING ALONG WITH THE ADVANCED RTO TECHNOLOGY

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

Pontifícia Universidade Católica de São Paulo

Real-Time Application Surveillance Security System Based on LabVIEW

EVAL-UFDC-1/UFDC-1M-16

Invisible EYE for Security System

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

Práctica 1: PL 1a: Entorno de programación MathWorks: Simulink

Automation System TROVIS 6400 TROVIS 6493 Compact Controller

MECE 102 Mechatronics Engineering Orientation

Micro-Step Driving for Stepper Motors: A Case Study

Feasibility Study of Implementation of Cell Phone Controlled, Password Protected Door Locking System

Voice Over Internet Protocol (VoIP) Configuration

Implementation of Smart Homes and Industrial Automation System with Secure Communication over GSM

Design and Implementation of an Accidental Fall Detection System for Elderly

Automated Security System using ZigBee

Bluetooth HC-06 with serial port module Easy guide

Programming PIC Microcontrollers in PicBasic Pro Lesson 1 Cornerstone Electronics Technology and Robotics II


Lesson 6: 6 EXAMPLES OF EMBEDDED SYSTEMS. Chapter-1L06: "Embedded Systems - ", Raj Kamal, Publs.: McGraw-Hill Education

Mariano Gómez Plaza. Computer Engineering DESCRIPTION OF THE RESEARCH RESULTS

An Introduction to MPLAB Integrated Development Environment

TX GSM SMS Auto-dial Alarm System. Installation and User Manual

Sources: On the Web: Slides will be available on:

Using Xbee in Serial Communication

INTRODUCTION: ABSTRACT:

PM1122 INT DIGITAL INTERFACE REMOTE

International Journal of Research in Advent Technology Available Online at:

Firmware version: 1.10 Issue: 7 AUTODIALER GD30.2. Instruction Manual

LEN s.r.l. Via S. Andrea di Rovereto 33 c.s CHIAVARI (GE) Tel Fax mailto: len@len.it url: http//

Bidirectional wireless communication using EmbedRF

Understanding Mechatronics Engineering Using a School Project

mdm-mp3 minidirector with MP3 Player

Zigbee-Based Wireless Distance Measuring Sensor System

International Journal of Engineering Research & Management Technology

Implementation of kalman filter for the indoor location system of a lego nxt mobile robot. Abstract

A Review of Security System for Smart Home Applications

Development of a Computer-Controlled Security Gate System.

Wireless Home Security System

Vehicle and Object Tracking Based on GPS and GSM

ezsystem elab16m Project 1F: Alarm System (Full Project description)

Embedded Web Server for Infra Red Remote Control

SAMPLE CHAPTERS UNESCO EOLSS DIGITAL INSTRUMENTS. García J. and García D.F. University of Oviedo, Spain

CHAPTER 11: Flip Flops

Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide

ANDROID BASED SECURITY AND HOME AUTOMATION SYSTEM

Android based Secured Vehicle Key Finder System

Application of a Web-based Monitoring and Control system in Plastic Rotational Moulding Machine

Table 1 Comparison of DC, Uni-Polar and Bi-polar Stepper Motors

E-Blocks Easy RFID Bundle

SUDT AccessPort TM Advanced Terminal / Monitor / Debugger Version 1.37 User Manual

Remote control circuitry via mobile phones and SMS

ROBOTC Software Inspection Guide with Additional Help Documentation

C24-CAMANL Video Server/Encoder

If an occupancy of room is zero, i.e. room is empty then light source will be switched off automatically

VEHICLE MONITORING CONTROLLING AND TRACKING SYSTEM BY USING ANDROID APPLICATION

Efficient Authorized Access Security System Control Using ATMEL 89C55 & Mobile Bluetooth

Test Driven Development of Embedded Systems Using Existing Software Test Infrastructure

Fondamenti su strumenti di sviluppo per microcontrollori PIC

Computer Automation Techniques. Arthur Carroll

ELECTRICAL AND COMPUTER ENGINEERING By Joan Omoruyi, Engineering Librarian, Northeastern University

GPS & GSM BASED REAL-TIME VEHICLE TRACKING SYSTEM.

revolution Contents: Introduction Power 28-pin Project Board with input/output cables

Design And Implementation Of Bank Locker Security System Based On Fingerprint Sensing Circuit And RFID Reader

LDG DTS-4/4R Desktop Coaxial Switch / Remote

Interfacing a DC Motor

Computer Aided Design of Home Medical Alert System

Original Research Articles

MANUAL FOR RX700 LR and NR

SMEMA Surface Mount Equtpment Manufacturers Association

Data Transmission Using Laser Light

How To Control Gimbal

Parallel Port Interfacing with Switches, Keypad and Rotatory encoder

ENERGY EFFICIENT WIRELESS CLASSROOM AND BUS MONITORING SYSTEM

I. DigitalCAT Captioning Software Overview A. Welcome B. Acquiring the Captioning Add-On C. Purpose of this Guide...

I2C PRESSURE MONITORING THROUGH USB PROTOCOL.

To Purchase This Item, Visit BMI Gaming Operation Manual

REMOTE CONTROL OF REAL EXPERIMENTS VIA INTERNET

Experimental Study of Automated Car Power Window with Preset Position

Transcription:

Programming Real-Time Motion Control Robot Prototype A. Medina-Santiago* 1, J. L. Camas Anzueto 1, M. Pérez-Patricio 1, E. Valdez-Alemán 2 1 Instituto Tecnológico de Tuxtla Guitérrez División de Posgrado e Investigación Tuxtla Gutiérrez, Chiapas., México *amedina@ittg.edu.mx 2 Tecnológico de Estudios Superiores de Ecatepec División de Ingeniería Electrónica y Telemática Ecatepec de Morelos, Estado de México., México ABSTRACT This item presents the real-time programming of a prototype robot to control its movement from one moment to another without showing response delays. Contributing to this is the communication protocol developed in our laboratories and feasibility of being implemented in the future with wireless control via radio frequency, and to present the progress to date have been obtained. Keywords: microcontroller, sensors, actuators, C languages, graphical interface, control, protocols, transmission, reception. RESUMEN Se presenta la programación en tiempo real de un auto prototipo para controlar su movimiento de un momento a otro sin presentar retardos de respuesta. La contribución a este mismo es el protocolo de comunicación desarrollado en nuestros laboratorios y la factibilidad de ser implementado en un futuro con control inalámbrico, a través de radio frecuencia, así como presentar los avances que hasta el momento se han obtenido. 1. Introduction Nowadays the majority of mechatronic systems are developed and manufactured have constant changes in design or being designed with technology circuits or transistor logic gates which it could operate an electronic system. Constant changes in technology impact manufacturing processes of electronic devices making them increase its potential in its operation, such as microcontrollers. Today all electronic system tends to be simplified at low cost components with a reduced manufacturing time. The microcontrollers achieves perspectives, and has a better control in mechatronic systems. For example, this can be seen in DVD S, digital cameras, automotive control systems, satellites, television, washing machines, and others. The use of microcontrollers for the design and implementation of mechatronic systems aims to maintain a better control and reduce the manufacturing cost, and increase performance. The prototype design will be controlled automatically without the need a person is aware or its performances with the appliance of sensors. In this first report we present the prototype robot control by software (graphical atmosphere, the prototype perimeter movement, etc.), and submit the final implementation of the project will be introduced in events like this. With this kind of project we can make some applications, for example, measurement of distances using the diameter of the cars tires to calculate the distance it has travelled and to be able to display information on an LCD screen, in the same way moving heavy objects from one location to another without coalition, etc. In section II of this item presents the description block of the system, components parts in hardware and software. Section III shows the code used to control the robot. Section IV shows the results and comments. Section V presents the conclusions of the work and future work. 2. Description The development of the project becomes from the necessity to handle a car with a microcontroller Journal of Applied Research and Technology 927

(microcontrollers) for our case we use the PIC16F84, the first stage is a program that is developed and communication protocol to conduct self-control from the PC using the language C programming and the development of the communication protocols, protocols for data transmission and reception. Control of the car through the hardware and software is described below. From the keyboard of the PC we will have the total control of the prototype with a small settled graphic that has been developed in C language menu hardware containing the car is a 16f84 PIC microcontroller, which contains a program that translates data from the computer to the car robot would shift in a definite sense autonomy purposes the car must have four sensors, two sensors will be found to the left and two sensors to the right opposite a third sensor is placed at the bottom and the fourth sensor will be placed as shown in figure 1. Figure 1. The sensors operate by reflection of signals The sensors that were used are the type of infrared sensors, a LED was placed (transmitter) and a photodiode (receiver), the functioning of the devices is simply reflected at the nearest surface of the car, a treatment is given to the signal to give us 5volts to enter by the port to the microcontroller, which in this case this is the input port and port B is output. The following concept describes the connection in each of the pins of the input and output ports of the microcontroller. PortA. (Input). The products are connected to porta the following sensors: Bit0 upper front sensor Left sensor bit1 Right sensor Bit2 Bit3 inferior frontal sensor Bit4 not used Bit5 not used PortB. (Output). In the port B is connected to the following sensors: Bit0 1 st line stepper motor Bit1 2nd line stepper motor Bit2 3rd line of stepper motor Bit3 4th line of stepper motor Bit4 direction of the cart Bit5 direction of the cart Bit6 not used Bit7 not used 2.1. Circuit operation. When a photodiode detected the infrared, it ceases to flow a small amount of current which is amplified by means of a first transistor, which in turn, said current continues to circulate in a second transistor, which will provide a voltage, so that we give treatment to the voltage to keep it and treat 5volts now as a logic level high (1 logic) 5volts and low (0 logic) when the voltage is zero volts. Under these conditions the data are provided in the form of logical ones and zeros, for the port to the microcontroller to manipulate the engine that gives traction or displacement of the car and the address. The control stage stepper motor, consisting of four small power transistors receiving the pulses that are transmitted from the port B with the first four transistors is increased the current will be used to activate the bases of the second stage transistors medium power, which manipulate the current demanded the stepper motor. In Figure 2 shows the block diagram indicating the operation mode of the car because a sensor with other sensors performs the same function. As shown in Figure 2, the order is maintained in a state that can be static, rotating one turn, moving in reverse or forward correctly, so that when a sensor detects the infrared, the microcontroller will be processing the first information that arrives at port A, according to data that is taken into the port, the microcontroller will compare the data in and send new data on port B, four bits are taken from this port, connect to the amplifier stage to command the four bits to the actuator in this case the stepper motor in such a way that causes the movement of the car. The microcontroller is constantly monitoring the status of sensors to make decisions by varying the state of the actuator and therefore the motion of the car. 928 Vol. 11, December 2013

Figure 2. Diagram block of the operation of the car prototype Figure 3 shows the electronic control diagram of the car. In this diagram you can see a serial connector for connection to PC, a program in C language controls i.e. the car, where by means of the keyboard have full control and you could see on the screen the behavior of the car PC. Figure 3. Diagram Electronic of self-control 2.2. C programming code Shows the programming code in C language used for the development of this work, which can observe the syntax and the implementation thereof, shown in Figure 4d. # Include <dos.h> # Include <conio.h> # Include stdio.h Stdlib.h main () { textcolor (10); textbackground (3); / * Int data; * / char key; do {/ * start menu * / gotoxy (10.3); gotoxy (10.4); ("= MOVING THIS PROGRAM CART ELECTRIC A = \ n"); gotoxy (10.5); gotoxy (10.6); ("= KEYPAD = \ n"); gotoxy (10.7); gotoxy (10.8); gotoxy (10,10); ("= MOVING FORWARD WITH THE KEY a = \ n"); gotoxy (10,11); ("= MOVING BACK TO KEY = r \ n"); gotoxy (10,12); ("= MOVING TO THE LEFT WITH THE KEY i = \ n"); gotoxy (10,13); ("= MOVING RIGHT WITH THE KEY d = \ n"); gotoxy (10,14); ("= STOP SHOPPING WITH KEY = p \ n"); gotoxy (10,15); ("= SOFTWARE TO EXIT PRESS se = \ n"); gotoxy (10,17); ("= NAMES OF STUDENTS: AGUILAR JOSE CARLOS ANASTACIO = \ n"); gotoxy (10,18); ("== \ n"); gotoxy (10,19); gotoxy (10.22); printf ("*** PRESS THE KEYS TO HANDLE THE Journal of Applied Research and Technology 929

CART *** \ n"); gotoxy (19,23); scanf ("% c", & key); / * Textcolor (4), * / / ************************************************* ******* / / * Scanf ("% d", & data); printf ("DATA input: \ n"); gotoxy (35.23) * / / ************************************************* ******* / gotoxy (10.24); printf ("decimal point is% d \ n", key); switch (key) { case 97: / * point to * / outportb (956.0 x01); case 105: / * point i * / outportb (956.0 x02); case 100: / * point d * / outportb (956.0 x08); case 114: / * letter r * / outportb (956.0 x04); case 112: / * point p * / / * Case 101: * / default: clrscr (), / * none of the letters of the menu * / gotoxy (15,10); printf ("*** CLICK THE OPTIONS THAT ARE IN THE MENU *** \ n"); gotoxy (35.12); scanf ("% d", & key); / * Getche (), * / while (tecla! = 101); 3. Results The results to this report are shown in Figures 4a to 4d, which describe the progress of each of the objectives achieved. a) b) c) d) Figure 4a to 4d. Prototype of The car to control and display programused 930 Vol. 11, December 2013

4. Conclusions The conclusions of the work are specifically: It shows a great performance in the management and control of the robot car. It was possible to communicate with the PIC C language, through a communication protocol. Migration to an improvement of the project is viable. Objectives achieved. We work on improvements to our design project. This project is open for further work on him, now implementing data transmission via radio frequency, other hands from the PC; you enter different data for each movement and the data obtained in the parallel port output to be introduced but other communication card. Radiofrequency data to send the air and the cart by means of an antenna will receive the data and execute the information so as to perform the movement of the car. Research is also self-control through the Internet, placing a video camera now, so you can appreciate the image where the car is traveling robot. References [1] Rafael K. [1] Rafael K. Control de movimiento de robots manipuladores, 1a edición, Ed. Pearson Educación Motion control of robot manipulators, 1st edition, Ed Pearson Education [2] http://www.ni.com/labview/esa/ [3] Richard C., Dorf R and Robert H. [3] Richard C., Dorf and Robert H. R Bishop Sistemas de control moderno 10a edición, Ed. Pearson Educación Bishop Modern Control Systems 10th edition, Ed Pearson Education [4] Lajara V., José R. [4] Lajara V., Joseph R. y Pelegrí SJ, LabView: Entorno gráfico de programación, Alfaomega Marcombo, Colonia del Valle, 2007. Pelegri and SJ, LabView: Graphical environment for programming, Alfaomega Marcombo, Colonia del Valle, 2007. Journal of Applied Research and Technology 931