Hi Benj and fellow Flowcoders,
I have tried everything to get your nRF24L01 radio component to work, but to no avail.
Has anyone been successful in creating a flowchart in Flowcode V6 that actually works?
If so, PLEASE post it on the forum so that we as amateurs can learn from it, I have almost no more hair on my head left trying to make these modules work!! I have tried to create my own initializing routines from the datasheet, but alas, I came close to blowing up the house!!
I would like to have a remote temp sensor outside that communicates with the "base" module that has an LCD fitted to display the temperature outside and inside.
Thank you
Ted
nRF24L01 Radio Module Component
Moderator: Benj
-
- Posts: 502
- Joined: Wed Nov 07, 2007 6:51 pm
- Location: Antwerp Belgium
- Has thanked: 121 times
- Been thanked: 108 times
- Contact:
Re: nRF24L01 Radio Module Component
Hello TedO,
Please check my working example here: http://www.matrixtsl.com/mmforums/viewt ... l01#p71942
It's just the basics, send and receive.
My goal was to extend the chart to one that can receive the ack from the RX and so on, but I don't have much time for that..
Please check my working example here: http://www.matrixtsl.com/mmforums/viewt ... l01#p71942
It's just the basics, send and receive.
My goal was to extend the chart to one that can receive the ack from the RX and so on, but I don't have much time for that..
-
- Posts: 79
- Joined: Sat Mar 14, 2015 7:52 am
- Has thanked: 46 times
- Been thanked: 26 times
- Contact:
Re: nRF24L01 Radio Module Component
Hi MJU
Thanks for the flowcharts, your initializing routines work very well, I tweaked the programs a bit to enable the base module to have an LCD display rather than the RS232 component and the radio modules work perfectly well thank you, can now send text Bytes to the Rx LCD.
Am now trying to get the Tx to send the temperature from a remote sensor via NRF to base module but find it a little difficult as the input from the temp sensor is an INT input and the SPI component only has a SendCHAR or SendSTRING command (which are Bytes) so how does one send an Integer value via SPI?
Would appreciate some help with this please.
Much appreciated
Regards
Ted
Die hulp word werklik waardeer!!
Thanks for the flowcharts, your initializing routines work very well, I tweaked the programs a bit to enable the base module to have an LCD display rather than the RS232 component and the radio modules work perfectly well thank you, can now send text Bytes to the Rx LCD.
Am now trying to get the Tx to send the temperature from a remote sensor via NRF to base module but find it a little difficult as the input from the temp sensor is an INT input and the SPI component only has a SendCHAR or SendSTRING command (which are Bytes) so how does one send an Integer value via SPI?
Would appreciate some help with this please.
Much appreciated
Regards
Ted
Die hulp word werklik waardeer!!
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: nRF24L01 Radio Module Component
Hello Ted,
You can split an integer variable up into two bytes using the following. MSB, LSB are byte variables and INT is your Integer variable.
MSB = INT >> 8
LSB = INT
Send the two bytes and then at the receiver end you need to combine the two bytes to an int again.
INT = ( MSB << 8 ) + LSB
You can split an integer variable up into two bytes using the following. MSB, LSB are byte variables and INT is your Integer variable.
MSB = INT >> 8
LSB = INT
Send the two bytes and then at the receiver end you need to combine the two bytes to an int again.
INT = ( MSB << 8 ) + LSB
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel