Return to search

Utveckling av programvara till ett inbyggt styrsystem

This thesis considers the development of the software for an, newly developed, embedded real-time control system, based on a Periferal Interface Controller (PIC). The control system is developed to be used for several different applications. In this thesis work, software for two different applications are developed. The first task is a time controlled system, while the other task is implementation of aPI-/PID-controller. A user interface is also developed and implemented. The time controlled system is an automatic horse feeder, which is used for feeding horses at certain predefined points in time. A barrier, which control when the horses are to be fed, is controlled by an electrical motor. The control signal from the control system is a digital signal, which allows the electrical motor to open the barrier and feed the horses. When this is done, the barrier closes and the system waits for the next point in time when the horses are to be fed. The PI-/PID-controller is to be used for positioning of proportional valves. The application for the positioning system is to control hydraulic systems, e.g. cranes on mobile units. The user interface consists of a keyboard, an LCD-display and a user menu. Different user menus are developed for the different applications. In the horse feeder system the user interface allows the supervisor to change the points in time when to feed the horses and in the PI-/PID-controller system the user interface allows the supervisor to change the regulator parameters. The software for the time controlled application is tested for a real horse feeder system which, together with the developed software, has a planned production start in spring 2005. To test the PI-/PID-controller an alternate test system is used, due to problems with the proportional valves. The test system is based on an electrical motor. The task in this test system is to control the motor axis angle with the PI-/PID-controller. / Detta examensarbete går ut på att utveckla mjukvara till ett, nyutvecklat, inbyggt styrsystem, som baseras på en Periferal Interface Controller (PIC-processor). Styrsystemet är utvecklat för att kunna användas inom flera olika applikationsområden. I detta examensarbete utvecklas mjukvara för två olika applikationer; dels en ren tidsstyrning och dels utvecklas en PI-/PID-regulator. Utöver detta utvecklas även ett användargränssnitt. Användningsområdet för tidsstyrningen är en hästutfodrare, vilken skall användas för att utfodra hästar vid definierade tidpunkter. En spärr, som reglerar när hästarna skall utfodras, regleras med hjälp av en elmotor. Utsignalen från styrsystemet är en digital signal, som tillåter elmotorn att öppna spärren och därmed utfodras hästarna. När detta är utfört stängs åter spärren och systemet väntar tills nästa tidpunkt när matning skall ske. PI-/PID-regulatorn är främst avsedd att användas för positionering med hjälp av proportionalventiler. Applikationen skall användas för styrning av hydrauliska system, exempelvis kranar på mobila enheter. Användargränssnittet består av ett tangentbord, en LCD-display och en användarmeny. Olika användarmenyer för de olika applikationerna utvecklas. I applikationen med hästutfodringsmaskinen tillåts användaren att, via användargränssnittet, ändra de tidpunkter då matning skall ske, medan användaren tillåts att ändra regulatorparametrarna i applikationen med PI-/PID-regulatorn. Mjukvaran för tidsstyrningsapplikationen testas även på en prototyp av en fodermatare som, tillsammans med styrsystemet och den utvecklade mjukvaran, har en planerad produktionsstart under våren 2005. För att testa PI-/PID-regulatorn används ett alternativt testsystem, på grund av problem med proportionalventilen. Testsystemet är baserat på en elmotor och regleruppgiften är att reglera motoraxelvinkeln med hjälp av PI-/PID-regulatorn.

Identiferoai:union.ndltd.org:UPSALLA1/oai:DiVA.org:kth-109462
Date January 2005
CreatorsSöder, Erik
PublisherKTH, Reglerteknik
Source SetsDiVA Archive at Upsalla University
LanguageSwedish
Detected LanguageSwedish
TypeStudent thesis, info:eu-repo/semantics/bachelorThesis, text
Formatapplication/pdf
Rightsinfo:eu-repo/semantics/openAccess

Page generated in 0.0024 seconds