Project

General

Profile

Resolved: Arduino MEGA 2560 with JeeLabs RFM12B breakout board - need to unplug IRQ cable to work

Added by sammutj about 5 years ago

Hello,

I connected a JeeLabs RFM12B breakout board to an Arduino Mega2560. I used the following pinout:

RFM_IRQ = Pin 2
SS/SEL= Pin 53
MOSI/SDI = Pin 51
MISO/SDO = Pin 50
SCK = Pin 52

When the Arduino MEGA powers up (or after pressing reset button), the serial monitor only shows one line with the text below:

[RF12demo.10] F i6 g212 @ 868 MHz

It stays like this until I briefly unlplug the IRQ cable from pin 2, at which point the serial monitor shows the text below :

Available commands:
   i     - set node ID (standard node ids are 1..30)
   b      - set MHz band (4 = 433, 8 = 868, 9 = 915)
   g    - set network group (RFM12 only allows 212, 0 = any)
   c      - set collect mode (advanced, normally 0)
  t          - broadcast max-size test packet, request ack
  ..., a - send data packet to node , request ack
  ..., s - send data packet to node , no ack
   l      - turn activity LED on PB1 on or off
   q      - set quiet mode (1 = don't report bad packets)
   x      - set reporting format (0 = decimal, 1 = hex)
  123 z      - total power down, needs a reset to start up again
Remote control commands:
  ,,, f     - FS20 command (868 MHz)
  ,, k              - KAKU command (433 MHz)

Current configuration:
 F i6 g212 @ 868 MHz 

At this point i plug again the IRQ cable into pin 2, and the board keeps working normally and i can send test packets to/from this Arduino Mega and another Jeenode V6.

What is the reason for this strange behaviour?

NB: i do not have this issue with the Jeenode V6


Replies (3)

RE: Arduino MEGA 2560 with JeeLabs RFM12B breakout board - need to unplug IRQ cable to work - Added by JohnO about 5 years ago

Can you try with the change below in your RF12Demo sketch on the Arduino.

// Enabling dataflash code may cause problems with non-JeeLink configurations
#define DATAFLASH 0
// check for presence of DataFlash memory on JeeLink

RE: Arduino MEGA 2560 with JeeLabs RFM12B breakout board - need to unplug IRQ cable to work - Added by sammutj about 5 years ago

Hi JohnO,

Thanks for the suggestion. It works well now.

RE: Arduino MEGA 2560 with JeeLabs RFM12B breakout board - need to unplug IRQ cable to work - Added by JohnO about 5 years ago

Great, jbeale suggested this to me many moons ago when I had the same problem.

    (1-3/3)