webduino盆栽盒子onshape教學2
講義下載
2019年4月17日 星期三
2018年10月6日 星期六
2018年8月24日 星期五
Ros韌體停在5.x版請更新韌體
採用ROS的朋友,若韌體停在5.x版
最好更新一下
有學校被攻擊 還被偷開最高帳號
自己檢查一下 system > users 有無新增其他帳號
若有刪掉其他帳號 admin要換一下密碼
2018年8月23日 星期四
虛擬機ova檔匯入proxmox
將ova檔傳到伺服器
解開ova檔
tar -xvf xxx.ova
轉檔
qemu-img convert -f vmdk ros-disk1.vmdk -O qcow2 ros.qcow2
解開ova檔
tar -xvf xxx.ova
轉檔
qemu-img convert -f vmdk ros-disk1.vmdk -O qcow2 ros.qcow2
2018年8月22日 星期三
2018年8月11日 星期六
2018年8月1日 星期三
pppoe撥接一台電腦只允許一個連入
2018年5月19日 星期六
a01--RouterOs內部架站的轉址設定
2018年5月17日 星期四
RouterOs啟用代理伺服器proxy---方便管理電腦教室
2018年5月16日 星期三
新版Rb450g與Rb850x2沒有master port
2018年5月14日 星期一
Microbit control html5 game :Flying sailfish ---3
□open html5 game
As we extract the flying sailfish game. (windows system)
In C:\testgame2 folder , you can find index.html file.
mouse right click index.html,then select Firefox or Microsoft Edge browser to open it.
When the menu start, it counts 5 seconds, then auto log in the main game.

When the menu start, it counts 5 seconds, then auto log in the main game.
□How to play
Just shake the Microbit , and you will fire a sailfish
When sailfish collide with bubble, you get three scores.On the contrary,if sailfish collide with jellyfish, you lose one score.
Here is the example movie.
□More
Joy !
Any feedback ,pls mail hnps@hnps.chc.edu.tw
yauger
thank you !
Here is the example movie.
□More
You can replace the images in the game.That's interesting.
The images folder is in C:\testgame2\images
The sounds folder is in C:\testgame2\media
Joy !
Any feedback ,pls mail hnps@hnps.chc.edu.tw
yauger
thank you !
Microbit control html5 game :Flying sailfish ---2
□download and install mbedWinSerial_16466
We need mbed driver to let the Microbit show as a Serial port in pc.So we download the mbedWinSerial_16466 and install it.http://developer.mbed.org/media/downloads/drivers/mbedWinSerial_16466.exe
□The code for microbit Go to the official python site
http://python.microbit.org/v/1
Key the example code:
---------------------------------------------------
from microbit import *
while True:
if accelerometer.was_gesture('shake'):
print('a')
sleep(10)
------------------------------------------------------------------------------------
------------------------------------------------------------------------------------
We send a word by using the Micro:Bit accelerometer to detect a "shake" .
After writing the code,you must press the Download image to download the code.
You can download this code here.
□plug your microbit and import the code

Take notice:
The usb label is MICROBIT □Check your microbit is which serial port
Open the pc control center , in device manager,find COM and LTP item.Remember your device port (for example,my port is COM3).Take notice:You must plug the microbit in pc usb port.
The usb label is MICROBIT □Check your microbit is which serial port
Open the pc control center , in device manager,find COM and LTP item.Remember your device port (for example,my port is COM3).Take notice:You must plug the microbit in pc usb port.

And remember your device baud rate.
□Download the Flying sailfish html5 game
Click this link Flying sailfish
It is a Self-extracting file.If you duble click it.The game will extract to C:\testgame2
□open python programing tool
We chose IDLE(Python GUI) and open the file get.py in c:\testgame2


Take notice:
You must modify the port and baud with your device data.□Run get.py code

□Shake Microbit and see if pc get the data

When you shake Microbit and see Got:a,
it means ........... you success.
Next , we will shake Microbit to control the game-Flying sailfish
Microbit control html5 game :Flying sailfish ---1
□shake microbit to control game
game rule:
By shaking microbit , the sailfish will fly straight ahead.
If sailfish collide with bubble, you get three scores.
On the contrary , if sailfish collide with jellyfish, you lose one
score.
One game,you have 180 seconds to get scores ,if there is no time the hero ranks
will appear .
□download and install python27
This course,yauger will install python27 in windows for example
First, let we download python27
https://www.python.org/ftp/python/2.7.15/python-2.7.15.msi
If the link disappear, you can search it in the internet.
Install python27
take notice
add python.exe to path
□download and install Pyserial
PySerial is a library which provides support for serial connections over a variety of different devices.
We use it to connect microbit and personal computer.
Microbit send any data , personal computer can get the data by PySerial.
You can download it in this sitehttps://zh-tw.osdn.net/projects/sfnet_pyserial/downloads/pyserial/2.7/pyserial-2.7.win32.exe/
Take noticce:
I install pyserial-2.7.win32.exe. Pyserial has newer vesion, but this example,i use 2.7win32 version.
We use it to connect microbit and personal computer.
Microbit send any data , personal computer can get the data by PySerial.
You can download it in this sitehttps://zh-tw.osdn.net/projects/sfnet_pyserial/downloads/pyserial/2.7/pyserial-2.7.win32.exe/
Take noticce:
I install pyserial-2.7.win32.exe. Pyserial has newer vesion, but this example,i use 2.7win32 version.
If the link disappear, you can search it in the internet.
2018年5月6日 星期日
泡泡高手1使用microbit控制遊戲
2018年4月21日 星期六
2018年4月3日 星期二
2018年3月12日 星期一
訂閱:
文章 (Atom)




























