<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2684774826100469039</id><updated>2012-02-16T17:39:12.763+02:00</updated><category term='debug'/><category term='soldering'/><category term='ATTiny13'/><category term='sensors'/><category term='TWI'/><category term='LM75A'/><category term='DIY'/><category term='sensor'/><category term='thermocouple'/><category term='firmware'/><category term='AVR'/><category term='assembler'/><category term='PCB'/><category term='k-type'/><category term='I2C'/><category term='electronics'/><title type='text'>Make-a-Project</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://make-a-project.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2684774826100469039/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://make-a-project.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>drug123</name><uri>http://www.blogger.com/profile/07304843548431727685</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2684774826100469039.post-3760319286298322131</id><published>2011-10-30T18:01:00.003+02:00</published><updated>2011-11-02T16:57:43.680+02:00</updated><title type='text'>DIY outdoor all-weather 3G/Wi-Fi router</title><content type='html'>&lt;p&gt;My father lives in the village where no broadband connection is available. To access Internet he used creepy and hell expensive GPRS connection. Once tired by absence of normal connection and impossibility to show him some video on youtube I decided to make something to resolve this nonsense. At that time I was aware few neighbors of him are using 3G USB modems with Yagi antenna attached. After small research USB modem was bought to do the same. Unfortunately first attempts to connect to the network using solely internal antenna was complete failure. But when I was outside house and connected 1/4-wavelength long piece of copper wire into modem’s antenna socket, I was able to connect to the network.&lt;/p&gt;  &lt;p&gt;Due to impossibility to make connection from the house, first more or less working solution included wireless router with USB port (at the time one of the cheapest TP-Link TL-MR3220) that was located in attic and this fascinating wire antenna:&lt;/p&gt;  &lt;p&gt;&lt;a title="It&amp;#39;s how broadband looks far away from the city by drug123, on Flickr" href="http://www.flickr.com/photos/drug123/5719391352/"&gt;&lt;img style="border-bottom: black 1px solid; border-left: black 1px solid; display: block; float: none; margin-left: auto; border-top: black 1px solid; margin-right: auto; border-right: black 1px solid" alt="It&amp;#39;s how broadband looks far away from the city" src="http://farm4.static.flickr.com/3024/5719391352_ee331a7988.jpg" width="500" height="375" /&gt;&lt;/a&gt;&lt;/p&gt; 
&lt;p&gt;Surely I was able to connect modem directly to PC using only external antenna and USB extension cable, but I have reasons to go wireless. To name a few:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;I and my nephew have wi-fi enabled devices (phones, laptops, ipods, etc.) we would like to use them anywhere in the premises. So this hotspot will serve not only standalone desktop PC, but any wireless device in range.&lt;/li&gt;
&lt;li&gt;I didn't wanted use PC as a router as it often turned off because is a little loudly and located in the living room.&lt;/li&gt;
&lt;li&gt;While drilling in the attic was OK, inside cabling will be a pain. Wireless access from desktop is a real saving and relief.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Few weeks after installation I visited father again and found that: &lt;/p&gt;  &lt;a name='more'&gt;&lt;/a&gt;    &lt;ol&gt;   &lt;li&gt;Iron roof coating does not allow to connect my laptop to Wi-Fi access point from most of the courtyard; &lt;/li&gt;    &lt;li&gt;Summer happened (oops!) and under iron-coated roof heated by direct sunlight daylight temperature is more than 50° C (122° F) and router together with modem become really hot; it was promising nothing good; &lt;/li&gt;    &lt;li&gt;Connection rather unstable and disappears from time to time; though demonstrates not so bad performance, up to 0.5/0.2 Mbit DL/UL. &lt;/li&gt; &lt;/ol&gt;  
&lt;p&gt;Inspired by performance measurements I decided to make more reliable solution with better antenna and install it outside of the house to avoid overheating.&lt;/p&gt;  &lt;p&gt;I started with a search of the case that will be able to accommodate all required components. But I found that cases in stores either hermetically sealed (which is unacceptable in my design because of airflow is required to cool components) or does not provide adequate protection from harsh conditions and mostly expensive (appropriate sizes starts at around US $50 equivalent for the &lt;a href="http://en.wikipedia.org/wiki/IP_Code"&gt;IP55&lt;/a&gt; rated box). Thus I decided to go with own case design and manufacturing. &lt;/p&gt;  &lt;p&gt;First of all I made plastic sheet bender out of nichrome wire strained between two long screws secured in the wood plank and 12V/10A power supply with alligator clips. Heat intensity was regulated by moving alligator clips along the wire. Then I used it to bend two 45cm*70cm big polystyrene sheets into shapes pictured below. &lt;/p&gt;  &lt;p&gt;&lt;a title="Polystyrene sheets bent into weather protective case by drug123, on Flickr" href="http://www.flickr.com/photos/drug123/6283197045/"&gt;&lt;img style="border-bottom: black 1px solid; border-left: black 1px solid; display: block; float: none; margin-left: auto; border-top: black 1px solid; margin-right: auto; border-right: black 1px solid" alt="Polystyrene sheets bent into weather protective case" src="http://farm7.static.flickr.com/6093/6283197045_31d949d55f.jpg" width="500" height="333" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Polystyrene was chosen because of its availability, low cost and good frost resistance as in our region frosts under -20 degrees C are rather usual during the winter.&lt;/p&gt;  &lt;p&gt;&lt;a title="Protective case drawing by drug123, on Flickr" href="http://www.flickr.com/photos/drug123/6283197103/"&gt;&lt;img style="border-bottom: black 1px solid; border-left: black 1px solid; display: block; float: none; margin-left: auto; border-top: black 1px solid; margin-right: auto; border-right: black 1px solid" alt="Protective case drawing" src="http://farm7.static.flickr.com/6034/6283197103_7961728071.jpg" width="500" height="264" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Plastic sheets were bent according to this drawing to form two parts (base/roof and lid) of protective case. You may refer to the previous image for resulting shapes. All sizes in millimeters.&lt;/p&gt;  &lt;p&gt;Take into account that it's impossible to bend relatively thick (mine is 3 mm) plastic to have sharp corners. So you should consider resulting slightly rounded corners when perform bending and maybe introduce some tolerances into design. I used bottom cutouts to make exact fit between lid and the base part.&lt;/p&gt;  &lt;p&gt;&lt;a title="Protective case preview by drug123, on Flickr" href="http://www.flickr.com/photos/drug123/6283714674/"&gt;&lt;img style="border-bottom: black 1px solid; border-left: black 1px solid; display: block; float: none; margin-left: auto; border-top: black 1px solid; margin-right: auto; border-right: black 1px solid" alt="Protective case preview" src="http://farm7.static.flickr.com/6056/6283714674_dddf42e2be.jpg" width="500" height="333" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;After bending lid and base was put together, secured, and four 3.2 mm assembly holes was drilled on the sides to keep resulting case in one piece. Later I drilled 6 mm holes on each side to hang the box on two crews screwed into the wall.&lt;/p&gt;  &lt;p&gt;&lt;a title="Assembly mounting by drug123, on Flickr" href="http://www.flickr.com/photos/drug123/6283197361/"&gt;&lt;img style="border-bottom: black 1px solid; border-left: black 1px solid; display: block; float: none; margin-left: auto; border-top: black 1px solid; margin-right: auto; border-right: black 1px solid" alt="Assembly mounting" src="http://farm7.static.flickr.com/6050/6283197361_b8c5a46a9f.jpg" width="500" height="250" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;To make assembly more convenient I screw M3 screws and nuts together through mounting holes of the base and then melted nuts into base' plastic using hot soldering iron. To completely secure the nuts in the base I used small amount of cyanacrylate momentary glue.&lt;/p&gt;  &lt;p&gt;&lt;a title="Additional insulation by drug123, on Flickr" href="http://www.flickr.com/photos/drug123/6283715126/"&gt;&lt;img style="border-bottom: black 1px solid; border-left: black 1px solid; display: block; float: none; margin-left: auto; border-top: black 1px solid; margin-right: auto; border-right: black 1px solid" alt="Additional insulation" src="http://farm7.static.flickr.com/6056/6283715126_7b1628472e.jpg" width="500" height="500" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;To protect internal space from humidity, ventilation holes are made in the places that are safe from water sprays, but everything else should be securely insulated. I have used self-adhesive insulation ribbon for doors/windows sold in hardware store.&lt;/p&gt;  &lt;p&gt;&lt;a title="Ventilation by drug123, on Flickr" href="http://www.flickr.com/photos/drug123/6283715322/"&gt;&lt;img style="border-bottom: black 1px solid; border-left: black 1px solid; display: block; float: none; margin-left: auto; border-top: black 1px solid; margin-right: auto; border-right: black 1px solid" alt="Ventilation" src="http://farm7.static.flickr.com/6218/6283715322_f18a4989ff.jpg" width="500" height="500" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;80mm cooler from broken ATX PSU was used for forced ventilation. I had drilled 12 mm vent holes first then glued sparse silkscreen mesh from inside to protect internals from insects. From my experience bugs are more dangerous for electronics mounted outdoors than water and frosts.&lt;/p&gt;  &lt;p&gt;&lt;a title="Heater by drug123, on Flickr" href="http://www.flickr.com/photos/drug123/6283197969/"&gt;&lt;img style="border-bottom: black 1px solid; border-left: black 1px solid; display: block; float: none; margin-left: auto; border-top: black 1px solid; margin-right: auto; border-right: black 1px solid" alt="Heater" src="http://farm7.static.flickr.com/6052/6283197969_043898a12d.jpg" width="500" height="333" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;To heat electronics during winter frosts I decided to use two ceramic 10W, 10Ohm resistor connected in series. Total power dissipation at 12V will be 7.2W&lt;/p&gt;  &lt;p&gt;&lt;a title="&amp;quot;HVAC&amp;quot; system mounted by drug123, on Flickr" href="http://www.flickr.com/photos/drug123/6283715786/"&gt;&lt;img style="border-bottom: black 1px solid; border-left: black 1px solid; display: block; float: none; margin-left: auto; border-top: black 1px solid; margin-right: auto; border-right: black 1px solid" alt="&amp;quot;HVAC&amp;quot; system mounted" src="http://farm7.static.flickr.com/6159/6283715786_fff55543a3.jpg" width="500" height="500" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;All ventilation and heating components mounted on the lid. I added two LEDs to indicate when heater or fan is on but it is not really necessary. I often use melting glue gun to mount different parts as it is done in this case: both LEDs and controller glued to the lid with a glue gun.&lt;/p&gt;  &lt;p&gt;&lt;a title="&amp;quot;HVAC&amp;quot; controller by drug123, on Flickr" href="http://www.flickr.com/photos/drug123/6283716252/"&gt;&lt;img style="border-bottom: black 1px solid; border-left: black 1px solid; display: block; float: none; margin-left: auto; border-top: black 1px solid; margin-right: auto; border-right: black 1px solid" alt="&amp;quot;HVAC&amp;quot; controller" src="http://farm7.static.flickr.com/6094/6283716252_61f6b12521.jpg" width="500" height="167" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;To control cooling (fan) and heating (resistors) I prepared very simple circuit consisting of comparator, few resistors, 10K &lt;a href="http://en.wikipedia.org/wiki/Thermistor"&gt;NTC thermistor&lt;/a&gt; and dual N-Channel MOSFET transistor. Comparator forms inverting and non-inverting &lt;a href="http://en.wikipedia.org/wiki/Schmitt_trigger"&gt;Schmitt triggers&lt;/a&gt;. I calculated resistors values for this circuit using online calculators on &lt;a href="http://www.random-science-tools.com/electronics/"&gt;Random Science Tools and Calculators&lt;/a&gt; site to turn on fan when temperature is more than 30 degrees C and turn it off if T below 27 degrees C. Heater respectively turns on if T is below about 3 degrees C and turns off when it rises more than 7 degrees C. Numbers are approximate, but tests showed I hadn't missed anything.&lt;/p&gt;  &lt;p&gt;Controller powered directly from 12V/1A wall PSU.&lt;/p&gt;  &lt;p&gt;Schematics of “HVAC” controller:&lt;/p&gt;  &lt;p&gt;&lt;a title="&amp;quot;HVAC&amp;quot; controller schematics by drug123, on Flickr" href="http://www.flickr.com/photos/drug123/6283716332/"&gt;&lt;img style="display: block; float: none; margin-left: auto; margin-right: auto" alt="&amp;quot;HVAC&amp;quot; controller schematics" src="http://farm7.static.flickr.com/6104/6283716332_b9c849f8ef.jpg" width="500" height="362" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;BOM:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;IRF7103 SO-8 dual MOSFET 50V, 3.0A &lt;/li&gt;    &lt;li&gt;LM393 SOIC-8 dual comparator &lt;/li&gt;    &lt;li&gt;0.1uF C0805 ceramic capacitor &lt;/li&gt;    &lt;li&gt;1uF C0805 ceramic capacitor &lt;/li&gt;    &lt;li&gt;3x Molex 2-pin polar connectors 0.1&amp;quot; step &lt;/li&gt;    &lt;li&gt;10K NTC thermistor R0805 &lt;/li&gt;    &lt;li&gt;33K R0805 resistor &lt;/li&gt;    &lt;li&gt;39K R0805 resistor &lt;/li&gt;    &lt;li&gt;330 R0805 resistor &lt;/li&gt;    &lt;li&gt;2x 10K&amp;#160; R0805 resistor &lt;/li&gt;    &lt;li&gt;56K R0805 resistor &lt;/li&gt;    &lt;li&gt;22K R0805 resistor &lt;/li&gt;    &lt;li&gt;330K R0805 resistor &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;a title="Bottom ventilation/drain by drug123, on Flickr" href="http://www.flickr.com/photos/drug123/6283198997/"&gt;&lt;img style="border-bottom: black 1px solid; border-left: black 1px solid; display: block; float: none; margin-left: auto; border-top: black 1px solid; margin-right: auto; border-right: black 1px solid" alt="Bottom ventilation/drain" src="http://farm7.static.flickr.com/6049/6283198997_ccee12146f.jpg" width="500" height="333" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;To ensure drainage in case water forced inside, meshed vent holes located on the bottom of the case also were drilled. Here SMA/RP-SMA connectors for Wi-Fi and 3G antennas and cable input for power supply located as well.&lt;/p&gt;  &lt;p&gt;&lt;a title="Novatel U720 modem by drug123, on Flickr" href="http://www.flickr.com/photos/drug123/6283199101/"&gt;&lt;img style="border-bottom: black 1px solid; border-left: black 1px solid; display: block; float: none; margin-left: auto; border-top: black 1px solid; margin-right: auto; border-right: black 1px solid" alt="Novatel U720 modem" src="http://farm7.static.flickr.com/6233/6283199101_e7c79110ca.jpg" width="500" height="333" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;To access Internet I bought &lt;a href="http://www.novatelwireless.com/index.php?option=com_content&amp;amp;view=article&amp;amp;id=177&amp;amp;Itemid=58" rel="nofollow"&gt;Novatel Wireless Ovation™ U720 EV-DO Rev A USB modem&lt;/a&gt; and data plan from local provider who is working in 800 MHz band using CDMA EV-DO Rev.A technology.&lt;/p&gt;  &lt;p&gt;&lt;a title="Novatel U720 modem mod by drug123, on Flickr" href="http://www.flickr.com/photos/drug123/6283716762/"&gt;&lt;img style="border-bottom: black 1px solid; border-left: black 1px solid; display: block; float: none; margin-left: auto; border-top: black 1px solid; margin-right: auto; border-right: black 1px solid" alt="Novatel U720 modem mod" src="http://farm7.static.flickr.com/6039/6283716762_7d662a77a6.jpg" width="500" height="333" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;I have ordered few MS-147-to-SMA pigtails for external antenna connector but all received parts had in fact DB9 connector that does not fit on connector. So finally I disassembled the modem and made small mod by connecting commonly available U.FL-to-SMA pigtail directly to PCI-E card instead of wire connector to MS-147. U720 in fact is USB to PCI-E adapter plus PCI-E EV-DO modem.&lt;/p&gt;  &lt;p&gt;&lt;a title="Slim Jim antenna etching by drug123, on Flickr" href="http://www.flickr.com/photos/drug123/6283716906/"&gt;&lt;img style="border-bottom: black 1px solid; border-left: black 1px solid; display: block; float: none; margin-left: auto; border-top: black 1px solid; margin-right: auto; border-right: black 1px solid" alt="Slim Jim antenna etching" src="http://farm7.static.flickr.com/6099/6283716906_d2f776c6e3.jpg" width="500" height="333" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;As reception of CDMA network signal in the area where box will work is very poor, I decided to create external antenna.&lt;/p&gt;  &lt;p&gt;I had used &lt;a href="http://www.m0ukd.com/Calculators/Slim_Jim/index.php" rel="nofollow"&gt;Slim Jim antenna calculator&lt;/a&gt; to calculate dimensions required for CDMA 800MHz band. CDMA 800 terminal node uses following frequencies according to &lt;a href="http://mymeaculpa.net/Accessories_Boat/Mobile_Computing/Verizon_Broadband/USB720_Hardware_User_Manual.pdf" rel="nofollow"&gt;modem user manual&lt;/a&gt;: &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Transmit 824.7-848.31 MHz &lt;/li&gt;    &lt;li&gt;Receive 869.7-893.31 MHz &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;I made calculation for mean frequency between 824.7 and 893.31 MHz. Then I draw the shape in design software and etched it on FR4 board to ensure correctness of the sizes and shape. &lt;/p&gt;  &lt;p&gt;I hadn't 30cm long etching tank so I used paper box and polyethylene film to make temporary etching container. I used &lt;a href="http://www.dr-lex.be/hardware/tonertransfer.html" rel="nofollow"&gt;direct toner transfer&lt;/a&gt; method for PCB artwork preparation and ferric chloride as etchant.&lt;/p&gt; &lt;p&gt;&lt;a title="Antenna in enclosure by drug123, on Flickr" href="http://www.flickr.com/photos/drug123/6283717040/"&gt;&lt;img style="border-bottom: black 1px solid; border-left: black 1px solid; display: block; float: none; margin-left: auto; border-top: black 1px solid; margin-right: auto; border-right: black 1px solid" alt="Antenna in enclosure" src="http://farm7.static.flickr.com/6221/6283717040_3d614052a0.jpg" width="500" height="333" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;p&gt;To protect antenna and ease its mounting I put antenna board inside 30cm long 1/2&amp;quot; PVC plumbing pipe and put stubs on both sides. There are SMA connector on one side to connect extension cable I made using connectors and RG-316 low loss coaxial cable bought on eBay. Both stub caps are sealed with melted glue.&lt;/p&gt;  &lt;p&gt;&lt;a title="All router components together by drug123, on Flickr" href="http://www.flickr.com/photos/drug123/6283199711/"&gt;&lt;img style="border-bottom: black 1px solid; border-left: black 1px solid; display: block; float: none; margin-left: auto; border-top: black 1px solid; margin-right: auto; border-right: black 1px solid" alt="All router components together" src="http://farm7.static.flickr.com/6041/6283199711_61d01890e7.jpg" width="500" height="396" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Here you can see all router components together. Here goes list of all components and approximate prices in USD:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;2x 45cm*70cm polystyrene sheets - $15 &lt;/li&gt;    &lt;li&gt;Self-adhesive insulation ribbon for doors/windows - $3 &lt;/li&gt;    &lt;li&gt;80mm computer fan - $3 (Mine is scavenged from broken PSU, no cost for me) &lt;/li&gt;    &lt;li&gt;HVAC controller board components and FR4 - $5 (not sure as I bought only thermistor and resistors/caps and this is few cents; everything else were scavenged from old PC motherboards and FR4 I had before and don't recall the price, but it is very small piece and also should cost few cents) &lt;/li&gt;    &lt;li&gt;Heater (2x 10W ceramic resistors) - $1.5 &lt;/li&gt;    &lt;li&gt;PVC pipe, caps, pipe clips, SMA connector and FR4 for antenna - roughly $10 &lt;/li&gt;    &lt;li&gt;RG-316 coaxial cable (~10'/3m) and connectors - $10 &lt;/li&gt;    &lt;li&gt;Cable input and pair of screw clamps - $2 &lt;/li&gt;    &lt;li&gt;2x pigtails (U.FL/SMA, RP-SMA male/female) - $8 &lt;/li&gt;    &lt;li&gt;Tripple power socket - $3 &lt;/li&gt;    &lt;li&gt;12V/1A wall PSU - $5 (I have few of them for free from old equipment) &lt;/li&gt;    &lt;li&gt;Novatel U720 USB CDMA Rev.A modem - $40 &lt;/li&gt;    &lt;li&gt;TP-Link TL-MR3220 3G/802.11b/g/n wireless router - $40 &lt;/li&gt;    &lt;li&gt;Collinear Wi-Fi antenna for 2.4 GHz band - $12 &lt;/li&gt;    &lt;li&gt;Melted and cyanacrylate glue, double-sded adhesive tape, nylon cable ties etc. - $5 &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;TOTAL: around $160&lt;/p&gt;  &lt;p&gt;In total I had spent about 16 hours in total for design, production and assembly of final product.&lt;/p&gt;  &lt;p&gt;There are notes on the flikr to help identify components.&lt;/p&gt;  &lt;p&gt;Below you may find photos of assembled box:&lt;/p&gt;  &lt;p&gt;&lt;a title="Assembled box, bottom by drug123, on Flickr" href="http://www.flickr.com/photos/drug123/6283717338/"&gt;&lt;img style="border-bottom: black 1px solid; border-left: black 1px solid; display: block; float: none; margin-left: auto; border-top: black 1px solid; margin-right: auto; border-right: black 1px solid" alt="Assembled box, bottom" src="http://farm7.static.flickr.com/6212/6283717338_bceef91425.jpg" width="500" height="333" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="Assembled box, front by drug123, on Flickr" href="http://www.flickr.com/photos/drug123/6283199961/"&gt;&lt;img style="border-bottom: black 1px solid; border-left: black 1px solid; display: block; float: none; margin-left: auto; border-top: black 1px solid; margin-right: auto; border-right: black 1px solid" alt="Assembled box, front" src="http://farm7.static.flickr.com/6048/6283199961_435e0754f4.jpg" width="500" height="500" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="Wi-Fi box mounted by drug123, on Flickr" href="http://www.flickr.com/photos/drug123/6283717668/"&gt;&lt;img style="border-bottom: black 1px solid; border-left: black 1px solid; display: block; float: none; margin-left: auto; border-top: black 1px solid; margin-right: auto; border-right: black 1px solid" alt="Wi-Fi box mounted" src="http://farm7.static.flickr.com/6044/6283717668_15f15c57e2.jpg" width="500" height="333" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Wi-Fi box was mounted on the pediment of the house on Nord-West side of the house. Top Internet speed I witnessed was 0.9/0.4 Mbps DL/UL according to speedtest.net using CDMA EV-DO Rev.A connection. In the area where box is working, connection using solely internal modem's antenna is not possible.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2684774826100469039-3760319286298322131?l=make-a-project.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-a-project.blogspot.com/feeds/3760319286298322131/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://make-a-project.blogspot.com/2011/10/diy-outdoor-all-weather-3gwi-fi-router.html#comment-form' title='13 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2684774826100469039/posts/default/3760319286298322131'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2684774826100469039/posts/default/3760319286298322131'/><link rel='alternate' type='text/html' href='http://make-a-project.blogspot.com/2011/10/diy-outdoor-all-weather-3gwi-fi-router.html' title='DIY outdoor all-weather 3G/Wi-Fi router'/><author><name>drug123</name><uri>http://www.blogger.com/profile/07304843548431727685</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://farm4.static.flickr.com/3024/5719391352_ee331a7988_t.jpg' height='72' width='72'/><thr:total>13</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2684774826100469039.post-830812479658812409</id><published>2011-02-07T19:06:00.004+02:00</published><updated>2011-02-07T20:24:58.650+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='assembler'/><category scheme='http://www.blogger.com/atom/ns#' term='firmware'/><category scheme='http://www.blogger.com/atom/ns#' term='debug'/><category scheme='http://www.blogger.com/atom/ns#' term='AVR'/><title type='text'>Debugging firmware without debugger</title><content type='html'>&lt;p&gt;My &lt;a href="http://make-a-project.blogspot.com/2010/12/k-type-thermocouple-sensor-i2c.html"&gt;thermocouple sensor&lt;/a&gt; stuck for a while on firmware development stage until my &lt;a href="http://dangerousprototypes.com/open-logic-sniffer/" target="_blank"&gt;Logic Sniffer&lt;/a&gt; is arrived.&lt;/p&gt;  &lt;p&gt;This is because I faced a problem with I&lt;sup&gt;2&lt;/sup&gt;C communication:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;When I communicating my firmware based on Atmel’s AVR302 application note source code, it works as expected; &lt;/li&gt;    &lt;li&gt;When I poll LM75A I&lt;sup&gt;2&lt;/sup&gt;C thermometer it also working fine, but after I read value from it strange side effect appears: my firmware stops responding with address acknowledge when I trying to address it; &lt;/li&gt;    &lt;li&gt;After few (rather random) polls to LM75A my firmware are able to process commands until thermometer part is polled again. &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;There are many wait loops in firmware source code originated from app note like following:&lt;/p&gt;  &lt;pre class="src"&gt;whi_dac:&lt;br /&gt; sbis PINB,PINB2 ; wait for SCL high
 rjmp whi_dac
