入咗塊arduino uno.....

裝好driver, device manager 認到塊板
不過接上usb 盞mark 住L 字母的led 係咁不斷閃。 係唔係正常的?

defalt 入左Blink.ino姐, L顯示D13輸出
  1. /*
  2.   Blink
  3.   Turns on an LED on for one second, then off for one second, repeatedly.

  4.   Most Arduinos have an on-board LED you can control. On the Uno and
  5.   Leonardo, it is attached to digital pin 13. If you're unsure what
  6.   pin the on-board LED is connected to on your Arduino model, check
  7.   the documentation at http://www.arduino.cc

  8.   This example code is in the public domain.

  9.   modified 8 May 2014
  10.   by Scott Fitzgerald
  11. */


  12. // the setup function runs once when you press reset or power the board
  13. void setup() {
  14.   // initialize digital pin 13 as an output.
  15.   pinMode(13, OUTPUT);
  16. }

  17. // the loop function runs over and over again forever
  18. void loop() {
  19.   digitalWrite(13, HIGH);   // turn the LED on (HIGH is the voltage level)
  20.   delay(1000);              // wait for a second
  21.   digitalWrite(13, LOW);    // turn the LED off by making the voltage LOW
  22.   delay(1000);              // wait for a second
  23. }
複製代碼

TOP

裝好driver, device manager 認到塊板
不過接上usb 盞mark 住L 字母的led 係咁不斷閃。 係唔係正常的?
...
takayo72 發表於 2016-10-9 06:34



    正常

TOP

回覆 1# takayo72




    通常用這個實驗, 快閃3次, 停3秒, 再來. 個人覺得比較好辨識
原碼可以下載
  1. /*
  2.   Blink LEd 3 times in fast, pause 3 second, blink again
  3.   xiaolaba, 2009-10-12
  4. */

  5. // the setup function runs once when you press reset or power the board
  6. void setup() {
  7.   // initialize digital pin 13 as an output.
  8.   pinMode(13, OUTPUT);
  9. }

  10. // the loop function runs over and over again forever
  11. void loop() {
  12.   fast3blink();
  13.   delay(3000);              // pause for 3 second
  14. }


  15. void fast3blink () {
  16.   //blink1
  17.   digitalWrite(13, HIGH);   // turn the LED on (HIGH is the voltage level)
  18.   delay(200);              // wait for 200ms
  19.   digitalWrite(13, LOW);    // turn the LED off by making the voltage LOW
  20.   delay(200);              // wait for 200ms

  21. //blink2
  22.   digitalWrite(13, HIGH);   // turn the LED on (HIGH is the voltage level)
  23.   delay(200);              // wait for 200ms
  24.   digitalWrite(13, LOW);    // turn the LED off by making the voltage LOW
  25.   delay(200);              // wait for 200ms

  26.   //blink3
  27.   digitalWrite(13, HIGH);   // turn the LED on (HIGH is the voltage level)
  28.   delay(200);              // wait for 200ms
  29.   digitalWrite(13, LOW);    // turn the LED off by making the voltage LOW
  30.   delay(200);              // wait for 200ms
  31. }
複製代碼

TOP

樓主何不把寫好的 code 直接上載去 Uno  試一試?

TOP

樓主何不把寫好的 code 直接上載去 Uno  試一試?
FPDman 發表於 2016-10-9 10:17



    試乜嘢?

TOP

回覆  takayo72




    通常用這個實驗, 快閃3次, 停3秒, 再來. 個人覺得比較好辨識
原碼可以下載 ...
xiao 發表於 2016-10-9 09:17


段code flash 到落塊板。
照推斷,塊板係in good condition。 對吧!?

TOP

回覆 7# takayo72


燒完後, 看到了甚麼現象 ?

TOP

回復 8 #xiao

loop 快閃3次,停3秒

via HKEPC Reader for Android

TOP

本帖最後由 xiao 於 2016-10-9 13:34 編輯

回覆 9# takayo72


    板子是基本是正常的, 燒錄/LED/D13都正常, 其餘部分可以當作沒問題.
繼續用力玩吧

TOP