PIC16F690 - NRF24L04

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
JanB
Posts: 34
Joined: Thu Feb 23, 2012 7:33 pm
Contact:

PIC16F690 - NRF24L04

Post by JanB »

Hello,

I hope someone can help me.

I have two PIC16F690 and two RX-TX Nordic NRF24L01 with pcb board. (common on eBay) I was yesterday evening almost all the evening searching on internet and this forum on how to connect this modules together and let communicate. I can’t find anything….. :-(

Some people say it is possible with this hardware, other people say it is not possible with this hardware and have to use “bit bang”

I’m really confused now. Can someone help me and if it is possible to write a simple FCF to help me understand how this works. My goal is just to let flash a LED on both sides.

Side A
PIC16F690 – NRF24L01 – push swith- and the LED is turning on on Side B. And reverse from Side B to A. Just very simple to let me understand how things are working.

later I want also to send some text between two 16x2 LCD display's.

If necessary, I have also two PIC16F628A.

Thanks,

Jan

User avatar
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: PIC16F690 - NRF24L04

Post by Benj »

Hello Jan,

The module seems to be SPI driven so you should be able to use the SPI Legacy component to drive the module. Take care to toggle the CS pin manually using an output icon or a component such as a LED.

The chip your using seems to have the SPI peripheral so you should be ok to use this.

Regarding actually getting the module to communicate and send and receive it might be best if you can get a code example of the SPI commands so you can replicate in your own Flowcode program.

JanB
Posts: 34
Joined: Thu Feb 23, 2012 7:33 pm
Contact:

Re: PIC16F690 - NRF24L04

Post by JanB »

Hi Ben,

Thanks for your answer, I really appreciate it. I don’t have much free time to find out the use of SPI commands. This is my life, after my normal job I do some free job. :-)

I will try to learn the SPI commands and search this forum for solutions. Maybe I can solve my question.

In hardware I have this configuration:

Image

3,3V for both NRF24L01 and 5V for both PIC16F690. And ICSP for both chips.

On side A is a switch and on side B is a LED. When you push the switch on side A, the LED on side B has to go on. And later reverse.

Just for information.

Thanks again,

Jan

JanB
Posts: 34
Joined: Thu Feb 23, 2012 7:33 pm
Contact:

Re: PIC16F690 - NRF24L04

Post by JanB »

Please, can someone give me a simple working fcf file? I try to understand SPI commands but I have doubts that my hardware is maybe not good.

I need a simple working file so that I can look to my hardware if there are some problems. Just push the switch on side A and turn on the LED on side B.

If someone would make this for me than i'm really thankfull.

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times
Contact:

Re: PIC16F690 - NRF24L04

Post by dazz »

Hi Jan
Can you please sign up for access to the correct forums the link is in my sig (its very difficult for people to telepathically know which version of flowcode you are using and if posted in the correct forum should ensure that your issues will get dealt with)

I can appreciate you are busy , we all are most of us help here voluntarily and are very busy in our spare time, we can only help so much the best I can offer is if you post your flowchart in the correct forum them someone can look at it and point out if theres anything wrong. Its extremely difficult to offer help if we don't know what parts you are getting stuck with, Please download the example files for your version of Flowcode from the main Matrix site. and study the files as there are working examples available there

Regards
Dazz
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

JanB
Posts: 34
Joined: Thu Feb 23, 2012 7:33 pm
Contact:

Re: PIC16F690 - NRF24L04

Post by JanB »

Hi dazz,

Thanks for your answer. There is no way that we can spend € 231.- for a new version of FlowCode. We don’t have the money for it, this is Holland and this is reality. Holland is shipping all his money to Greece and other countries.

This new article (posted today at 12-02-2013) makes me so angry: please copy the text and translate it in Google.

http://www.welingelichtekringen.nl/poli ... inder.html

If you don’t want to translate this article, I have translate via Google one piece.

“Most MPs in January saw their gross salary of 7300 Euros per month with 170 Euros suddenly fall. “

Big tragedy now in Holland…. :-)

I thank you all for helping me. This is the live situation, I hope you understand me and us.

Regards and greetings,

Jan

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: PIC16F690 - NRF24L04

Post by medelec35 »

JanB wrote:There is no way that we can spend € 231.- for a new version of FlowCode.
Sorry Jan, If you have not got the professional version, then you will not have any advanced components eg.

Code: Select all

SPI master, I2C master, SPI(legacy), Internet 
TCP/IP, Webserver, CAN bus, Advanced CAN bus, LIN master, LIN slave, EEPROM, 
IrDA, Bluetooth, GPS, RS232, Graphical colour LCD display, FAT16, MIDI, USB HID, USB 
slave, USB serial bus, Zigbee, RFID, Stepper 
motor, Servo motor, Speech, One wire bus.
etc available for you to use :(

So if you was given a Flowchart that has the solution, you would not be able to compile it to hex or a target device.
Martin

JanB
Posts: 34
Joined: Thu Feb 23, 2012 7:33 pm
Contact:

Re: PIC16F690 - NRF24L04

Post by JanB »

Hi medelec35,

Thanks for your reply. I know, and I understand it.

Regards,

Jan

aura809
Posts: 3
Joined: Sun Jun 23, 2013 9:31 pm
Has thanked: 1 time
Contact:

Re: PIC16F690 - NRF24L04

Post by aura809 »

Has anyone get lucky with these NRF24L01 modules in Flowcode PIC?
BR
Alen

Post Reply