![]() ![]() (Without the sudo, I get permission errors which I haven’t yet figured out how to resolve).īrowse to the IP address of your Raspberry Pi on the port you configured earlier (or 8080 if you didn’t change it) in a Web browser.Start up ‘motion’ in interactive mode (this is a text-mode app which you can run from the terminal, you don’t need to be in the ‘startx’ GUI: sudo motion -n These are not necessary for webcam use so you may want to cover them with black electrical tape or similar. ![]() The two LEDs (one red, one blue) should illuminate. Now plug the EyeToy into a USB port on your Pi. ![]() Just have a browse through the config file which is fairly well-commented and self-explanatory. There are loads of other things you can do such as enable a basic remote control interface, tweak the JPEG quality, set up regular snapshots (by default, snapshots are taken only when motion is detected), customise the text which is overlaid onto the image and change the location to which images are saved (by default these go into /tmp/motion which is deleted whenever the Pi is rebooted). (Press Ctrl+X, Y then Enter to save changes and quit the nano editor) If you want to take regular snapshots whether motion is detected or not, you can change the following line (the value is in seconds): snapshot_interval 60 If you want to change the port on which the stream is served (default 8080) – replace 1234 with the desired port number: webcam_port 1234īy default, the camera will only start capturing images (and video) if it detects motion. If you want the stream to be viewable from other computers on the network (rather than just the Pi itself): webcam_localhost off To increase the resolution to the maximum supported by the EyeToy, change the following lines: width 640 height 480 To enable daemon mode (so you can run the software in the background without it tying up your terminal): daemon on Edit the config file: sudo nano /etc/motion/nf.This should automatically install the required ‘ffmpeg’ package – if not you can just do sudo apt-get install ffmpeg.Install the ‘motion’package: sudo apt-get install motion.The Raspberry Pi supports a number of cameras, not just the EyeToy, so if you have a spare one lying around, give it a go. The steps below are based on this forum thread, with some changes to reflect my own experience. Having heard about the new camera driver built into the kernel of the new Raspbian OS image, I decided to have a play, using my PS3 EyeToy camera. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |