A Microcontroller Operated SWR Meter: Unterschied zwischen den Versionen

Aus DL8RDS Wiki
Wechseln zu: Navigation, Suche
(Evaluate an analog value through the ADC)
(Purchase Stuff)
 
(4 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 26: Zeile 26:
 
* http://www.neufeld.newton.ks.us/electronics/?p=241
 
* http://www.neufeld.newton.ks.us/electronics/?p=241
 
* http://www.pr8-online.de/index.php?option=com_content&task=view&id=46&Itemid=33&lang=de Excellent introduction into LCD usage with the LCD screen I am using
 
* http://www.pr8-online.de/index.php?option=com_content&task=view&id=46&Itemid=33&lang=de Excellent introduction into LCD usage with the LCD screen I am using
 +
* http://home.snafu.de/graff/swr.html A similar project with several couplers
  
 
= Shops where to buy the components =
 
= Shops where to buy the components =
Zeile 59: Zeile 60:
 
** 2x diodes Schottkydiode
 
** 2x diodes Schottkydiode
 
** http://www.sparkfun.com/commerce/product_info.php?products_id=8883
 
** http://www.sparkfun.com/commerce/product_info.php?products_id=8883
** 20cm Aircom cable. It has those practical canals in the dielectricum through which you can stick the sensor wires.
+
** 20cm Aircom cable. It has those practical canals in the dielectricum through which you can stick the sensor wires. (nope, I got a directional coupler from Ebay)
 
** The Arduino board and the LCD display
 
** The Arduino board and the LCD display
  
Zeile 67: Zeile 68:
 
* http://www.ladyada.net/learn/arduino/lcd.html
 
* http://www.ladyada.net/learn/arduino/lcd.html
  
== First Steps on Arduino ==
+
== [[First Steps on Arduino]] ==
My first steps on the Arduino platform are successful! Since I have been working on a Ubuntu Hardy platform, I noticed that I would not be able to compile my programs properly because there are some bugs here and there. Anyway, so I decided to upgrade to the most modern Ubuntu Jaunty distribution and now it works fine: I can start the Arduino development environment without problems. Trying out the first little program, the famous "Blink" program which blinks a LED, compiled perfectly. So I started over and plugged the LED into digital output pin 13 and GND and uploaded the code and there it went. The Arduino went blinking!!!
 
  
=== [[Controlling digital Output with the Arduino]] ===
 
 
=== [[Controlling Serial Output on the Arduino]] ===
 
 
=== [[Evaluate an analog value through the ADC on an Arduino]] ===
 
 
=== [[Evaluate an analog value through the ADC on the Arduino Nano]] ===
 
 
=== [[Controlling the Arduino over the serial connection]] ===
 
 
=== [[Controlling an LCD display with the Arduino]] ===
 
 
=== [[Writing stuff to the LCD display with an Arduino]] ===
 
 
=== [[Reading a value from the I2C port with an Arduino]]===
 
 
=== [[Talking to the network with an Arduino]] ===
 
 
=== [[Controlling a PWM over I2C]] ===
 
 
=== [[A I2C controlled, LCD enabled Thermometer]] ===
 
 
=== [[Reading Input from an I2C ADC]] ===
 
  
 
== The Directional Coupler ==
 
== The Directional Coupler ==
  
I'm just about organizing the hardware.
+
Hardware is ready. I managed to find a wonderful Directional Coupler on Ebay. This coupler produces two RF AC currents. One for forward, the other for reflected power. I am leading these currents through diodes into an [http://www.sparkfun.com/commerce/product_info.php?products_id=8883 ACS712 Low Current Sensor], which produces a voltage between 0V and 5V. This voltage again can be measured by the ADC in the Arduino.
  
 
= What's next? =
 
= What's next? =
 +
 +
* Programming the Arduino and master the control of the Transceiver.
  
 
* Come back and see in a few weeks / months...
 
* Come back and see in a few weeks / months...

Aktuelle Version vom 29. Dezember 2009, 05:15 Uhr

1 Project description

This project is related to the SVXLink project. Since I intend to use T7F transceivers for this project, it is highly interesting to detect troublesome antenna and SWR conditions and to be able to shut off the transmitter. The only way to do that is to read out the SWR digitally. And this can be done using an Analog Digital Converter, either directly on a microcontroller board or over an I2C BUS.

BTW, I want to measure some more values:

  • PA temperature
  • Transmitter power consumption / input current
  • Total system input current

And I want to switch some things, too:

  • Be able to switch the transceiver OFF

But very basically this project can also be seen in an isolated perspective: I want to learn how to use a microcontroller and set up a project that's useful for other OMs as well. Notably interesting will be to use the Sparkfun Low Current readout boards and feed this voltage into the ADC that's contained on the Arduino board. so that I possibly don't even need the I2C BUS for this isolated scenario.

The LCD display is a ANAG Vision AV2020YFBF-SJ

2 Other People's work

3 Shops where to buy the components

4 Project Plan

  • Purchase stuff
  • Get familiar with the Arduino board. See how to read out values and to control actuators.
  • Build a directional coupler. Role model: http://www.dj4uf.de/projekt/swr/swr.htm
  • Make sure the readouts of the forward voltages are within a reasonable range. identify peak voltages.
  • Then take the BeagleBoard and be successful measuring voltages through a Analog Digital Converter (ADC).
  • Then connect the coupler to the ADC and see if it's possible to measure the voltages.
  • Then connect an LCD display to an Arduino board.
  • Then successfully control the LCD display and devise a reasonable display readout
  • Then read the I2C bus from the Arduino board
  • Then calculate the SWR based on the readings from the I2C bus and send them to the LCD display
  • Finally build a nice case
  • Write an article and post it in some fancy electronics magazine :-)

5 Progress

5.1 Purchase Stuff

  • 2009-09-04 The BeagleBoard has an I2C header in the expansion port. So it is just a wonderful idea to use it and read out some things. The only problem: It's operated with 1,8V. So I need a bidirectional voltage translator.
  • 2009-09-05 I decided to get the one from Gravitech.
  • 2009-09-10 My ADC arrived. I'm still waiting to receive the voltage translator. And I have bought some books on Arduino programming. Still need to buy the Arduino board and an LCD display.
  • ToDo: Go shopping

There are some guides on how to connect LCD dislays and Arduinos:

5.2 First Steps on Arduino

5.3 The Directional Coupler

Hardware is ready. I managed to find a wonderful Directional Coupler on Ebay. This coupler produces two RF AC currents. One for forward, the other for reflected power. I am leading these currents through diodes into an ACS712 Low Current Sensor, which produces a voltage between 0V and 5V. This voltage again can be measured by the ADC in the Arduino.

6 What's next?

  • Programming the Arduino and master the control of the Transceiver.
  • Come back and see in a few weeks / months...