[問題] Ardunio Mega2560使用nRF24L01+問題

看板ASM (組合語言)作者 (system fail)時間8年前 (2016/08/04 23:45), 編輯推噓0(004)
留言4則, 2人參與, 最新討論串1/1
我按照https://maniacbug.wordpress.com/2011/11/02/getting-started-rf24/ 的方式,與使用maniacbug的RF24 library code為http://maniacbug.github.io/RF24/GettingStarted_8pde-example.html 不過不管怎樣,兩邊就無法收發 以下是Serial monitor的片段 RF24/examples/GettingStarted/ ROLE: Ping out *** PRESS 'T' to begin transmitting to the other node STATUS = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0 RX_ADDR_P0-1 = 0xf0f0f0f0e1 0xf0f0f0f0d2 RX_ADDR_P2-5 = 0xc3 0xc4 0xc5 0xc6 TX_ADDR = 0xf0f0f0f0e1 RX_PW_P0-6 = 0x08 0x08 0x00 0x00 0x00 0x00 EN_AA = 0x3f EN_RXADDR = 0x03 RF_CH = 0x4c RF_SETUP = 0x07 CONFIG = 0x0f DYNPD/FEATURE = 0x00 0x00 Data Rate = 1MBPS Model = nRF24L01+ CRC Length = 16 bits PA Power = PA_HIGH Now sending 77...failed. Failed, response timed out. Now sending 1349...failed. Failed, response timed out. /******************************************************************/ 另一邊的TX_ADDR 為0xf0f0f0f0d2 用示波器量過SPI通訊都有在送 不過就是收不到 有板友有用過這個嗎?可以提點一下我可能哪裡出問題嗎? thanks -- There are no two words in the English language more harmful than “good job”. -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 125.224.238.134 ※ 文章網址: https://www.ptt.cc/bbs/ASM/M.1470325504.A.4C1.html

08/05 00:14, , 1F
剛剛找到問題了,在電源兩邊跨接10uF 電容(聽說10-47uF)
08/05 00:14, 1F

08/05 00:14, , 2F
就可以讀到,所以是抗雜訊能力低弱
08/05 00:14, 2F

08/05 00:38, , 3F
有些nRF24L01+ module是已經幫你把電容加進去了
08/05 00:38, 3F

08/05 00:39, , 4F
有時候可以把頻寬降低到250kbs應該可以改善
08/05 00:39, 4F
文章代碼(AID): #1NesC0J1 (ASM)
文章代碼(AID): #1NesC0J1 (ASM)