CEB Press/Manufacturing Instructions/Detroit Fab Lab Solenoid Driver: Difference between revisions

From Open Source Ecology
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
[[Image:Detroitboard twoboards.jpg|thumb]]
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:
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:



Revision as of 05:00, 29 September 2011

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://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

steps

IMG 20110926 205552.jpg
Detroitboard fromabove.jpg
  1. gather materials
    1. (need to add section on how to mill board)
  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. headers
    1. flux on the base
    2. push the header through its holes, but keep it elevated a little
    3. place your iron in the gap at the front of the header, 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. posts
    1. the home stretch
    2. using an exacto knife clean out the holes from the bottom
    3. push posts through and solder
  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