Differenze tra le versioni di "Tutorials/arduino-yun-videorecorder-101"
Riga 82: | Riga 82: | ||
http://forum.arduino.cc/index.php?topic=188690.0 | http://forum.arduino.cc/index.php?topic=188690.0 | ||
+ | |||
http://dev.mikamai.com/post/73613525813/arduino-yun-social-photo-camera | http://dev.mikamai.com/post/73613525813/arduino-yun-social-photo-camera | ||
+ | |||
http://dev.mikamai.com/post/76945627390/you-cant-touch-this-an-evil-arduino-based-alarm | http://dev.mikamai.com/post/76945627390/you-cant-touch-this-an-evil-arduino-based-alarm | ||
+ | |||
https://github.com/amicojeko/YouCantTouchThis | https://github.com/amicojeko/YouCantTouchThis | ||
+ | |||
http://neuroballs.com/2014/01/how-to-build-a-arduino-yun-powered-cat-camera/ | http://neuroballs.com/2014/01/how-to-build-a-arduino-yun-powered-cat-camera/ | ||
+ | |||
https://learn.adafruit.com/wireless-security-camera-arduino-yun?view=all | https://learn.adafruit.com/wireless-security-camera-arduino-yun?view=all | ||
+ | |||
http://latanadelgurzo.blogspot.it/2012/11/webcam-in-streaming-con-openwrt.html | http://latanadelgurzo.blogspot.it/2012/11/webcam-in-streaming-con-openwrt.html |
Versione delle 17:18, 2 mag 2014
Arduino Yun Basics
Before starting
Assure we have:
- Installed and working Arduino Ide version 1.5.6-r2.
- Configured Arduino Yun board. See Basic Arduino Yun wireless configuration.
Let's become confident with the board
arduino.local does not always revole, safely to use the ip number (192.168.240.1, for initial configuration).
To log into the yun via ssh (from mac-osx shell): ssh root@192.168.1.13
See what is already mounted:
mount
See which distribution, kernel version, etc:
root@Arduino:~# cat /proc/version Linux version 3.8.3 (federico@smilzo) (gcc version 4.6.4 20121210 (prerelease) (Linaro GCC 4.6-2012.12) ) #8 Mon Aug 19 16:22:39 CEST 2013
Install some useful packages for video and webcam:
#--------------------------------------------------------------------- # install the video stuff on the yun opkg update opkg install kmod-video-uvc opkg install kmod-video-pwc opkg install kmod-input-core opkg install libjpeg opkg install fswebcam wget http://www.custommobileapps.com.au/downloads/mjpg-streamer.ipk opkg install mjpg-streamer.ipk opkg install ffmpeg opkg install ffserver opkg install python-openssl #---------------------------------------------------------------------
After each installed package, to see free space on the hard disk:
root@Arduino:~# df -h Filesystem Size Used Available Use% Mounted on rootfs 7.5M 4.9M 2.6M 66% / /dev/root 7.0M 7.0M 0 100% /rom tmpfs 29.9M 372.0K 29.5M 1% /tmp tmpfs 512.0K 0 512.0K 0% /dev /dev/mtdblock3 7.5M 4.9M 2.6M 66% /overlay overlayfs:/overlay 7.5M 4.9M 2.6M 66% / /dev/sda1 7.4G 848.0K 7.4G 0% /mnt/sda1
To run a python server
root@Arduino:~# python -m SimpleHTTPServer
see if python server is running (from the os/x),
$ nmap 192.168.1.13 Starting Nmap 6.40 ( http://nmap.org ) at 2014-04-30 13:03 CEST Nmap scan report for 192.168.1.13 Host is up (0.19s latency). Not shown: 995 closed ports PORT STATE SERVICE 22/tcp open ssh 53/tcp open domain 80/tcp open http 443/tcp open https 8000/tcp open http-alt Nmap done: 1 IP address (1 host up) scanned in 39.77 seconds
With standard usb uvc cam
To see the stream (from the os/x): open "http://arduino.local:8080/?action=stream" in a browser after running (on the yun via ssh):
mjpg_streamer -i "input_uvc.so -d /dev/video0 -r 640x480" -o "output_http.so -p 8080 -w /mnt/sda1"
to shoot a photo (on the yun via ssh):
fswebcam test.png
references
http://forum.arduino.cc/index.php?topic=188690.0
http://dev.mikamai.com/post/73613525813/arduino-yun-social-photo-camera
http://dev.mikamai.com/post/76945627390/you-cant-touch-this-an-evil-arduino-based-alarm
https://github.com/amicojeko/YouCantTouchThis
http://neuroballs.com/2014/01/how-to-build-a-arduino-yun-powered-cat-camera/
https://learn.adafruit.com/wireless-security-camera-arduino-yun?view=all
http://latanadelgurzo.blogspot.it/2012/11/webcam-in-streaming-con-openwrt.html