Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Robotic Car Traction Control
#1

For our ECE 4760 Ultimate venture we have developed a footing management program that picks up rim move and changes the rate of the tires accordingly. Automatic vehicles are becoming increasingly complicated and often need greater levels of action management. Specifically, when the tires of a auto begin to slide, it is ideal to change their rate so that the auto goes towards its intended route. Programs involve vehicles traveling over tough landscape, exploratory programs, and remote control cars. The objective of our venture is to style and use a 4wd automatic bot that screens the spinning rate of each rim and restrictions the quantity of move when the auto is increasing.

High Stage Design: An automated limited move differential program handles the spinning rate of the outcome golf club shafts of a auto using rate alerts, anti-lock braking system, and microcontrollers. By digitally tracking falling, the microcontroller can switch on the anti-lock braking system to reduce the rim that is shifting too quickly. An automated program has the capability to be altered for different applications or conditions, such as on and off-road landscape, slick weather, or driving at different rates of speed. This makes it much more attractive than a technical program. While the characteristics of modern day footing management programs are very complicated, the essence encouraged our venture. The applications for this style are very practical and widespread. Any auto with two or more tires will benefit from increased steadiness and action management with our footing management program. The major component of our footing management program is a reviews cycle that changes the rate of each individual rim to the rate of the slowest rim on the auto. It contains both good and bad reviews by reducing down the quickest rim generator and boosting up the slowest. A primary schematic of our program is proven in Figure out 1. This prevent plan is carried out four periods in application for each rim.

Figure 2: Basic Feedback Loop Structure

Background Math:

Velocity and Acceleration

To determine the rate and speed from the encoders, we need to history time between stage changes. We also need two rate parts to estimation speed and will assume a steady speed between next stages.

To determine rate we use the normal formula:

Notice we are choosing and using since our changes are specific. To find we begin a cooking timer at each aspect and history it at the following aspect. This gives us the past time between known opportunities. Therefore our velocities are:

We can change range out of our data since the range visited between each examining is steady at 1/8th a spinning.

These velocities are the normal velocities over the noted time time period and therefore if we are going to use them to find out speed we must use the velocities at the midpoints of time durations. The speed is:

We discovered it simpler to find out speed immediately from time variations using the formula:

Figure 3: Example information of rate calculations

Pulse Size Modulation

Pulse width modulation of a prevent trend of changes its obligation routine to management how long a transmission is greater during 1 time period. The typical value of a prevent trend is scheduled as,

Where T is the time period of the prevent trend and f(t) is the prevent trend operate. This operate can be described as some highest possible value ymax between 0 <>min for the rest of the time period, D T < style= "> Here D (duty cycle) is the portion of the time period that the prevent trend is at its highest possible value. Changing this into the essential above and then dealing with for :

All alerts created for this venture have a minimum value of zero. Therefore, the normal value of each PWM transmission is immediately proportional to its obligation routine.

Logical Structure

Figure 4: Basic Schematic of the Traction Control System

This is a primary prevent plan of our footing management program. The Mega644 microcontroller was used to produce four PWM alerts to be sent to the H-Bridges and to study the turning encoder alerts. Electrical relationships are proven in blue and technical relationships are proven in red. Information to the microcontroller are branded as PINxn and results are branded as PORTxn. OCRnx are the PWM outcome signs up that management the generator rate. This plan is described in details in the application and components style segments of the report.

Hardware/Software Tradeoffs

There were many trade-offs that had to be created in our style, many of which we discovered while debugging and examining. One considerable trade-off was the turning encoders we used to find out rim rate. There are two considerable sessions of encoders, to prevent and technical. Optical encoders provide considerably greater reliability, can provide much more quickly highest possible spinning rates of speed and most of all for this venture, must greater impulses per trend (easily in excess of 128 ppr). The increased the impulses per trend, the faster the reply, and/or the more correct the rate examining. Unfortunately these encoders are priced outside of our funds and we were required to use a technical encoder with 16 impulses per spinning. This implies that we would need two complete shifts of the rim to collect as much information as 1/4 trend of a not unusual to prevent encoder. The details could help the potency of a footing management program on two accounts. First we could identify a move faster, apply a obligation routine modify, and check the potency of that modify in a much reduced time period and furthermore, a much smaller rim spinning. Or, if there are errors of all time parts (as we see with our present encoders) we could typical 16 parts in 1/8 trend with the to prevent and a highest possible of two parts with the technical encoder. We can quickly see the drawback of so few impulses in our magic size as it requires several radical changes to arrive at the preferred rate.

