emontx shield V2 with RFM12b on Arduino UNO R3 freeze's at rf12_initialize

Hi,

Issue is any sketch I run freezes at rf12_initialize.

I have tried the basic "Tx_SimpleRFM12B_demo" sketches and "Shield_CT1234_Voltage"

any sketch without calls to the rf module works as expected with streaming serial output. "Shield_CT1234_Voltage_SerialOnly" works just fine.

All sketches compile fine, I just get zero output from anything after the rf commands, I can move the print statements around anything before the rf line prints to serial.

I searched previous similar posts and they indicated failed RF module, tonight I have just received 2 new ones, soldered the first in and exactly the same issue????  This time I suspended above and soldered legs.  ensured the module did not get hot by letting it all cool down between soldering each leg. 

I have modified the rf12.cpp file and set the jumpers as per the link below

http://wiki.openenergymonitor.org/index.php?title=EmonTx_Arduino_Shield

I have a 3rd module but suspect something else is going on but with no output I am at a loss to isolate what it could be??

 

any assistance appreciated.

 

Dave

Robert Wall's picture

Re: emontx shield V2 with RFM12b on Arduino UNO R3 freeze's at rf12_initialize

Normally, the sketch locking up and not returning from rf12_initialize( ) does indicate a bad connection to the RFM12B or a faulty module. You've swapped modules, but have you carefully inspected the shield pcb, the connections (headers) and the Arduino PCB itself? I'd be looking for solder whiskers, or whiskers left from the etching process, or broken tracks or failed plated-through holes, and in the connectors broken contact springs. Have you checked continuity from the RFM12B right back to the processor? And the supply voltage to the RFM12B? Don't restrict your checks to the parts that you did.

If you comment out all lines related to the RFM12B, does the sketch then run properly? (It most likely will, and that would be additional evidence of no other fault.)

davek's picture

Re: emontx shield V2 with RFM12b on Arduino UNO R3 freeze's at rf12_initialize

Thanks Robert,

still at a loss.

un-comment all RF lines and script runs.

board inspections all looks OK

checked continuity for all connections from RFM12B pads to the header pins on the underside of the arduino (as far as I can go with the shield assembled, all OK.

checked supply Vcc and GND all OK..

Stumped...

 

Dave

Robert Wall's picture

Re: emontx shield V2 with RFM12b on Arduino UNO R3 freeze's at rf12_initialize

I deleted your duplicate post.

You meant "un-comment all RF lines and script runs." no doubt?

Well, you've proved that it really is either the RFM12B module, or the pins on the Arduino that interface with it. Did you check for shorts between adjacent pads? Hopefully a stupid question - it is the right way round on the board?

You have done Option 2 for the CS jumper settings and you've changed the JeeLib library. Have you got only one copy of the library on your entire system? (I'm not clear of the order that the Arduino IDE searches for library files, but it surely does not follow the usual convention. There is only one certain way to keep a copy library file: zip it and delete the original; else the IDE might find it and use in preference to the version you want it to use.) You must have restarted the IDE since editing the file?
And you've done the IRQ jumper too?

Is there anything special or different about the lines that interface with the RFM12B on your particular Arduino board?

You have only the emonTx Shield fitted? No on-board Ethernet?

Without the Shield, can you test the I/O lines (or at least some of them)?

Now I too am running out of ideas.

davek's picture

Re: emontx shield V2 with RFM12b on Arduino UNO R3 freeze's at rf12_initialize

Thanks for the help Robert, problem solved!

I moved over to line Digital 5, updated the sketch and rf12.cpp and all started working.

Data streaming to the Raspberry Pi gateway and published to emoncms web site!!!

I don't know what was wrong with the original line but happy its working!

 

Cheers

Dave

 

Robert Wall's picture

Re: emontx shield V2 with RFM12b on Arduino UNO R3 freeze's at rf12_initialize

Phew! I was getting desperate.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.