彙整

Posts Tagged ‘PS2 Joystick’

The Final Test of TK04 TorreóN

8 四月, 2011 發表留言

 

finish the monitor & receiver mounting for the TK04 TorreóN. The TK04 Project will be stop at the moment. If have any update for this project , will be update ASAP.

The next job is repair the TK03 first, at the last month, TK03 have drop on the floor around 1m height. some of the parts are broken. also I have decide to replace the Kondo KHR-3HV foot on the TK03, & beautiful the cable routing for the TK03.

& remake the demo unit ( 4 servo Robot ) for the primary school.

then will be start the Project TK05.

this is the draft for the TK05. before TK05 project start, may be have some re-edit design for the Parts & the outlook.

TK05

TK04 TorreóN Test on the Road

4 四月, 2011 2 留言

TK04 TorreóN Test on the Road

3 四月, 2011 發表留言

TK04 TorreóN – Camera Test

29 三月, 2011 發表留言

TK04 TorreóN Program Test – Turn Left & Turn Right

28 三月, 2011 發表留言

TK04 TorreóN – Programming Test

26 三月, 2011 發表留言

TK04 TorreóN Transform Car Mode

23 三月, 2011 發表留言

Robot TK04 TorreóN test walk forward

19 三月, 2011 2 留言

minibo 攪掂啦

24 四月, 2009 發表留言

今日終於有時間去找 Dr. Victor 啦 , 當然攞埋隻 minibo 去比 Dr. Victor , Dr. Victor 整兩整 , 掂晒 ~~~

PS2 Adapter Control Servo

8 六月, 2008 5 留言

過去兩天一直在家中試驗如何用 PS2 Adapter Control Servo,在試驗其間才發覺要 Arm Board Control 到 Servo
好簡單,但要 Control 到有每秒 20ms 就有 D 難度了,於是乎打開天書內的 adc-servo.prg file,download 左
program 發覺係 work 的,只係有 d 地方唔明白。Dr. Victor 請指出錯的地方在那處,( 下圖 )

第 5-9 行 首先話比
Arm 知邊條 Pin 要 Set 做 Servo Pin。
第 13 行 主程式
第 17 行 在 LCD
顯示 ADC-Servo 字樣
第 18 行 將 Arm
Board 轉為 PWM Mode On
第 20 行 話比 i 知
= 20 + ADC_PIN 除 7 或 20 + ADC_PINN 除 7,作用為另到 Servo 不會超出轉動角度為 20 – 166 度
第 21 行 如果 i
不等如 pos 及 i 減 pos 大於 DIFF 或 pos – i 大於 DIFF
第 22 行 在 LCD
顯示 pos 的數值
第 23 行 i = pos
第 27 行 svrctrl()
timer 20 比出 20ms 去 Servo Pin
第 30 –
34 行
我加上去的,


 
出來結果無錯係轉到,但係就無左 20ms,唔知係唔係比
Servo 角度寫錯位置,唔應該寫在 svrctrl() 內。
 
另外已測試左 Ps2 Adapter Control Servo
的 Program,我加左當按 Cross Button 或 Circle Button 時會閃一下 LED 。另外 Dr. Victor 試左 PS2
釱盤 Display 的 ‘x’ 係 5B,但對番好似無 5B 呢樣野,會唔會係 53 呢 ?