2015年1月9日 星期五

Use minicom to connect Raspberry PI

  1. Prepare
  2. a. A USB to TTL Serial
    b. Install minicom
    sudo apt-get install minicom
    
  3. Connect
  4. a. connect TTL to GPIO like below

    b. find the port on your PC
    ls -l /dev/ttyUSB0
    
    the output will like "crw-rw---- 1 root dialout...", means it's character device
    sudo minicom -b 115200 -o -D /dev/ttyUSB0
    
    Then you'll coneect to RPI !

2015年1月8日 星期四

Easily Stream your Camera on Ubuntu 14.04

  1. Install dependent lib
  2. sudo apt-get install imagemagick
    sudo apt-get install libjpeg8-dev
    sudo apt-get install libjpeg-dev
    sudo apt-get install libv4l-dev
    
  3. Download MJPG-Streamer and Install
  4. svn checkout svn://svn.code.sf.net/p/mjpg-streamer/code/ mjpg-streamer-code
    cd mjpg-streamer-code/mjpg-streamer
    make
    sudo make install
    
  5. Start the Server!
  6. mjpg_streamer -i "/usr/local/lib/input_uvc.so -f 15 -r 640x480" -o "/usr/local/lib/output_http.so -w /usr/local/www -p 8080"