Low power foto-webcam

I’m working on a new project, a low power foto-webcam. The idea come from http://www.foto-webcam.eu website, they are installing this systems in remote area from many years. However, they use to leave the system always turned on, instead I want to turn the system ON only when the camera have to take the picture.

I’m doing this with a STM32L0 evaluation board and a Mosfet to turn the system ON/OFF.

Here is the picture of the first prototype (the camera power supply is not yet implemented)
IMG_1263

I will write further details and post my script.

[Update 08/2016]

OpenWrt Wireless in station mode

config wifi-device  radio0
	option type		mac80211
	option channel	11
	option macaddr	xx:xx:xx:xx:xx:xx
	option hwmode	11g
	option htmode	HT20
	option disabled 0

config wifi-iface
	option device   radio0
	option network  lan
	option mode     sta
	option encryption psk2
	option ssid     blabla
	option key 	blablabla

basic capture script

#!/bin/sh

echo $(date +%F_%T) "Start myCapture.sh script"
gphoto2 --auto-detect

cd /tmp

while ! ping -q -c 1 -W 1 8.8.8.8 >/dev/null; do
    echo $(date +%F_%T) "wait for connection"
done

echo $(date +%F_%T) "internet connection ready"

echo $(date +%F_%T) "take photo with gphoto"
gphoto2 --set-config capture="1" --set-config imagesize="2" --set-config imagequality="0" --set-config zoom="7" --set-config meteringmode="0"  --set-config focusingpoint="0" --force-overwrite --capture-image-and-download --filename "image.jpg"

curl -T image.jpg ftp.bla.bla --user bla:bla

echo $(date +%F_%T) "upload to archive"    

now=$(date "+%Y%m%d%H%M")
mv image.jpg $now.jpg
curl -T $now.jpg ftp.bla.bla/archive/ --user bla:bla
rm $now.jpg

echo $(date +%F_%T) "end myCapture.sh script"

Some useful link:
http://sandaysoft.com/forum/viewtopic.php?f=19&p=119097
http://blog.dcclark.net/2012/04/automating-time-lapse-photos-with.html
http://www.moreno.marzolla.name/software/linux-time-lapse/
http://www.kloppmagic.ca/tag/gphoto2/

http://wiki.ninux.org/NinuxDay2009TimeTable?action=AttachFile&do=get&target=panoramic_photography_with_gphoto_and_openwrt.pdf

[Update 20/08/2016]

Problems with communication between camera and tplink 3420, to solve the problem i removed all the picture from sdCard:

https://sourceforge.net/p/gphoto/mailman/message/11735606/

https://bugs.kde.org/show_bug.cgi?id=152382

[Update 21/08/2016]

DC supply connector size looks like to be 2.35mm X 0.70mm

ca-ps800 is the original Canon power supply

http://chdk.wikia.com/wiki/External_AC_power_supply

http://arch.ced.berkeley.edu/kap/discuss/index.php?p=/discussion/1243/a570-and-a710-external-power-supply-3-15v

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s