CEB Press/Manufacturing Instructions/Detroit Fab Lab Solenoid Driver

From Open Source Ecology
Jump to: navigation, search
Detroitboard twoboards.jpg

The Detroit Fab Lab has provided a custom-manufactured board that offers the five solenoid driver outputs required by the CEB Press. The card plugs into the Arduino Breakout Shield. The Five pins used to drive the five solenoid connections are as follows:

  • D11
  • D10
  • D9
  • D6
  • D3


Here is some sample source code to test the five connections. Warning: Connecting the drivers to the solenoid unit incorrectly can ruin the unit. In particular, you should watch the polarity of the connections and ensure that opposite sides of one hydraulic circuit are not turned on by the solenoids at the same time. It is recommended that the board be fully tested first and then connected to the solenoid drivers. After this, circuit connections should be double checked before operating the solenoids.

int pwm_a = 11;
int pwm_b = 10;
int pwm_c = 9;
int pwm_d = 6;
int pwm_e = 3;
int i;

void setup()
{
//
   pinMode(pwm_a, OUTPUT);
   pinMode(pwm_b, OUTPUT);
   pinMode(pwm_c, OUTPUT);   
   pinMode(pwm_d, OUTPUT);   
   pinMode(pwm_e, OUTPUT);   

   Serial.begin(9600);
}

void loop()
{
   
        fade_channel(pwm_a);
        fade_channel(pwm_b);
        fade_channel(pwm_c);
        fade_channel(pwm_d);
        fade_channel(pwm_e);
}

void fade_channel(int channel)
{
   Serial.println("Fading pwm channel to max: ");
        Serial.println(channel);
                
   for (i=0; i<=255; i++)
   {
      analogWrite(channel, i);
      delay(100);
   }

   Serial.println("pwm channel at max.");
        delay(1000);
        Serial.println("fading down.");
   
        for (i=255; i>=0; i--)
   {
      analogWrite(channel, i);
      delay(100);   
   }

   Serial.println("pwm channel at 0.");
        delay(1000);
}


digikey parts

Bill Of Materials for CEB Press Driver Shield v1.0

Qnty Description Part # URL

hints and tips

http://workmanship.nasa.gov/lib/insp/2%20books/frameset.html

http://en.wikipedia.org/wiki/PCB_Milling




http://reprap.org/wiki/Automated_Circuitry_Making

materials required

  • soldering iron
  • thin coreless solder
  • rosin flux paste or liquid
  • multimeter
  • tweezers
  • steady hand
  • good eyes or a magnifying glass

board

  • pcb etchant buy
  • laser printer
  • inkjet glossy photo paper
  • acetone
  • laundry iron
  • drill press
  • small drill bit #58 (1/16 is too big) buy

diagrams

Driverschematic.png image to print for transfer


Detoirtboardwithdiodeinfo.png

steps

Detroitboard-printout.jpg


IMG 20110926 205552.jpg
Detroitboard fromabove.jpg
Ose-headersoldering.jpg


  1. make circuit board (you can mill the board or follow the instructions here to use a laser printer and etching)
    1. print the mirrored image on laser photo paper
    2. tape the paper onto the copper board
    3. using a laundry iron, heat the paper until discolored
    4. soak in water and peel the paper away
    5. agitate in pcb etchant solution for 20-30 min until copper is gone
    6. using a #58 drill bit and drill press, drill all the holes
    7. apply accetone to a cloth and wipe away toner
    8. check and fix errors
      • places where not enough was etched away or where too much was
  2. soldering
    1. plan ahead
      • start with the smallest and shortest parts
    2. apply flux to one of the copper sides
    3. put a little solder on the tip of the iron and apply a little solder to that side
    4. apply flux to both sides
    5. hold piece in place on top of the solder
      • for the diodes, leds, and swtich, double check the orientation
    6. while holding in place with gentle force, tap the iron onto the solder already on the board
    7. visually confirm the connection and placement
    8. apply flux to the other side
    9. add solder to the iron and connect the other side
    10. repeat
      • it helps to do each step for multiple components, making progress on them as a group
  3. mosfets
    1. apply flux to the two copper leads and the large copper square
    2. add solder to the iron and apply to the two leads
    3. place and hold the mosfet
    4. while holding in place with gentle force, tap the iron onto the solder already on the board, connect one lead and then the other
      • take care to align correctly, it is difficult to turn once two leads are attached
    5. optionally add more solder to the leads
    6. flux and solder the other side to the copper square
      • a heatsink may be prudent here
  4. terminals
    1. flux on the base
    2. push the terminal through its holes, but keep it elevated a little
    3. place your iron in the gap at the front of the terminal, pushing down on the board
    4. feed solder from the side
    5. repeat
  5. reset switch
    1. wait till after the headers to do the switch so it wont be in the way
  6. headers
    1. the home stretch
    2. using an exacto knife clean out the holes from the bottom
    3. push posts through and solder
      • heat the posts from below using a high power iron and feed solder into the front of the header at the surface of the board.
  7. test

notes

orientations with switch at top:

  • diode - grey stripe on left
  • led - green stripe on left
  • switch - metal part reaching to base is on the right

4992 resistor = 49.9k Ohm

4990 resistor = 499 Ohm

1002 resistor = 10k Ohm

Assistance

updates

  • get rid of reprap breakout board


next version >