![[Line Follower] Impact [Line Follower] Impact](https://obrazki.elektroda.pl/6945964700_1340750904_thumb.jpg)
Introducing the Line Follower class robot named Impact. This is an improved version of previous design described in the largest forum of Polish amateur robotics. The robot was created in 2011, until now he was the winner of all competitions in which he participated. The biggest success is undoubtedly the first place in the international robot tournament in Vienna, called by many unofficial European championships. The robot consists of two modules: the main board and the sensor plates, connected to each other by means of light carbon strips. The weight of the whole with a battery is 105 g.
Sensor module
This is the element furthest from the center of rotation. The moment of inertia is large (mass multiplied by the square of the distance from the center of rotation), therefore, in order to be able to extend the sensors far, the mass of the plate should be as small as possible. In the previous version, we used 19 sensors, 16 of them in arc, 4 forward and back respectively. The plate also contained comparators and a potentiometer for setting the threshold value (Figure 1).
![[Line Follower] Impact [Line Follower] Impact](https://obrazki.elektroda.pl/1267389200_1340750174_thumb.jpg)
Fig. 1 Sensor system in the previous design.
In the new module, we used 14 sensors, placed at greater distances from each other. As a result, the span of extreme sensors remained unchanged. Sensors moved forward are eliminated. It turned out that at high speeds, taking into account the inertia of the drive, the robot was unable to react effectively to the signal from them. Due to the reduction of the number of sensors, there was the possibility of using the analog-to-digital converter built into the microcontroller (16 multiplexed inputs), which allowed to dispense with the comparators. Without these additional systems, the plate sizes have been reduced. We also changed the thickness of the 1.5 mm laminate by 0.8 mm. These treatments led to a two-fold reduction in the mass of the plate from 8 to 4g. The appearance of the module is shown in Figure 2.
![[Line Follower] Impact [Line Follower] Impact](https://obrazki.elektroda.pl/9079922100_1340749931_thumb.jpg)
Fig.2 View of the sensor board in the current, new version of the robot.
Reflecting transducers have been used to detect lines. KTIR0711S . Connected in groups: three sensors in series with a resistor. Pads for the digital distance sensor have been placed on the board Sharp 40cm < br />.
Main module
The board is both a printed circuit and a construction chassis. In addition to electronic circuits, we have included propulsion engines and a tunnel drive. We managed to significantly reduce the module in relation to the previous version of the robot. The dimensions are: 140 mm x 60mm.
Electronics
The heart of the robot is a microcontroller from the native STM32. The motors are controlled by H TB6612 bridges. The power feed consists of a 5V impulse converter and a 3.3V linear stabilizer.
Microcontroller - 32-bit STM32F103RBT6 with the ARM Cortex-M3 core, including among others : 128kB Flash, 20kB RAM, USB, CAN, UART, I2C, SPI, ADC, DAC in the LQFP64 housing, fulfills the following tasks:
readout of input port states,
converting analog signal into digital form,
generating PWM signal,
control bridges H – generating appropriate signals,
implementation of the control algorithm,
communication with the LCD module,
control of LED diodes. [/ list: u: b4e32f31d6]
Motor controllers - two two-channel Toshiba H bridges TB6612 , enabling:
speed control by means of PWM signal,
changing the direction of rotation of the motor by changing the states of two pins,
fast braking. [/ list: u: b4e32f31d6]
To protect against system damage at maximum current consumption by motors (1600mA), bridges A and B were connected (current efficiency increased to 2A). The bridges have been connected as shown in Figure 3.
![[Line Follower] Impact [Line Follower] Impact](https://obrazki.elektroda.pl/7856600400_1340750813_thumb.jpg)
Fig. 3 Motor controller connection diagram.
Remote control
Due to the high speeds achieved during the journey, it becomes more difficult to stop the robot manually. Starting and stopping is done wirelessly, using infrared. The ATtiny13 system used is responsible for decoding the signal from the remote control, which transmits the signal in the RC5 standard. The solution developed by Philips increases the resistance to interference from the environment and creates the possibility of using universal and publicly available remotes. Another advantage is the ease of using additional buttons on the remote control. An additional processor has been used due to the high requirements for the reliability of remote stopping operations, e.g. in emergency situations.
Drive
The drive consists of two engines Pololu HP with transmission 10: 1 with the following technical parameters:
Idle speed at 6V: 3000rpm,
Idle speed (6V): 120mA,
Peak current: 1600mA,
Torque: 0.3 kg * cm (29 mNm),
Dimensions: 24 x 10 x 12 mm,
Weight: 10g. [/ List: u: b4e32f31d6]
The wheels consist of rims made of plastic polyamide and specially selected tires. The rim fits tightly on the motor shaft and protected with cyanoacrylate adhesive (Figure 4)
![[Line Follower] Impact [Line Follower] Impact](https://obrazki.elektroda.pl/7238700700_1340751118_thumb.jpg)
Fig. 4 Wheels made of polyamide with Mini-Z tires.
Different types of tires have been tested. The best choice turned out to be the tires used in the Mini-Z car models. These are 12mm wide and 3mm thick tires. The next parameter is the hardness, which is 20 ° (on a scale of 10 ° -60 °). Tires with lower hardness are characterized by greater adhesion, but they wear out more quickly. The diameter of the rim with the tire is 27mm. The cleanliness of the tires is also very important. Before each passing, they are cleaned to remove dust particles that cause loss of adhesion and have a negative effect on performance.
Theoretical maximum linear speed of the robot in the limit of 3m / s. Depending on the route, the average speed achieved is 2.3-2.5 m / s.
Tunnel drive
An important element is the EDF tunnel drive. It is a turbine, as it is used in flying models, but mounted inversely. The element is to create an additional pressure force, which helps the robot to stay on the route in curves at high speeds (above 2m / s). The turbine is equipped with a brushless motor (11,000 rpm, power consumption about 4A), which is controlled by the company's controller Dualsky .
![[Line Follower] Impact [Line Follower] Impact](https://obrazki.elektroda.pl/1832167400_1340750344_thumb.jpg)
Fig. 5 Tunnel drive EDF27 with engine control.
Power supply
To power the robot the package was used Lithium-Polymer Dualsky 220mAh 25C 7.4V (Figure 6). The continuous current that the package is able to provide is 5.5A, while the peak current is 11A, it is sufficient for proper power supply. The battery allows for approx. 30 seconds of optimal driving, after which the supply voltage drops which negatively affects the dynamics and maximum speed of the robot. During the competition, battery replacement is usually performed every 2 rides, which allows the use of full engine power. The mass, which is about 16 grams, had a big impact on the use of such a small package.
![[Line Follower] Impact [Line Follower] Impact](https://obrazki.elektroda.pl/3714036500_1340750566_thumb.jpg)
Fig. 6 Dualsky battery 220mAh used.
Directly from the battery are powered by motors and a tunnel drive. Electronic components that require 5V voltage are supplied with stabilized voltage using an adjustable converter. ST1S10PHR with current efficiency up to 3A. The processor's power, or 3.3V, comes from a linear LDO (low-dropout) system. LF33CT , whose input voltage is derived from the 5V converter. The power scheme is shown in Figure 7.
![[Line Follower] Impact [Line Follower] Impact](https://obrazki.elektroda.pl/4961869400_1340750616_thumb.jpg)
Fig. 7 Block diagram of the power path.
User interface
Setting up the regulator requires frequent changes of parameters such as maximum speed of driving motors, turbine rotor speed or PID controller gain. Connecting the robot to the computer after each pass, especially at competitions where the service stations are located at certain distances from the route was very troublesome. A module was created with an LCD display for viewing the settings and buttons for adjusting them. As mentioned earlier, mass is a key parameter, therefore the system is a separate module that connects to the robot via the UART interface.
The main functions of the module are:
choice of regulator's settings,
choosing the maximum speed,
selection of rotational speed of the tunnel rotor turbine rotor,
checking the correct operation of the sensors,
viewing the output data of the PID controller,
setting the threshold voltage value for the reflective sensors. [/ list: u: b4e32f31d6]
![[Line Follower] Impact [Line Follower] Impact](https://obrazki.elektroda.pl/5701074100_1340750650_thumb.jpg)
Fig. 8. Module with LCD display.
Software
The software was written in C language using the libraries provided by STM: STM32F10x_StdPeriph_Lib_V3.5.0. The control algorithm is PID with some modifications.
Achievements so far:
1st place T-BOT – Wałbrzych - 2012
1st place Robomaticon – Warsaw - 2012
1. the place of the Robot Challenge – Vienna - 2012
1st place of the Tri-City Robot Tournament - Gdańsk - 2012
1st place CybAirBot - Poznań - 2012
Photos konstrukcji
![[Line Follower] Impact [Line Follower] Impact](https://obrazki.elektroda.pl/6054668800_1340750918_thumb.jpg)
![[Line Follower] Impact [Line Follower] Impact](https://obrazki.elektroda.pl/9120667700_1340750933_thumb.jpg)
![[Line Follower] Impact [Line Follower] Impact](https://obrazki.elektroda.pl/1877114700_1340750958_thumb.jpg)
![[Line Follower] Impact [Line Follower] Impact](https://obrazki.elektroda.pl/6443690100_1340750971_thumb.jpg)
![[Line Follower] Impact [Line Follower] Impact](https://obrazki.elektroda.pl/4278554000_1340750986_thumb.jpg)
Filmy z zawodów
Autorzy konstrukcji:
Bartosz Derkacz
Szymon Mońka
Cool? Ranking DIY