CEB Press/Manufacturing Instructions/Controller Box: Difference between revisions
Ian Midgley (talk | contribs) No edit summary |
(+warning) |
||
Line 1: | Line 1: | ||
{{Template:CEB Press Manufacturing Instructions Navbox}} | {{Template:CEB Press Manufacturing Instructions Navbox}} | ||
{{Warning|The documentation for the CEB Press is undergoing a thorough overhaul. CAD models and written directions are presently obsolete. For more information, see [[Talk:CEB_Press#Documentation_overhaul_in_progress]]. When the models, specifications and text on this article have been thoroughly reviewed, updated when necessary, and confirmed as whole and accurate, this warning may be removed.}} | |||
[[Image:ceb-controller.jpg|right]] | [[Image:ceb-controller.jpg|right]] | ||
Revision as of 01:52, 24 September 2011
|
Warning: The documentation for the CEB Press is undergoing a thorough overhaul. CAD models and written directions are presently obsolete. For more information, see Talk:CEB_Press#Documentation_overhaul_in_progress. When the models, specifications and text on this article have been thoroughly reviewed, updated when necessary, and confirmed as whole and accurate, this warning may be removed.
Tools Required
- Wire Cutters
- Soldering Iron Kit
- PC
- Hand Drill
- Wire Crimper Cutter
Materials Required
Warning: At the moment there are two different styles of wiring displayed on this page. a transition to a milled circuit board is in prograss but not complete. please be aware of the mixed data
- Outdoor Main Lug Box - 125Amp, 2Spaces, 4Circuits, 1Phase, 3Wire, 120/240VAC
- Extension Cord
- Alligator clips (2)
- Home wiring box [1]
- Fuse holder - 30Amp Inline Mini Blade-Type Buy
- 12v quick connect plugs (5 pairs)
- Stranded 5A wire ?
- Spade terminals (10)
- Underground phone cable
- Potting compound Buy
- PVC pipe
- PVC pipe cap
- Stranded Cat 5 cable
- Supermagnets (6) - N42 Buy
- Arduino (Duemilanove) Buy
- MOSFET replacements (5) - Single 35A 70V 0.028Ω TO-220-3 Buy Buy
- Hall Effect sensors (2) - US1881 TO-92 Buy
- 3/8" V-groove bearings (4) Buy
- Molex connector Buy Buy Buy
Sub-project Materials
- Arduino breakout shield Buy Board Assembly instructions (need link to digikey parts)
- NOTE: The board is no longer sold with components. To order components see the "Electronic Components" on following page:
- PWM Solenoid drivers (2) Buy Parts Assembly instructions
Diagrams
- need a diagram of the wires
- google doc drawing of wire diagram (working on it)
Wiring Instructions
The CEB controller involves the following wiring:
- Battery power cord/Fuse/Switch
- Arduino/Breakout Board/Solenoid Driver sandwich
- Circuit board power – solenoid driver and Arduino power connections
- Sensor connections
- Solenoid driver power outputs to solenoids
- Solenoid connections
Note: Reversing the polarity on the power input to the solenoid driver has been shown to fry the solenoid driver board. Other damage may also occur by incorrect connection.
Battery Power
The Power Cube battery, or any other 12V source (Fig. 1), provides electrical power to drive the CEB controller (Fig. 2) and hydraulic solenoid valves (Fig. 3). Alligator clips (Fig. 4) are used to make the connection. The white lead in the power cord is the positive terminal, and the black lead is the negative terminal. This polarity matters.
The battery power cable connects to the controller via a safety disconnect (video in last year's CEB documentation) - which are 2 plugs plugged into each other (Fig. 5). Once battery power is connected, the main power switch (Fig. 6) turns on the power to the controller, where the controller feeds power to the solenoids. Inside the controller, a terminal strip (Fig. 7) is used for the ground (black) and positive connections to the circuit boards. A fuse (Fig. 8) should be located between the main power switch and the positive terminal.
Circuit Boards
Three circuit boards are used in the controller. They are plugged one on top of the next in a sandwich configuration. The spacer on the bottom is a standard household electrical outlet, which insulates the circuit boards from the controller box.
The bottom board is the Arduino (Fig. 9). The Arduino Breakout Board (Fig. 10) sits on top of the Arduino. The circuit-milled Solenoid Driver Board (Fig. 11) sits on top of the Breakout Board. The pins on each of the 3 boards line up (Fig. 12).
Circuit Board Bill of Materials
The circuit schematic of the Solenoid Driver Board is shown in Fig. 13, and the Bill of Materials here - File:Driverbom.odt. This is care of Blair Evans of the Detroit Fab Lab.
Circuit Power
The Arduino and the Solenoid driver must be powered by 12V from the battery. For the Arduino, the connection is made via the Breakout Board. 12V from the battery must be connected to Vin on the shield (bottom right of Shield in Fig.10), and ground must be connected as well. Use the terminals above the Vin.
Power must be connected directly to the solenoid driver board via the terminals in the upper left of Fig. 15. The + terminal is 12V, and the – terminal is the battery ground.
Sensor Construction
A four wire telephone cable is used to connect to the hall effects sensor. Only three of the exposed wires are used; orange, blue/white, and blue. These wires are soldered to the three prongs of the hall effects sensor in order from left to right; orange, blue/white, and blue. Small shrink wrap should be applied to the wires prior to soldering, and then slid into place to cover the leads to prevent short circuiting.
Slide the sensor into a small piece of pvc tube 3.5 inches long. The pvc will be filled with a potting compound to encapsulate the sensor. Tightly wrap electrical tape around the wire exiting the pvc tube, creating a seal to hold in the potting compound. Clamp the pvc vertically with the wire protruding from the bottom and fill the inside of the pvc with the potting compound.
Sensor Connections
The sensor connections are color coded: blue is the sensor input, blue/white is ground, and orange is 5V.
When looking at the Hall Effect Senor chip (now encapsulated) from the front (front is the side with the writing), the left pin is 5V (orange), the middle pin is ground (blue/white), and the right pin is the sensor input (blue). The pull-up resistor (10k on the Detroit Fab Lab solenoid driver board, already included on the driver board) is connected between the 5V and sensor input terminals.
To connect the sensors, use the terminals on the breakout board to make the connections. Use the Analog 0 (A0) and Analog 1 (A1) pins on the breakout board to connect to the main cylinder and secondary cylinder sensor inputs, respectively. Note: the 3rd sensor (soil shaker) is optional, and it will not be used here. Connect the sensor 5V connections to the corresponding terminals on the breakout board, and connect the grounds to the corresponding breakout board terminals as well. The sensor connections should look like that shown in Fig. 16.
Testing from Zero
- Arduino Testing - Preparation
- Note: For this testing procedure, you will need a computer with Arduino software, Python and pyserial loaded.
- Solder 100 Ohm resistors to the negative (short) ends of three LEDs.
- Connect the Positive ends of the LEDs to Ports 11, 12 and 13 of the Breakout Shield
- Connect the resistor ends to GND port of the Breakout Shield
- Double-check the connections!
- Connect the Arduino to the Computer using a USB Cable
- Download Arduino Environment
- Open the Arduino Environment
- Double click on executable text file in Ubuntu
- Select the board that you are using (Duemilanove 328) under Tools / Board.
- Select the Appropriate Serial Connection under Tools / Serial Ports.
- Troubleshooting - if Tools / Serial Ports is blanked out, connect Arduino board
- Generally, the appropriate serial connection will be the number of the lowest unused USB port starting at 0.
- Download the CEB_Testing_Program.pde
- Open the CEB Testing program in last step in the Arduino program by going to File / Open...
- Note: if the above file is not in its own folder, Arduino Environment will create a folder in Ubuntu
- Load the CEB Testing Program into the Arduino using the Upload Button in File / Upload to I/O Board
- Download the Python-based Arduino Testing Program
- Open the Python-based Arduino Testing Program
- Run python code in Terminal - python CEB_Testing.py
- You may need to install python-imaging, python-imaging-tk, python-serial, arduino and avrdude in Linux to make it work
- Try this command in Debian-Based Linux Distros such as Ubuntu: sudo apt-get install python-imaging python-imaging-tk python-serial arduino avrdude
- You may need to install Arduino for Windows, PIL and Pyserial if you are using Windows.
- If you are using a Mac, I have no idea what you'll have to do.
- Connect to the Arduino using the GUI button
- Arduino - Testing - Click the Blink Test Button to Check if the Arduino is working. LED 13 should blink on and off.
- Click the Sensor Test Button. The Arduino’s sensors should cause LEDs 11, 12 and 13 to blink on and off in the presence of the magnets.
- Click the MOSFET Testing Buttons. The green LEDs on the MOSFET should blink on and off accordingly.
- Solenoid Connections - Cut five 2’ pieces of 16-gauge black wire and five 2’ pieces of 16-gauge red wire.
- Strip ¼” off each of the five black and five red wires.
- Tin the ends of each of the wires.
- Attach black wires to each of the negative terminals of the MOSFET connectors on the Detroit Fab-Lab board.
- Attach red wires to each of the positive terminals of the MOSFET connectors on the Detroit Fab-Lab Board.
- Run the black and red wires through an available hole in the Electronics Box.(Should we use the left-side hole for this???)
- When all wires have been checked, tighten each of the cable clamps.
- Solenoid Testing - Remove the bridge connector between the Common Ports of each solenoid unit.
- Connect each of the five red-black solenoid wire pairs to terminals in the solenoids. Black wires should attach to the Common ports and Red Wires to the Solenoid a and Solenoid b Ports
- Double-check the connections!
- Test the Solenoids with the Python-based CEB Press Testing program.
Notes
Here are errors upon running the Python script and upon trying to upload the CEB Testing Program to the arduino:
Fabrication Steps
- Assemble entire Control Box
- Blue spacer box - Arduino attached on top with 2 small screws. Slightly slanted attachment to make screw holes fit on blue spacer box
- Terminal in electrical outlet box cut in half on metal cutoff saw to create + and - terminals
- Plastic mount on bottom of electrical box was shaved to allow 2 solenoid drivers to fit
Attach the Sensors
- Feed the CAT-5 ends of the sensor cables through either the power cable hole or the right side hole of the Electronics Box.
- Attach the orange ends of the sensor wires to GND terminals on the Breakout Shield.
- Attach the blue ends of the sensor wires to the 5V terminals on the Breakout Shield.
- Attach the blue-white ends of the sensor wires to terminals A0, A1 and A2 on the Breakout Shield.
Previous Testing Procedure
- Test Arduino on laptop - for example by blinking Channel 13 output on Duemilanove.
- Test sensors by passing magnets over them. See this sample code.
- Data Sheet
- Supply voltage is 5V from the Arduino breakout shield
- The pins are +,-, OUT reading from top (printed / smaller face)
- The output is "Open Drain" - this means you need a "pull up" resistor on the output (10K connected to +)
- This model is "latching" which means it turns on from one pole, and off by the other, remembering its state in the meantime.
Controller checklist (ie, So you don't burn your components, check these):
- Arduino powers on with USB cord? Check.
- Arduino works - ex. blink Channel 13 with an LED? Check. Atmega 328 Duemilanove - on Ubuntu 10.04.
- Controller main power switch light red when battery is connected and switch is turned on? Check.
- With Molex connectors disconnected, 12V appears at pins 1 and 2?
- With Molex connectors plugged into solenoid driver boards, main power switch turns the drivers on?
- Arduino powers on with battery supply after flipping main switch on?
- Solenoid drivers are turned on with main switch?
- Solenoids turn all of their MOSFETS as seen via indicator lights?
- Solenoids can cycle the solenoid valves?
C
- Test solenoid valves by attaching power to battery and running this sample code for 2 solenoid channels.
- Note we can reduce 3 solenoid channels to 2 by running both the shaker motor and the drawer cylinder from the same channel - the shaker is activated at every stroke of the drawer, as there is ample hydraulic fluid flow available in that part of the overall CEB operation cycle.
other pages with info that should end up on this page