{"id":1052,"date":"2019-09-26T18:36:01","date_gmt":"2019-09-26T16:36:01","guid":{"rendered":"https:\/\/www.joy-reef.com\/?p=1052"},"modified":"2021-02-11T16:33:07","modified_gmt":"2021-02-11T15:33:07","slug":"arduino-dosing-pump-diy-part-1-assembling","status":"publish","type":"post","link":"https:\/\/www.joy-reef.com\/en\/arduino-dosing-pump-diy-part-1-assembling\/","title":{"rendered":"Arduino Dosing pump DIY \u2013 Part 2, Assembling"},"content":{"rendered":"<p>Hello guys! Ok have you bought everything? Do you have all the material for your hands? So let&#8217;s see how to mount everything together in just a few steps.<\/p>\n<p>First of all you should have everything you need explained in Part One of this miniseries:<\/p>\n<p><a href=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/1.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-966\" src=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/1-300x225.jpg\" alt=\"1\" width=\"300\" height=\"225\" \/><\/a><\/p>\n<p>If you want to start trying to mount the circuit you can do everything except the connections to the pumps, on the circuit with the integrated there are LEDs, which will turn on when the pump should be in action. In this way you can already test the whole operation of the Dosometric Pump.<\/p>\n<p>The tools necessary for assembly are the following:<\/p>\n<p><a href=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/2.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-967\" src=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/2-300x225.jpg\" alt=\"2\" width=\"300\" height=\"225\" \/><\/a><\/p>\n<p>or a welder, of the tin, a heat-shrinkable sheath and of the wire, possibly black and red :). Ah of course you also need a screwdriver.<\/p>\n<p>If you do not have a welder you can buy this, it is a great kit that is great for starting:<\/p>\n<p><a href=\"https:\/\/amzn.to\/2lnScNn\" target=\"_blank\" rel=\"noopener noreferrer\">Soldering Iron Kit<\/a><\/p>\n<p>If you prefer to buy a little better, you can take this:<\/p>\n<p><a href=\"https:\/\/amzn.to\/2LjRCcl\" target=\"_blank\" rel=\"noopener noreferrer\">Digital soldering Iron Station<\/a><\/p>\n<p>To make holes in the electrical box, such an instrument can be convenient:<\/p>\n<p><a href=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/2b.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-968\" src=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/2b-300x300.jpg\" alt=\"2b\" width=\"300\" height=\"300\" \/><\/a><\/p>\n<p>We begin to make the cables to be welded to our heads. Cut a black and a red cable of about 10 &#8211; 12 cm for each head we are going to mount. In this tutorial I will create a 3-head pump and then I will have 6 cables.<\/p>\n<p><a href=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/3.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-969\" src=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/3-300x225.jpg\" alt=\"3\" width=\"300\" height=\"225\" \/><\/a><a href=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/4.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-970\" src=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/4-300x225.jpg\" alt=\"4\" width=\"300\" height=\"225\" \/><\/a><\/p>\n<p>Strip the 2 ends as in the picture and go and attach them to the head of the dosometric pump. Always maintain the same configuration, for example in this photo the red will be towards the bottom of the head.<\/p>\n<p><a href=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/5.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-971\" src=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/5-225x300.jpg\" alt=\"5\" width=\"225\" height=\"300\" \/><\/a><a href=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/7.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-972\" src=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/7-300x225.jpg\" alt=\"7\" width=\"300\" height=\"225\" \/><\/a><\/p>\n<p>Then go on to give a solder point to avoid the wires coming off.<\/p>\n<p><a href=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/8.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-973\" src=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/8-300x225.jpg\" alt=\"8\" width=\"300\" height=\"225\" \/><\/a><\/p>\n<p>At this point, cut 2 pieces of the heat shrink tubing to cover the contacts and welds:<\/p>\n<p><a href=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/10.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-974\" src=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/10-300x225.jpg\" alt=\"10\" width=\"300\" height=\"225\" \/><\/a> <a href=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/11.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-975\" src=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/11-300x225.jpg\" alt=\"11\" width=\"300\" height=\"225\" \/><\/a><\/p>\n<p>Put them in the threads and heat them with the lighter so that they adhere well to the contacts: At this point, cut 2 pieces of heat shrink the tubing to cover the contacts and welds:<\/p>\n<p><a href=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/12.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-976\" src=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/12-300x225.jpg\" alt=\"12\" width=\"300\" height=\"225\" \/><\/a> <a href=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/13.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-977\" src=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/13-225x300.jpg\" alt=\"13\" width=\"225\" height=\"300\" \/><\/a><\/p>\n<p>Repeat the entire procedure for each head of the dosometric pumps in order to obtain the following result:<\/p>\n<p><a href=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/14.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-978\" src=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/14-300x225.jpg\" alt=\"14\" width=\"300\" height=\"225\" \/><\/a><\/p>\n<p>now take the 12v &#8211; 5v power converter:<\/p>\n<p><a href=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/15.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-979\" src=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/15-300x225.jpg\" alt=\"15\" width=\"300\" height=\"225\" \/><\/a><\/p>\n<p>Also in this case you have to weld the wires in the 4 points indicated. Use a red wire for the pin with the word In + and a black one for the one with the text In- then cut one end of the dupont cables and solder that end to the pins Out + and Out-. In this case I used a blue thread for the out + and a purple thread for the out-:<\/p>\n<p><a href=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/17.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-980\" src=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/17-300x225.jpg\" alt=\"17\" width=\"300\" height=\"225\" \/><\/a><\/p>\n<p>Now let&#8217;s take the connector for electric current with 2 wires, one red and one black:<\/p>\n<p><a href=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/18.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-981\" src=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/18-300x225.jpg\" alt=\"18\" width=\"300\" height=\"225\" \/><\/a><\/p>\n<p>Connect the red to the MOST INNER pin and the black to the most EXTERNAL pin;<\/p>\n<p><a href=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/20.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-982\" src=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/20-300x225.jpg\" alt=\"20\" width=\"300\" height=\"225\" \/><\/a><\/p>\n<p>Also in this case, give 2 welding points and use the heat shrink tubing to cover the contacts:<\/p>\n<p><a href=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/21.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-983\" src=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/21-300x225.jpg\" alt=\"21\" width=\"300\" height=\"225\" \/><\/a> <a href=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/22.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-984\" src=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/22-300x225.jpg\" alt=\"22\" width=\"300\" height=\"225\" \/><\/a><\/p>\n<p>Let&#8217;s now proceed to pierce the electric box, everyone can use the method he believes, the most comfortable as I said is surely to use that tool that I have linked above, otherwise you can also do it with the drill and then with a rasp, or in any other way you feel more correct. There are 1 holes to make for each head of the dosometric pumps and 1 for the electrical connector we have just soldered:<\/p>\n<p><a href=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/23.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-986\" src=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/23-225x300.jpg\" alt=\"23\" width=\"225\" height=\"300\" \/><\/a><\/p>\n<p>The end result will be something like this:<\/p>\n<p><a href=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/22b.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-987\" src=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/22b-300x225.jpg\" alt=\"22b\" width=\"300\" height=\"225\" \/><\/a> <a href=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/24.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-988\" src=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/24-300x225.jpg\" alt=\"24\" width=\"300\" height=\"225\" \/><\/a><\/p>\n<p>Now we just have to insert the heads and the connector in the holes just made and proceed with the connections:<\/p>\n<p><a href=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/26b.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-989\" src=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/26b-300x225.jpg\" alt=\"26b\" width=\"300\" height=\"225\" \/><\/a><\/p>\n<p>Cut again one of the ends of 3 dupont cables (possibly two black and one red) and connect together all the red ones you have, including the one coming from the converter and the one of the newly cut dupont cable:<\/p>\n<p><a href=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/25.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-990\" src=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/25-300x225.jpg\" alt=\"25\" width=\"300\" height=\"225\" \/><\/a><\/p>\n<p>The blacks of the pump heads are not yet connected together. You only need to connect the black of the power connector with the black of the converter, and with the 2 dupont cables just cut:<\/p>\n<p><a href=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/26b-1.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-991\" src=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/26b-1-300x225.jpg\" alt=\"26b\" width=\"300\" height=\"225\" \/><\/a><\/p>\n<p>In the case of 3 heads you will then have 6 red cables all connected together and 4 black cables all connected together. If you want to do a good thing, use a mammoth to isolate them from the rest:<\/p>\n<p><a href=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/26c.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-994\" src=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/26c-300x225.jpg\" alt=\"26c\" width=\"300\" height=\"225\" \/><\/a><\/p>\n<p>Now take the circuit with the stepper motor and CUT it, cut the cable that connects the motor to the circuit (The motor will be useless and therefore you can safely throw it):<\/p>\n<p><a href=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/27b.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-993\" src=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/27b-300x225.jpg\" alt=\"27b\" width=\"300\" height=\"225\" \/><\/a><\/p>\n<p>Take the part with the connector and the wires, and connect the blue wire to the black of the first dosometric head, the pink to the black of the second dosometric head, the yellow to the black of the third dosometric head the orange to the black of the fourth dosometric head. If you have more than 4 heads, you must build the circuit yourself as per the diagram shown in the previous part, or use 2 of these circuits.<\/p>\n<p><a href=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/27.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-995\" src=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/27-300x225.jpg\" alt=\"27\" width=\"300\" height=\"225\" \/><\/a><\/p>\n<p>Isolate the 3 links as you see fit, with a solder point, or with mammoths. I used 3 pieces of heat shrink tubing:<\/p>\n<p><a href=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/27c.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-996\" src=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/27c-300x169.jpg\" alt=\"27c\" width=\"300\" height=\"169\" \/><\/a><\/p>\n<p>Now you need to adjust the output voltage from the 12v 5v converter. By connecting the power supply to the connector, the LED on the 12v 5v converter should light up:<\/p>\n<p><a href=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/27d.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-997\" src=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/27d-300x169.jpg\" alt=\"27d\" width=\"300\" height=\"169\" \/><\/a><\/p>\n<p>Now with a tester (multimeter) you have to put the positive pole on out + and the negative one on out-, set the tester on Vcontinua and measure the output voltage. With a small screwdriver turn the screw until the tester measures 5.00V at the output. I recommend, if you skip this part and \/ or the output voltage is higher than 5v you will burn the Nodemcu:<\/p>\n<p><a href=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/30.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-999\" src=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/30-225x300.jpg\" alt=\"30\" width=\"225\" height=\"300\" \/><\/a><a href=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/27e.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-998\" src=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/27e-300x169.jpg\" alt=\"27e\" width=\"300\" height=\"169\" \/><\/a><\/p>\n<p>Now you need to make all the connections, but first disconnect the power supply from the connector so as not to have power:<\/p>\n<p>First of all, connect the converter outputs to the nodemcu, the red on the Vin pin and the black on a GND, then connect the red dupont cable coming out of the red group at + of the circuit with the integrated and a black dupont from the group of black al &#8211; of the integrated circuit. Then connect the other black dupont to another nodemcu GND:<\/p>\n<p><a href=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/28-1.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-1001\" src=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/28-1-300x169.jpg\" alt=\"28\" width=\"300\" height=\"169\" \/><\/a><\/p>\n<p>Now connect with 4 dupont cables the pins D1 D2 D5 D6 of the nodemcu respectively to IN1 IN2 IN3 and IN4 of the circuit with the input:<\/p>\n<p><a href=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/29.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-1002\" src=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/29-300x169.jpg\" alt=\"29\" width=\"300\" height=\"169\" \/><\/a><\/p>\n<p>Et Voil\u00e0! Theoretically you have finished. Now try to see if by connecting the power supply some LEDs light up and no smoke comes out anywhere \ud83d\ude42<\/p>\n<p>Finally you should get to something like this:<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-1155\" src=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2020\/02\/schema-300x169.jpg\" alt=\"\" width=\"520\" height=\"293\" \/><\/p>\n<p><a href=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/32.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-1003\" src=\"https:\/\/www.joy-reef.com\/wp-content\/uploads\/2019\/08\/32-300x225.jpg\" alt=\"32\" width=\"300\" height=\"225\" \/><\/a><\/p>\n<p>If everything works, we just have to jump to <a href=\"https:\/\/www.joy-reef.com\/en\/arduino-dosing-pump-diy-part-3-software\/\">part 3<\/a> of this tutorial to load the program on the pump.<\/p>\n<p>I hope I was clear enough, if there were any doubts, don&#8217;t hesitate to contact me. Always keep in mind that I do all this without profit and therefore if there are errors or inaccuracies do not kill me.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello guys! Ok have you bought everything? Do you have all the material for your hands? So let&#8217;s see how [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":85522,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-1052","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-do-it-yourself"],"_links":{"self":[{"href":"https:\/\/www.joy-reef.com\/en\/wp-json\/wp\/v2\/posts\/1052","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.joy-reef.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.joy-reef.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.joy-reef.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.joy-reef.com\/en\/wp-json\/wp\/v2\/comments?post=1052"}],"version-history":[{"count":3,"href":"https:\/\/www.joy-reef.com\/en\/wp-json\/wp\/v2\/posts\/1052\/revisions"}],"predecessor-version":[{"id":86006,"href":"https:\/\/www.joy-reef.com\/en\/wp-json\/wp\/v2\/posts\/1052\/revisions\/86006"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.joy-reef.com\/en\/wp-json\/wp\/v2\/media\/85522"}],"wp:attachment":[{"href":"https:\/\/www.joy-reef.com\/en\/wp-json\/wp\/v2\/media?parent=1052"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.joy-reef.com\/en\/wp-json\/wp\/v2\/categories?post=1052"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.joy-reef.com\/en\/wp-json\/wp\/v2\/tags?post=1052"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}