Feed on
Posts
Comments

OpenSprinkler v1.3u Build Instructions

(Note: all images below are ‘clickable’, in order for you to see the full-resolution details. )



To Begin: Parts Check
The kit includes all components you need to build OpenSprinkler v1.3u. The parts list can be found on this page. As the picture shows, the kit includes the PCB, bags of components, LCD, and the project case. Bag 1 contains ICs and IC sockets; bag 2 contains diodes, resistors, capacitors, pushbuttons, pin headers, inductors, crystals; bag 3 contains triacs, screw terminals, Ethernet connector, USB connector, and case screws. The 16×2 LCD is in its own bag.

Warning: electronic components are small and easy to lose. Before soldering, carefully put the components in a small container, box, or mint tin. Check the plastic bags thoroughly. Sometimes a couple of components may get stuck on the sticker. DO NOT throw away the plastic bags until you are done with soldering.

Additionally, you need a sprinkler valve transformer (rated at 24VAC) and one or more sprinkler valves. These are not included in the kit. You need to purchase them separately. If you have set up a watering or irrigation system in your garden, you should already have these parts installed; if not, you can purchase them online or at local retail stores. They are available in many brands (Orbit, Hunter, Rainbird…) and a variety of places (Lowes, Home Depot, Amazon…). Check the F.A.Q. page for some additional information.
To give you a heads up, here are two high resolution images of the assembled board (front and back). Click the images to see them in full resolution.

Part 1: Power Supply
To begin, place the PCB onto a a vise, and turn on the soldering iron. (Optional: use a fume extractor to help remove solder fumes).

Remember: all images are ‘clickable’, to help you check full-resolution details.



Insert and solder all IC sockets (from the IC bag). Be careful when inserting the IC sockets: make sure all legs go into the PCB holes correctly. You can tape them to the PCB to avoid them falling out during soldering.

Every socket has a small notch (see the picture on the left) to help identify the orientation. This notch should match up with the silkscreen on the PCB.


Now we will build the power supply and USB programmer section, the components of which are all located at the left side of the PCB.

First solder D1, a 1N4001 diode. It looks similar to D2, so be sure to read the label on the diode. Some packages are shipped with 1N4004 diode instead. Use pliers to gently bend the two legs to 90 degrees. Note that diodes have polarity, allowing current to flow only in one direction. Before inserting it to the PCB, identify the end with a white stripe (the negative leg). This stripe should match the silkscreen on the PCB. Again, when in doubt, click on the images to get a full-resolution view.


On the back of the PCB, bend the legs to the side, so that you can flip the PCB and the diode will stay in place. Solder both legs.

While not necessary, if you want the component to lie close to the PCB, you can solder one leg first, then keep the soldering iron on the joint and push or pull the component towards the PCB. Once it’s in place, proceed to solder the other joint.

Next, use a diagonal cutter to clip leads just above the end of the solder joints.


(Update: in recent kits D4 is replaced by a 100 ohm resistor to provide better LCD contrast. The colored rings on the resistor should read Brown-Black-Brown).

Follow the same method to solder D2 (a 1N5819 Schottky diode, be sure to read the label), and D3 (a smaller, 1N4148 diode), and finally D4 (another 1N4001 diode 100 ohm resistor, located at the top of the PCB). Similar to before: be careful with the polarity of diodes.

Note that D5 (vertical orientation, also marked 1N4148) is currently unused. It should be left open.


Next, solder RLED, a 1 ohm resistor. It is located right below D4 that you just soldered. In the kit you will find a strip of two 1 ohm resistors. The colored rings on the resistors should read Brown-Black-Gold. Resistors are non-polar, so you can insert them either way.

The other 1 ohm resistor goes to Rsc, located on the left of IC1. This is a current limiting resistor for the switching regulator. It needs to be positioned upright. So bend one leg 180 degrees down, insert to the PCB holes, and solder it.

Note that there are two additional PCB holes below Rsc. These are connected in parallel to Rsc. They are left open right now. It’s useful if you need to increase the switching regulator’s output current in the future.

