nRF24L01+ and Trinket

Adafruit's tiny microcontroller platform. Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
jalper
 
Posts: 2
Joined: Tue Dec 04, 2012 7:15 pm

nRF24L01+ and Trinket

Post by jalper »

Has anyone had any luck using Trinkets with nRF24L01+ 2.4ghz transceivers? The one I'm playing around with, specifically is this: http://yourduino.com/sunshop2/index.php ... tail&p=188

User avatar
AnneBarela
Learn User Page
 
Posts: 757
Joined: Sat Mar 24, 2012 8:56 pm

Re: nRF24L01+ and Trinket

Post by AnneBarela »

It takes 5 pins and Trinket has 5 pins. Not sure the libraries will compile in the space. Also no pins left to really do anything with. I'd be interested if you got it working.

jalper
 
Posts: 2
Joined: Tue Dec 04, 2012 7:15 pm

Re: nRF24L01+ and Trinket

Post by jalper »

TheKitty wrote:It takes 5 pins and Trinket has 5 pins. Not sure the libraries will compile in the space. Also no pins left to really do anything with. I'd be interested if you got it working.
I've been able to get this port of the SPI and mirf libraries to compile and upload to the trinket:

https://github.com/stanleyseow/arduino-nrf24l01

But so far, haven't actually successfully transmitted anything. Very hard to diagnose where the problem is, though (at least with my limited knowledge).

Of course, yeah, the 5 pin thing is going to be a tricky limitation if/when I get this working and want to actually do something with it… might be able to reclaim a pin by not having the trinket be able to do any RX? But I'll cross that bridge when I come to it. For now I just want to get a successful communication test going between a Trinket and an Arduino Uno.

User avatar
AnneBarela
Learn User Page
 
Posts: 757
Joined: Sat Mar 24, 2012 8:56 pm

Re: nRF24L01+ and Trinket

Post by AnneBarela »

See the Trinket Audio Player tutorial for a working SPI implementation. I'm not sure you can easily debug without a protocol analyzer or o'scope.

User avatar
jodaco67
 
Posts: 8
Joined: Sat Oct 12, 2013 9:28 am

Re: nRF24L01+ and Trinket

Post by jodaco67 »

You can also try one of these

http://www.icstation.com/product_info.p ... sHt2jceWm-

It allows you to communicate with an nRF24L01+ over I2C which will save you pins. By default the interface is limited to passing single bytes but it has a programmable ATMEGA48 on board which can be reprogrammed to suit your needs! In theory you could even write a facade for the MIRF or RF24 libraries to work over I2C and program it to the ATMEGA48.

User avatar
AnneBarela
Learn User Page
 
Posts: 757
Joined: Sat Mar 24, 2012 8:56 pm

Re: nRF24L01+ and Trinket

Post by AnneBarela »

I found an interesting article about using the module with a 'tiny85 using only 3 pins and a few components - worth a look:

http://hackaday.com/2014/02/16/nrf24l01 ... ny85-pins/

Locked
Please be positive and constructive with your questions and comments.

Return to “Trinket ATTiny, Trinket M0”