[Logo] Anarduino and HopeRF Community Forum
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics     [Groups] Back to home page 
[Register] Register / 
[Login] Login 
MiniWireless 22, not working, possible electrical connection issue  XML
Forum Index » Anarduino
Author Message
jupdyke



Joined: 25/05/2016 18:59:00
Messages: 1
Offline

Hello all,

I have had two of these miniwireless 22 boards for a while now. Try are the 433mhz versions and I have not had any luck with them. I started working with them months ago. I soldered on some headers and was able to program them using my FTDI cable. I found that the led was on in 9 and loaded up the blink program through the arduino IDE and it all seems good.

Next I wanted to try out the radios. So loaded up radio head library
http://www.airspayce.com/mikem/arduino/RadioHead/

and opened up the example code for the client. Once loaded it failed to initialize. Looking at the serial monitor I got the following message:

RF22 init failed
Sending to rf22_server

Not very helpful. But I opened up the header files and added in some more serial print lines to try and see what was going on. I found out that the section of the library code that was the following section.

// Get the device type and check it
// This also tests whether we are really connected to a device
_deviceType = spiRead(RF22_REG_00_DEVICE_TYPE);
Serial.println("Device Type:");
Serial.println(spiRead(RF22_REG_00_DEVICE_TYPE));
if ( _deviceType != RF22_DEVICE_TYPE_RX_TRX
&& _deviceType != RF22_DEVICE_TYPE_TX)
return false;

When I look at the serial output with these extra println I see that the device type returns 0. When I had problems with these boards I ordered a RFM22 shield from sparkfun. I plugged this into an arduino uno and loaded up the same code. This returns the device type to be 8. I asked in the RadioHead google group and I was told this:

"SPI read of 0 indicates that the problem appears to be that SPI comms are not
working with your radio. This is usually due to an electrical connection error
or problem. "

So I am at a loss. Has anyone used these boards before? Are my boards defective? I have emailed Anarduino but no response.
Rick



Joined: 30/05/2014 22:08:56
Messages: 93
Offline

Greetings,

The SPI bus is shared between the Memory and the RFM22 radio.
It is important that the chip select on the Memory is NOT enabled simultaneously with the radio. I believe this is most likely the issue you are seeing.

The chip select on the Memory is the MCU gpio D5 (common between all the MiniWireless). Please make sure D5 is de-asserted while performing radio operations.
You can explicitly set this to a logic HIGH, or by configuring the internal pullup---such that, the memory won't interfere with radio operations.

Let me know if you have any further questions, and although we are quite busy, we are willing to help.

 
Forum Index » Anarduino
Go to:   
Powered by JForum 2.1.9 © JForum Team