Posts

Showing posts from 2013

installing VSFTPD (FTP) on the Raspberry Pi

sudo apt-get install vsftpd Press Enter Press Y when prompted Type nano /etc/vsftpd.conf Press Enter. Edit or uncomment the following lines to secure VSFTPD Anonymous_enable=NO Local_enable=YES Write_enable=YES Ascii_upload_enable=YES Ascii_download_enable=YES Press CTRL + O To save Press CTRL + X To exit Type: /etc/init.d/vsftpd restart You are done

ติดตั้งและใช้งาน Airplay [AirPi – AirPlay audio with Raspberry PI]

Upgrade Debian At this step, it’s a good idea to upgrade pre-installed packages : # aptitude update # aptitude upgrade Change audio output To force audio output to stereo jack, a single line is required : # amixer cset numid=3 1 0 -> HDMI 1-> Stereo Jack Install shairport Before download and compile shairport, we need to install prerequisites : # aptitude install git libao-dev libssl-dev libcrypt-openssl-rsa-perl libio-socket-inet6-perl libwww-perl avahi-utils Then download shairport sources and compile it : # git clone https://github.com/albertz/shairport.git shairport # cd shairport # make Finally, launch shairport foreground : # ./shairport.pl -a AirPi You can now use your iDevice to try AirPlay audio, don’t forget to plug an headphone or speakers into the 3.5mm stereo jack. If you want or need your Pi load automatically shairport, follow next procedure : root@raspberrypi:~/shairport# make install root@raspberrypi:~/shairport# cp shairport.init.sam...

Install OMXPlayer ให้กับ RPi เพื่อเล่นหนัง

Credit [ http://omxplayer.sconde.net/ ] Instructions First you need install required dependencies: # aptitude install libpcre3 fonts-freefont-ttf - or - # apt-get install libpcre3 fonts-freefont-ttf Optionally you can install fbset, I highly recommend it if you are going to use  --refresh / -r  option: # aptitude install fbset - or - # apt-get install fbset When you have installed the dependencies you can go ahead downloading the omxplayer and install it with dpkg: # wget http://omxplayer.sconde.net/builds/omxplayer_ x.x.x ~git xxxxxxxx ~ xxxxxxxx _armhf.deb # dpkg -i omxplayer_ x.x.x ~git xxxxxxxx ~ xxxxxxxx _armhf.deb Key bindings Key Action 1 Increase Speed 2 Decrease Speed j Previous Audio stream k Next Audio stream i Previous Chapter o Next Chapter n Previous Subtitle stream m Next Subtitle stream s Toggle subtitles q Exit OMXPlayer Space or p Pause/Resume - Decrease Volume + Increase Volume Left Seek -30 Right Seek +30 Down Seek -6...

ติดตั้ง Driver Wireless lan TP-Link TL-WN723N ให้กับ RPi

Image
Driver Wireless lan TP-Link TL-WN723N Credit : [ http://www.raspberrypi.org/phpBB3/viewtopic.php?p=462982#p462982 ] rtl8188eu drivers for 3.10.25+ (includes driver 8188eu.ko, firmware file rtl8188eufw.bin and README) CODE: SELECT ALL 3.10.25+ #616 - 8188eu-20131223.tar.gz Link to driver files - use date code from list above to download rquired driver CODE: SELECT ALL https://dl.dropboxusercontent.com/u/80256631/8188eu-2013xxyy.tar.gz NOTE: If updating firmware revisions, say from 3.10.23+ to 3.10.24+, and they use the same driver, in this case 8188eu-20131209.tar.gz, you will still need to reinstall the driver on the newer version of Linux, even though the driver has not changed as it will be loaded from a different director by the new Linux revision and you need to install it in the new directory. Download and install the driver, and firmware if required, with the following commands CODE: SELECT ALL # wget https://dl.dropboxusercontent.com/u/80256631/8188eu-2013...

RPi and I2C LCD PCF8574 (addr = 0x38)

Image
วิธีที่ให้ RPi เปิดใช้งาน I2C Link: [ Credit [http://www.instructables.com/id/Raspberry-Pi-I2C-Python/?ALLSTEPS] ] ส่วนลักษณะการต่อแบบนี้สามารถใช้งานได้กับ arduino ได้เลยนะครับ LCD Link: http://www.rpiblog.com/2012/07/interfacing-16x2-lcd-with-raspberry-pi.html  แสดงค่าตัวแปร lcd.lcd_puts("IP " + str(get_ip_address('eth0')),1)   lcd.lcd_puts("IP %s" % get_ip_address('wlan0'),2)

Step by Step แก้ปัญหา Sony Xperia Z,V แอพที่มีตัวอักษรภาษาไทยแล้วเด้ง

ปัญหาคือผมได้ Xperia V มาใช้งานแต่เข้าแอพ Gmail, Facebook, Line หรือ Browser จะมีปัญหาแอพเด้งตลอดทำให้หงุดหงิดเวลาจะใช้งานเครื่องเป็นอย่างมาก ดูจากลิงค์  Xperia Z  :  Gmail App  issue - YouTube หลังจากนั้นได้ลองค้นและเจอคนที่เขาแก้ปัญหาได้แล้วจาก Link นี้ PdaMobiz แก้ปัญหาแอพเด้ง Xperia Z คิดว่าจะต้องใช้กับ Xperia V ได้เหมือนกันก็ลองทำตามเลยนะครับ เริ่มจาก 1) Unlock Bootloader ของเครื่องโดยกด *#06# เพื่อตรวจสอบ IMEI ของเครื่อง  หรือดูจากข้างกล่องได้นะครับ  เครื่องจะให้มาเกินไป 1 ตัว ตัดตัวสุดท้ายทิ้งไปได้ครับ 2) ลงทะเบียนของ Code Unlock ที่เวบไซท์ Sony  ( ทำตามลิงค์นี้ได้ ) อย่าลืมไปดาวน์โหลด ADB และ Fastboot และ Driver ของเครื่องมาลงที่คอมไว้ก่อนด้วยนะครับ ถ้าไม่อย่างนั้นคอมจะติดต่อกับโทรศัพท์ไม่ได้ 3) หลังจากนั้นก็ติดต่อกับเครื่องเพื่อเข้า Fastboot Mode โดยกดปุ่ม Volume Up ค้างแล้วเสียบสาย Micro USB เข้าที่โทรศัพท์ และพิมพ์ Code เพื่อ Unlock ฺBootloader fastboot.exe -i 0x0fce oem unlock 0xCODE 4) Root เครื่อง เราจะใช้เครื่องมือคือ...

New Project dsPIC adaptor for universal board

Image
วันนี้เริ่มลงมือทำบอร์ดต่อ dsPIC ลักษณะของบอร์ดเป็นดังรูปนะครับ