wlo_dac:&lt;br /&gt; sbic PINB,PINB2 ; wait for SCL low
 rjmp wlo_dac&lt;/pre&gt;

&lt;p&gt;It seems to me that because of incorrect handling of a bus states firmware hangs on one of these loops.&lt;/p&gt;

&lt;p&gt;I ordered logic analyzer to examine bus traffic but because it seems that the package delayed somewhere due to Chinese New Year I want to try today one approach that come to my mind during last week how to debug firmware inside ATTiny13 without hawing hardware debugger. Idea is pretty simple:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;ATTiny13 has 8 pins; &lt;/li&gt;

  &lt;li&gt;3 is pre-occupied (RESET, VCC, GND); &lt;/li&gt;

  &lt;li&gt;On 2 pins (PB2(T0) as SCL and PB1(INT0) as SDA) sits I&lt;sup&gt;2&lt;/sup&gt;C bus; &lt;/li&gt;

  &lt;li&gt;Thus 3 pins (PB0, PB3, PB4) are free and could be used for debug purposes. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Idea is to use LEDs connected to free 3 pins as indicators of key points in source code. 2&lt;sup&gt;3&lt;/sup&gt; gives us 8 possible combinations. All that I need is to set PB0, PB3, PB4 to HIGH/LOW state according to key point number in binary format.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2684774826100469039-830812479658812409?l=make-a-project.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-a-project.blogspot.com/feeds/830812479658812409/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://make-a-project.blogspot.com/2011/02/debugging-without-debugger.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2684774826100469039/posts/default/830812479658812409'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2684774826100469039/posts/default/830812479658812409'/><link rel='alternate' type='text/html' href='http://make-a-project.blogspot.com/2011/02/debugging-without-debugger.html' title='Debugging firmware without debugger'/><author><name>drug123</name><uri>http://www.blogger.com/profile/07304843548431727685</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2684774826100469039.post-8171471213197150645</id><published>2010-12-12T23:40:00.007+02:00</published><updated>2010-12-13T12:47:30.757+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ATTiny13'/><category scheme='http://www.blogger.com/atom/ns#' term='k-type'/><category scheme='http://www.blogger.com/atom/ns#' term='LM75A'/><category scheme='http://www.blogger.com/atom/ns#' term='PCB'/><category scheme='http://www.blogger.com/atom/ns#' term='thermocouple'/><category scheme='http://www.blogger.com/atom/ns#' term='sensors'/><category scheme='http://www.blogger.com/atom/ns#' term='AVR'/><title type='text'>K-Type thermocouple sensor I2C interface board</title><content type='html'>Today I finished with board preparation and soldering:
&lt;div style="text-align:center;"&gt;&lt;a href="http://www.flickr.com/photos/drug123/5255559282/" title="K-Type thermocouple sensor I2C interface board by drug123, on Flickr"&gt;&lt;img src="http://farm6.static.flickr.com/5206/5255559282_e1c09a0a94_m.jpg" width="240" height="160" alt="K-Type thermocouple sensor I2C interface board" /&gt;&lt;/a&gt;&lt;/div&gt;
Most important part is firmware to turn ATTiny13 into I&lt;up&gt;2&lt;/up&gt;C ADC which is not ready yet. Will continue with this task on next week.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2684774826100469039-8171471213197150645?l=make-a-project.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-a-project.blogspot.com/feeds/8171471213197150645/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://make-a-project.blogspot.com/2010/12/k-type-thermocouple-sensor-i2c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2684774826100469039/posts/default/8171471213197150645'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2684774826100469039/posts/default/8171471213197150645'/><link rel='alternate' type='text/html' href='http://make-a-project.blogspot.com/2010/12/k-type-thermocouple-sensor-i2c.html' title='K-Type thermocouple sensor I2C interface board'/><author><name>drug123</name><uri>http://www.blogger.com/profile/07304843548431727685</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://farm6.static.flickr.com/5206/5255559282_e1c09a0a94_t.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2684774826100469039.post-827919031936472774</id><published>2010-12-10T13:21:00.011+02:00</published><updated>2010-12-10T16:13:04.981+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ATTiny13'/><category scheme='http://www.blogger.com/atom/ns#' term='k-type'/><category scheme='http://www.blogger.com/atom/ns#' term='LM75A'/><category scheme='http://www.blogger.com/atom/ns#' term='thermocouple'/><category scheme='http://www.blogger.com/atom/ns#' term='sensors'/><category scheme='http://www.blogger.com/atom/ns#' term='AVR'/><title type='text'>K-Type thermocouple measuring</title><content type='html'>&lt;p&gt;I'm designing the circuit to measure high temperatures (up to 600 &amp;deg;C) with at least 1 degree resolution with TWI (I&lt;up&gt;2&lt;/up&gt;C) interface.&lt;/p&gt;
&lt;p&gt;Literature on thermocouples:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://cp.literature.agilent.com/litweb/pdf/5965-7822E.pdf"&gt;Practical temperature measurement&lt;/a&gt; application note&lt;/li&gt;
&lt;li&gt;&lt;a href="http://srdata.nist.gov/its90/main/"&gt;NIST ITS-90 Thermocouple Database&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://wbo2.com/sw/therm.htm"&gt;Thermocouple Technical Information&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Circuit design will include LM75 TWI temperature sensor for cold junction compensation, LM358 dual operational amplifier for two-stage amplification and ATTiny13 microcontroller for ADC and TWI interfacing (software slave).&lt;/p&gt;
&lt;p&gt;Board layout supposed to be as narrower as possible to be insulated with heatshrink tube. Thermocouple will be connected using 3.5 mm screw terminal. For MCU communication and power supply 4-pin JST connector will be used (2.5 mm step). TWI address of LM75 will be configured using solder jumpers, ATTiny address will be set using TWI protocol and default address and then stored to EEPROM.&lt;/p&gt;
&lt;p&gt;Device will support 3.3V and 5V supply.&lt;/p&gt;
&lt;p&gt;Dual stage &lt;a href="http://en.wikipedia.org/wiki/Operational_amplifier#Non-inverting_amplifier"&gt;Non-inverting amplifier&lt;/a&gt; calculation is the following:&lt;/p&gt;
&lt;p&gt;As I need 600 degrees upper level, voltage could be aplified up to 125 times to be below 3.3V for normal operation with this supply voltage as about 25mV corresponds to 602&amp;deg; on k-type probe.&lt;/p&gt;

&lt;p&gt;Vo=Vi*(1+R2/R1)&lt;/p&gt;

&lt;p&gt;1st stage: R2=10K, R1=1K, Gain=11&lt;/p&gt;
&lt;p&gt;2nd stage: R2=10K, R1=1K, Gain=11&lt;/p&gt;
&lt;p&gt;Total gain = 11*11 = 121&lt;/p&gt;

&lt;p&gt;Total gain of 121 is good for us as it gives 25mV*121=3.025V at 602 &amp;deg;C (25 mV reading).&lt;/p&gt;

&lt;p&gt;Measurement resolution considering 10-bit ADC will be:&lt;/p&gt;
&lt;p&gt;At 3.3V 3.025/(3.3/1024)=938 steps, about 0.64 &amp;deg;C per step.&lt;/p&gt;
&lt;p&gt;At 5V 3.025/(5/1024)=619 steps, about 0.97 &amp;deg;C per step.&lt;/p&gt;

&lt;p&gt;I will work on proof of concept today; let's see the results.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2684774826100469039-827919031936472774?l=make-a-project.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-a-project.blogspot.com/feeds/827919031936472774/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://make-a-project.blogspot.com/2010/12/k-type-thermocouple-measuring.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2684774826100469039/posts/default/827919031936472774'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2684774826100469039/posts/default/827919031936472774'/><link rel='alternate' type='text/html' href='http://make-a-project.blogspot.com/2010/12/k-type-thermocouple-measuring.html' title='K-Type thermocouple measuring'/><author><name>drug123</name><uri>http://www.blogger.com/profile/07304843548431727685</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2684774826100469039.post-5995498097511319303</id><published>2010-07-08T14:47:00.000+03:00</published><updated>2010-07-09T13:43:40.484+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='electronics'/><category scheme='http://www.blogger.com/atom/ns#' term='DIY'/><category scheme='http://www.blogger.com/atom/ns#' term='soldering'/><title type='text'>Digital Soldering Station Concept</title><content type='html'>&lt;p&gt;Haven't written some time due to my work and ongoing projects I will explain later.&lt;/p&gt;&lt;p&gt;&lt;a href="http://make-a-project.blogspot.com/2010/03/pumping-station-project.html"&gt;My pumping station&lt;/a&gt; is on hold for a while as it is not urgently required till first frosts. Actually all electronics is complete and working perfectly. The only thing is to pack it into cases and make good water insulation for immersed parts. This part I hate most because I have no suitable tools and place to do the hardware work.&lt;/p&gt;&lt;p&gt;Now I'm working on digital soldering station to replace my old 40W 220AC iron with tool more suitable for lead-free soldering. Features I'm going to implement:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/PID_controller"&gt;PID&lt;/a&gt; controlled heating of 24V iron (I'm going to use SL-ICMC 24V/48W iron with ceramic heater that normally used with &lt;a href="http://www.soldering.com.tw/p1_all.html"&gt;CMC series of Solomon stations&lt;/a&gt; with K-type sensor)&lt;/li&gt;&lt;li&gt;3-digit numerical display for temperature reading and setting&lt;/li&gt;&lt;li&gt;Two-button 100 to 450 &amp;deg;C temperature setting&lt;/li&gt;&lt;li&gt;Calibration using external thermometer&lt;/li&gt;&lt;li&gt;Replaceable circuit for thermocouple or thermistor sensor support&lt;/li&gt;&lt;li&gt;EEPROM to store temperature settings when station is switched off&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;I have bought switching PSU 24V/2.7A, iron and metal case for this project and now working on electronic part. Hope to come soon with first results.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2684774826100469039-5995498097511319303?l=make-a-project.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-a-project.blogspot.com/feeds/5995498097511319303/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://make-a-project.blogspot.com/2010/07/digital-soldering-station.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2684774826100469039/posts/default/5995498097511319303'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2684774826100469039/posts/default/5995498097511319303'/><link rel='alternate' type='text/html' href='http://make-a-project.blogspot.com/2010/07/digital-soldering-station.html' title='Digital Soldering Station Concept'/><author><name>drug123</name><uri>http://www.blogger.com/profile/07304843548431727685</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2684774826100469039.post-2431848254411629853</id><published>2010-03-08T13:24:00.001+02:00</published><updated>2010-03-09T12:36:30.052+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='electronics'/><category scheme='http://www.blogger.com/atom/ns#' term='ATTiny13'/><category scheme='http://www.blogger.com/atom/ns#' term='DIY'/><category scheme='http://www.blogger.com/atom/ns#' term='LM75A'/><category scheme='http://www.blogger.com/atom/ns#' term='sensor'/><category scheme='http://www.blogger.com/atom/ns#' term='TWI'/><category scheme='http://www.blogger.com/atom/ns#' term='AVR'/><category scheme='http://www.blogger.com/atom/ns#' term='I2C'/><title type='text'>Finally!</title><content type='html'>&lt;p&gt;Finally I got it working yesterday! The problem with TWI was not in MCU nor in software TWI Master implementation, but in differences in addressing. &lt;/p&gt;  &lt;p&gt;In LM75A datasheet said that 7-bit addressing used for the device. MSB bits are always set to 1001, and value of 3 lower bits depends on logic level on pins A0:A2. As A0:A2 pins I have connected to Vcc, address of my sensor is b01001111 (8-bit binary) = 0x4F (hexadecimal). I have successfully used this address with Arduino and all was working as expected.&lt;/p&gt;  &lt;p&gt;But when I started with ATTiny13 running software TWI nothing were working. As I haven’t full-functional digital oscilloscope, I had tried to make some “poor man’s logic analyzer” using codes from &lt;a href="http://www.uchobby.com/index.php/2008/09/09/avr-logic-analyzer/"&gt;here&lt;/a&gt;. Got it working, but results were strange to me because SCL signal on TWI bus wasn’t like a strobe but more likely signal. So I decided to make more research over the net.&lt;/p&gt;  &lt;p&gt;Fortunately I have found topic on avrfreaks.net forum where somebody discussed interaction with different LMxx sensor, and I noticed strange addressing in code. Address of device were 0x90 that corresponds to b10010000. I have maid guess that address should be not left-padded as I used it with Arduino, but right-padded. I put b10011110 (0x9E hex comparing to 0x4F I've used before) as address and now everything is working just fine!&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2684774826100469039-2431848254411629853?l=make-a-project.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-a-project.blogspot.com/feeds/2431848254411629853/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://make-a-project.blogspot.com/2010/03/finally.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2684774826100469039/posts/default/2431848254411629853'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2684774826100469039/posts/default/2431848254411629853'/><link rel='alternate' type='text/html' href='http://make-a-project.blogspot.com/2010/03/finally.html' title='Finally!'/><author><name>drug123</name><uri>http://www.blogger.com/profile/07304843548431727685</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2684774826100469039.post-3648553921545554212</id><published>2010-03-07T22:14:00.001+02:00</published><updated>2010-09-03T12:40:59.748+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='electronics'/><category scheme='http://www.blogger.com/atom/ns#' term='ATTiny13'/><category scheme='http://www.blogger.com/atom/ns#' term='DIY'/><category scheme='http://www.blogger.com/atom/ns#' term='LM75A'/><category scheme='http://www.blogger.com/atom/ns#' term='PCB'/><category scheme='http://www.blogger.com/atom/ns#' term='sensor'/><category scheme='http://www.blogger.com/atom/ns#' term='AVR'/><title type='text'>LM75A setup</title><content type='html'>&lt;p&gt;I made serious mistake during design of pumping station thinking LM75A has non-volatile memory for configuration parameters. Actually this IC haven’t such ability as store configuration between power-ups.&lt;/p&gt;  &lt;p&gt;Fortunately I have connection to TWI pins on both sensor board and wiring, so decided to create some “hardware config file” basing on ATTiny13. I have created &lt;a href="http://drug123.org.ua/projects/pumping_station/lm72a_os.pde"&gt;Arduino sketch&lt;/a&gt; to test approach and it is working just fine, but tiny13 has no hardware TWI implementation comparing to ATMega168. After some research over the net I found nice implementation of AVR-300 (Software TWI) by Peter Fleury: &lt;a href="http://homepage.hispeed.ch/peterfleury/avr-software.html#libs"&gt;http://homepage.hispeed.ch/peterfleury/avr-software.html#libs&lt;/a&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Here are 2 PCBs, one is test board for LM75 sensor, second is ATTiny13 for software implementation of TWI:&lt;/p&gt; &lt;a title="Homebrew PCBs for LM75A digital thermometer and ATTiny13 based board to configure sensor by drug123, on Flickr" href="http://www.flickr.com/photos/drug123/4414047567/"&gt;&lt;img style="display: block; float: none; margin-left: auto; margin-right: auto" alt="Homebrew PCBs for LM75A digital thermometer and ATTiny13 based board to configure sensor" src="http://farm3.static.flickr.com/2786/4414047567_450ab1a35c_m.jpg" width="240" height="216" /&gt;&lt;/a&gt;  &lt;p&gt;My configuration board is still not working despite simplicity of the library. I haven’t found why, but my guess is that internal RC oscillator is not suitable for this. Will try to run with external crystal today.&lt;/p&gt;&lt;p&gt;Update: &lt;a href="http://make-a-project.blogspot.com/2010/03/finally.html"&gt;I had made it working!&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2684774826100469039-3648553921545554212?l=make-a-project.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-a-project.blogspot.com/feeds/3648553921545554212/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://make-a-project.blogspot.com/2010/03/lm75a-setup.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2684774826100469039/posts/default/3648553921545554212'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2684774826100469039/posts/default/3648553921545554212'/><link rel='alternate' type='text/html' href='http://make-a-project.blogspot.com/2010/03/lm75a-setup.html' title='LM75A setup'/><author><name>drug123</name><uri>http://www.blogger.com/profile/07304843548431727685</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://farm3.static.flickr.com/2786/4414047567_450ab1a35c_t.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2684774826100469039.post-6037092677914468214</id><published>2010-03-05T20:11:00.001+02:00</published><updated>2010-03-09T12:35:46.845+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='electronics'/><category scheme='http://www.blogger.com/atom/ns#' term='ATTiny13'/><category scheme='http://www.blogger.com/atom/ns#' term='DIY'/><category scheme='http://www.blogger.com/atom/ns#' term='LM75A'/><category scheme='http://www.blogger.com/atom/ns#' term='sensor'/><category scheme='http://www.blogger.com/atom/ns#' term='AVR'/><title type='text'>Pumping station project</title><content type='html'>&lt;p&gt;3 weeks ago I started new project as a gift for my father who live in the countryside. There he has well with electrical pump and elevated water tank for housekeeping needs.&lt;/p&gt;  &lt;p&gt;He is a good hand (despite a bit old-schooled), and pumping is more or less automated using few scrap yard relays. But we had as low as –27 °C this winter so pipes were frozen few times. My idea was to create device that will keep both water level and temperature at desired level and be more safe, more reliable comparing to existing device he uses.&lt;/p&gt;  &lt;p&gt;Due to workload in the office I was unable to create my “pumping station controller” fast and now I’m definitely late with heater (+5 °C behind the window). But for now the device is almost complete and I can write about its features:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;LM75A I&lt;sup&gt;2&lt;/sup&gt;C Digital temperature sensor and thermal watchdog &lt;/li&gt;    &lt;li&gt;2x A3212 Ultrasensitive Hall-Effect Switches for water level sensing using foam float with magnets &lt;/li&gt;    &lt;li&gt;2x Atmel ATTiny13 MCU: one to watch sensors and control pump and heater, second for setting up LM75 during start-up &lt;/li&gt;    &lt;li&gt;2x powerful Omron relays (230V/20A) to control load &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;I have a hope I’ll have a time to describe device in detail in next posts. For now you can take a look at visualized PCBs for the device I had designed before:&lt;/p&gt;  &lt;p&gt;&lt;a title="Pump/heat station controller and sensor boards by drug123, on Flickr" href="http://www.flickr.com/photos/drug123/4366835563/"&gt;&lt;img style="display: block; float: none; margin-left: auto; margin-right: auto" alt="Pump/heat station controller and sensor boards" src="http://farm3.static.flickr.com/2802/4366835563_e1595b9280_m.jpg" width="240" height="139" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2684774826100469039-6037092677914468214?l=make-a-project.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://make-a-project.blogspot.com/feeds/6037092677914468214/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://make-a-project.blogspot.com/2010/03/pumping-station-project.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2684774826100469039/posts/default/6037092677914468214'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2684774826100469039/posts/default/6037092677914468214'/><link rel='alternate' type='text/html' href='http://make-a-project.blogspot.com/2010/03/pumping-station-project.html' title='Pumping station project'/><author><name>drug123</name><uri>http://www.blogger.com/profile/07304843548431727685</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://farm3.static.flickr.com/2802/4366835563_e1595b9280_t.jpg' height='72' width='72'/><thr:total>0</thr:total></entry></feed>