We also experienced tradeoffs that had to be created within the style of our application. We began out developing an aspect prompted stop to effectively identify a stage modify on the encoder transmission and get an correct time examining. Since the Mega644 only has one comparator we had to incorporate the impulses from the four tires onto 1 transmission line. We discovered a components option to use this (by XORing the previously study information points and ORing the XOR s outputs). But this necessary us to allow our edge-triggered stop to be disturbed. Another difficulty with our aspect prompted stop was the considerable swap leap seen on the encoders during a stage modify. This issue is described in increased details in the application area. The collaboration of our re-entrant stop and considerable leap disturbance necessary us to swap to polling the encoders. This gives us much less correct time, but is considerably simpler to use.

Figure 5: Kind of aspect prompted stop exterior hardware
(not used in final design)

Finally, we determined a tradeoff with our patience configurations. The more we allowed rim rate to vary, the more quickly the tires would arrive at the target rate. This is truly a tradeoff as both outcomes are preferred. We concurrently want quick reply as well as coordinated up rim rates of speed. Of course the fix for your issue is to use a innovative criteria and reviews management. Unfortunately we did not adequate, nor the expertise necessary to properly define the program and develop the constant and efficient methods required to make complete use of the program and perfect the style.

Standards

Our venture was not necessary to follow any expectations when it is under operation. It involves a self included program that does not send or receive any exterior information. In addition, our robotic auto obeyed all rate restrictions and local traffic laws and regulations. When computer encoding and debugging our application, we followed the RS-232 expectations for sequential information.

Existing Patents and Copyrights

The ideas used in our venture were considered to be in the community web page and we did not copy any complex designs to accomplish our goals. This venture was used for educational and business presentation requirements only. At the conclusion of our venture, we are not considering to practice any copyrights or patents on our style.

Figure 6: Complete Traction Control Vehicle

Software Design

The application can be broken up into three considerable segments, electronic timers, PWM transmission aspect prognosis, and rim twisting improvements. In collaboration these parts are able to effectively study each wheel s rate and speed and spend a lot of twisting to arrive at and sustain a preferred rate while improving footing by reducing rim move.

Interrupts and Timers

Due to the relatively slowly servo generator highest possible rate, encoder transmission disturbance, and difficulties with aspect prompted stops, we determined it would be adequate to study the turning encoders. Therefore we managed a reverse for each rim that was incremented in our stop every 0.2ms. Positioning the surfaces in the stop guarantees that the few hundred to approximately two thousands steps were done continually, and any time reliability lost was only during the running of these number. For example, during our examining we overlooked time frame to send information to Super Phrase. Before placing the surfaces in the stop we saw a very big edge of issue with our past time dimensions as the hyper term task affected each rise. After shifting the surfaces to the stop we only had one wait per encoder stage instead of a wait for each extra cooking timer rise. This gave much more regular rate dimensions (although we determined to remove Super Phrase features all together for one more car).

Detecting Encoder Tips and Recording Data

Due to financial difficulties we were required to use the less expensive and easily technical type encoder instead of the more advanced to prevent encoders. During our debugging procedure we noticed that the sides during stage changes were very contradictory as the changes would create and break a network many periods at each move. This variation would often proceed for around 1ms (see diagram).

Figure 7: Rotary Encoder Borders Noise

In obtain to effectively identify 1 aspect we carried out the debouncing technique used in the DTMF dialing software lab. We discovered reliable sides could be acknowledged with ten regular parts (at 5kHz) This restrictions the highest possible stage of the PWM transmission to approximately 3ms restricting rim rate to about 41Hz, which is still far beyond the capability of the servo engines used. After an correct stage examining is taken, we compare the stage with the last noted value. Only when a modify occurs is an aspect acknowledged. Once an aspect was acknowledged the past time reverse was kept and recast. The previous information point was transferred but not removed. Remember that two velocities are required to find out speed (see qualifications numbers section).

Deciding twisting adjustments

The major objective of a footing management program is to sustain rim grip. To be able to do this we must identify when a rim is shifting more quickly than the car. We use two sources to management the obligation routine of the PWMs sent to the tires. First, the car has a preferred rate. To create data as simple as possible we refer everything to the inverse of rate, which once range is stabilized out, are simply our timed heart sizes. Our preferred rate is therefore noted as a heart width and all tires increase or reduce as a way to stay within a determined edge of the preferred rate. If a rim is shifting considerably reduced than the preferred rate, then we ensure that no rim is shifting more quickly than a different pre-defined edge of this slowest rim. This procedure allows the car to quickly arrive at its preferred rate without falling.

