Help getting my first sensor working please

9 years 3 weeks ago - 9 years 3 weeks ago #968 by EasyIoT

PaulRB wrote: Thanks for that but it was of very limited help. The output from scanner shown on that thread looks very different from my output above. And I'm not sure the poster was any the wiser by the end of the thread - very confusing!
It almost looked as though they had baud rate set incorrectly on serial monitor, except that the first line was ok...


I was using program with output like this:
RF24/examples/scanner/
00000000000000001111111111111111222222222222222233333333333333334444444444444444555555555555555566666666666666667777777777777777
0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
00000000000000000024222242223133132001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000002221443324342431100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000011101115543322223122222101100120000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000003231222222232221000110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000011100014132412323232323100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000001133231323124552222000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000001110112110112412233442322111001100200000000000000000000000000000000000000000000000000000000000000000000000000000000000

First line is command, then you have 2 lines for channel. First column is 00 for channel 0 last column is 7F for channel 127. Next lines are communication on each channel. If number is changing it means communication on channel. If number stays on 0 channel is free to use. In this example channels above 2C(44) are free.
The following user(s) said Thank You: PaulRB

Please Log in or Create an account to join the conversation.

9 years 3 weeks ago #988 by PaulRB
Thanks for that. But can you post the sketch you have used there? Clearly despite both sketches claiming to be the rf24/scanner, they are different sketches.

Please Log in or Create an account to join the conversation.

9 years 3 weeks ago #989 by EasyIoT

PaulRB wrote: Thanks for that. But can you post the sketch you have used there? Clearly despite both sketches claiming to be the rf24/scanner, they are different sketches.


Program was on RPI, but I don't remember were I found it. Try search RF24 Raspberry.

Please Log in or Create an account to join the conversation.

9 years 2 weeks ago - 9 years 2 weeks ago #991 by PaulRB
Thanks for that link Harry. But that is an Arduino sketch. Are we sure its the same thing that EasyIoT is talking about?

Anyway, here's the output when using one of my basic radio modules:
RF24/examples/scanner/

00000000000000001111111111111111222222222222222233333333333333334444444444444444555555555555555566666666666666667777777777777777

0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef

67777666755677766677566666767765565567778666645667765665556666666755665566676555545667776664556666566555656666665556656567655544

4444444444444444444444444444444444444444444444444444444444444444ab99aa99aaaba999989aabbbaaa899aaaa9aa999a9aaaaaa999aa9a9aba99988

4444444444444444444444444444444444444444444444444444444444444444efddeeddeeefeddddcdeefffeeecddeeeedeedddedeeeeeedddeededefedddcc

44444444444444444444444444444444444444444444444444444444444444442311221122232111101223332220112222122111212222221112212123211100

44444444444444444444444444444444444444444444444444444444444444446755665566676555545667776664556666566555656666665556656567655544

4444444444444444444444444444444444444444444444444444444444444444ab99aa99aaaba999989aabbbaaa899aaaa9aa999a9aaaaaa999aa9a9aba99988

4444444444444444444444444444444444444444444444444444444444444444efddeeddeeefeddddcdeefffeeecddeeeedeedddedeeeeeedddeededefedddcc

44444444444444444444444444444444444444444444444444444444444444442311221122232111101223332220112222122111212222221112212123211100

44444444444444444444444444444444444444444444444444444444444444446755665566676555545667776664556666566555656666665556656567655544

4444444444444444444444444444444444444444444444444444444444444444ab99aa99aaaba999989aabbbaaa899aaaa9aa999a9aaaaaa999aa9a9aba99988

4444444444444444444444444444444444444444444444444444444444444444efddeeddeeefeddddcdeefffeeecddeeeedeedddedeeeeeedddeededefedddcc

44444444444444444444444444444444444444444444444444444444444444442311221122232111101223332220112222122111212222221112212123211100

44444444444444444444444444444444444444444444444444444444444444446755665566676555545667776664556666566555656666665556656567655544

4444444444444444444444444444444444444444444444444444444444444444ab99aa99aaaba999989aabbbaaa899aaaa9aa999a9aaaaaa999aa9a9aba99988

4444444444444444444444444444444444444444444444444444444444444444efddeeddeeefeddddcdeefffeeecddeeeedeedddedeeeeeedddeededefedddcc

44444444444444444444444444444444444444444444444444444444444444442311221122232111101223332220112222122111212222221112212123211100

44444444444444444444444444444444444444444444444444444444444444446755665566676555545667776664556666566555656666665556656567655544

4444444444444444444444444444444444444444444444444444444444444444ab99aa99aaaba999989aabbbaaa899aaaa9aa999a9aaaaaa999aa9a9aba99988
This seems to tell us that all channels are in use? I live in a rural area, it seems unlikely.

Here's the output when using the high-power radio module:
RF24/examples/scanner/

00000000000000001111111111111111222222222222222233333333333333334444444444444444555555555555555566666666666666667777777777777777

0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef

44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444

44444444444444444444444444444444444444444444444444444444444444448888888888888888888888888888888888888888888888888888888888888888

4444444444444444444444444444444444444444444444444444444444444444cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc

44444444444444444444444444444444444444444444444444444444444444440000000000000000000000000000000000000000000000000000000000000000

44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444

44444444444444444444444444444444444444444444444444444444444444448888888888888888888888888888888888888888888888888888888888888888

4444444444444444444444444444444444444444444444444444444444444444cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc

44444444444444444444444444444444444444444444444444444444444444440000000000000000000000000000000000000000000000000000000000000000

44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444

44444444444444444444444444444444444444444444444444444444444444448888888888888888888888888888888888888888888888888888888888888888

4444444444444444444444444444444444444444444444444444444444444444cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc

44444444444444444444444444444444444444444444444444444444444444440000000000000000000000000000000000000000000000000000000000000000

44444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444

44444444444444444444444444444444444444444444444444444444444444448888888888888888888888888888888888888888888888888888888888888888

4444444444444444444444444444444444444444444444444444444444444444cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc

There seems to be much less variation in that data.

Please Log in or Create an account to join the conversation.

9 years 2 weeks ago - 9 years 2 weeks ago #994 by HarryDutch
The Arduino sketch is simply scanning all 2.4 Ghz band channels (128 channels total) to find out on which channels there is activity. It's doing this a 100 times. The serial monitor is showing the result. If it's showing a "0" then there is no activity for that channel. My serial output looks like this (see first file) Channels within the red marking are busy. Looking at your results there is definitly something wrong. Could be the radio itself, the powersupply, the Arduino or the connections. First thing you have to do is to focus on the scanner sketch to find out where things goes wrong . Maybe you could skip the breadboard first and make a more permanent solution by solder your parts on a prototype board. You also have to solder a capicitor (no more than 47 uF) directly across VCC and GND of the radio module. Something like this: (see second file). Let me know if something is not clear.
Attachments:
The following user(s) said Thank You: PaulRB

Please Log in or Create an account to join the conversation.

Time to create page: 0.907 seconds

Forum latest

  • No posts to display.