Différences entre versions de « ENG-CANSAT-RFM69HCW »

De MCHobby - Wiki
Sauter à la navigation Sauter à la recherche
(Contenu remplacé par « {{ENG-CANSAT-NAV}} {{COMMON-CANSAT-ANTENNA}} {{ENG-CANSAT-TRAILER}} »)
Balise : Contenu remplacé
Ligne 1 : Ligne 1 :
 
{{ENG-CANSAT-NAV}}
 
{{ENG-CANSAT-NAV}}
  
== RFM69 Radio Module ==
+
{{COMMON-CANSAT-ANTENNA}}
Before starting make sure you have your Feather and Arduino working properly with basic functionalities. This will make this part more easier and you can upgrade your project to radio transmission.
 
 
 
[[Fichier:ENG-CANSAT-RFM69HCW.png|360px]]
 
 
 
Both RFM69 and RFM9x LoRa breakouts have the exact same pinouts! And they exists in 900 MHz or 433 MHz flavor.
 
* The silkscreen identify the RFM69HCW -OR- LoRa
 
* The 900 MHz modules have a green or blue dot on top.
 
* The 433 Mhz modules have '''a red dot''' on top.
 
 
 
The sub-GHz radio transmission does have lower throughput so it is not made to stream audio or video! The sub-GHz is suited for small packets of data. The data rate is adjustable but its common to stick to around 19.2 Kbit per second. Lower is the rate and better woud be the transmissions.
 
 
 
To use such modules you will need both of them! The radios must be matched in frequency (eg: 433 MHz & 433 MHz will match, 433 MHz & 900 MHz will not match).
 
 
 
The both module must use the same encoding schemes. You cannot use a RFM69 900 MHz packet radio together with a RFM9x packet radio (LoRa).
 
 
 