Below is a time plan for our PWM transmission. We designed the TCNT1 and TCNT2 signs up to count from 0 to 256. When we wanted to improve the rate of the rim and thus the improve the obligation routine on the PWM transmission, we would rise the OCRnx sign-up by a fixed value. This was real for the inverse. When we decremented the OCRnx sign-up, the obligation routine of the PWM would decrease. Also please be aware that the consistency of the impulses is identical no matter the obligation routine. We used a consistency of about 31 kHz to enhance the H-bridge features.



Figure 8: Mega644 PWM Outcome Timing Diagram

Hardware Design

The components was designed to create a robotic car with four independently handled servo engines using PWM alerts and H-bridge tour. The spinning of each generator was assessed with a 2-bit (gray code) turning encoder. In addition, the speed of the auto was assessed with a z-axis 1.5g speed indicator. A primary schematic of the components installation is proven below.

H-Bridge Motor Driver

The H-Bridge enterprise allows the microcontroller to run a two-terminal generator without any big disturbance rises eating again into the microcontroller build. When the generator is turned on and off, there is a big modify in present in a few months. Since the generator can be made as an inductor, the big modify in present will cause a huge increase in present, which can kill the feedback terminal of the microcontroller. This is stopped by electrical wiring diodes across four MOSFET in the configurations proven below to stop present from streaming when the MOSFET is turned off. These gadgets have similar properties of a swap because they can limit or increase the flow of present with regards to the present across the checkpoint to body gadgets.

Figure 9: H-Bridge Motor Car owner Schematic

The H-Bridge came in a 8-pin SOP package with inputs for Vcc, floor, ahead heart width modulation (PWM), and opposite PWM. There were two results to line across the gadgets of the generator. Since there were two separate inputs for ahead and opposite PWM alerts, our style was utilized only the ahead PWM transmission to management how the auto transferred in the ahead route.



Figure 10: Two H-Bridges on an SOIC Header

Rotary Encoder

The turning encoders are used to solve rim rate and speed. The encoders outcome a two bit binary quadrature transmission, meaning they outcome two heart width alerts that are 90 certifications out of stage. The impulses are created by buying and selling changes to a mutual understanding. Therefore, as a way to produce a legible transmission from the encoders, we used pull-up resistors on the transmission lines. Also, since the two stages were not sufficiently correct relative to each other, we only use 1 transmission from each encoder. This cuts the variety of impulses per spinning in half, but gives us a more regular transmission for correct time.

Figure 11: Rotary Encoder Schematic

The particular encoders we used had 16 impulses per spinning. This implies that there were four periods per spinning. The repeating would be inadequate for us to find out the location of the rim (it is uncertain which quadrant the rim is in) but reasonable for identifying rate. An example transmission and turning location is proven below. Velocity is determined by time the change between the rising and falling sides. In the same way, speed can be determined by identifying the change in rate between two next impulses. Note the speed between the red stage and green stage.

Figure 12: Pulse transmission from encoder with encoder position

Servo Motors

To move the tires of our auto, we used four steady spinning servo engines. They run on a highest possible of 6 v DC and move a complete 0 to 180 certifications. An photograph of the generator is proven below. To connect the turning encoder, we altered each generator by getting rid of the again plate and linking a steel rod to the again aspect of the spinning gear. We then used versatile clear plastic-type material tube to form a network between the steel rod and the turning encoder. A picture of the modification is proven below.

Figure 13: Servo Motor Layout

Figure 14: Servo Motor Layout



ATmega644

The Atmel Mega644 was used to management and observe the speed and rate of our auto. The considerable functions of the Mega644 that were used for our venture included one 8-bit cooking timer, 4 PWM outcome hooks, one Analogue to Digital ripper tools, and four normal I/O hooks. The Mega644 nick was built on a magic size panel offered by Bruce Land. It functions an easy way to energy, place a crystal clear clock, connect to a RS232 program, and program the Atmel nick. A schematic of the panel can be discovered here.

We select to place the optionally available program for sequential interaction because it offered critical debugging functions and we had additional cash to funds. An photograph of a completed magic size panel is viewed below pleasantness of the ECE 4760 web page.

Figure 15: Example proto-board from 476 website

Results

In general, the end outcome of our footing management was a success. The auto was able to slam up its rate continually without any considerable falling. When the auto attained its preferred rate, the tires managed their rate and generally kept in stability with each other. To be able to analyze that out program was working, we performed two assessments. First, we placed firmly appropriate plastic companies around the outside wheels of the left two tires and kept the plastic-type material tires on the right aspect unmodified. We then began up the auto in the area on hard to pick from flooring. As the car began up, the rate of each rim was managed a steady rate and the car transferred in a relatively straight path for about 2 measures.

