General use instructions:
- Clone the git repository using: git clone https://github.com/basdxz/Train-Crossing-HW-Test
- Go into the directory and copy the libraries directory into "C:\Users<LOCAL_USER>\Documents\Arduino\libraries" and override any differences.
- Open FULL_HW_TEST.ino in the Arduino IDE
- Adjust pin numbers, in particular: BUZZER_PIN, SONIC_TRIGGER_PIN, SONIC_ECHO_PIN, SERVO_PIN_A and SERVO_PIN_B
- Select the appropriate COM port
- Upload the code to the Arduino Uno
- Open the serial monitor and watch the test
What to do if things go wrong:
Each peripheral has it's own collection of tests, pick the test of the component that doesn't work and upload it. Troubleshoot the Hardware/Software using the provided test.