I'm trying to use the nrf24l01 but I'm not sure how, I tried a few tutorials but I always get an error in the init like (it's different in every code (from every tutorial) that I tried so I can't write the specific line)
But it just doesn't work
I would like to know if there is anyone here who knows a good tutorial or code or library or maybe things that I should check that maybe I did wrong ? I just connected the wires and tried to send a text, nothing special and too complicated
Thanks in advance in advance
And one more question I'm pretty sure that at the first time I tried it, I connected the wires wrong, (because the photo of the wiring was different) and then another photo showed different thing, and I think that maybe I connected the plus and ground wrong, because when I thouched it it was quite wam
so i wondered is there a way to check if it's maybe burned ? anyways it was connected to the computer and with the 3.3 v of the arduino so I really don't think that it's burned, but how can I make sure ? because maybe it's burned and then it's not that the code is wrong and I can try hundreds of codes and it will never work
If you are using the high-power nRF24 with the external antenna then it will need an external 3.3v power supply and it would be a good idea to put a considerable distance (a few metres?) between the two transceivers.
Thanks a lot !! And if I want to check if it works but I have just one computer, can I connect both of them to the same computer or should I connect one of them to a battery ? (and then I can't see the output)
And one more question I'm pretty sure that at the first time I tried it, I connected the wires wrong, (because the photo of the wiring was different) and then another photo showed different thing, and I think that maybe I connected the plus and ground wrong, because when I thouched it it was quite wam
so i wondered is there a way to check if it's maybe burned ? anyways it was connected to the computer and with the 3.3 v of the arduino so I really don't think that it's burned, but how can I make sure ? because maybe it's burned and then it's not that the code is wrong and I can try hundreds of codes and it will never work
If you suspect that the rf24 is no good, don't use it. Get a new one and once you get 2 units to communicate, replace one known good one with the suspect unit to see if it works.
groundFungus:
If you suspect that the rf24 is no good, don't use it. Get a new one and once you get 2 units to communicate, replace one known good one with the suspect unit to see if it works.
so tbere isn't a way to check it "phyically" if it's burned or not ?
if I want to check if it works but I have just one computer, can I connect both of them to the same computer
Yes
Start 2 separate instances of the IDE and each can use a different COM port and/or board type if applicable, allowing you to use one Arduino for transmission and one for receive, each with its own separate Serial monitor window which can be handy for debugging
so tbere isn't a way to check it "phyically" if it's burned or not ?
Unless it has a smoking crater in a chip, a nasty smelling burned component or other obvious signature of abuse, no. The only way, that I know, is to replace a known good unit with it and see if it functions.
jimmy111:
Thanks a lot !! And if I want to check if it works but I have just one computer, can I connect both of them to the same computer or should I connect one of them to a battery ? (and then I can't see the output)
This is a bit confusing.
If you are asking whether you can connect two Arduinos to the same PC then the answer is yes.
But it won't tell you which nRF24 is faulty, only that the pair of them don't work - which is why you need at least one more.
And if (which you have not confirmed) you are using high-power nRF24s then you will almost certainly need to keep them far a part for an effective test.
groundFungus:
Unless it has a smoking crater in a chip, a nasty smelling burned component or other obvious signature of abuse, no. The only way, that I know, is to replace a known good unit with it and see if it functions.
it was just quite hot when i touched it, but no smell or smoke. And if I connected it wrong, but still just 3.3 v can it even be burned ? or even if it was connected wrong, it can't be burned with 3.3 v - because it's too low to be burned ?
I'm really a beginner so I don't know much about it (but I really want to lean so I ask)
If you are asking whether you can connect two Arduinos to the same PC then the answer is yes.
But it won't tell you which nRF24 is faulty, only that the pair of them don't work - which is why you need at least one more.
And if (which you have not confirmed) you are using high-power nRF24s then you will almost certainly need to keep them far a part for an effective test.
...R
I'm not sure what you meant.. what do you mean hight power ? how can I check it ?
jimmy111:
it was just quite hot when i touched it, but no smell or smoke. And if I connected it wrong, but still just 3.3 v can it even be burned ? or even if it was connected wrong, it can't be burned with 3.3 v - because it's too low to be burned ?
Throw it away, they're too cheap to mess with. Don't you think your time is worth more? I know mine is.
jimmy111:
it was just quite hot when i touched it,
Exactly what was hot when you touched it. The word "it" could mean many things.
And, yes, it is perfectly possible for an electronic component to overheat and be destroyed with 3.3v. What destroys the component is too much current.
I have had only one failed nRF24 out of 15 or 20. And the failed one had a complete short circuit between the power pins. That could have destroyed my Uno, but luckily I spotted it in time.
gfvalvo:
Throw it away, they're too cheap to mess with. Don't you think your time is worth more? I know mine is.
yes they are cheap, but it takes almost one month to arrive (I buy from ebay because I don't knwo and didn't really find a better website) so yes they are cheap but one month to get one..
so I will just buy a few more, and probably throw this one to the trash.. then when I will get the new one I will try again with the code from the comment before and hope that it will work
jimmy111:
yes they are cheap, but it takes almost one month to arrive
I suspect that is just because you are unwilling to pay more to a supplier who will deliver more quickly. That's a choice you are perfectly free to make.
yes I'm using the one with the antenna, and sorry that I didn't answer before, I wasnt sure what you mean by "hight-power version"
I don't really need the version with the antenna for now, but from what I saw on ebay it was kinda the same price like the one without the antenna, so I bought the one with the antenna
And from what I understood the one without the antenna isn't really good not just because the distance, but also because it can't really pass "through" objects, or am I wrong ?
and I'm not in the USA (I wish I was) I'm from Israel, so usually it takes like three or four weeks to arrive from ebay or amazon
And I think that I managed to make it work, I got this output
SimpleTx Starting
Data Sent Message 0 Acknowledge received
Data Sent Message 1 Tx failed
Data Sent Message 1 Acknowledge received
Data Sent Message 2 Acknowledge received
Data Sent Message 3 Tx failed
...
Data Sent Message 3 Tx failed
Data Sent Message 3 Acknowledge received
Data Sent Message 4 Tx failed
...
Data Sent Message 4 Tx failed
Data Sent Message 4 Acknowledge received
Data Sent Message 5 Tx failed
Data Sent Message 5 Tx failed
Data Sent Message 5 Tx failed
Data Sent Message 5 Acknowledge received
Data Sent Message 6 Acknowledge received
Data Sent Message 7 Acknowledge received
Data Sent Message 8 Acknowledge received
Data Sent Message 9 Acknowledge received
Data Sent Message 0 Acknowledge received
Data Sent Message 1 Acknowledge received
Data Sent Message 2 Acknowledge received
Data Sent Message 3 Acknowledge received
Data Sent Message 4 Acknowledge received
Data Sent Message 5 Acknowledge received
Data Sent Message 6 Tx failed
...
Data Sent Message 6 Tx failed
the ... is when there was the same line many times
And it looks like it's working. but failing quite often.. is there any reason why is it failing that often ? the two antennas are really close to each other but also when I tried to put them a few metres from each other, it was pretty much the same result