Skip to content

Using raspberry pi for control logic on a DC block control railroad.

License

Notifications You must be signed in to change notification settings

orwonthe/big_muddy_pi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

big_muddy_pi

Using raspberry pi for control logic on a DC block control railroad.

packages needed

  • RPi.GPIO
  • click

Testing

Daisy Control Box Set Up and Test

  1. Connect box to pi with ribbon cable.
  2. Orient box with Servo and Console connectors facing you.
  3. Provide power supply connection.
  4. Confirm right most power led is on.
  5. Connect Servo Out to In.
  6. Confirm left most power led is on.
  7. Connect Console Out to In.
  8. Confirm middle power led is on.
  9. Run python harness.py shifter --check .
  10. If no errors then stop harness program.
  11. Run python harness.py duration and confirm zero durations.

Testing Setup Daisy 8 to 16

  1. Use servo loop to chain board under test to Daisy Control Box.
  2. Connect daisy control servo out to board in (black or beige).
  3. Connect daisy control servo in to board out (white or orange).
  4. Console loop should be direct connect on Daisy Control Box
  5. Orient test jig with LEDs on top.
  6. Set up test jig with both jumpers positioned left.

Testing Setup Daisy 16 to 8

  1. Use console loop to chain box under test to Daisy Control Box.
  2. Connect daisy control console out to board in (black).
  3. Connect daisy control console in to board out (white).
  4. Servo loop should be direct connect on Daisy Control Box
  5. Orient test jig with LEDs on top.
  6. Set up test jig with both jumpers positioned right.

Wiring Test

  1. Without ICs installed verify wiring connection matches chart,
  2. Connect target board according to set up above.
  3. Check that target board power led is on.

Clocking Test

  1. Install 74HC14 in U4 (alternate is 74HC04).
  2. Run python harness.py shifter --check .
  3. If test fails then track clock signal with oscilloscope using python harness.py shifter --check .
  4. Stop test.

Duration Test

  1. Install remaining ICs.
  2. Run python harness.py duration .
  3. Verify duration is 24 (bits).
  4. If test fails run python harness.py flow and track serial data with oscilloscope.

Daisy 8 to 16 Client Connector Test

  1. Run python harness.py client .
  2. For each target board port A, B, C, and D connect the port to the test jig.
  3. Ignore the first report.
  4. Use the second report to evaluate correctness.
  5. You should also see the test jig LEDs blink in an orderly shifting sequence. Each connector has a different pattern.
  6. Switch the test jig to the next untested target board port.

Daisy 16 to 8 Client Connector Test

  1. Each target board connector is tested separately.
  2. Connect a target board port A1, A2, B3, B4, C5, C6, D7 or D8 to the test jig.
  3. Run python harness.py wide --connector XXX where XXX is from 1 to 8 and matches the port under test.
  4. The test will declare either failure or proper connection.
  5. Repeat the test for all 8 ports.

Loader Testing

  1. If a connector test fails run python harness.py load and track load clock with oscilloscope.

About

Using raspberry pi for control logic on a DC block control railroad.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published