![]() |
David Cook ROBOT ROOM™ |
|
| home | projects | contact | copyright & disclaimer | books | links | ||
|
Sandwich Printed Circuit Board
|
![]() Sandwich's printed circuit board. Left: unstuffed. Right: finished. AVAILABLE NOW AT SOLARBOTICS! For the circuit board by itself: Part #SandPCB. For the circuit board plus parts:Part #K SAND. Printed Circuit Board This contains component placement instructions for the printed circuit board (PCB) for Sandwich, the line-following robot. This information is applicable for boards matching my template, whether you purchased a ready-made board or etched your own. In any case, you must have the book Robot Building for Beginners for complete instructions on the entire robot. The page numbers listed in this document refer to pages in the book. The Sandwich PCB has now reached version 2.0. Thank you to all of the robot builders that have purchased Sandwich boards over the last couple of years! The v2.0 boards feature thicker traces, extra holes for optional components, and a copper layer to help block out overhead lighting. Other than that, these boards are identical to the previous boards in regards to size, component placement, mounting screw holes, and so on. Therefore, don't worry if your board looks slightly different than some of the pictures (for example, your board may have extra holes here and there) -- these instructions remain valid for all Sandwich PCBs. Motherboard Parts List A complete parts list spreadsheet (beyond just the motherboard) and other cool information can be found online. See the link towards the top of page 425 of the book. Here are the parts needed to populate the motherboard.
![]() Two 1-kilohm resistors (R17 and R18). The board is designed to fit 1/2-watt resistors, but the smaller 1/4-watt and 1/8-watt resistors work fine as well. Either end of the resistor can be inserted into either hole. ![]() Four 150-ohm resistors (R1, R7, R8, and R9). Either end of the resistor can be inserted into either hole. Note: Instead of a 150-ohm resistor, you may wish to use a 10,000-ohm or 100,000-ohm resistor for R1 if the resistance of your photoresistors causes the voltage at TP1 or TP2 to exceed 6 V when the robot is placed on a dark surface. ![]() Three 1N5817 or 1N5818 Schottky diodes (D1, D2, and D3). ![]() You must insert all diodes such that the end with the band (stripe) matches the correct hole, as illustrated on the board's silkscreen layer. The board will not work if you insert a diode in reverse orientation. D3 is the diode referred to on page 496. This prevents the board from being damaged if the battery is connected backwards and the power switch is turned on. If you don't want the slight reduction in speed caused as a side effect, you can simply insert a bare wire to connect the holes instead of a diode. However, you can't leave D3 blank, as the board won't function. ![]() Optional: As an alternative to D3 or a blank wire, the v2.0 boards include three holes to optionally accept a p-channel power MOSFET (such as the IRFU5505). This provides reverse battery protection with improved performance over a Schottky diode. For detailed information on this trick, see pages 103-106 of Intermediate Robot Building. ![]() Five 2-pin Molex male headers (optional). If you don't want to use Molex connectors, you can solder the motor, 9 V battery snap, power switch, and optional m&m tube LEDs wires directly to the board. ![]() You should insert all of the headers such that the plastic friction lock (the tall plastic part that looks like the back of a chair) faces the outside of the board. The friction lock helps prevent strain from pulling apart the connection. The friction lock also makes sure you don't insert the female housing in the wrong orientation. ![]() One 4-pin Molex male header for an offboard DPDT line-following switch. Make sure the friction lock faces the rear of the board, just like the 2-pin headers. ![]() I like the light/dark line-following toggle switch in the rear of the Ziploc container as shown on Figures 6-8 and 6-9 on pages 82 and 83. However, it can be a bit of a pain to wire. So, starting with the the v2.0 boards, there is a set of 6 optional holes that you can either:
![]() Two 20 kilohm trimmer potentiometers (R2 and R10). Multiturn trimpots are desirable as they don't slip out of adjustment as much, and they can be adjusted parallel to the board (page 86). The board is designed to fit Bourns 3296 style trimpots. ![]() Two 2907A PNP bipolar transistors (Q7 and Q8). You'll need to bend the leads out slightly to fit them into the holes. ![]() Since the leads are spread out from the case, don't try to insert the transistor case all the way -- it doesn't need to be pressed up against the board. Make sure the flat side (usually contains the text) of the transistor faces forward, which matches the shape of the illustration on the silkscreen of the board. If you insert the transistor backwards, that half of the board won't work.
![]() OPTIONAL: One 330-microfarad (or greater) 16 WV (or greater) capacitor (C1).
![]() Large value capacitors are usually either aluminum electrolytic or tantalum. If you choose aluminum electrolytic, insert the lead with the negative band into the hole marked '-'. If you choose tantalum, insert the lead with the positive band into the hole marked '+'. Nice of them to stay consistent in their markings, huh? If you insert the capacitor in the reverse orientation, the capacitor will be damaged and the board may fail to operate. ![]() OPTIONAL: One 0.1-microfarad (or thereabouts) capacitor (C2). Small value decoupling capacitors are usually ceramic, and can be inserted with the leads in either orientation. However, a "-" is printed near one of the holes on the board in case you choose a polarized component. |
![]() Three yellow (LED7, LED11, LED13) and three green (LED8, LED10, and LED12) T13/4 LEDs. Choose other colors if you prefer. ![]() Make sure the flat notch of the LED matches the illustration on the silkscreen of the board. If you insert any of the LEDs backwards, that string of LEDs won't light up. ![]() Two white (LED9 and LED10) LEDs. Note that the part labels appear on the opposite side of the board from the majority of the other parts. This is to indicate to you that the LEDs go on the opposite side of the board since they'll be facing (and lighting) the floor. Remember that the notch in the LED must still match the illustration on the silkscreen layer or neither white LED will light. ![]() Four cadmium-sulfide photoresistors (R3, R4, R5, and R6). Note that the part labels appear on the opposite side of the board from the majority of the other parts. This is to indicate to you that the photoresistors go on the opposite side of the board since they'll be facing (and examining) the floor. The leads of the photoresistors can be inserted in either orientation. Prior to insertion, the backs of the photoresistors should be coated with black paint. Alternatively, encapsulated or hermetic (sealed in a metal can with transparent window) can be used instead of photoresistors with painted backs. The v2.0 board includes a copper layer at the front of the board to help block out ambient lighting. Don't solder the photoresistors directly against the board. See page 436 for height instructions. ![]() On the v2.0 board, there's a screw hole in the center of the front that can be tapped for a #4-40 screw or left plain for a #2-56 screw with a nut. You can use this hole for anything you want (or ignore it), but the hole was designed so that you can attach an opaque barrier to act as a light baffle (preventing light from the left side from affecting the right side, and vice versa). ![]() One 8-pin DIP IC socket (to hold IC1). ![]() Make sure the rounded notch in the IC socket matches the illustration on the silkscreen layer. Although the socket will work in either orientation, it might fool you into inserting the chip in the wrong orientation. ![]() One LM393 dual comparator (IC1). Make sure the rounded notch in the IC matches the notch in the socket or the illustration on the board's silkscreen layer. Otherwise, the board will fail to operate and the chip could be damaged. To prevent damaged from heat during soldering, the chip should only be inserted in the socket after all the soldering on the board is complete. ![]() Test Points There are four "official" test points on the board, TP+, TP-, TP1, and TP2. You can attach a piece of wire (pointing out straight or in a loop) or a 1-pin standalone header to each hole to allow hook clips to attach for testing. Or, you can leave the test point holes alone and ignore them.
![]() Screw hole and alignment crosshair. Screw Holes There are four large screw holes on the board. These are for attaching the finished board to the robot's body (see page 469) with #4-40 or #2-56 screws. On ready-made boards, the screw holes are not threaded -- the screws should simply pass through. If you're etching your own board, you can choose to drill a smaller hole and tap it, if you desire. Alignment Crosshairs Ignore if you purchased a ready-made PCB. This applies to homemade etched boards only: Adjacent to the screw holes are crosshairs (plus signs). If you're etching your own board, the crosshairs can be used to align both sheets of the PCB transfer film before ironing them on to each side of the board. If you've got a ready-made board, ignore the crosshairs. In fact, the crosshairs have been eliminated on the latest version of the ready-made board.
![]() Left: half circle marks a via. Right: Bare wire soldered on both sides of the board to complete a via Vias Ignore if you purchased a ready-made PCB. This applies to homemade etched boards only: Throughout the board are a number of holes with a half circle above them. These indicate locations where the front side of the board needs to be electrically connected to the back side of the board. If you're etching your own board, you'll need to insert a bare wire (no plastic insulation) into the hole and solder the wire on both the front and back sides. If you've got a ready-made board, ignore the half-circle holes; the board manufacturer has plated through the holes, making the connection and saving you time. In fact, the half-circle holes have been eliminated on the latest version of the ready-made board. |
|
Good luck! Enjoy! You can obtain the professionally manufactured board from Solarbotics (part #SandPCB). They also have a kit available, part #K SAND. >> Somewhere on your web site you mention that the board is exposed on the Solarbotics kit. Does that mean their board is too big to fit into the sandwich shell? No. I just meant that their version of Sandwich doesn't have the plastic container as a body. Solarbotics uses the standard-size, high-quality board with solder masks and silk-screening. Their board is the latest version of the exact board shown on this page. Solarbotics figured out that they could optimize the kit (and bring down the price) by attaching parts directly to an open/exposed board rather than suspending the parts in an upside-down plastic container. Here are the parts they were able to eliminate in their configuration of Sandwich:
Solarbotics made an improvement that is not related to the container. They have wheels that press on to the motor shafts. As such, there is no need to hand-make your own LEGO-wheel-to-standard-motor coupler (Chapter 20) if you buy the Solarbotics kit or purchase their motors and wheels separately. The Solarbotics motors and wheels are much less expensive than the motors from Jameco Electronics. >> Are there any downsides to building your robot from the whole Solarbotics kit? No, not that I know of. In fact, you can save money and get a head start even if you plan to reconfigure the Solarbotics kit to the book's version of Sandwich. |