Bill’s Blog

Just sharing my thoughts (which are my own and not those of my employer)

How to build a Solar Powered Webcam

with 6 comments

About six months ago I got this crazy idea.  What if I put a webcam up on our hill?  There was no power up there, so I thought of the options.  I settled on the idea of building a solar powered webcam.  Having never done this before, I set out to learn about solar panels, batteries, and webcams.  I’ve tried to capture the important parts here so you can learn from what I’ve done and build your own solar powered webcam.

First, select the camera.  There are hundreds of webcams to choose from.  I was looking for an inexpensive camera that could be mounted outdoors and that was wireless.  I was not running any wires up to the hill.  I decided to skip the PTZ cameras (the ones with pan, tilt, and zoom) since I knew I’d be running on battery power.  I choose an indoor camera with a matching outdoor housing rather than the outdoor cameras.  The main factor was cost.  My Trendnet IP-TV110W was $74.46 on Amazon.  Outdoor cameras are much more expensive.  Trendnet also makes an outdoor housing with a mount designed for the camera.  The other thing to worry about with a solar powered setup is how much power the camera draws.  This one says it draws 6 watts max.

The next thing to consider was how much solar power I would need to power the camera.  I assumed six watts max meant 2.5-3 watts nominal, or 60-72 watts each day.  At 12 volts, that’s six amp hours each day.  Since solar panel installations run off of batteries, they end up being just as important as the panel.  You need a battery that will hold enough power to run the camera all day.  The panel needs to provide enough power to charge the batteries each day with the limited amount of sunlight available.  According to Solar Oregon, Portland gets about 4 hours of peak sun on average each day.  To test my assumptions about the power bring drawn from the camera, I bought a Kill a Watt meter and plugged the camera into it for a week.  The power consumption was so small that it never registered on the meter.  Armed with this info I decided on the 15 Watt Sunforce 50032 Solar Panel.  The panel shoudl generate about 60 watts of power each day to the battery.  I ended up buying a 33 Amp Hour battery from Batteries Plus locally.  While I could have used a smaller battery, I wanted the extra power available for those winter days when there isn’t much sun.

To connect the panel to the battery, you use a device called a charge controller.  One side connects to the panel.  The other side connects to the battery.  Basically, it keeps the panel from overcharging the battery.  I chose the Sunforce 7 Amp model.

Once I had chosen the camera, panel, and battery, the next step was putting it all together.  I started by mounting the panel on a pole at the top of the hill in my backyard.  I fretted quite a bit over how to mount it to the pole.  In the end I used three 12 inch 2x4s, a metal L bracket, and a 4×4 post.  The top and bottom 2x4s are bolted onto the panel through the mounting holes provided.  The middle 2×4 is attached to the metal L bracket and resting on the panel mounts.

Solar panels work best when mounted facing South at roughly 45 degrees.  To accomplish this, I bolted the L-bracket to the side of a 4×4.  The 4×4 was concreted into the ground for stability.

Once the panel was in place, I connected the charge controlled and batter.  To keep the charge controller dry, I mounted a small (6x6x4) plastic sealed box to the 4×4.  Wires go in and out of the box through a small hole drilled in the bottom.  I chose the size of the box so it was large enough to fit the chrage controller, an inverter, and the power adapter for the camera.  I could have also just built or bought something to convert the batteries 12 volts to the fix volts used by the camera.  In this case, the Charge Controller is connected to the battery.  This is how the battery is charged.  The inverter is also connected to the battery.  The inverter has a cigarette lighter style input on it, so I bought a cigarette lighter style jack at a local auto parts store.  I used heavy duty velcro to hold the charge controller and cigarette lighter adapter to the back of the case.

At this point, there is power to the inverter.  I first plugged in an LED nightlight to test it.  Instead of a webcam, I could power lights. a radio, or other small electronic devices.  A solar setup like this can be used in many situations.

Once I had power it was time to mount the camera.  When I say the camera, I actually mean the camera, the camera housing, the arrestor, and the external antenna.  That’s a lot of stuff!  The first thing I bought was the camera.  I tested it out to get it working as I wanted, then ordered the housing.  Once it got here, I realized I needed an external wifi antenna.  I choose the smallest outdoor antenna from this manufacturer.  It is still almost 2 feet tall!  The reason for an antenna is twofold.  First, the camera is in a metal box.  Its wifi reception is going to be hampered by this fact.  Second, the camera is a ways away from the wifi router, which is inside and at the other end of the house.  I tested the signal first by walking around on the hill with my ipod touch.  It worked fine and so does the camera.  The arrestor has two functions.  The first is to convert the cable from an SMA to N-type connector.  This connects the antenna to the camera.  The second and most important function is to protect the camera from a lightening strike.  Finally, I had to plug the camera into the inverter in the box mounted to the 4×4.  I had to cut the power adapter at both ends.  The DC plug doesn’t physically fit through the holes in the camera enclosure, so the manufacturer recommends cutting the wire.  I had to do the same at the other end.  This was both to lengthen the wire and to fit the wire through the hole in the bottom of the plastic box mounted to the pole.

The next result is a solar powered webcam that broadcasts live video 24×7.  The total cost for the project was $564.60.  This is less than many of the outdoor cameras I looked at.  It is also less than what it would cost to hire an electrician to run 110V to my hill.  I thoroughly enjoyed building this and am now thinking of all kinds of things I could power with my solar panel.

Written by bill

May 2nd, 2009 at 10:22 pm

Posted in Uncategorized

Tagged with , , ,

6 Responses to 'How to build a Solar Powered Webcam'

Subscribe to comments with RSS or TrackBack to 'How to build a Solar Powered Webcam'.

  1. Don’t you just love it when a plan comes together? Very cool.

    I had planned to do something very similar two years ago but got side tracked with a remodel and a baby. So I thought I’d do some more research on it this morning which is how I came across your posting. I’ll have to say, two years ago it was very hard to find anything interesting on solar powered ip cams, but now there’s quite a bit of info out there.

    So I have to ask. Now that you’ve done the research and had it up for a while, how’s it working, and is there anything you would have done differently?

    My project idea was to get a prototype working, and if I could figure out a way to keep the unit cost down to $250 or less, then I could actually do what I wanted to do. That is to build 10+ units for wildlife and security monitoring of our 360 acre ranch. At $500-$600 that would be out of the budget, and having half the cameras is much less appealing.

    There are plenty of solutions available out there, but all well over $500. I guess I’m hoping I can get a camera for $150 or less and spend about $100 on the rest. I guess the battery and solar panels are the other larger expenses. I know I can get a 12V deep cycle marine battery for around $60 but have no idea about solar panels.

    Anyway, any advice would be greatly appreciated.

    Thanks,
    Warren

    Warren

    13 Jun 09 at 5:38 am

  2. Hey Warren – the only thing I would do differently is to buy or build a 12v to 5v regulator rather than using the inverter. It chews up too much power. The best option would be to find a 12v camera. I’m actually working on this issue now and have built a regulator circuit. I’m trying it out and working out the kinks now.

    The parts are still above the price range you mention. The panel itself is $100. But if you are able to put together a solution for $250 let me know. I’d love to build another one!

    bill

    14 Jun 09 at 12:42 am

  3. Hi Bill,
    Just found your website after researching this exact project here in the UK!

    My main worry is that the camera would use too much power to remain on 24/7. Do you turn yours off to save power, or does it run continuously? I was surprised you used an inverter as I know these can use a lot on their own. Check-out http://www.reuk.co.uk/buy-9V-FROM-12V-SOURCE.htm for an alternative as this is what I intend to use.

    Let me know if you find a 12v camera, I’ve been looking for ages!!

    Best of luck!
    Chris

    Chris

    19 Jun 09 at 12:05 pm

  4. Chris – I don’t turn mine off to save power, but am considering doing so at night. I just switched my inverter for a 12v to 5v dc to dc converter. That is working fine now. I’m waiting to see if the system is self sustaining or if I’ll need to turn the camera off or do something else.

    bill

    27 Jun 09 at 9:43 am

  5. [...] How to build a Solar Powered Webcam @ Bill’s [...]

  6. I just ordered the same panel and charge controller to build the same set up. How is your system working?

    Mark Jennings

    23 Jul 09 at 8:10 pm

Leave a Reply