$ wget http://downloads.sourceforge.net/project/webiopi/WebIOPi-0.7.0.tar.gz $ tar xf WebIOPi-0.7.0.tar.gz $ cd WebIOPi-0.7.0 $ sudo ./setup.sh $ sudo service webiopi start
http://192.168.0.4:8000
DC Motor를 가진 주행형 로봇을 제어 하기 위한 소스들 이다.
키보드를 비롯하여 여러가지 제어 방법이 있지만, 원하는 것을 선택하여 사용면 되겠다.
$ git clone https://github.com/rasplay/DCMotorKeyControl.git $ cd DCMotorKeyControl $ gcc -o rc rc_key_2.c -lwiringPi $ sudo ./rc
$ sudo apt-get install joystick $ git clone https://github.com/rasplay/DCMotorJoystickControl.git $ cd DCMotorJoystickControl $ sudo python rc_joy_2.py
$ cd /usr/share/webiopi/htdocs/app $ sudo git clone https://github.com/rasplay/clickpirc.git $ sudo nano /etc/webiopi/config
: myscript = /usr/share/webiopi/htdocs/app/clickpirc/rc_script_2.py :
$ sudo /etc/init.d/webiopi restart
http://[raspberrypi-IP]:[WebIOPi-Port]/app/clickpirc
$ cd /usr/share/webiopi/htdocs/app $ sudo git clone https://github.com/rasplay/touchpirc.git
http://[raspberrypi-IP]:[WebIOPi-Port]/app/touchpirc/
$ wget http://pi4j.googlecode.com/files/pi4j-0.0.5.deb $ sudo dpkg -i pi4j-0.0.5.deb
$ git clone https://github.com/rasplay/raspberrypi_projects.git $ cd raspberrypi_projects $ cd smartphoneControl1
$ javac -classpath .:classes:/opt/pi4j/lib/'*' Racar.java
$ sudo java -classpath .:classes:/opt/pi4j/lib/'*' Racar
$ git clone https://github.com/rasplay/esrc.git $ cd esrc/tempMailAlarm $ sudo sh ./setup.sh
$ nano tempMailAlarm.py
frommail = 'gmail_id@gmail.com' # Switch user gmail_id tomail = 'to_id@domain.com' # Switch to_mail userid = 'gmail_id' # Switch user gmail_id smtp = 'smtp.gmail.com' # Do not change, if use gmail password = 'gmail_password' # Switch user gmail_password TEMP_LIMIT = 30 # if temp over TEMP_LIMIT, send mail to tomail
frommail = 'fendergold@gmail.com' # Switch user gmail_id tomail = 'muster22@naver.com' # Switch to_mail userid = 'fendergold' # Switch user gmail_id smtp = 'smtp.gmail.com' # Do not change, if use gmail password = '123456' # Switch user gmail_password TEMP_LIMIT = 28 # if temp over TEMP_LIMIT, send mail to tomail
$ sudo python tempMailAlarm.py
$ nano ultra_moving.py
# Change Values WALL_LIMIT = 5 # Move Back during 0 to WALL_LIMIT count TURN_LIMIT = 3 # Turn during 0 to TURN_LIMIT count STOP_DISTANCE = 30 # If measure distance less then STOP_DISTANCE, Stop Motor
$ sudo python ultra_moving.py