The outcomes of the start-up can be seen in the plan below. When the car first starts, rim variety 4, proven in aqua blue, is established as the quickest rim and rim variety 3, proven in red is the slowest rim. Almost immediately, rim 4 advances up to 14 rpm and is quickly stunted to run at the same rate as the other tires. The tires always pick up rate, until they arrive at a designed preferred rate. It is used at this rate for moments. Looking at the region between 3 and 7 mere a few moments, rim variety 2 normally tries to run at a rate more quickly than preferred. This is acknowledged by the microcontroller and the PWM is altered to create the rim run reduced. The opposite is real for rim 3 and the microcontroller delivers more energy to the generator to account for this.

The second analyze involved forcing down on 1 rim and reducing it down to a very low rate. The program would pass this analyze if the other tires acknowledged that they were spinning too quickly and stunted down properly. The outcomes of this analyze are also proven in the information below. At about 7 mere a few moments, the second rim is used down and its rate comes to about 6 rpm. The reply of the other tires 1 and 3 is pretty quick and reacts to the rate modify within a couple of statistic periods. Wheel 4 was the slowest to answer the modify, taking less than 1 second. Although there is a quick reply a chance to the rate modify, it requires to actually slowly the other tires to the slowest level requires a little while. As proven in the information, it requires well above 2 mere a few moments for the other tires to drop down to 10 rpm.

Figure 16: RPM vs Time for Traction Control Start-up

Figure 17: Most severe Situation RPM vs Time Scenario

The outcomes of our second footing management analyze are proven above. At about 1 second, the 4th rim is used down and it comes to 20 rpm. The other tires answer in about the same manner as the first analyze. Overall, we can see that it requires around 3 mere a few moments to the tires to completely change to a big modify in rate. Then, at 12 mere a few moments the rim is released. Since rim 4 normally ran the quickest of all the tires, there was a big speed. The program tries to answer the situation, but it requires over 8 mere a few moments just for the tires to restore about of the rate change. This was a worst case situation for our footing management program.

Conclusions and Analysis

Our magic size footing management program shows how a broadband microcontroller can be used to effectively management a various and possibly risky program. Our operator effectively throttled rim rate when a move was acknowledged as well as definitely handled rim spinning to sustain the preferred rate. Although our outcomes proven the performing of our value, we formerly expected for a more quickly reply essentially being able to correct rim move within one spinning. The slowly reply was mainly caused by modifying the PWM impulses by 1% everytime a statistic was noted. We diminished a quick reacting program for a more constant one. This is always a careful stability to choose for many technological innovation problems. The addition of greater reliability encoders as well as employing a more innovative management criteria would help us achieve more suitable outcomes. Due to our rendering of a four rim, impartial travel program, our venture would need some considerable cost to be incorporated with other professional auto steadiness programs such as ABS (anti-lock breaking system) and ESC (electronic steadiness control) programs. This again was a trade-off as adding with the various vehicle interaction expectations and gadgets would in itself be a significant style venture.

Standards and Perceptive Property

Our venture did not need the use of any community or private web page application or any exclusive components. Although our particular rendering of a footing management program itself would not be adequate for a obvious, it does serve as a strong guideline for further development on footing management. Traction management itself is a pretty new technology and is just now becoming main-stream in customer vehicles. There is certainly significant opportunity for improvement to the present methods and programs used today, especially if the focus is transferred to involve efficiency (most footing management programs are for protection only and can adversely affect performance).

Ethics

During the style of our footing management program we had to keep in thoughts the use of such programs and the moral required style. Most footing management programs are used on customer cars as a protection program. Our program, as well as professional grade programs, has the capability to over-ride motorist management. A crash of this program could considerably bargain the protection of the individuals as well as others on the street. Even if the program was not used on a traveler auto, it is still in some measure or completely responsible for the action of a very dangerous item. Therefore during our style we constantly had to keep protection in thoughts and try to style such that problems are reduced and will not outcome in an out of management auto. This was proven in our decision to keep the less competitive method of throttling up rim rate and using small accepted prices of issue. This implies that our model vehicle's speed was a lesser quantity of than the engines where capable of doing, but the reduced increasing auto would have better move protection favoring protection over efficiency.
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Powered By MyBB, © 2002-2024 iAndrew & Melroy van den Berg.