A Universal Mobile / Embedded SSTV System  

Table of contents

Purpose

The finished SSTV System
The (nearly) finished SSTV System
 
An example picture sent by this SSTV system

Based on the Universal PIC Board and the SSTV Test Generator this page presents a mobile SSTV System, usable for mobile SSTV by operators as well as automatic SSTV system used in bacons or other unmaned mobile SSTV applications like for example balloons.

 

DISCLAIMER

THIS SITE  INCLUDING ALL  ITS CONTENT  (TEXT, PICTURES,  BINARIES ETC.)  IS NOT
ALLOWED TO BE  USED IN CRIMINAL OR  ILLEGAL ACTIVITIES. IT IS FOR NON COMERCIAL
PURPOSE ONLY! I  AM IN NO WAY RESPONSIBLE FOR  ANY EXTERNAL CONTENT  POINTED TO
FROM THIS SITE.   UNDER  NO  CIRCUMSTANCES I  AM RESPONSIBLE  FOR  ANY  DAMAGES
TO YOUR RADIO, PC OR OTHER  EQUIPMENT. USE THIS  SITE  AND  ALL OF ITS  CONTENT
AT YOUR  OWN  RISK! BY USING  THIS  SITE  AND  ITS  CONTENT  YOU HAVE  ACCEPTED
THIS DISCLAIMER.

Features

Every OM beeing mobile QRV may know the situation where you would like to describe your QSO partner, maybe some hundred kilometers away, some situaton or picture. As we know - a picture says more than 1000 words. For "normal" mobile operators using multimedia mobile phones this is normaly not a big problem but for HAM's it is not that easy. Sure we have more possibilities sending still images by using high quality cameras, laptops and good software - but we will pay the price in size and weight. I bet most of us wont carry a mobile transceiver, power source / batteries, amplifier, laptop, camera and cables etc. with us. So thats why I designed this mobile SSTV system in size of just a third of a Euro Board which connects to your transceivers NF input.

In the past there where already some devices with resonable size like the Kenwood VC-H1 which allows to be mobile SSTV QRV. But unfortunately they disapear from the market but maybe still available on eBay.

Kenwood VC-H1
The Kenwood VC-H1

