I've been wondering about lifeloggers for a while. I'm not convinced they're useful outside specific events, but as my niece was getting baptised the following month, I thought I'd create one and wear it.
Je me posais des questions sur les lifeloggers depuis un moment. Je ne suis pas convaincu de leur utilitĂ© en dehors d'Ă©vĂ©nements spĂ©cifiques, mais le baptĂȘme de ma niĂšce approchait â j'allais en crĂ©er un et le porter.
I finally got my hands on a Pi Zero â ideal for a lifelogger given its size. To keep costs down, I dug out an ancient webcam (circa 1999) from a drawer. Linux now has drivers for it included in the default kernel. Everything was glued shut, so the Dremel was called in.
J'ai finalement mis la main sur un Pi Zero â idĂ©al pour un lifelogger vu sa taille. Pour limiter les coĂ»ts, j'ai dĂ©terrĂ© une vieille webcam (vers 1999) d'un tiroir. Linux a maintenant les pilotes inclus dans le noyau par dĂ©faut. Tout Ă©tait collĂ©, la Dremel a Ă©tĂ© convoquĂ©e.

What I was after was this tiny sensor, from which the IR LEDs had been cut:
Ce que je cherchais, c'était ce minuscule capteur, dont j'ai coupé les LED infrarouges :

Test: fswebcam -r 640x480 --no-banner webcam.jpg â it worked. Resolution isn't great for a 1999 sensor, but images are captured.
Test : fswebcam -r 640x480 --no-banner webcam.jpg â ça marche. La rĂ©solution n'est pas terrible pour un capteur de 1999, mais les images sont capturĂ©es.
For housing, the make-up department of the local supermarket provided the answer: an eye-shadow box from Maybelline. I made a square hole on one side and added a safety pin.
Pour le boßtier, le rayon maquillage du supermarché local a fourni la solution : une boßte de fard à paupiÚres Maybelline. J'ai fait un trou carré sur un cÎté et ajouté une épingle de nourrice.


Power source stays external â no small battery gives more than 1-2 hours. I used an external 3,600mAh charging battery. Camera box pinned to clothes, USB cable under the clothes to the Pi and battery in my pocket.
L'alimentation reste externe â aucune petite batterie ne tient plus d'1 Ă 2 heures. J'ai utilisĂ© une batterie externe de 3 600 mAh. La boĂźte camĂ©ra Ă©pinglĂ©e sur les vĂȘtements, cĂąble USB sous les vĂȘtements vers le Pi et la batterie dans ma poche.

Script that autostarts on boot and takes a photo every 30 seconds:
Script qui démarre automatiquement au boot et prend une photo toutes les 30 secondes :
#!/bin/bash
INTERVAL=30
DEST=/home/cedric/webcam
PREFIX=img
COUNT=$(cat count.dat)
mkdir -p $DEST
while :
do
OUTFILE=$(printf "$DEST/$PREFIX%05d-$COUNT.jpg")
fswebcam -r 640x480 --no-banner $OUTFILE
COUNT=$(($COUNT + 1))
echo $COUNT > count.dat
sleep $INTERVAL
doneTest photos from a walk:
Photos tests lors d'une promenade :








The photos aren't that interesting, but it worked. The point of these things is that you forget about them and you never know what will be taken. I now have a Pi Camera v2.1 (8MP), so back to the drawing board for prototype #2.
Les photos ne sont pas trÚs intéressantes, mais ça a marché. Le principe de ces trucs, c'est qu'on les oublie et on ne sait jamais ce qui sera capturé. J'ai maintenant une caméra Pi v2.1 (8 Mpx), donc retour à la case départ pour le prototype #2.