葉難

Raise your cup, say cheers to the moon, look down on the ground, the shadow is also drinking with me. I'm not a lonely drinker.

2012/02/19

Arduino練習:霹靂車燈

›
之前 以PWM製作會呼吸的LED 、 以揚聲器演奏青花瓷 ,這一篇要用16個LED,製作出左右來回跑的效果,也就是霹靂車燈。 夥計,我需要你! 我將先用Arduino的16個腳位,控制16個LED,然後再加入兩顆74HC595,就只需3個腳位即可。 電路圖( Fr...
43 comments:
2012/02/17

Arduino軟體開發環境的設定檔preferences.txt

›
所謂的Arduino軟體開發環境,裡頭包含了很多部分: USB轉換序列埠的驅動程式 範例程式碼(閃爍LED、讀取數位腳位、PWM、等等) Arduino的核心(定義HIGH與LOW常數值、函式pinMode()、等等) 內建程式庫(讀寫EEPROM、控制LCD、控制伺服...
2012/02/16

Arduino練習:loudspeaker揚聲器

›
之前一直在跟LED奮鬥( 以開關切換LED明滅狀態 、 呼吸燈 、 霹靂車燈 ),現在玩玩聲音吧。 先發出一段官方範例程式碼的聲音,然後再播放兒歌妹妹揹著洋娃娃,然後再播放周杰倫的青花瓷。 電路圖( Fritzing 格式)與程式原始碼, 可在此下載 。  電路圖: ...
52 comments:
‹
›
Home
View web version

About Me

My photo
yehnan
朝曦灑落身 俯仰似流雲
View my complete profile
Powered by Blogger.