網頁最後修改時間:2016/09/04
本篇除了使用與上一篇同樣的方法傳送資料之外,還介紹了使用陣列傳送的方式,使用這方法可以擴展更多的 ID 與資料串列,用來接收更多不同無線發射端的資料 !
![]() |
| 賣場的無線發射接收模組 ( 左邊:本文稱 RF433;右邊:本為稱 ASK433 ) |
PROTEUS 是一款電路模擬的軟體,不但可以學習電路也可以模擬韌體程式實際在 MCU 執行的情形,它在我學習的路上幫助與輔助我很多,也希望這樣的想法延續下去,所以當時在建立部落格要命名的那一刻,它的名字就莫名地浮現出來:ㄆㄜ ㄊㄧㄡ ㄙˋ (proteus),用注音是因為不想用英文,用中文又不曉得翻譯成什麼,所以就英文注音化。
部落格發佈的網頁,主要是以我玩的東西、學習的心得和電子週邊應用為主,也歡迎有興趣的一起交流分享 !
網頁最後修改時間:2014/12/20
為了使擁有這些零件的使用者能夠找到原始商品的資料,所以將下架套件的資料移到這邊來,套件的部落格更新訊息可以到這邊查詢,造成不便請見諒 !![]() |
| ESP8266, ESP-01 電路板接腳名稱 |
![]() |
What is a Bootloader?
Atmel AVRs are great little ICs, but they can be a bit tricky to program. You need a special programmer and some fancy .hex files, and its not very beginner friendly. The Arduino has largely done away with these issues. They’ve put a .hex file on their AVR chips that allows you to program the board over the serial port, meaning all you need to program your Arduino is a USB cable.
The bootloader is basically a .hex file that runs when you turn on the board. It is very similar to the BIOS that runs on your PC. It does two things. First, it looks around to see if the computer is trying to program it. If it is, it grabs the program from the computer and uploads it into the ICs memory (in a specific location so as not to overwrite the bootloader). That is why when you try to upload code, the Arduino IDE resets the chip. This basically turns the IC off and back on again so the bootloader can start running again. If the computer isn’t trying to upload code, it tells the chip to run the code that’s already stored in memory. Once it locates and runs your program, the Arduino continuously loops through the program and does so as long as the board has power.
在傳送端的程式,先將所需要傳送的數據準備好;數據經過軟體計算之後產生編碼資料;編碼資料經過無線模組發送。
接收端的無線模組收到傳送端送來的資料之後,接收端開始解碼資料。解碼之後就是從傳送端送過來的未經編碼前的資料,這也是我們所要的。ASK-433 或是 RF433MHz 兩個硬體雖然不同,但是因為硬體調制模式 ( Modulation Mode ) 是一樣的,所以傳送與接收端互換之後都還是可以正常接收資料的,而且只要資料編解碼是一致的,就能得到所需要的資料。
| Arduino + HZ1050 + { 5V0 } 整合型 LCD 實際接線圖 |
![]() |