June 12 - June 16
This week, I learned how to properly wire the limit switches such that they won't accidentally affect the Hall Effect sensor. What happened was that when a switch was pressed, the signal it generated bounced from 5V to 0V in a couple milliseconds. The I/O pins on the arduino are sensitive to that change, and the bouncing signal can trigger the interrupt pin connected to the Hall Effect Sensor.
In order to debounce the signal, I had to attach an RC circuit to the COM pin of the limit switches. With a resistor of 100k Ohms and a capacitor of .1uF, it would stabilize the signal for 10ms. This was enough time for the signal to be stable and not trigger the interrupt.
From there, I continued testing the limit switches to make sure they worked correctly and then soldered jumper cables to the pins for easier and consistent placement on the arduino and breadboard.
With the team, we discussed about the braking system and failsafe system. These systems are important for the safety of the passengers in case of emergencies. Next week, we will continue looking into different ways we can implement braking and preventing the bogie from falling off during switching.
No comments:
Post a Comment