Despite of the fact that the presented SSTV system is very simplistic (just 3 buttons and 2 LED's) it has a lot to offer:

  1. It transfers pictures in Martin1 mode either as color or B/W with 320 x 240 or 320 x 256 pixels
  2. Supports SSTV VIS code
  3. Free text station id transmission after SSTV picture transmission in CW (can be turned off)
  4. Send a captured picture many times using either color or S/W
  5. Supports two user defined action buttons
  6. 3 LED's for status display (Power, On Air, Error)
  7. Built in battery backed real time clock (RTC) for date and time display in pictures or CW transmissions
  8. Temperature sensor to transmit the current temperature either as text inside the picture or as CW
  9. User definable statustext for display in transmited pictures
  10. Statustext position in picture can be top, middle, bottom or off
  11. Free fore- and background color selection for the statusbar
  12. By using a Font Editor (see here) user defined character sets can be created and uploaded to the SSTV system. This way users can create small graphics, icons or even foreign language fonts (eg. cyrillic) for use in the statustext
  13. For diagnostic purposes a colorbar pattern test image can be transmitted with or without statustext
  14. It's possible to send camera pictures mirrored
  15. Configuration is done via a RS232 connected PC and a simple terminal software like Windows HyperTerm
  16. In depth diagnostics like modifying camera registers or dump the EEPROM conten can also be done using the PC
  17. A analog FBAS B/W video signal for calibration is available on connector J3
  18. Possibility to control a receivers PTT via Pin 3 of J1, J2 ord J4
  19. Very small form factor. The whole system consists of two stacked boards each 10 cm x 5,3 cm in size
  20. Can be very easily integrated into other projects
  21. Pin 2 of connector J1 and J2 can be used as PTT controll. It is high during a transmission and low otherwise

Due to the small form factor a dual sided board was necessarry however the usage of SMT parts could be reduced to only a few. The SSTV Board is connected to the CPU board vie connector BUS so that both boards build a stack.

Schematics

A description of the CPU board con be found here. The digital camera module CAM-3188A which uses a OV7620 CCD Sensor is controlled by using a I2C bus the same way as the Temperature Sensor TC74 and the real time clock DS1307 are. To ensure that picture are taken in good quality most of the time the camera module is run in automatic mode for white balance, brigthness etc. If a picture should be sent the camera writes it into memory IC4 as a YUV byte stream. From there the CPU reads the data calculates RGB from YUV and then converts RGB into NF frequencies for sending. 1900 Hz represents black, 2300 white and 1500 Hz represents a sync pulse. This NF signal is processed by one ore two NF filters before it is sent. By opening and closing the solder jumpers Bx1 - Bx3 the filters can be configured. This way you can omit the switched capacitor filter IC3 a MAX7419 which is a litle bit tricky to solder and use only the following R/C filter. The image memory uses a 3V power supply and therefor IC6 is used to provide this.

Download

You can download zip files including a pdf file of the PCB and schematic as well as the boot loader and the firmware. First burn the bootloader to the pic microcontroller an then use the bootloader to burn the firmware. Optionally you can burn the firmware direct without using a bootloader.

VersionFile
Version 1.0sstv-v1.0.zip
Version 1.5sstv-v1.5.zip
Version 1.10sstv-v1.10.zip

The PCB

These are some pictures of the v1.0 board. Newer board layouts meight be released so please have a look at the zip files in the download section.

   Componen placementPCB full view
  
   
   PCB top side   PCB bottom side
  

Usage

To be SSTV QRV the system must be first configured. After connecting it to a PC's serial port using a 1:1 RJ-45 to DB9 cable and setting the communication parameters in your favourite terminal software (e.g. HyperTerm) to 9600 baud, 8 data bits, 1 stop bit, no parity and hardware handshake the system can be powered up. You should see the main screen and the prompt > waiting for input. The input prompt is also shown after a CR/LF (press Enter key)

Following you will see the three menues/screenshots of the firmware which allows configuration, diagnostics and operation. After pressing Cc (uppercase and lowercase c you will be presented with the configuration dialog. First you should set your callsign and other station rfelevant parameters. Next connect the output on connector xxx to your PC's soundcard input and start your favourite SSTV software (e.g MMSSTV). After pressing p (lowercase p) your software should start picture reception and after a while you should see the transmitted picture. If this test was successfull you can connect the output to your transceiver and start some SSTV QSO's.


 Version: 001.010


 *** Main Menu ***

 t - Send a colorbar testpattern
 p - Take color picture and send it
 P - Take black and white picture and send it
 a - Start automatic mode, end with ESC
 A - Same as 'a' but with 'g' (10 seconds) during wait
 l - Resend last picture in color
 L - Resend last picture as BW
 i - Send the Station ID (OE1RIB) in CW
 1 - Send the picture statusbar in CW
 2 - Send the testpattern statusbar in CW
 c - Send interactive CW
 C - Configure system
 g - Wait 30 sec for GPS NMEA position
 D - Diagnostics
 ? - This helpscreen
                                                            
 >


 *** Config Menu ***
 
 c - Configure system
 c - Set clock
 s - Show system status
 r - Reset system to defaults
 f - Upload font
 a - About
 ? - This helpscreen
 < - Back to Main Menu
                                                            
 >


 *** Config Dialog ***

 Current time: 23.07.2010 21:30:11, Temperature: 033 C
 StationID: OE1RIB
 Send StationID after transmission (Y/N): Y
 Mirror camera image (Y/N): N
 Large (256 = Y) or small (240 = N) image: Y
 Key action: p
 Time (seconds) between pictures: 010
 Macros: %C-Call, %V-Ver, %T-Temp, %d-Date, %t-Time, %L-Lat, %l-Lon 
         %D-Day, %M-Mon, %Y-Year, %h-Hour, %m-Min, %s-Sec, %p-Pic#
		
 --- Camera Picture ---
 Statusbar (N-none, T-top, M-middle, B-bottom): T
 Current Statusbar font size (1-3) : 1
 Statusbar format: %C %h:%m %L, %l, %p
 Current Statusbar color (RRGGBB):
         foreground: FEFEFE      background: 0051D7
		
 --- Test Picture ---
 Statusbar (N-none, T-top, M-middle, B-bottom): M
 Current Statusbar font size (1-3) : 1
 Statusbar format:     *** SSTV Bacon %C ***
 Current Statusbar color (RRGGBB):
         foreground: FFFFFF      background: 000000
                                                            
 >

 
 *** Diagnostics Menu ***

 --- OV7620 Diagnostics ---
 c - Reset Camera
 C - Take picture
 D - Show registers
 P - Dump out picture

 --- NF Diagnostics ---
 0 - Turn tone oscillator off
 1 - Turn tone oscillator on
 k - Sends a 1000Hz test tone
 2 - send 1500Hz
 3 - send 2300Hz
 f - Enter Frequency Word (00:00-FF:FF)
 F - Enter Frequency Value (00-FF)

 --- System Diagnostics ---
 r - Reset RTC and start oscillator
 d - EEPROM Editor
 i - Scan I2C Bus
 ? - This helpscreen
 < - Back to Main Menu
                                                            
 >

Notes & Comments

The firmware of the system is written entirely in about 20000 lines of assembler code and uses about the half of the used PIC 18F458. There there is enough room for improvement like:

in the Press

This paper can also be found in the german HAM Radio Magazine
"Funkamateur" at www.funkamateur.de, Issue 08 / 2007, Page 868,
Title: "SSTV-Sendemodul auf Basis eines universellen PIC-Boards"

Credits

If you have any comments or sugestions just drop me a line.

73, OE1RIB