微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 微波和射频技术 > 天线设计和射频技术 > Unable to get RadioHead library working with nRF905 - missing PWR_UP?

Unable to get RadioHead library working with nRF905 - missing PWR_UP?

时间:04-04 整理:3721RD 点击:
I am trying to get my Arduino Pro Mini to talk to an nRF905 module using the RadioHead library:

http://www.airspayce.com/mikem/arduino/RadioHead/

I was not able to get the simple client server example to work.

I was, however able to get Zak Kemble's library below to work with my hardware:

https://github.com/zkemble/nRF905

When I compared the code between the libraries, I found that RadioHead was not setting the PWR_UP pin for the nRF905. It's also missing the connections for DR and CD. The only recommended connections are (from RH_NRF905.h):



Code:
         ///                 CPU          nRF905 module
  156 ///                 3V3----------VCC   (3.3V)
  157 ///             pin D8-----------CE    (chip enable in)
  158 ///             pin D9-----------TX_EN (transmit enable in)
  159 ///          SS pin D10----------CSN   (chip select in)
  160 ///         SCK pin D13----------SCK   (SPI clock in)
  161 ///        MOSI pin D11----------MOSI  (SPI Data in)
  162 ///        MISO pin D12----------MISO  (SPI data out)
  163 ///                 GND----------GND   (ground in)


I was wondering if anyone was able to get RadioHead to work with nRF905 with just the above connections.

Thanks.

Just needed to call

Code:
digitalWrite(pwrupPin, HIGH);
right after RadioHead initialization, and it worked. My guess was correct - you do need to set
Code:
PWR_UP
.

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top