Rotar47

From Tučňák Wiki
Revision as of 09:48, 23 March 2009 by Ok1zia (talk | contribs) (→‎Display)
Jump to navigation Jump to search

Antenna rotator 4.7

Rotar is digitally controlled antenna rotator. It can drive DC commutator motors, AC 2-phase motors or linear motor (superjack) for elevation. It has two independent channels so it can drive two azimutal motors or one azimutal and one elevation motor. Sensors are magnetical contact providing pulses. Each channel has two contacts - one for pulses and second for synchronization. Human control is done by matrix keyboard 4x4 and HD44780 compatible display. It can communicate with PC via TTL-level serial port. Available accessories is USB converter for control using Tucnak.

Principe of rotator 4.7

Gallery

Circuit diagram

Circuit diagram of rotator 4.7

PCB

Note: 600 DPI have images in Full resolution, MediaWiki uses thumbnails.

Sensors

Typical sensor consists of two contacts. They switching "live" wire to ground.

Pulses contact

It generates pulses depended of antenna rotation. Pulses does not depend on rotation direction. Direction is taken from polarity of motor drive.

We use various resolution from 480 to 1060 pulses per 360 degrees. Length of ON and OFF time must be longer than about 2 ms (state is sampled by timer with period 480 Hz). So good idea is to have pulse ratio 1:1.

Typically we use magnet glued on applicable whell in gear. In gears with no space and/or magnetic wheel we used optical sensor. But be aware of RFI if electronics circuit of sensor is near to antenna.

Synchronization contact

Pulses can be lost. So there is synchronization contact at known angle. When this contact is switched on, the rotator is synchronized to the known angle. Switch-on angles are two. First from positive, second for negative direction. Good ide is to have known synchronization angle in direction where operator beams antenna often.

We use magnet on the mast or lobe with switch.

Synchronization contact for elevation must turn on and off between lower and upper stops for both directions.

User control

Display

File:Rotar47usw display.png
Display configured 2x azimuth

Keyboard

Operator can control rotator using matrix keyboard 4x4:

  • * - While pressed, antenna is moving in negative direction.
  • # - While pressed, antenna is moving in positive direction.
  • A - Switch rotator A active. In elevation mode raise elevation.
  • B - Switch rotator B active. In elevation mode lover elevation.
  • C - Stop rotating, deletes number as Backspace, escapes from menu
  • D - Used as Enter for angle confirm or in menu.
  • 4 - Turn antenna by 10 degrees in negative direction
  • 6 - Turn antenna by 10 degrees in positive direction
  • 7 - Turn antenna by 20 degrees in negative direction
  • 9 - Turn antenna by 20 degrees in positive direction
  • three digits number - Turns antenna to entered angle.
  • 399 - Enter menu

Motor types

DC commutator

Wiring of DC motor

AC 2-phases

Wiring of AC motor

Menu

Menu is run by entering angle 399. You can move between menu items pressing A and B, alternativelly by 2 and 8. Next level is entered by D, escape is C.

When configuring, some tasks are not independent. I you are not familiar with implemenation details, please use configuration items in numbered order.

  1. Reset 2xAzim. - Initialize rotator to control two independent azimuthal motors.
  2. Reset Azim+Ele - Initialize rotator to control one azimuthal and one elevation motors.
  3. Autoconfig - Performs automatic intelligent Auto configuration.
  4. Clear stops - Clear all stops (ends of rotation). See later.
  5. Turn left (-1) - Decrement angle by 360 degrees. It's not important, is good to have turn count near to zero.
  6. Turn right (+1) - Indrement angle by 360 degrees. Same sa above.
  7. Fix angle - Use after installation. Turn antenna to the known direction (using compass or beacon) and enter this angle here. Warning: In new installation first turn the antenna over synchronization contact.
  8. Left stop - Turn antenna left (negative) for 1-2 turns respeting antenna cable damage and enter this item. Rotator will remember angle and prevent to turn behind it.
  9. Right stop - As above.
  10. Comm address - Communication address for PC connection. Normally use 240. Decrement and increment address by 4 and 6.
  11. Debug - Dump internal variables. Use A and B to switch channels. Use 2 and 8 for item switching.
    • dbgp - pressing 4 and 6 you can interconnect input pulse pins with speaker connected to CPU pin P1.5. Usable to debug sensor problems by ears. Speaker is not designed on PCB.

Auto configuration

Azimuth

All configuration is done automatically. Motor will make about -1 to +2 turns so keep it in the mind. If motor makes more turns, you have probably broken synchronization sensor. Press C to abort operation.

Elevation

Note this description is made some years after coding. Maybe it can be inaccurrate. Function itself was not very tested, we use it only once for 3cm RS.

  • Use A and B to move to the upper stop. Press D to confirm.
  • Move motor to lower stop.
  • Rotator will go up and down to sniff synchronization. Stops at lower stop.
  • Last step is to teach rotator about real angle. You must enter 20 points for linear approximation.
    1. Press A and B to set elevation.
    2. Get real elevation angle (using water level, angle gauge or something) and set it by 2 and 8.
    3. Confirm angle by D