Using raspberry pi for control logic on a DC block control railroad.
- RPi.GPIO
- click
- Connect box to pi with ribbon cable.
- Orient box with Servo and Console connectors facing you.
- Provide power supply connection.
- Confirm right most power led is on.
- Connect Servo Out to In.
- Confirm left most power led is on.
- Connect Console Out to In.
- Confirm middle power led is on.
- Run python harness.py shifter --check .
- If no errors then stop harness program.
- Run python harness.py duration and confirm zero durations.
- Use servo loop to chain board under test to Daisy Control Box.
- Connect daisy control servo out to board in (black or beige).
- Connect daisy control servo in to board out (white or orange).
- Console loop should be direct connect on Daisy Control Box
- Orient test jig with LEDs on top.
- Set up test jig with both jumpers positioned left.
- Use console loop to chain box under test to Daisy Control Box.
- Connect daisy control console out to board in (black).
- Connect daisy control console in to board out (white).
- Servo loop should be direct connect on Daisy Control Box
- Orient test jig with LEDs on top.
- Set up test jig with both jumpers positioned right.
- Without ICs installed verify wiring connection matches chart,
- Connect target board according to set up above.
- Check that target board power led is on.
- Install 74HC14 in U4 (alternate is 74HC04).
- Run python harness.py shifter --check .
- If test fails then track clock signal with oscilloscope using python harness.py shifter --check .
- Stop test.
- Install remaining ICs.
- Run python harness.py duration .
- Verify duration is 24 (bits).
- If test fails run python harness.py flow and track serial data with oscilloscope.
- Run python harness.py client .
- For each target board port A, B, C, and D connect the port to the test jig.
- Ignore the first report.
- Use the second report to evaluate correctness.
- You should also see the test jig LEDs blink in an orderly shifting sequence. Each connector has a different pattern.
- Switch the test jig to the next untested target board port.
- Each target board connector is tested separately.
- Connect a target board port A1, A2, B3, B4, C5, C6, D7 or D8 to the test jig.
- Run python harness.py wide --connector XXX where XXX is from 1 to 8 and matches the port under test.
- The test will declare either failure or proper connection.
- Repeat the test for all 8 ports.
- If a connector test fails run python harness.py load and track load clock with oscilloscope.