Sunday, October 30, 2011

DIY outdoor all-weather 3G/Wi-Fi router

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.

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:

It's how broadband looks far away from the city

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:

  • 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.
  • 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.
  • While drilling in the attic was OK, inside cabling will be a pain. Wireless access from desktop is a real saving and relief.

Few weeks after installation I visited father again and found that:

  1. Iron roof coating does not allow to connect my laptop to Wi-Fi access point from most of the courtyard;
  2. 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;
  3. Connection rather unstable and disappears from time to time; though demonstrates not so bad performance, up to 0.5/0.2 Mbit DL/UL.

Inspired by performance measurements I decided to make more reliable solution with better antenna and install it outside of the house to avoid overheating.

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 IP55 rated box). Thus I decided to go with own case design and manufacturing.

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.

Polystyrene sheets bent into weather protective case

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.

Protective case drawing

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.

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.

Protective case preview

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.

Assembly mounting

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.

Additional insulation

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.


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.


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

"HVAC" system mounted

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.

"HVAC" controller

To control cooling (fan) and heating (resistors) I prepared very simple circuit consisting of comparator, few resistors, 10K NTC thermistor and dual N-Channel MOSFET transistor. Comparator forms inverting and non-inverting Schmitt triggers. I calculated resistors values for this circuit using online calculators on Random Science Tools and Calculators 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.

Controller powered directly from 12V/1A wall PSU.

Schematics of “HVAC” controller:

"HVAC" controller schematics


  • IRF7103 SO-8 dual MOSFET 50V, 3.0A
  • LM393 SOIC-8 dual comparator
  • 0.1uF C0805 ceramic capacitor
  • 1uF C0805 ceramic capacitor
  • 3x Molex 2-pin polar connectors 0.1" step
  • 10K NTC thermistor R0805
  • 33K R0805 resistor
  • 39K R0805 resistor
  • 330 R0805 resistor
  • 2x 10K  R0805 resistor
  • 56K R0805 resistor
  • 22K R0805 resistor
  • 330K R0805 resistor

Bottom ventilation/drain

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.

Novatel U720 modem

To access Internet I bought Novatel Wireless Ovation™ U720 EV-DO Rev A USB modem and data plan from local provider who is working in 800 MHz band using CDMA EV-DO Rev.A technology.

Novatel U720 modem mod

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.

Slim Jim antenna etching

As reception of CDMA network signal in the area where box will work is very poor, I decided to create external antenna.

I had used Slim Jim antenna calculator to calculate dimensions required for CDMA 800MHz band. CDMA 800 terminal node uses following frequencies according to modem user manual:

  • Transmit 824.7-848.31 MHz
  • Receive 869.7-893.31 MHz

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.

I hadn't 30cm long etching tank so I used paper box and polyethylene film to make temporary etching container. I used direct toner transfer method for PCB artwork preparation and ferric chloride as etchant.

Antenna in enclosure

To protect antenna and ease its mounting I put antenna board inside 30cm long 1/2" 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.

All router components together

