Pinguino Forum

Full Version: NRF24L01 in pinguino
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2

.:jvr:.

hello!

any one has experiencie using the NRF24L01 wifi boards in pinguino?

I've found a library for PIC18F452...
http://luisdigital.com/proyectos/nrf24l01/
i'm not sure if i coul use this as a base...
my knowledge of programing pics is quite null

Tongue
Have just received a pair of NRF24L01 boards. Got them up and running with an Arduino remarkably easily (the hardest part was finding a pin out for the boards - which weren't marked in any way!). Hope to get them working with Pinguino soon - have you had any success and what are you hoping to transmit?

Martin
I don't know about the Arduino code but I used the code from the net by S. Brennen Ball without trouble.

John
Brennen's excellent tutorial can be found at: http://blog.diyembedded.com/2007/06/tuto...leted.html

The code is good too - but I'm not sure it would be easy to get it up and running under X.3 if you have limited programming experience. (Maybe I misinterpret this and it's just limited PIC programming experience?)

(27-10-2012, 08:04 PM).:jvr:. Wrote: [ -> ]hello!

any one has experiencie using the NRF24L01 wifi boards in pinguino?

I've found a library for PIC18F452...
http://luisdigital.com/proyectos/nrf24l01/
i'm not sure if i coul use this as a base...
my knowledge of programing pics is quite null

Tongue
I have an Olimex P32-OTG and it was trivial to make the code work.

The board has a good UEXT connector which has the needed signals.

John
(16-12-2012, 12:09 AM)pingotg Wrote: [ -> ]I have an Olimex P32-OTG and it was trivial to make the code work.

The board has a good UEXT connector which has the needed signals.

John

do you have the code then?

I've been trying for a week with no luck. Raspberry pi <-> teensyduino communication worked at first try, but I ported like 3 libraries to sdcc, and one to pinguino and I still haven't found a way to make it work in pic18f4550 at 5V.
At first I thought it was the SPI interface that wasn't working, but then I tried this library with a software implementation and figured out it's not the SPI. It's something else.
https://github.com/kehribar/nrf24L01_plus
(that library is extremely easy to port. You only have to change 6 lines of code in one file)

Abou the voltage level conversion for the MISO signal, I'm adapting 3.3v output to 5V using a MAX232:

Code:
nrf24L01 Tx to MAX Tin (ttl/cmos input) , the Tout (RS232) of the MAX to the Rin (RS232) of the MAX, and from Rout (cmos/ttl output) to Rx of the PIC

because the oficial response to the popular pull up resistor method is to never do it, since the nrf24L01 is not prepared for it.


I double checked the connections about 15 times. I attached the pinouts that I'm using.

I don't have access to an oscilloscope.

Thanks
I don't use that CPU or sdcc and need/have no 5V.

Your nrf board is not the same as mine.

To make it work I just changed the #defines the code says. This will not work for you if you don't use exactly the PIC32 board (and, perhaps, nrf board) I use.

John
too bad. I still can't make it work. The nrf24l01+ modules are working fine because I'm testing them in Teensy 2.0, Teensy 3.0 and Raspberry Pi... but I can't make them work with pinguino.

Although the software spi library didn't work either, I think my problem still lies on the SPI code. I always get "0" when I read the registers. From my understanding, the MISO signal is sending 3.3V to the pic and this is NOT enough to trigger the HIGH state. It would need at least 3.6V.

I don't think the max232 is doing what I expected, I should really try with something else. I would reeeeally like to have an oscilloscope now...

Suggestions are welcome!
Some ideas :

Why don't you use transistors instead of your MAX232 ? I would make something like that :
[attachment=347]

or make a level-shifter such as this one :
https://www.sparkfun.com/products/8745?
Schematic is there also:
http://www.sparkfun.com/datasheets/Break...er-v10.pdf
If you want to spend money:
http://www.analog.com/en/interface-isola...index.html

or just make/buy a Pinguino 26j50 ;-)

(02-10-2013, 03:39 AM)dc_740 Wrote: [ -> ]too bad. I still can't make it work. The nrf24l01+ modules are working fine because I'm testing them in Teensy 2.0, Teensy 3.0 and Raspberry Pi... but I can't make them work with pinguino.

Although the software spi library didn't work either, I think my problem still lies on the SPI code. I always get "0" when I read the registers. From my understanding, the MISO signal is sending 3.3V to the pic and this is NOT enough to trigger the HIGH state. It would need at least 3.6V.

I don't think the max232 is doing what I expected, I should really try with something else. I would reeeeally like to have an oscilloscope now...

Suggestions are welcome!
I think your hardware is wrong.

I just use the standard code I already mentioned, google pulls it up immediately. I didn't have to change it except the way the .h file says. The board I use isn't yours so you need to make the right changes for your board. I use all 3.3V parts so they just plug together.

Did you read his tutorials?

John
Pages: 1 2