Show Posts
Pages: [1] 2 3 ... 18
1  Using Arduino / Networking, Protocols, and Devices / Re: [SOLVED] Problem with NRF24L01+ on: June 14, 2013, 08:34:33 am
Some voltage regulators are noisier than others.

If you read some of the older threads on this issue, you'll find a common theme is a reminder for proper engineering principles. Many of us hobbyists tend to take this for granted, especially since things tend to work for us on a breadboard. But that doesn't mean spurious issues won't occur. Worse, many blame, for example, the radio module when the problem is squarely between the keyboard and chair.

Proper engineering requires filtering of of the source and proper use of decoupling capacitors. Filtering may or may not be required depending on the quality of source. But decoupling caps should always be used, as close as possible to the component in question. Traces and wires are great for picking up noise, especially when there is an RF source nearby.

If you don't have a scope to actually see what your power looks like, the best thing to do is to simply filter. Its usually just an extra couple of caps. As an added benefit, with something like these radios which are transient sinks during TX, having some spare juice in a cap helps the entire circuit. And with something like a radio, the cleaner the power, the more reliable both RX and TX will be. The only down side is a couple of cheap caps. So why not?
2  Using Arduino / Networking, Protocols, and Devices / Re: [SOLVED] Problem with NRF24L01+ on: June 13, 2013, 01:49:20 pm
Good news! Appreciate the update.

Since that did make such a big difference, I encourage you to add some additional caps to filter your power. If not on the breadboard, definitely for your project.
3  Using Arduino / Networking, Protocols, and Devices / Re: Problem with NRF24L01+ on: June 13, 2013, 08:58:53 am
That looks like you should be able to receive. The next thing I would try is a small electrolytic capacitor on your 3v3 source. Say something along the lines of 10uF - 47uF; between vcc and gnd. I know some mega2560s require this because the 3v3 regulator stinks. Especially if using a LR radio. Mine requires this. Without it, TX is unreliable on the SR units and almost impossible with a LR radio. For paranoia's sake, you might also consider a 10pF decoupling capacitor.

4  Using Arduino / Networking, Protocols, and Devices / Re: Problem with NRF24L01+ on: June 12, 2013, 03:40:17 pm
Hmmm... Same channels. Opposite pipe addresses. Same AA and setup. Ping and pong roles look okay. That all looks good.

By any chance, are these the long range radios? If, I've encountered problems with two LR radios in use. The fix was to turn down the PA setting on both radios.

If this still fails, try the scanner application. It will allow you to check for a clear channel and confirm the RX side of things can actually detect signal. Not to mention, it confirms bidirectional communication...though I believe the printDetails already gives a thumbs up there.

5  Using Arduino / Networking, Protocols, and Devices / Re: Problem with NRF24L01+ on: June 12, 2013, 02:06:47 pm
Please provide the printDetails() output.

Normally when things don't work, its a wiring issue. Valid printDetails output is usually a good indicator the wiring is correct. Also, the output allows us to verify the configurations are the same.

6  Using Arduino / Networking, Protocols, and Devices / Re: Problem with NRF24L01+ on: June 12, 2013, 10:49:57 am
I remember reading the getting started stuff, it self, had an issue or two. I don't recall the details. I believe you did discover one of them, which was the addresses are not correct.

I would encourage you to start with RF24/examples/pingpair.pde. The example has a "role pin", which is pin 7. Verify the pin in the code you have there. On one of the two units, simply ground that pin.

As a side note, I'm encouraging RF24 users to use my fork of the library. It fixes a couple of issues and adds new features. I also have some articles on my blog on how to maximize your RF24 experience, regardless of which fork you use. If you're interested in my fork, you can find a blog post and link on my blog.
7  Using Arduino / Networking, Protocols, and Devices / Re: RF24 Library: Driver for nRF24L01(+) 2.4GHz Wireless Transceiver on: June 10, 2013, 01:39:52 pm
Because the library, and variants, are pretty well debugged at this point. Most of the thread contributions here, including yourself, are actually asking about how to get your local configuration (hardware and/or software) correct rather than issues with the library proper. You're not actually asking questions about the library, but rather local issues using the library. That's why I made the distinction between "library proper" and your use.

Doing so makes it more easily search-able for others which suffer the same issue. It also makes it less intimidating for those coming after; such that they are not staring at a thread with a rather large page count.

Better questions. Why wouldn't you post your specific issue in its own thread? Do you have any information which indicates this is a library specific issue? Beyond all that, creating a new thread on forums, is general considered proper forum etiquette.
8  Using Arduino / Networking, Protocols, and Devices / Re: RF24 Library: Driver for nRF24L01(+) 2.4GHz Wireless Transceiver on: June 10, 2013, 11:20:47 am
Since none of these posts are directly related to the RF24 library, I would encourage you to create new posts when requesting help. This makes it easier to people to participate as well as it prevents past thread contributors from notifications on posts which are unrelated to the library proper.
9  Using Arduino / Networking, Protocols, and Devices / Re: RF24 Library: Driver for nRF24L01(+) 2.4GHz Wireless Transceiver on: June 07, 2013, 12:26:21 pm
If the payloads are fixed size, then there is no reason to use dynamic payloads. Furthermore, the length provided to write and read determine how many bytes are transferred over the SPI bus with the radio. You should make these the proper size. If in fact they are fixed size, then I encourage you to not use dynamic payloads.   Instead, use setPayloadSize() with dynamic payloads disabled. On the other hand, if you are using dynamic payloads, you should use the API properly. If the API is not used properly, there really isn't any point in looking for other issues.

Also, you need to either quote your code, or use something like pastebin. It helps a lot. Furthermore, complete code dramatically improves things.

Do the examples work for you?
10  Using Arduino / Networking, Protocols, and Devices / Re: RF24 Library: Driver for nRF24L01(+) 2.4GHz Wireless Transceiver on: June 07, 2013, 11:50:57 am

Code:
    radio.enableDynamicPayloads() ;


Code:
    if ( radio.available() )
    {
      bool done = false;
      while (!done)
      {
        done = radio.read(&payload, sizeof (payload));
      }


Note, you are using dynamic payloads. You must do something like:

Code:
done = radio.read( &payload, radio.getDynamicPayloadSize() ) ;

See pingpair_dyn.pde as an example.
11  Using Arduino / Networking, Protocols, and Devices / Re: RF24 Library: Driver for nRF24L01(+) 2.4GHz Wireless Transceiver on: May 29, 2013, 01:04:40 pm
Here is a variation of the theme.

Of course there is the Pringles Cantenna option, if you are highly directional. The instructions show cans but you can use a single Pringles can. Its near the perfect size and shape for the target frequency (2.4Ghz).
12  Using Arduino / Networking, Protocols, and Devices / Re: Decent ENC28J60 library??? on: April 18, 2013, 05:07:08 pm
Isn't the ethercard library the defacto for that chip? I think its pretty complete but not well organized.
13  Using Arduino / Networking, Protocols, and Devices / Re: RF24 Driver Release on: April 17, 2013, 11:23:43 am
The one with pin 7 grounded is the receiver.

Code:
 pinMode(role_pin, INPUT);
  digitalWrite(role_pin,HIGH);

  // read the address pin, establish our role
  if ( digitalRead(role_pin) )
    role = role_ping_out;
  else
    role = role_pong_back;

So it forces the signal high. If we read digital one (high), its a ping_out. If its low, "grounded", its a pong_back.
14  Using Arduino / Networking, Protocols, and Devices / Re: RF24 Driver Release on: April 17, 2013, 10:22:34 am
If you want to use my fork, download or clone the entire repository. It has a new example as well as updates to existing examples.

The small delta shows the nature of the recent change. But its a change to my fork, not Maniacbug's code.

You can download a zip of my fork here: https://github.com/gcopeland/RF24/archive/master.zip
15  Using Arduino / Networking, Protocols, and Devices / RF24 Performance Improvement w/SPI on: April 16, 2013, 02:17:15 pm
I've created yet another RF24 Driver blog post on squeaking yet more performance out of your RF24 radios. Its also be worth a read for general SPI users and other libraries.

Enjoy.

http://maniacalbits.blogspot.com/2013/04/rf24-performance-improvement-wspi.html

Pages: [1] 2 3 ... 18