Here you can see all router components together. Here goes list of all components and approximate prices in USD:

  1. 2x 45cm*70cm polystyrene sheets - $15
  2. Self-adhesive insulation ribbon for doors/windows - $3
  3. 80mm computer fan - $3 (Mine is scavenged from broken PSU, no cost for me)
  4. 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)
  5. Heater (2x 10W ceramic resistors) - $1.5
  6. PVC pipe, caps, pipe clips, SMA connector and FR4 for antenna - roughly $10
  7. RG-316 coaxial cable (~10'/3m) and connectors - $10
  8. Cable input and pair of screw clamps - $2
  9. 2x pigtails (U.FL/SMA, RP-SMA male/female) - $8
  10. Tripple power socket - $3
  11. 12V/1A wall PSU - $5 (I have few of them for free from old equipment)
  12. Novatel U720 USB CDMA Rev.A modem - $40
  13. TP-Link TL-MR3220 3G/802.11b/g/n wireless router - $40
  14. Collinear Wi-Fi antenna for 2.4 GHz band - $12
  15. Melted and cyanacrylate glue, double-sded adhesive tape, nylon cable ties etc. - $5

TOTAL: around $160

In total I had spent about 16 hours in total for design, production and assembly of final product.

There are notes on the flikr to help identify components.

Below you may find photos of assembled box:

Assembled box, bottom

Assembled box, front

Wi-Fi box mounted

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 using CDMA EV-DO Rev.A connection. In the area where box is working, connection using solely internal modem's antenna is not possible.


  1. awesome! what is your background to know all this? :)

  2. Great work and a great write up! If I didn't already have High Speed Internet, here where I live... I would be building one of these!:)


  3. @Sardaukar You won't believe: I'm humble Internet reader with a little of software engineering background ;)
    Really, there is so much useful information agound the net you just need start digging.

  4. @Don's Deals Blog Thanks a lot! :)

  5. Had I done this project I would have used a small ARM Linux board with few USB ports as the core. From the core I would run 2 USB cables to "high power" WiFi and 3G dongles with big omnidirectional antennas. You can get those cheap off ebay these days. This way the box could be considerably smaller, perhaps one of those small electrical boxes that come with insulation rubber seal. The 12V wallwart might then alone be enough to keep the box warm.

  6. Спасибо, возьму ваши идеи на вооружение у себя на даче.

  7. Is this legal? Who's 3G signal are you using?

  8. I can't figure out how he is connecting to the net with this "3G" Is he using a wireless modem supplied by a cell phone provider (att or verizon) with whom he has a data plan with or how or What are they connecting to the net via ?? I'm confused on the method of access ??

  9. @davesathome Are you kidding?
    I'm paying $20 every month to phone provider for access to the network, as you do for your phone. How do you think it is possible to use cellular service illegally?

  10. @dtnel78 Yes, you're right, I have data plan with phone provider. You may find that and what kind of modem I'm using to access the net in the blog post you are commenting.

  11. I believe its Sprint is the last all you can eat plan

  12. I believe there would be many people facing the same problem in and around that area in particular and many places across the world in general. I have background in electronics as well as computer science and hence could understand it. However, I am sure most (I think almost all) do not know/understand/want to understand how to do all of this, though would be glad to pay about 200-250 bucks or even more to buy this device.

    I think this is a great innovation (getting value add from correctly inter-connecting multiple components) and a great idea to bring to market for these people and also a source of additional/part time income for you.

    Best of luck for your newest company!

  13. I'm reading this in Africa, a third of the way up Kilimanjaro in Tanzania, and I run a small internet cafe here, at just under 2000m. My 3G box has an external aerial, and provides so much more bandwidth than a simple dongle, but I am going to make one of these to house my kit in and place the aerial on the top floor if not outside the building and hopefully boost the signal even more. I have a Huawei B220, which is essentially a E220 3G dongle and WIFI router all in one, highly reccomended as a cheaper alternative to router + seperate dongle - they also have 4 ethernet LAN ports, for extending this network to other devices for DHCP or firewall or whatever.

    A finished product could be a winning product to sell to people here in Tanzania who are frankly fed up of poor reception offered by the standard ZTE and Huawei dongles on sale.

    1. as you know, are outdoor solutions available?
      (for home use.. let's say under 300$)


    2. We are the dealers of rf antenna,rf connector,rf cables and other embedded products.
      RF Antenna

  14. Can you guide me how to make the colinear antenna for this purpose.

  15. Awesome work!!! I hav understand lil bit.... My doubt is you are using 3g as data plan then why u are using USB modem to access the internet????

  16. oye anzzz.... wat did uuu understand...... common explain....

  17. You are very creative, next time I will try. maybe if there is time I would make a hotspot outside. with ZTE MF23E and access point. and outdoor box.

  18. thanks for the project.
    i´m building one outdoor box to a wi-fi usb with a 14db outdoor antenna...
    i´m studing the Schematics of “HVAC” controller and i found that the
    LM293 -25 to +85C is best for the outdoor use instead of the LM393 0 to +70C
    also i can´t find the IRF7103 can i use two IRF630N instead.

    1. It doesn't matter working temp. ranges, purpose of the device is to make temperature within the range :)

      And it will be enough single IRF630N.

  19. Hey there, really great work!

    I came across with the very same problem as outdoor 3g modems + wifi router are insanely expensive!

    I'm about to build a very similar on my own, but I was thinking to add some sort of (low cost) mechanism to close the air vents holes when the temperaure drops below the threshold and opens them when above (to protect from cold wind).

    Any ideas? so far I only came up with the idea of fitting a backdraught shutter but it's too big for the box dimensions..


    1. Hi,

      Moveable mechanical parts tends to fail more often than electronics, and requires much more care and maintenance. This is why I decided to go with electric heating. Power supply, router and modem generates enough heat by themselves, and adding two resistors in there in my opinion is quite enough. So my advise is to not overcomplicate things, my solution is working just fine over two winter seasons with temperatures below -30°C, you may stay with it.

    2. actually I thought as much too.. but I just liked the idea of having a mechanical closure: maybe I'll just add some inner foam padding.

      I think I'll fitting an LTE modem (DWR 921), it might be even faster than ADSL!

      see ya!

  20. thanks for your knowledge sharing, but sir can this project be more easier and more clearer schematic? Thanks.

  21. I'm glad to have visited your blog and good to know you! I find it interesting and informative.
    3G signal booster

  22. thanks for your knowledge sharing, but sir can this project be more easier and more clearer schematic? Thanks.For More visit on FEYESHOPPY.
    3G WiFi Router

  23. The internet is the basic necessity to get updated and do survive with the moving world. One of the best options to access internet in the easy steps and the minimum price is the advanced wireless WiFi Router. FEYE Wireless router allows access to the internet in an easy steps and allows you to access even on the travelling, in home or in the office.
    SIM Card Router

  24. A FEYE Bluetooth remote shutter is a small device, a remote that is used to click your images via connecting with the mobile phone. The device is compatible with almost every digital device such as mobile phones, tablets, iPhone, iPad and all that has the Bluetooth connectivity option.
    Bluetooth Remote Shutter

  25. FEYE Selfie monopod stick is used to take pictures on your own also called as selfies.Monopod stick means taking any picture through any digital cameras or smartphone on a sticks. Monopod stick work by holding any camera or smartphone, with the screen facing the photographer, and using front camera.
    Selfie Monopod Stick

  26. Great write up.

    Can you also elaborate more on the PCB/ circuit design?

  27. Wow, this is probably one of the coolest tutorials I’ve seen. Need to get into this ASAP!

    mobile signal booster manufacturer in delhi

  28. Keep on great working!! I didn’t expect that I will get such great thing from here. leak detection services

  29. Very nice blog...
    Great information provided. We also provide PCB Circuit Design Training in Noida. I appreciate your work.

  30. I enjoyed reading your article :) PLease continue publishing helpful topics like this. Regards, from Let's get gadget, a company whose into selling
    magnet mount cb antenna

  31. Online mba in India
    DEIEDU is the best online Institute in the world with high class course outline and up to date learning materials. DEIEDU is providing the online mba in india, online mba in india, Distance learning mba courses in india, Correspondence mba in India Mba from distance in India, Online Executive Mba in India, distance Mba from India, Online distance mba in India. Distance learning mba degree in India.
    401, fourth floor sg alpha tower
    Vashundhra (up)
    Phone: 9811210788
    online mba in india

  32. It’s a great post. Keep sharing this kind of worthy information. Good luck.

    Salesforce Course in Chennai | Salesforce Training Chennai