Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

NRF24AP2

Rank

Total Posts: 6

Joined 0

PM

Hello

is it possible to connect an arduino or msp430 with this http://www.aliexpress.com/store/product/Freeshipping-NRF24AP2-Wireless-Networking-Module-Zigbee-Module/809689_559703297.html or this http://www.goodluckbuy.com/nrf24ap2-networking-module-zigbee-module-with-ant-transceiver-.html

and commmunicate with an ant compatible phone?

My goal is to connect a temperature sensor to the arduino and send that data to the phone.      
Avatar
RankRankRankRank

Total Posts: 662

Joined 2012-10-09

PM

Interfacing with an ANT chip requires a serial interface: either UART or synchronous interface (please refer to the Interfacing with ANT General Purpose Chipsets and Modules document for details on the interfacing requirements).
http://www.thisisant.com/pages/developer-zone/ant-protocol-and-usage

As long as the microcontroller you have selected can support this serial interface requirements, you should be able to do what you described. In general, if you have a UART or SPI available, along with some GPIOs, you should be able to interface with an ANT chip.      
Rank

Total Posts: 6

Joined 0

PM

thanks for the helpful replies

I am now testing an arduino with the nrf24ap2 chip from aliexpress by connecting the tx, rc, ground and rtc pins to 3 digital pins on the arduino and of course the ground

for the software I use a modified version of the uploaded code on this site http://jbremnant.wordpress.com/2011/11/27/ant-between-msp430-and-android/

to implement the cts/rtc functionality I changed the txMessage function to
digitalWrite(rtspinLOW);    // sets the LED off
  
for(i=0i<txBufferSizei++)
  
{
    _swuart
.write(txBuffer[i]);
    
Serial.print(txBuffer[i]HEX);
    
Serial.print(' ');
  
}
    
  Serial
.print('\\n');
  
//50 microseconds high cts
  
digitalWrite(rtspinHIGH);    // sets the LED off
  
delayMicroseconds(50);  
  
digitalWrite(rtspinLOW);    // sets the LED off 


The whole project can be seen here [file name=antMaster.zip size=3978]http://www.thisisant.com/images/fbfiles/files/antMaster.zip[/file]
but I still cannot get any signal on my phone      
Avatar
RankRankRankRank

Total Posts: 662

Joined 2012-10-09

PM

Make sure the channel parameters on your embedded implementation match the ones on the application on your phone that you are testing this with.

Since you are just getting started developing with ANT, it may be more helpful to work with a USB stick and ANTware, while you get familiar with the basic features of the protocol.