80 likes | 183 Views
Webtrain Decoupling. Adam Kadolph EE451 Bradley University Advisors: Dr. Irwin, Dr. Schertz. Week 13 Monday 3/12. Outline. Last Week Current Week Timing Issue The Next Step. Last Week. Fixed timing issue with program to send DCC signals based of the voltage reading from the photocell
E N D
Webtrain Decoupling Adam Kadolph EE451 Bradley University Advisors: Dr. Irwin, Dr. Schertz Week 13 Monday 3/12
Outline • Last Week • Current Week • Timing Issue • The Next Step
Last Week • Fixed timing issue with program to send DCC signals based of the voltage reading from the photocell • Use of NOPs for signal timing • Mounted two photocells in the webtrain layout • On Bypass track
Current Week • Change the resistor values for the sensors • Different lighting conditions on layout • Begin coding for automatic decoupling • Code program to accept user car request for decoupling • Then have routine to count cars and stop after requested car
Timing Issues • My fixed made use of NOPs instead of Timer 0 • Further testing on use of Timer 0 before ruling it out • Same with Timer 2
The Next Step • Code the Automatic Decoupling Function • Code modular routines • Code in small steps to reduce complexity • Improve on existing code • Possibly code in C
Questions? The End