💬 Connecting the Radio
-
If i buy from aliexpress RFM69HW and when buy i select to seller info that i want 868MHz and on PCB RFM69HW has select/write 868MHz in sketch i must use item:
#define RFM69_FREQUENCY RF69_868MHZ ? -
I m getting symbols when I send Hello World message from Arduino Uno to an Arduino Pro Mini (5V).
Yes I have put an input of 3.3V to the pro mini.
Baud rate used is 9600.
Any clue why this is happening? I can provide the code. -
@LaMB95 are you using a Pro Mini 5V 16MHz or Pro Mini 3.3V 8MHz?
If the wrong variant is selected in the Arduino IDE, all timings will be off, including the timings for serial communication.
I have an arduino pro mini 5V. But I have attached a breakout CP2102 usb connection to it. On the board there is a 3.3V point which I have plugged in as Vcc to the NRF24L01+ module.
To upload the code I have selected the 5V 16Mhz as processor.
-
I have an arduino pro mini 5V. But I have attached a breakout CP2102 usb connection to it. On the board there is a 3.3V point which I have plugged in as Vcc to the NRF24L01+ module.
To upload the code I have selected the 5V 16Mhz as processor.
-
@flopp :
No, it isn't that easy.
To improve your NRF, please have a look at https://forum.mysensors.org/topic/1851/extending-range-of-regular-nrf24l01.I tried solution Nr. 2. It is easy to do and cheap. Improvements are noticeable but not dramatically.
In regard to effort it is worth trying.
If you aimed at changing NRF's frequency - no this is not possible at all. Base frequencies are selected within the chip itself and antenna resonant frequency has to match oscillator frequency.
-
@LaMB95 Interesting. I have never seen a 5V Pro Mini with 3.3V output. Where did you get it?
Try different serial speeds in the serial monitor and see if you get something readable.
@mfalkvidd Haha not really a 3.3 output I changed its input voltge to 3.3 hoping it would work.
But nevertheless I managed to solve the issue.
It seems to be an error in the Hardware serial.Refer: http://forum.arduino.cc/index.php?topic=46458.0
The code bhagman has posted worked !
-
@mfalkvidd Haha not really a 3.3 output I changed its input voltge to 3.3 hoping it would work.
But nevertheless I managed to solve the issue.
It seems to be an error in the Hardware serial.Refer: http://forum.arduino.cc/index.php?topic=46458.0
The code bhagman has posted worked !
It worked yesterday now I am back to the same problem.
What a wonder ! -
Hi !
It seems that the FRM69 library set the IRQ pin as optionnal. Can someone confirm that the IRQ pin is mandatory ?
-
Hi !
It seems that the FRM69 library set the IRQ pin as optionnal. Can someone confirm that the IRQ pin is mandatory ?
-
Well, I had a look in RFM69 driver, and it seems that the interrupts handlers are never sets ?
Am I wrong ?Edit : In facts, DIO0 is not used as an Interrupt source in RFM69 driver : it's a pin that informs the library that, either, a packet has been received, or , the frame we try to send has been sent.
So, the code doesn't use interrupts, but this pin is more a "Data available" pin.
-
@napo7
so, if data available or data sent, this can be an interrupt source for an mcu ;)
It's enabled in the init there https://github.com/mysensors/MySensors/blob/development/drivers/RFM69/RFM69.cpp#L123 -
Yes I noticed it !
Since it didn't mention IRQ pin, I didn't seen it at first !What misleaded me, is that on LowPowerLab forums, some users says that you can absolutely discard this interrupt and poll the radio frequently to ask if a packet is available.
-
I had this working perfectly on my Arduino Uno. I soldered it up to my Arduino Nano and it seems to work ok, but I'm not getting any data sent. The serial says it's connected OK but never sends any motion 1s or 0s. My MQTT server shows the following: Client mosqsub/3449-raspberryp received PUBLISH (d0, q0, r0, m0, 'mygateway1-out/255/255/3/0/3', ... (0 bytes))
Any idea what is going on? I've tested the motion sensor separately and that is sending a high value to pin 3 no worries.
-
I had this working perfectly on my Arduino Uno. I soldered it up to my Arduino Nano and it seems to work ok, but I'm not getting any data sent. The serial says it's connected OK but never sends any motion 1s or 0s. My MQTT server shows the following: Client mosqsub/3449-raspberryp received PUBLISH (d0, q0, r0, m0, 'mygateway1-out/255/255/3/0/3', ... (0 bytes))
Any idea what is going on? I've tested the motion sensor separately and that is sending a high value to pin 3 no worries.