Assembly and Test
In Development and Documentation Process
![Hardware Partes](../diversos/utilizar/geral2.jpg)
Central Board
The central board functions like the "brain" of the robot, centralizing the control of the all the components and to store the program that will decide how to behave in the several scenarios.
Motor Control
To control the speed and direction of the motors we will use two H bright's.
Line Trace
To detect the line we will use infrared sensors.
Wall Detection
To detect the wall we will use a sonar.
Motor PWM Control
To control motor velocity by changing the energy provided at each instant (duty cycle).
* Central Board
![Placa Central](../diversos/utilizar/central/placa_central.jpg)
|
Used components: |
1 |
T89C51RD2 |
1 |
7805 |
1 |
Max233 |
1 |
Cristal 20Mhz |
... |
... |
Optional components: |
1 |
FPGA |
1 |
Pal |
|
|
|
The central board functions like the "brain" of the robot, centralizing the control of the all the components and to store the program that will decide how to behave in the several scenarios.
* Motor Control
|
Used components: |
2 |
Tpic |
... |
... |
|
To control the speed and direction of the motors we will use two H bright's.
* Line Trace
|
Used components: |
7 |
Led's Receptores de Infravermelhos Sharp |
7 |
Led's Emissores de Infravermelhos |
1 |
Pic 18F84A |
1 |
Cristal 20Mhz |
... |
... |
|
|
To detect the line we will use infrared sensors.
* Wall Detection
To detect the wall we will use a sonar.
* Motor PWM Control
To control motor velocity by changing the energy provided at each instant (duty cycle).
Development Enviroment
To program the microcontroler you will need two programs, the compiler and the Programmer:
Software - C Compilers
- Franklin Software - ProView32 - Windows Download - Demo it's a C compiler for the microcontroler that you are going to use (T89C51RD2 - architecture 8051), this program let's you convert C language in to assembler making in the process one *.hex, this program it's not Freeware and has the limitations of the demo version.
Note: After the installation for the activation of the *.hex generation you have to go to Options->Project->L51->Linker and check Intel Hex as in Figure 1.
![Franklin](../diversos/utilizar/amb/Franklin.jpg)
Figure 1
- Keil Software - uVision2 - Windows Download - Demo it's a C compiler for the microcontroler that you are going to use (T89C51RD2 - architecture 8051), this program let's you convert C language in to assembler making in the process one *.hex, this program it's not Freeware and has the limitations of the demo version.
- SDCC (Small Device C Compiler) - Windows Download e Linux Download - Freeware it's a C compiler for the microcontroler that you are going to use (T89C51RD2 - architecture 8051), this program let's you convert C language in to assembler making in the process one *.hex.
Note: To compile you will need the includes files for the microcontroler used the T89C51RD2.
Software - Programmer
- Atmel - FLIP (FLexible In-system Programmer) - Windows Download e Linux Download - Freeware is a program to download the *.hex file to the microcontroler.
![Flip](../diversos/utilizar/amb/Flip1.jpg)
Figure 2
|
Like seen in Figure 2 , the first step is to chose the microcontroler by selecting the first bottom and selecting the option T89C51RD2. The second step is to chose the communication port selecting the second bottom and configurating the COM port, like seen in Figure 3, and pressing the bottom Connect, if all things go well the program goes on. The last step is to select the *.hex file that was generated by the compiler and that we want to load to the microcontroler, like seen in Figure 4, press the bottom Run (like seen in Figure 5).
![Flip](../diversos/utilizar/amb/Flip2.jpg)
Figure 3
![Flip](../diversos/utilizar/amb/Flip3.jpg)
Figure 4
|
![Flip](../diversos/utilizar/amb/Flip4.jpg)
Figure 5 |