Now solder the R7, a 1.5K resistor. The colored rings should read Brown-Green-Red. This is a pullup resistor for the USB programmer.
Also solder RD+ and RD-. These are two 47 ohm resistors located next to R7. The colored rings should read Yellow-Violet-Black.
Next, solder RT, a 30K resistor (located close to RD+ and RD-). This looks very similar with 10K resistors, so be careful. The ring colors should read Orange-Black-Orange (in contrast, the 10K resistors have Brown-Black-Orange colors and come in a strip of three).

The three 10K resistors should go into RB (located next to RT), RRST (above R7), and R1 (on the right of74HC595 shift register). So solder them as well.

Now solder CT, a 220pf capacitor. It is a timing capacitor for the switching regulator. This is a small yellow ceramic capacitor. One side of it should be labeled 221. It is non-polar, so you can insert it any way.
Next, solder IC2, an MCP1700-33 linear regulator (from the IC bag). It has 3 pins and is shaped like a half cylinder, similar to transistor. Note: be careful not to confuse it with MAC97, which are triacs from the screw terminal bag.

Align it such that the semi-circle matches the PCB silkscreen. Then solder the three legs at the back of the PCB.

Next, solder L1, a 270uH inductor. The label should read 271. Inductors are non-polar.

Moving on, now solder C1, a 100uF/50V electrolytic capacitor. It’s a relatively large component. Electrolytic capacitors are polarized, so make sure the longer (positive) leg goes into the hole marked with +. To double check, there is a white stripe on capacitor body which points to the negative leg.

Similarly, solder C2 and C3, two identical 220uF electrolytic capacitors. They look similar to a 10uF capacitor that you will solder later. So be sure to read the labels. Again, watch out the polarity and maker longer leg corresponds to + hole. Especially note that C2 and C3 have opposing positions on the PCB. After this step, your PCB should look similar to the image on the left.

Now solder the Slide Switch, the USB connector, and the power supply Screw Terminal on the left edge of the PCB. Check the image on the left.

The slide switch and USB connector will touch with each other. This OK, no worry about it.

The last component in this section is the PTC fuse. It’s a yellow, disc-shaped component used for current protection. Use plier to straighten the legs, so it can go into the PCB holes easily. It is located on the right of the power switch.
You can now check your PCB against the high-resolution image on the left.
We are almost done with this section. Insert IC1 into its socket. This is a MC34063 switching regulator, which is used to step the input voltage down to +5VDC. Make sure that its notch matches the notch on the socket. Refer to the picture on the left.

Double check that you have inserted MC34063, not the other two ICs (24LC128 and ATtiny45) which have also in 8-pin package.


Now it’s time to test the power supply section. First, slide up the power switch to turn it off. Then, insert the two wires from your 24VAC sprinkler transformer to the screw terminal on the left. AC power has no polarity, so it doesn’t matter which wire goes to which terminal.

After you have tightened the screws, slide down the power switch.

Important: (although this is unlikely) if anything burns or smokes, immediately turn off power. Check to see if there is any component visibly damaged. If you can’t figure out the problem, post a message in the forum and we will help you.


Voltage check: use a multimeter, measure the voltage between GND and +5V (located in the 2×4 pinout area on the right of the 74HC595 shift register). It should read about +5V. This is the voltage supplied to the LCD.

Next, measure the voltage between GND and VCC, it should be around +3.3V. This is the voltage supplied to the rest of the circuit.

It is crucial to check and ensure these voltage readings are correct, otherwise your controller may not function properly.

After testing the voltages, disconnect the power.

Part 2: MCU and Ethernet Controller

This part includes all components relevant to the microcontroller and Ethernet controller. Start with X1, a blue 8 MHz resonator. It has 3 pins and is symmetric, so doesn’t matter which direction you insert it. It is located right below ATMEGA328. Note that it is ‘double parked’ with two small holes above it. The two small holes are reserved for future use.

Next, insert C4, C5, two 0.1uF ceramic capacitors. These capacitors are on a strip of four, and the label should read 104. The other two 0.1uf capacitors should go into C7 and C8, located on the right side of Ethernet controller.

(Note: the specific part may change depending on what we have in stock. For example, in some packages the 0.1uf capacitors are blue colored as shown below:)

