EMPCCCC
This page last updated: December 21, 2012 as of October 2014
Rotary Dumper Electrical Building instructions
My plans on building several dumpers, using knowledge gained and an Arduino micro controller are here
- 2 Button 3 Light switch box (20' Ho scale container)
- Red button is Emergency stop and the Black button is Start normal operation. The green light is 'Power On', the Yellow light is Dumper Rotating, the red light just glows ominously sometimes as their is no fault detection built into this dumper.
Green light glows while IR is in 'listening' mode, Yellow light brightens then fades to 'Show Off' in beteween listening modes (so the Run button can be detected), Yellow light Stays on and Red LED flashes during dumper rotation.
- A 5 wire 5.5" wire is used to collect all the grounds to connect to a 6 wire 12" wire that connects the buttons and lights to the arduino. The LEDs have a 220 ohm resistor in line with the positive wire. The outgoing 6-wires is terminated with a 6 pin header soldered on. An extension is used from the Arduino to the box wire to enable easy multiple disconnection. It is a rats nest in there. The box has a plate to hide-protect the connections.
- Switch box wiring variations (yeah, should have made them all the same...)
- Black, Purple, White, Brown, Green, Yellow
Black : Ground
Purple : Green LED
White : Yellow LED
Brown : Red LED
Green : Black Run button
Yellow : Red Emergency stop button
- Green, Yellow, Gray, Pink, Blue, Red
Green : Ground
Yellow : Green LED (uhm actually a Blue LED)
Gray : Yellow LED
Pink : Red LED
Blue : Black Run button
Red : Red Emergency stop button
- Brown, White, Purple, Black, Red, Blue (Worse, this is a different order for Buttons - so will be used for the Paper mill rather than the 2 Steel mill dumpers)
Brown : Ground
White : Green LED
Purple : Yellow LED
Black : Red LED
Red : Red Emergency stop button
Blue : Black Run button
- There is a Photocell, PositionerServo, PositionerSwitch, IR detector, RotaryServo, Reverse-Stop toggle switch, ArmServo, and the 2 Button 3 Light switch box
Photocell to Arduino Analog Pin : 0
PositionerServo Pins : Ground, Power and Signal to Arduino Pin : 2
PositionerSwitch is Ground and 1 pin to Arduino Pin : 3
IR detector 3 pins : Power, Ground and Signal to Arduino Pin : 4
RotaryServo Pins : Ground, Power and Signal to Arduino Pin : 5
Reverse-Stop is Ground and 1 pin to Arduino Pin : 6 software HIGH so Press pulls it LOW
ArmServo Pins : Ground, Power and Signal to Arduino Pin : 7
2B3L box pins : Run to Arduino pin 8, Emergency stop to Arduino RST Reset pin // 1 Ground, GYR Leds to Arduino Pins _G9, Y10, R11 (220 Ohm resistors are in-line on LEDs)
What is forgotten for Pins 12 and 13... Speaker on Pin 12, Trouble on Pin 13
- Arduino pins : PositionerServo___2, PositionerSwitch___3, IR ___4, Servo ___5, Reverse-Stop ___6, Photo cell ___7, 2B3L box RunBtn ___8, Reset___RST PIN, G___9, Y___10, R___11, Speaker___12 Trouble___13
- Photo cell
- connected on breadboard to a potentiometer-Resistor to Vary the resistance so it works in different light conditions and the code does not have to change.
- Photo cell is used to determine that there are No More Cars to dump. It is placed Under-between the rails at Dumper entrance.
- With potentiometer-Resistor set at ~4.55K i get readings of ~250 'blocked' and 550..600+ clear. The code is set for <500 is blocked : meaning there is a car there to be moved and dumped. The potentiometer-Resistor goes from 0 to 9K so current setting is about in the middle so it gives about the Maximum variance possible.
- Positioner
- It is mainly a physical thing. Building the positioner After the Servo ranges are input into the program code ... The Arm raises, the positioner moves back until it toggles the switch, the arm lowers onto the car coupler, the positioner moves forward until it toggles the switch... Rinse and Repeat.
Copyright © 1991..2014 by Ivan Lee Herring