-
Hello, I'm designing a custom board with atmega 2560 and the ebyte module from the title and I have some questions: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
The primary function of all DIOx pins is to provide digital signals to or from the SX126x. In that they can all be used interchangeably. However, DIO2 and DIO3 also have special functions. DIO2 can act as an RF switch control pin, while DIO3 can act as voltage reference for TCXO. By default, that's the configuration RadioLib uses. DIO1 is then used as a source of external interrupts for the microcontroller. So, if you are going to use the default configuration, DIO1 is an output of the module, while DIO2 is not connected to the microcontroller. E22-400M30S has an RF switch that you have to control using the RxEN and TxEN pins. You could connect RxEN and TxEN to some GPIO pins of the ATmega (and let RadioLib handle the switching), but it's easier to let SX126x handle the switching on its own using DIO2 with a simple transistor inverter (Q3). Q4 isn't really needed, it's just to power up an LED whenever the module is transmitting. The following is taken from my design: https://github.com/jgromes/ESP32-1W-GroundStation |
Beta Was this translation helpful? Give feedback.
-
Hi Jan, just for educational reasons, how's that Q3 transistor will work? |
Beta Was this translation helpful? Give feedback.
The primary function of all DIOx pins is to provide digital signals to or from the SX126x. In that they can all be used interchangeably. However, DIO2 and DIO3 also have special functions. DIO2 can act as an RF switch control pin, while DIO3 can act as voltage reference for TCXO. By default, that's the configuration RadioLib uses. DIO1 is then used as a source of external interrupts for the microcontroller.
So, if you are going to use the default configuration, DIO1 is an output of the module, while DIO2 is not connected to the microcontroller. E22-400M30S has an RF switch that you have to control using the RxEN and TxEN pins. You could connect RxEN and TxEN to some GPIO pins of the ATmeg…