Skip to content

natxopedreira/lumiereCam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mechanics

Preparing the hardware

Need to buy

Crank, Gears and disk

In order to have a correctly look and feel we can simulate the real behavior by taking using a disk. This could be simulated using the crank app inside this repository disk

Preparing the Raspberry

sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git-core binutils git libnss-mdns
sudo wget http://goo.gl/1BOfJ -O /usr/bin/rpi-update && sudo chmod +x /usr/bin/rpi-update
sudo rpi-update
sudo reboot
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
cd ~
git clone https://github.com/openFrameworks-RaspberryPi/openFrameworks/
cd openFrameworks/scripts/linux/debian_armv6l
sudo ./install_codecs.sh
sudo ./install_dependencies.sh
cd ~/openFrameworks/libs/openFrameworksCompiled/project
make

cd ~/openFrameworks/scripts/linux/template/linuxarmv6l
cp Makefile ~/
cd ~/openFrameworks/apps/devApps/raspberrypi_hello_world
cp ~/Makefile ./
make clean
make

Well, I put the wiringPi libraries pre-compiled together with the headers and .c files. So in theory we don't need an installation of the libraries.

But it seam that we need to white list them by:

  1. sudo nano /etc/modprobe.d/raspi-blacklist.conf
  2. comment with # (or remove) those lines
  3. reboot the pi

Using wiringPi libraries require the app to be run as super-user.

Preparing the electronics

For this project we need to switches that will trigger << and >> directions of the crank on Digital Pin #17 and #22 of the GPIOs and a AnalogIn for the photocell that will detect if the lantern is ON or OFF.
RaspberryPi don't have analog-in like Arduino. That's why we are going to use MCP3008 to transform the resistance of the photocell into pulse frequency.

Everything is almost like this tutorial except that we are not using #23, #24 and #25 instead we are using SPI just like Jason Van Cleave and Andreas Muller did in this example. Off course instead of using a potentiometer we are going to use a photocell.

photo

Back and Forth switches are more simple and you can do:

backforth

Put everything together

bla bla bla

Compile and run

make 
sudo bin/.lumiereCam 

About

Interactive Lumiere Camera for Museum using a raspberryPi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published