nRF24L01+ and Trinket
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 2
- Joined: Tue Dec 04, 2012 7:15 pm
nRF24L01+ and Trinket
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
- AnneBarela
- Learn User Page
- Posts: 757
- Joined: Sat Mar 24, 2012 8:56 pm
Re: nRF24L01+ and Trinket
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.
-
- Posts: 2
- Joined: Tue Dec 04, 2012 7:15 pm
Re: nRF24L01+ and Trinket
I've been able to get this port of the SPI and mirf libraries to compile and upload to the trinket: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.
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.
- AnneBarela
- Learn User Page
- Posts: 757
- Joined: Sat Mar 24, 2012 8:56 pm
Re: nRF24L01+ and Trinket
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.
- jodaco67
- Posts: 8
- Joined: Sat Oct 12, 2013 9:28 am
Re: nRF24L01+ and Trinket
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.
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.
- AnneBarela
- Learn User Page
- Posts: 757
- Joined: Sat Mar 24, 2012 8:56 pm
Re: nRF24L01+ and Trinket
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/
http://hackaday.com/2014/02/16/nrf24l01 ... ny85-pins/
Please be positive and constructive with your questions and comments.