Comments (19)
Nice, I think the library could definitely use an ATTiny example or two, and I will test it out asap, just FYI I may not have a chance for a few days.
from rf24.
Example tested and added, please let me know if you find any problems with it.
from rf24.
The comment part around the hardware configuration has been screw-up completely. It should show the pinning from nRF24l01 to ATtiny85. In the middle you see an ASCII representation of 8 pins IC. Snippet from sketch shown here:
from rf24.
Hi,
Could it be possible to change or improve your library for doing something like that ?
http://nerdralph.blogspot.com.es/2014/01/nrf24l01-control-with-3-attiny85-pins.html
Or may be with only 4 pins, but wiht 5 five, we only have free the reset pin of the Attiny85.
from rf24.
Op2 - This is something that I've been looking at and discussing, but haven't had a chance to dig into it much more.
Tong67 - The example formatting should be fixed, and the documentation updated
from rf24.
Ciao,
Funziona perfettamente con ATtiny84A
from rf24.
I have created a ATtiny85 setup where CSN and CE pin are not needed (see http://nerdralph.blogspot.ca/2014/01/nrf24l01-control-with-3-attiny85-pins.html). I updated RF24.cpp so that when csn == ce it will use special code based on special hardware configuration. The rf24ping85.ino contains ASCII schematic. Also added ATtiny84 schematic to the sketch. Added new sketch to be determine the settletime delays. Sketch is completely independent of RF24 but gives values that might be changed in RF24::csn() before burn prog to chip. Merged changes with latest master code. All three files are put in zip and available at https://anonfiles.com/file/934e29b4e6fb33cc0748022638fdd8c5
Can there changes be merged into the master code? (Don't know how to do it with git, therefore used the upload zip method, hope it is not to inconveniant).
from rf24.
I also struggeled with examples for use of ATTiny84 and ATTiny85. I would also like to provide some examples for ATTiny8X for simple usage. I would also like to see better documentation of how to get it to work. It took me a couple of hours to get a simple example up and running on a good channel. The interpretation of the scanner example was also not straight forward if you're not familiar with waterfall diagrams. Maybe a beginners guide to work with the library would be good to same some time to get started. I'm willing to write something or document what I have done with some Fritzing schematics for plug&play.
Don't get me wrong, the API documentation and such is good, I only had a hard time to kickstart the whole thing and show and explain things like the ping program. (I'm still wondering why I always got RTT of over 1 second).
I stripped the GettingStarted-Example for 85 and 84 so that it only replies for easy setup. I was not able to get a working 84 example of the ping test.
It's great so see that this project is alive and vivid. Keep the good work up.
from rf24.
tong67: Thanks a lot, your post is great news for me and for lots of people, I hope TMRh20 will have time to check and merge your proposal to the master code.
Thank you very much, tong67 and TMRh20
Best regards,
from rf24.
Errore connessione SSL
https://anonfiles.com/file/934e29b4e6fb33cc0748022638fdd8c5
from rf24.
I have downloaded it perfectly.
from rf24.
Nice work, and thanks for making these improvements! I think the changes will merge nicely into the master branch.
It is nice to have contributions done through github forks & pull requests, just to keep track of everybody who contributes, but I don't mind otherwise.
@lnxbil Feel free to contribute improvements or additional examples. I'll probably just make a new folder under examples for ATTiny sketches, etc. The main documentation can also be modified or pages added by editing the RF24.h file. It is generated with Doxygen. Any kind of contributions, whether youtube videos, blog posts, etc that explain how to do things can be added to the links or new pages as well. *edit to add: RTT over 1 millisecond is normal, RTT over 1 second seems really strange.
from rf24.
I haven't fully tested them yet, but I've merged the changes into a new branch called Updates which can be downloaded here or viewed here
I created a new folder called rf24_ATTiny for any related examples. Once everybody is ok with the changes, and confirmed I didn't mess anything up, I can move it into the master branch.
@tong67 I assumed the timingsearch2pin.tst file was just for your testing, so I only included the .ino file. Please correct me if you intended them both to be included.
from rf24.
I tested the Updates branch successfully. The .tst file was present by mistake, it was a previous saved version. When you commit the changes back into the master the issue can be closed from my point of view. Thanks for the cooperation.
from rf24.
I've had good success with the 3-pin setup as well, and this all looks OK to me.
from rf24.
Hi tong67,
I have been trying your ATTINY85 5 pins example but I'm getting strange responses in the Arduino UNO. I have try both 3.3V and 5V with LED power.
May be it is because my ATTINY85 is fused as 1 Mhz Internal Clock ? It has to be 8 Mhz ??
I don't know what is happening. I have check more than five times all the cables and pins,
Best regards,
from rf24.
I have already try "blink basic" and it works fine, so IC and Arduino as ISP (it is what i use) is working perfect.
from rf24.
I only tested it with 8Mhz setting. Did you use the same core: tiny-core by CodingBadly (https://code.google.com/p/arduino-tiny/)?
from rf24.
[SOLVED]
Excuse me and thank a lot. I'm embarrassed. After checking, putting 1Mhz, and so on, I realized that I have to check this in GettingStarted.ino:
// Hardware configuration: Set up nRF24L01 radio on SPI bus plus pins 7 & 8
RF24 radio(9,10);
In my projects I always use pins 9 and 10, and the RF24 library's default is 7 & 8.
Excuse me.
It works perfect for 1Mhz and for 8Mhz Attiny85. Thanks a lot for all of you.
I will try then the 3 pin stuff.
NOTE: I will contribute soon about a example for getting a ackpayload from a low power sensor (my objetive is to control a relay with an Attiny85 (i will send to it relay state) and it will write an ackpayload (in order not to change between RX and TX) with an AnalogRead value. May be TMRh20 will include that example.
Best regards,
from rf24.
Related Issues (20)
- nRF24L01+ gets recognized as nRF24L01 after software reboot HOT 7
- STM32F411 doesn't receive data HOT 4
- [feature request] support ESP-IDF platform HOT 19
- namespace for utility drivers HOT 3
- Multiple I2C buses In ESP 32 with multiple ports
- ESP32 and two Infrared Temperature Sensors (MLX90614) HOT 1
- Calling radio.available() after failed transmission when using writeFast or startWrite causes interrupt loop HOT 10
- 'make' errors, and RF24 on RPi, aarch64-linux-gnu HOT 18
- [Question] NRF24 Transmitter get "stuck" when powered from wall power outlet HOT 2
- RPi5 uses different gpio pin numbers (per Linux kernel update) HOT 48
- Radio.printDetails(); does nothing for MKR1010 but Radio.sprintfPrettyDetails(buffer); works fine???? HOT 4
- Pipe is sometimes returned at "255". HOT 15
- Is there a known ESP32 Deep Sleep issue with radio.powerDown()? [Question] HOT 19
- Can RF24 library be used with WiFi? HOT 2
- Can RF24 library be used with WiFi? HOT 4
- [Question] setChannel & setDataRate not read correctly by printPrettyDetails ? HOT 4
- ESP32 Core Panic on radio 0; No panic on Radio number 1, same wiring. How to troubleshoot?[Question] HOT 22
- Use Linux kernel's character device API to implement IRQ capability HOT 113
- [Question] R24.h, testRPD(void) "Strong signal > 64dBm" : "Weak signal < 64dBm" HOT 5
- [Question] Issue using the ManualAcknowledgements.ino HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rf24.