Differences

This shows you the differences between the selected revision and the current version of the page.

group1:group1weekly 2008/11/24 21:52 group1:group1weekly 2008/12/02 23:49 current
Line 57: Line 57:
It was found that the microcontroller does not have the capability to take in three squarewave inputs and determine when they are blocked, as well as determin object velocity. There are not enough timers (4 are required and the PIC 16F877 only has 3), and the algorithm contains too many interrupts so that they interrupt each other and make the operation inefficient. The solution to this has been to use a comparator IC after the receivers so that when the signal is not blocked the signal is high (+5V) and when the signal is blocked the signal falls low (0V). The microcontroller program to match this new receiver output has been written and successfully compiled. Tomorrow the whole system will be tested in the lab, including the programmed microcontroller and the new comparator circuit. The mounting materials will be bought and assembled tomorrow afternoon.  It was found that the microcontroller does not have the capability to take in three squarewave inputs and determine when they are blocked, as well as determin object velocity. There are not enough timers (4 are required and the PIC 16F877 only has 3), and the algorithm contains too many interrupts so that they interrupt each other and make the operation inefficient. The solution to this has been to use a comparator IC after the receivers so that when the signal is not blocked the signal is high (+5V) and when the signal is blocked the signal falls low (0V). The microcontroller program to match this new receiver output has been written and successfully compiled. Tomorrow the whole system will be tested in the lab, including the programmed microcontroller and the new comparator circuit. The mounting materials will be bought and assembled tomorrow afternoon. 
 +
 +Week 13: Nov 24-28
 +
 +The entire project was demonstrated this week. The analog components worked fine. The Microcontroller proved to be much more difficult to program, and the the demonstration showed the MCU creating an output of the word "Person" numerous times for every person that walked by. However, it was able to be programmed to account for direction and distinguish between a person, a car, and a cyclist. There was a major setback as one of the receivers had burned out, so now the project must function using only two instead of three. For next week, we must provide better functionality of the Traffic System circuit, to just observe pedestrian traffic using two beams.
 +
 +Week 14: December 2
 +
 +Today was the second chance for demonstration for our group. After countless hours in the lab and spending time there into the late hours of the morning, we were able to fix the algorithm for the microcontroller to take two times; one for the crossing of each beam, and compute the speed of a passing individual by dividing the distance between the beams by the time difference. This concept was proven, however a small problem occurred with the rollover of the timer on the microcontroller - some instances the time would be off and there would be an incorrect speed given. However it was demonstrated to work succuessfully for numerous trials. Perhaps changing the distance to minimize rollover time would have helped, however the functionality of the circuit today was impeccable. The output to the screen displayed:
 +
 +Time 1: xxxxx
 +Time 2: yyyyy
 +Speed: zzzzzz
 +
 +Where x, y, and z were given numbers.
 +
 +The speed demonstrated direction as crossing the beams from one side produced a positive speed, and crossing from the other produced a negative speed. Also data logging was programmed to occur. All in all, the final design - both hardware and software - were done quite well and there was a great effort put in by both parties. This class was a great hands on learning experience, and the given project was very interesting to work with. Expect the coming reports to have further in depth details about the components and testing of the Traffic Monitoring System circuit.
 +
 +
 +Thank you,
 +
 +Leigh Conroy and
 +Mike Cino

Personal Tools