![]() It seems to maybe be using the same ISR behind the scenes as my nRF module, but I don't immediately see why that should be a big problem, and I don't understand why it should cause the radio to hang. I have delved a bit into the two libraries, but I mostly can't make heads or tails of the softwareserial library. The RFID is on pins 4 and 5, while the nRF covers pins 9 - 13 as well as number 2 for its interrupt.īoth of these modules work fine with the sleep and interrupt code separately, but when combined in to a single sketch, the Arduino will wake up due to an RFID tag, read it, then try to send something over the radio and then just hang, waiting for the library call to write() to return. I am sleeping my Arduino and having them wake it up via interrupt when a message has been received or an RFID tag is ready to be read. Apologies in advanced for my extremely hacky code (below).I have an Arduino project that is using an nRF24l01+ radio module over SPI (using this library: ) and an RFID reader over softwareserial. But if I do, after a few seconds I get the error, "i2cread failed: 4". The Odrive controller communicates over SoftwareSerial, and if I don't enable this connection, I can read IMU data consistently fine. I've cobbled together some code mostly using an example from a Kalman filter library. I'm building a balancing robot using an Uno, the Odrive controller, and a MPU6050 IMU breakout.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |