For a long while ive been eyeing the arduino coming up with thoughts and what i want to do.
what kept me away from arduino is the one too many variants and requiring to orient into its own dev environment.
thus, i prefer basic well know linux. in comes raspberry pi.
so for a while ive been planing of getting the RPI, it took a while cause every time i wanted to order, the delivery time was in weeks.
so this time i didnt mind that and placed in an order, it arrived in two days!
so what to do and where to start from since i was still lacking some cables and adapters which i ordered in from hongkong.
well, what i did was disasembled my nussance desktop (i needed the hdmi cable and network cable).
I plugged the RPI and powered it up. during my first day, i was able to crash it a half a dozen times. all seemed to be due to the low power usb port. so i quickly ordered a suitable powered usb hub from hongkong. i cant wait for the stuff to arrive.
what am i going to do with the RPI? well some home automation and media stuff (xbmc/image gallery).
at this point i recalled that i had an unused zeemote js1. perfect! a perfect small "remote" that i can use with the RPI since i do not plan to plugin a mouse or a keyboard, just the monitor. after going thru my collection of tech junk. i found a suitable bluetooth adapter.
i plugged it and installed the bluez utils. now i was able to scan and find my zeemote to connect to. it wasnt long before i had
a bluetooth connection. i was unable to use the zeemote since i was missing the drivers, so after some googling, i found the driver and presto! compiled, installed, loaded and my zeemote was working! next thing, hack lightdm to use zeemote.
the steps for connecting to the zeemote:
sudo apt-get install libbluetooth-dev
wget
http://www.harbaum.org/till/maemo/zeemoted.tgz
tar xvzf zeemoted.tgz
cd zeemoted-1.0/
make
sudo make install
sudo modprobe uinput
zeemoted
at this point you should have your zeemote working as a bluetooth joystick on linux (thats all i've done).
then to get it working as a mouse:
sudo aptitude install joystick xserver-xorg-input-joystick
sudo nano /etc/X11/xorg.conf
add this bit, modify the jsX number
Section "InputDevice"
Identifier "Joystick"
Driver "joystick"
Option "Device" "/dev/input/js0"
Option "SendCoreEvents" "true"
EndSection
add this within server layout
Inputdevice "Joystick"
so what next? well, now i have to wait for my order to arrive in the mail. the main component that i am still missing is the IRP (motion sensor). what for? well the initial idea is to let raspberry run xbmc or the image gallery and use the motion sensor to turn on the monitor when a user walks by (energy saving). so basically, RPI would run the image gallery, and IRP would sense motion and activate the screen.
so more to share once i receive the missing components (i dont want to tear my sons teddy bear to use the IRP in it so i have to be patient...)
once this is ready, next thing is to combine a home automation adapter to place in each room. the intention is to include:
- light switch control
- IRP (motion sensor)
- humidity and room temperature measurement
- smoke detector
- audio stream
the idea is to replace a poweroutlet or a switch in the wall with an adapter thus being able to centrally control light and audio and remotely monitor motion, temperator, smoke. etc.