一、確認連接線
電源線 正負極性不可以接反
伺服機排線的正負極與信號不可以接反
二、確認超音波端子頭
確認超音波端子連接線是否接正確,正負極與TR、EC的連接。
三、接上USB端子。觀察電路工作狀態
四、啟動超音波程式,檢測超音波功能是否正確。
五、啟動伺服機控制程式
2014年1月20日 星期一
2014年1月8日 星期三
102下學期工作項目
填寫問卷
https://docs.google.com/spreadsheet/viewform?formkey=dEFQcU1Ncy1qMzVBd05lc1ZWdnIwU0E6MQ
2月21日 參加自走車研習
2月23日 參加Arduino基礎模組研習3月29日 參加花蓮區Arduino專題製作競賽
參加組別 高中組自走車 或 高中組創意賽
報告書 4月上旬繳交
參加聯合科大競賽(自費)
5月3、4日 參加 四二專統測
5月24、25日 參加台北 Make Faire活動(自費)
5月下旬 學校作品發表會
https://docs.google.com/spreadsheet/viewform?formkey=dEFQcU1Ncy1qMzVBd05lc1ZWdnIwU0E6MQ
2月21日 參加自走車研習
2月23日 參加Arduino基礎模組研習3月29日 參加花蓮區Arduino專題製作競賽
參加組別 高中組自走車 或 高中組創意賽
報告書 4月上旬繳交
參加聯合科大競賽(自費)
5月3、4日 參加 四二專統測
5月24、25日 參加台北 Make Faire活動(自費)
5月下旬 學校作品發表會
2013年12月21日 星期六
選手小車驅動
下載點
https://drive.google.com/file/d/0B_uh7-e5jDMcVHgwOHphNkFzeVk/edit?usp=sharing
伺服馬達校正
先使角度為 90度 再裝上超音波模組
// Controlling a servo position using a potentiometer (variable resistor)
// by Michal Rinott <http://people.interaction-ivrea.it/m.rinott>
#include <Servo.h>
Servo myservo; // create servo object to control a servo
void setup()
{
myservo.attach(5); // attaches the servo on pin 9 to the servo object
}
void loop()
{
myservo.write(90); // sets the servo position according to the scaled value
delay(1500); // waits for the servo to get there
}
https://drive.google.com/file/d/0B_uh7-e5jDMcVHgwOHphNkFzeVk/edit?usp=sharing
伺服馬達校正
先使角度為 90度 再裝上超音波模組
// Controlling a servo position using a potentiometer (variable resistor)
// by Michal Rinott <http://people.interaction-ivrea.it/m.rinott>
#include <Servo.h>
Servo myservo; // create servo object to control a servo
void setup()
{
myservo.attach(5); // attaches the servo on pin 9 to the servo object
}
void loop()
{
myservo.write(90); // sets the servo position according to the scaled value
delay(1500); // waits for the servo to get there
}
2013-12-21 花工假日樂活營課程
Arduino入門
範例一 閃爍燈:測試電路板
範例二 呼吸燈:學習 if
範例三 調控燈:學習類比輸入
範例四 霹靂燈:學習for 指令
任務一:結合範例一與二
任務二:結合範例三與四
使用網頁:
Cooper Maa
http://coopermaa2nd.blogspot.tw/2011/05/arduino.html
曹永忠老師網頁
http://www.cs.pu.edu.tw/~yctsao/indexdown.php
範例一 閃爍燈:測試電路板
範例二 呼吸燈:學習 if
範例三 調控燈:學習類比輸入
範例四 霹靂燈:學習for 指令
任務一:結合範例一與二
任務二:結合範例三與四
使用網頁:
Cooper Maa
http://coopermaa2nd.blogspot.tw/2011/05/arduino.html
曹永忠老師網頁
http://www.cs.pu.edu.tw/~yctsao/indexdown.php
訂閱:
文章 (Atom)