{{ambox|text=In Belgium, you cannot use the RFM69 900 Mhz without having the appropriate license, see this [https://www.bipt.be/en/operators/radio/frequency-management/frequency-plan "IBTP Frequency Plan" link for more details].}}
 
 
 
According to the same "[https://www.bipt.be/en/operators/radio/frequency-management/frequency-plan IBTP Frequency Plan]" the RFM69HCW should be used between 430-440 MHz.
 
 
 
== Raw vs Packet Transmission ==
 
[[Fichier: ENG-CANSAT-RFM69HCW-SX1231.png]]
 
 
 
The SX1231 module used on the RFM69 breakout board can be used in 'raw Rx/Tx' where it modulates incoming bits (from pin #2) and sends them on the radio. In 'raw Rx/Tx' there is no error correction and no addressing. This mode is weak and error prone so it will not be covered.
 
 
 
Packet mode will be suited for almost 99% of use cases. When packetized, the code can setup a recipient for the data, ensure error correction (''data transmitted correctly''), automatic retries on transmission error and acknowledgement when the packet is delivered. In packet mode, you got a reliable data pipe, transparent communication without getting care about the complex details of data transmission over radio frequencies.
 
 
 
With a SX1231 module, the complexity is reduced to 4 main characteristics more easy to handle:
 
* the frequency to use
 
* the power level to use
 
* the encryption key to use
 
* the appropriate antenna (depending on the expected transmission range)
 
 
 
== Power Pins ==
 
[[Fichier:ENG-CANSAT-RFM69HCW-Power.png|240px]]
 
 
 
* '''GND''': Common ground between logic and power.
 
* '''Vin''': Power In 3.3 to 6V. The board regulated it to 3.3V. '''Be sure you can supply up to 150mA''' on this pin since Radio Emitting can reach this current level.
 
* '''EN''': Enbable Pin used to switch off the Power supply (and the radio module). EN pin use a pull-up resistor to maintain the regulator enabled, just set it to LOW to switch off the radio.
 
 
 
== SPI Interface Pins ==
 
Those pins are use to communicate with the host micro controller. The standard SPI bus pins are MISO, MOSI, CLK and ChipSelect.
 
 
 
This radio breakout also expose the radio RESET pin and radio INTERRUPT pin (named G0) to offer a better control over the Radio communication.
 
 
 
[[Fichier:ENG-CANSAT-RFM69HCW-SPI.png|240px]]
 
 
 
{{ambox|text=All the pins (except extra GPIOs) are wired thought a level shifter. This means that logical level (3.3 or 5V) will be compatible with the voltage applied on Vin!}}
 
 
 
* '''MISO''': Master In Slave Out. This pin is used to send data from the radio (the slave) to the micro controller (the master).
 
* '''MOSI''': Master Out Slave In. This pin is used by the micro controller to send data to the radio.
 
* '''SCK''': Clock signal used to synchronise bits exchanges between the Master and the Slave.
 
* '''CS''': This is the '''C'''hip '''S'''elect. Place it to LOW level to initiate transaction with the radio module. The CS pin make sense when several slaves (eg: radio module + LCD display) are present on the SPI bus. 
 
* '''RST''': The '''reset''' pin of the radio module. Set it to LOW to reset the radio module.
 
* '''G0''': This is the GPIO 0 pin of the radio module. This pin has a special interruption function attached to it because it act as '''IRQ''' (Interrupt Request) pin. The radio module manipulate it to send to notification toward the micro controller. This pin is in 3.3V logic.
 
 
 
== Antenna spot ==
 
[[Fichier:ENG-CANSAT-RFM69HCW-Antenna.png|240px]]
 
 
 
There are 3 ways to connect an antenna on this spot.
 
 
 
The cheapest is the wire antenna (a simple dipole) and the best option is the SMA connector.
 
 
 
{{ambox-stop|text=An antenna is ABSOLUTELY REQUIRED to allow any data transmission. No communication possible (even 1 meter) without antenna.}}
 
 
 
For testing purpose, we suggest to twist a wire inside the antenna hole (take care to not touch the ground spots with the wire).
 
 
 
Later on, you would focus on antenna choice:
 
* A wire inside the antenna hole (said a ''wire dipole'').
 
* A {{pl|1418|µFl connector}} to plug antenna.
 
* A {{pl|1419|PCB SMA connector}} also to plug other kind of antenna.
 
 
 
A µFl connector (also named uFl) is looking to this:
 
 
 
[[Fichier:ENG-CANSAT-RFM69HCW-TEST-uFL-connector.jpg|150px]] 
 
 
 
A PCB SMA Connector is looking to this:
 
 
 
[[Fichier:ENG-CANSAT-RFM69HCW-TEST-SMA-connector.jpg|150px]]
 
 
 
[[ENG-CANSAT-ANTENNA|The CanSat tutorials also have a section dedicated to the Antenna and alternative communication devices]]
 
 
 
== Extra GPIOs Pins ==
 
[[Fichier:ENG-CANSAT-RFM69HCW-GPIOs.png|240px]]
 
 
 
The radio module also feature 5 additionnal GPIOs (from G1 to G5) to raise interrupt request depending specific conditions.
 
 
 
As they are usually free for use (not used for notification or radio functions) you can control them for the purpose of your project.
 
 
 
Those pins are '''3.3V logic without level shifting'''.
 
 
   
 
   
 
{{ENG-CANSAT-TRAILER}}
 
{{ENG-CANSAT-TRAILER}}

Version du 27 février 2022 à 03:20


Introduction

What ever you do, the antenna is always one of the most sensitive component when working in the radio area.

The following schema shows how to wire the RFM69HCW to transmit data.

ENG-CANSAT-RFM69HCW-TEST-00.jpg

As you can see, the antenna is made of a simple wire.

Remove the wire and the data would not transmit at 1 meter of distance, even on the same desk!

Remember, the antenna is the key to transmit data over a long distance!

Antenna connector

The radio modules usually offer a spot to solder antenna.

With the RFM69HCW the antenna spot allow you to connect an antenna in 3 different ways.

ENG-CANSAT-RFM69HCW-Antenna.png

Later on, you would focus on antenna choice:

  • A wire inside the antenna hole (also said a wire dipole or simple dipole).
  • A µFl connector to plug antenna.
  • A PCB SMA connector also to plug other kind of antenna.

The cheapest antenna is the wire antenna (simple dipole) and the best option is the SMA connector (also mode heavy).

The µFl connector (also named uFl) is looking to this:

ENG-CANSAT-RFM69HCW-TEST-uFL-connector.jpg

A PCB SMA connector is looking to this:

ENG-CANSAT-RFM69HCW-TEST-SMA-connector.jpg

Ground Station - Yagi Antenna

While reading some resources on the QSO magazine (Magazine from Belgian Radio Amateur Association written in dutch and french), we did discover a Yagi Antenna tuned for 433Mhz.

ENG-CANSAT-ANTENNA-10.png
Source: QSO Magazine via this publication - click to enlarge

This antenna was engineered from the "Cheap Yagi" (pdf), issue from the "Controlled Impedance 'Cheap' Antennas" article written by Kent Britain WASVJB.

A simple rule of three can be used to adapt the antenna to other frequencies (the antenna was already adapted from a 432 Mhz design).

6, 7 or 11 elements

The Yagi antenna showed here upper does have 6 elements.

From a deeper read of the QSO magazines series, we learned that 6 elements Yagi can offer a gain up to 11.2 dBi.

The Yagi with 7 elements will offer the best ratio for performance / size.

It seems that the 11 elements Yagi (see original document) will double the gain. Whoaw!!!

About Yagi Antenna

Here some very basic information about Yagi antenna. It brings fundamental concepts that you will deal off with such antenna.

Radiation Pattern

The radiation pattern is the direction or directions where the signal will be emitted (or received).

So for a given transmission power, a directional antenna would send the signal further than an hemisphere antenna. Indeed, directional antenna would concentrate all the power is one direction where as hemisphere antenna would spread the same power all around.

The Yagi antenna does support several radiation pattern but "Yagi" is often used in place of "Directional Yagi".

  • Isotropic Antenna : radiate the same in all the direction.
  • Directional Antenna (or Beam Antenna) : radiate most of its power in one or more direction. This increase the performances in the direction while reducing the interference coming from the other directions.
  • Omni Directional antenna : uniformly radiates the power in one plan. With a directive pattern shape in perpendicular plane. This antenna radiates equally in all the directions and have some angle of elevation (dixit elprocus.com)
  • Hemispherical antenna : radiates one half of the hemisphere (the lower or the upper one)

Common Design

The antenna lengths and spacing are depending on the wavelength to capture.

ENG-CANSAT-ANTENNA-30.png
Source: design of Yagi Uda Antenna

  • Directors : used to drive the signal in the given direction. Those directors are usually shorter than driven element (about 5%).
  • Driven element : is the element that capture or emit the signal.
  • Reflector : reflect the signal toward (or coming from) the driven element. The reflector is larger than driven element (about 5%).

Because of the antenna design, the maximum of radiation is in the way of director.

ENG-CANSAT-ANTENNA-31.png

Needed Material

A cheap Yagi antenna could be realised with plastic material (or wood) and some very tick wire.

ENG-CANSAT-ANTENNA-32.png

However, the standard Yagy Antenna (and the best ones) are made with aluminium pipes.

Resource

CanSat and Antenna

As specified by the CanSat settlement, everything should be contained within a defined volume (the Can).

So, the antenna should also fit into the volume.

However, once the can is released in the air, your project can deploy an antenna.

A well designed antenna for sending the data would also reduce the error ratio on the ground station.

Quarter WaveLength Antenna

It is possible to create a small antenna made of a simple thread of Wire.

The thickness is not especially critical but the length is very important.

The ideal Length can be calculated with the following formula:

       c
L = -------
     4 x f 

Where:

  • c : is the light speed (in m/s)
  • f : the frequency (in hertz) for the antenna
  • 4 : because it's a quarter length antenna.

So for a 433 Mhz, this will gives:

        3x10E8
L = -------------- = 0.1732m
     4 x 433*10E6 

So an antenna length of 17.32 cm.

Quarter WaveLength & Polarization

When using such antenna, you have to think about the polarisation of your signal, Andeas Spiess shows it into its YouTube video 'A closer look at the “black magic” of antennas, how they work, what is essential, and how to test them'. If you miss this very simple point, you will lost lot of gain and loose data.

ENG-CANSAT-ANTENNA-13.png

Other Antennas

We encourage you to search antenna with better performance, the Dipole Antenna is one of best choice when starting (easy to do with good performance).

Being creative may offers significant advantages in antenna design. A good antenna will maximize the transmitted power to the ground station.

ENG-CANSAT-ANTENNA-12.png

7 Rules for Radio Antennas

ENG-CANSAT-ANTENNA-16.png

  • Rule #1: Use short, high quality and thick antenna cables.
  • Rule #2: An SWR below 2 is acceptable (less than 11% of power is reflected so we have much of the power available for transmission).
  • Rule #3: Always connect an antenna to the sender (otherwise 100% of signal is reflected, which may kill the sender)
  • Rule #4: Keep the polarization of your antennas the same way.
  • Rule #5: The more dBi, the more power in one direction.
  • Rule #6: With a proper antenna setup, the distance in air is not an issue if we have a line of sight.
  • Rule #7: Longer is not always better for antennas. Smarter is better.

All coming from the famous video of Andreas Spiess.

What is SWR?

SWR (Standing Wave Radio) measure the performance of signal emitted in the atmosphere. This value is available on the antenna technical datasheet or can be evaluated with appropriate measurement device.

On a radio board, the signal is generated by the transceiver, flowing into the antenna cable and finally through the antenna to be emitted into the atmosphere.

Depending on the antenna, there is some rejection of the signal back to the transceiver. This means than a portion of the signal is not emitted to the air! This is why the SWR measurement is done.

A poor antenna design will have greater SWR (>2) meaning that range of transmission (or reception) will be reduced! Very bad SWR may even damage the transceiver!

The worse case is when there is no antenna, in this case, the rejection ratio is 100%. Nothing is emitted to the atmosphere and all the signal is send back to the transceiver (which may possibly destroy it!

SWR Description
1.0-1.5 The ideal range! an SWR under 1.5 is really great. Getting under 1.5 (closer of 1) is possible but difficult, you may consider additionnal tuning, other equipment and different mounting location. However dropping under 1.5 (to 1.0) would not increase the performance in significant manner.
1.5-1.9 This range will provide an adequate/acceptable performance. Due to installations, it's sometime impossible to get an SWR under that range. This SWR range often means that your tuned antenna is not mounted in a less-than-ideal location. To troubleshoot, search for paper dealing about "problematic antenna mounting locations". Going to from 2.0 down to 1.5 will really offer noticeable performance improvement.
2.0-2.4 While not good, this likely won't damage your radio with casual use. However, you should definitely try to improve it if you can. SWR in this range is usually caused by a poor antenna mounting location and/or a poor choice of equipment for your specific vehicle. To troubleshoot, you'll likely need to move the mounting location and/or use a more suitable antenna. It's by no means a good tuning job, but will function if you've exhausted all other troubleshooting possibilities.
2.5-2.9 Do not operate radio in this range. SWR in this range offer antenna with decreased performance. With range in 2.5 - 2.9 you may even damage the transceiver in case of long period (or frequent) transmitting. This bad SWR range may be caused by poor mounting location, poor equipment. To solve: change your location and/or antenna.
3.0+ DO NOT OPERATE RADIO IN THIS RANGE. SWR in this range would have bad performance and this will probably damage the radio when use. You SHOULD NOT transmit with a SWR levels above 3.0. This is almost always the result of a poor ground or incorrectly assembled material (it may also indicates a faulty coax, faulty antenna, SWR meter not properly attached).

The SWR can be measured with appropriate device, it is maybe time to find a Radio Amateur club around your location.

ENG-CANSAT-ANTENNA-14.png

Learn more about:

Getting Help from Radio Amateur

Designing and testing an antenna for long distance communication is an intensive work.

You could find some help from our Radio Amateurs friends.

To locate a Radio Amateur Club near of your home then have a look the "Maker's Maps" owned at MC Hobby.

ENG-CANSAT-ANTENNA-20.png

A yellow mark indicates the Radio Amateur clubs.


Written by Meurisse D. from MC Hobby - License: CC-SA-BY.