Tagged: switch

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")
month=$(date "+%m")
year=$(date "+%Y")
mv image.jpg $now.jpg
curl -T $now.jpg ftp.bla.bla/archive/$year/$month/ --user bla:bla --ftp-create-dirs
rm $now.jpg

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

[Update 05/2017]

Now the script move the picture on the /years/month directory and automatically create the new directory each month.

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

Advertisements

Switching Win 7 Boot Disk to another disk

1) Verify that the disk you want to use for boot is bootable (active flag)

2) use bcdboot to install the BCD (Boot Configuration Data) on your disk

 

Reference

http://www.hanselman.com/blog/SwitchingMyWindows7BootDiskFromDToCWithBCDBootRatherThanBCDEdit.aspx