Tip: while you can solder each component one by one, you may want to improve productivity by soldering multiple components at once. To do so, you can use tape to fix multiple components to the PCB, so that they remain in place when you flip the board. This allows you to solder many of them in a single pass.
Insert X2, a 25 MHz crystal. It has 2 pins and no polarity.
Insert CX1, CX2 — two 18pF ceramic capacitors. They looks very similar to 0.1uF but are on a strip of two and the label reads 18J. These are located next to the 25MHz crystal.
Also insert C6, a 10uF electrolytic capacitor.
Next, insert R2, R3, R4, R5, four 49.9 ohm resistors. They come on a strip of four so it’s easy to identify.

(Note: the specific part may change depending on what we have in stock. For example, in some packages the 49.9 ohm resistors are blue colored and sealed at the bottom of the component bag:)

Now insert R8, R9, two 1K resistors. The colored rings should read Brown-Black-Red. These are current limiting resistors for RJ45 LEDs.

Also insert R6, a 2.32K resistor. The color rings should read Red-Orange-Red.
Next is RN1, a 680 ohm resistor network. It has 8 pins and consists of 4 isolated resistors. The label should read ‘681’. This component is symmetric so you can insert it either direction.
Now solder L2, a ferrite bead. It’s a dark, cylindrical element, and has no polarity.
Also solder the 2×4 Extension Board Connector. It is located below L2 and is marked DOUT CLK LAT OE.
The last step is to solder B1, B2, B3, three right-angle pushbuttons, as well as the RJ45 Ethernet jack. Use some force to push the RJ45 jack in, until it snaps. Be careful not to bend the pins or accidentally hurt your fingers.

After this step, check your PCB against the image on the left.

Part 3: LCD and Valve Driver
This section deals with the rest of the circuit. First, take out the LCD, the 1×16 male header and 1×16 female header. Solder the male header to the LCD. Note that the header should be roughly perpendicular to the LCD surface. The easiest way to achieve this is by making use of a breadboard to hold the LCD still during soldering.
Solder the 1×16 female header to the PCB.
The next step is to solder RN2, RN3, two 330ohm x 4 resistor networks. The label should read ‘331’.
Then proceed to solder the eight triacs (MAC97) T1-T8. Use your hand or pliers to bend the middle pin slighted backward, so that you can easily insert it to the PCB holes.

Finally, solder the COM screw terminal, the 8-port station terminal S1-S8, and the Rain Sensor terminal. Now you are all set with the soldering part. Check your PCB with the image on the left.

The last step is to insert all ICs to their sockets: IC3 (24LC128) is a 16KB EEPROM, IC4 (ATmega328) is the MCU, IC5 (74HC595) is a shift register, IC6 (ENC28J60) is the Ethernet controller, and IC7 (ATtiny45) is a pre-programmed USBtiny ISP.

For each IC, bend its pins slightly inward on a hard flat surface. While inserting, carefully check to make sure no pins are left out or twisted. Finally, check your PCB with the photo on the left to make sure all ICs are inserted to the correct socket. You are all set! Take a moment to appreciate your work!

Part 4: Project Case
Now you can assemble the project case. First, check the case, including the top, bottom, four case screws (long, #4 3/8″) and four PCB screws (short, #4-40 3/16″).
Fix the PCB to the case bottom using the four short screws. Insert the LCD to the 1×16 female header on the PCB. Now you can install the plastic cover. Slide the cover from the right-hand side, because the holes on the right-hand side have to go through the pushbuttons and the Ethernet jack. Then press the cover down and make sure it is in good contact with the bottom.
Use a screw driver to carefully insert the case screws from the bottom of the case.
That’s it! Now you have installed the controller to the case. Note that the back panel of the case is wall mountable.

Some notes about usage:

  • Every time you insert wires to terminal blocks, you need to take off the plastic front cover first. If you are making frequent changes to the wiring, just use a small piece of tape to fix the cover to the back panel. This way you can easily take off the front cover without messing with the screws.
  • Important: the case is not waterproof. While it can protect the circuit from accidental water splashes, it is by no means meant for outdoor use. DO NOT leave it outside unprotected. It should be placed in a garage or shelter that won’t catch rain or flood. If you must place it outdoors, enclose the circuit completely inside a waterproof box. It’s your own responsibility to protect it properly!

Leave a Reply