You are on page 1of 3

Carriage Motor Control PIC18F Based Design

Introduction Part of a project is based on controlling the mobility of a carriage. The carriage is housing (among other components): two PICs (18F1230: 18 pin type), two small DC motors (connected to the wheels), one distance sensors, one push buttons and one 14-segment display unit. The following shows a simple sketch of the carriage body.

Design Requirements The carriage moves forward while keeping a fixed distance to the wall. Both PICs communicate using the serial ports. Think of using the interrupt technique The wheels are controlled separately (i.e. can be of different speed or direction).

How it should work? 1. Place the robot on the ground parallel to the wall 2. Press on the GO button 3. The robot will detect the distance to the wall by taking three readings 4. The robot starts moving forward at a fixed speed (wont change its forward speed) 5. The robot tries to keep its distance to the wall as recorded in step-3 6. The display must indicate the state of the robot: Measure the distance to the wall, moving Forward, turning to the Right, turning to the Left and X when an error happens (?) 7. Press on the GO button again to stop the robot

In the report Use the cover page shown on page 3 Design requirements (in your own words). The concept of your design Basic features of 18F1230 (only features used in your design) The circuit diagram (by Proteus simulator). The figure must be clear The flowchart (only) & C-code properly commented Discussion. Including: What was the difficult part in the design? Do you think that this design will work on a real robot? Give two situations where your design can fail completing its mission correctly.

Send the soft copy of your WORD (not PDF) report

You might also like