{"id":3,"date":"2008-05-02T11:07:29","date_gmt":"2008-05-02T10:07:29","guid":{"rendered":"http:\/\/www.gadgetdude.co.uk\/blog\/?p=3"},"modified":"2008-05-16T11:36:21","modified_gmt":"2008-05-16T10:36:21","slug":"wireless-webcam","status":"publish","type":"post","link":"https:\/\/www.gadgetdude.co.uk\/blog\/?p=3","title":{"rendered":"Wireless Webcam"},"content":{"rendered":"<div style=text-align:left;><a class=\"wpptopdfenh\" target=\"_blank\" rel=\"noindex,nofollow\" href=\"https:\/\/www.gadgetdude.co.uk\/blog\/?p=3&#038;format=pdf\" title=\"Download PDF\"><img alt=\"Download PDF\" src=\"https:\/\/www.gadgetdude.co.uk\/blog\/wp-content\/plugins\/wp-post-to-pdf-enhanced\/asset\/images\/pdf.png\"><\/a><\/div><p class=\"style6\">Setting up a Wireless webcam is not as difficult as you might think.<\/p>\n<p class=\"style6\">Basically all you need to think about is<\/p>\n<ol>\n<li>What do you need to record the image<\/li>\n<li>How do you get that image into the PC<\/li>\n<li>What do you need to do to show that image on the web<\/li>\n<\/ol>\n<p>Firstly I went on to a well know auction site ( EBAY lol ) and bought a PCI capture card.<\/p>\n<p><a href=\"http:\/\/www.gadgetdude.co.uk\/blog\/wp-content\/uploads\/2008\/05\/pci_card.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-4\" title=\"pci_card\" src=\"http:\/\/www.gadgetdude.co.uk\/blog\/wp-content\/uploads\/2008\/05\/pci_card-300x144.jpg\" alt=\"PCI Capture Card\" width=\"300\" height=\"144\" srcset=\"https:\/\/www.gadgetdude.co.uk\/blog\/wp-content\/uploads\/2008\/05\/pci_card-300x144.jpg 300w, https:\/\/www.gadgetdude.co.uk\/blog\/wp-content\/uploads\/2008\/05\/pci_card.jpg 600w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>You will find a lot of these cards come with Windows software, but a component of Linux is V4L ( video for linux ) and luckily these cards use a connexant BTTV chip with is well supported under linux.<\/p>\n<p>To enable this card all you have to do is add the following lines to your modprobe.conf file<\/p>\n<blockquote>\n<pre>alias char-major-81 videodev\r\nalias char-major-81-0 bttv\r\noptions bttv card=77 tuner=-1 radio=0 triton1=0 vsfx=0 autoload=0<\/pre>\n<\/blockquote>\n<p>This will give you 4 different inputs you can use , so you could have 4 cameras connected up and displayed on your web page.<\/p>\n<p>Next I bought the wireless camera kit.<\/p>\n<p><a href=\"http:\/\/www.gadgetdude.co.uk\/blog\/wp-content\/uploads\/2008\/05\/wireless-camera.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-5\" title=\"wireless-camera\" src=\"http:\/\/www.gadgetdude.co.uk\/blog\/wp-content\/uploads\/2008\/05\/wireless-camera.jpg\" alt=\"\" width=\"200\" height=\"190\" \/><\/a><a href=\"http:\/\/www.gadgetdude.co.uk\/blog\/wp-content\/uploads\/2008\/05\/wireless-receiver.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-6\" title=\"wireless-receiver\" src=\"http:\/\/www.gadgetdude.co.uk\/blog\/wp-content\/uploads\/2008\/05\/wireless-receiver.jpg\" alt=\"\" width=\"243\" height=\"227\" \/><\/a><\/p>\n<p>You can find really cheap kits, but to be legal in the UK you need to buy a 2.4ghz one . By fitting the camera into a small case I could easily have it anywhere in my garden. ( The only downfall with the wireless camera is that with a normal cheap PP3 battery you only get around 2 hours of life )<\/p>\n<p>A rough formula on how long your camera will stay alive for is<\/p>\n<div>\n<p>Estimated total battery life = (Ib \/ Id) x 0.7<\/p>\n<p>Where:<br \/>\nIb = Total Capacity Rating of battery (mAh)<br \/>\nId = Current Consumption of the device in milliamps (mA)<\/p>\n<\/div>\n<p><strong>Note:<\/strong> Use of this formula does <strong>not<\/strong> guarantee that you will get the determined battery life. Other factors such as weather condition (temperature, humidity, etc.), and battery condition can extend\/shorten the battery life.<\/p>\n<p>So I have looked at putting a PP9 battery on instead, also I want to be able to stop the camera from working at night. So to combat this I have been looking into fitting a small light sensor between the battery and the camera.<\/p>\n<p>The circuit for this can be found  <a href=\"http:\/\/www.uoguelph.ca\/%7Eantoon\/circ\/actrelay.htm\">Dark\/Light Activated Relay Circuit<\/a><\/p>\n<p>In order to capture the camera pictures I used an application called fswebcam.<\/p>\n<p>Then I had a shell script run every 5 minutes to capture the picture<\/p>\n<pre>\/usr\/local\/bin\/fswebcam -q \\\r\n -d \/dev\/video0 -i 0   \\\r\n --banner-colour \"#44000000\" --line-colour \"#FF000000\" \\\r\n --title \"GadgetDude\" --subtitle \"Garden Cam\" \\\r\n \/w3\/cam1.jpg<\/pre>\n<p>This basically captures the image from camera input 0, labels it and puts it in my web area.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Setting up a Wireless webcam is not as difficult as you might think. Basically all you need to think about is What do you need to record the image How do you get that image into the PC What do you need to do to show that image on the web Firstly I went on [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[9],"tags":[],"_links":{"self":[{"href":"https:\/\/www.gadgetdude.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3"}],"collection":[{"href":"https:\/\/www.gadgetdude.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gadgetdude.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gadgetdude.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gadgetdude.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3"}],"version-history":[{"count":0,"href":"https:\/\/www.gadgetdude.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.gadgetdude.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gadgetdude.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gadgetdude.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}