![]() ![]() I tried these pin configuration alone itself on my arduino without connecting the usb shield and nrf24 doesn't work with that pins. Shortly, how are we going to use this " DigitalIO " library with nrf24 that usb host shield and nrf24 will not block each other ? I am confused now. This pin configuration above is coming from the latest nrf24 : RF24 - Arduino Libraries IMHO this is kind of a hack, but essentially a true fix that would allow hardware SPI. Advanced users could solder a wire to this, connect it to a digital pin, and toggle it before accessing other SPI devices. Some older boards may have a jumper or pad labelled 'prog' of which one side is connected to this 'ce' pin. It seems the newer boards have some circuitry to manage this automatically. It turns out that the wiznet chips basically have a CE pin similar to RF24, and it needs to be toggled for other devices to get control of the SPI BUS. Note: Pins are listed as follows and can be modified in the RF24_config.h file I don't have a w5100 to test with, but I've confirmed RF24 works with softSPI after initializing the regular SPI. I fixed some issues with the library that should actually allow the software spi lib or the spi_uart to work in conjunction with the SPI lib, so two can run at once. Ok, so I've had a chance to look more at these issues, n here's what I got: The changes are included for digitalIO, just reinstall and edit the #define SPI_UART or #define SOFTSPI as desired in RF24_config.h. Unless the Arduino is being used as a slave device for the touchscreen, but I don't think that is likely. ![]() I don't understand that myself, since the SPI spec is pretty simple. There are lot's of comments that requires intense knowledge. I download the said library from here GitHub - greiman/DigitalIO: Fast Digital I/O, Software I2C, and Software SPI for AVR Arduino ( ast Digital I/O, Software I2C, and Software SPI for AVR Arduino ). It seems that the usb host shield has same issue with nrf24 too. I found this topic that shows how to use nrf24 with ethernet shield ( I never used or tried an ethernet shield myself too ) which thy use the same SPI. Just copy and paste text and put it in code tags. Don't post pictures of text - as you can see it is unreadable. Maybe it also uses SPI for communication? I have never had a host shield and I don't know anything about it. All the materials I got are new and working so it shouldn't be the problem caused by items but the wiring. I found another solo tutorial which uses arduino mega with this nRF24L01 for Arduino & Raspberry Pi/Linux Devices Library that is working very well Arduino Wireless Communication – NRF24L01 Tutorial - YouTube. tmrh20 nrf24 library with latest edition: RF24 - Arduino LibrariesĪnyone would tell me where am I doing wrong while using arduino mega so I cannot communicate with nrf24L01 ? I made a huge research in the internet, everyone's common speech is " Arduino Mega is problematic with nrf24 ".RF24 nRF24 - YouTubeĢ)nRF24L01 for Arduino & Raspberry Pi/Linux Devices: GitHub - nRF24/RF24: OSI Layer 2 driver for nRF24L01 on Arduino & Raspberry Pi/Linux Devices Watched this tutorial too nRF24L01+ HOW TO FIX: Now sending. The libraries I tried which didn't work with arduino mega but worked with arduino uno:ġ)Arduino driver for nRF24L01 maniacbug: GitHub - maniacbug/RF24: Arduino driver for nRF24L01. I connected CSN to pin 53 ( CSN's other name is SS - slave select ), SCK to pin 52, MOSI to pin 51, MISI to pin 50 at my arduino mega. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |