Software development

Hans has, as hobby projects, developed web apps, flash applications and done microprocessor programming.

He has used coding languages and techniques such as Mainframe BASIC, MacBASIC, Actionscript, PHP, HTML, CSS, XML and Javascript.

This page describes the projects.

Mainframe BASIC

The type of TTY-terminal Hans used. Image by ArnoldReinhold - Own work, CC BY-SA 3.0.

How to win on roulette

During high-school year 1975, Hans has access to a mainframe computer through a TTY terminal at Bezeliusskolan in Linköping.

He writes a program that calculates how to bet in roulette in order to win. The algoritm is based on that the person betting has an unlimited resource of money.

The program is stored on punch tape.

MacBASIC

Trade name generator

xxx.

xx.

Microprocessor programming

Hans uses C to create source code that is compiled for PIC-processors.

DCF simulator

The DCF Simulator is a hardware device that can set radio-controlled clocks to any date and time. It has 3 PIC-processors for different tasks running compiled code, coded in C.

The source code is compiled using the CC5X C Compiler.

Part of the program code for PIC16F886.

Version history

Date Version Description
2010-02-07 2.1 Final version.

Web apps

Hans uses HTML, CSS and Javascript to create web applications that a run in the client browser.

Optisk signalering

Optical Morse code signalling is a web app written as a single HTML page with Javascript and CSS, with one additional "About" file.

The application simulates the type of signalling Hans performed during his service in the Swedish Navy. Some characteristics:

  • Send: Text entry with morse code translation.
  • Receive: Random characters, words, sentences are sent to be interpreted.
  • Flash: Manually operate the lamp and the characters will be interpreted by the app.
  • Lamp light: White, red or green.
  • Transmit speed: 5-17 words per minute.
  • Language: Swedish, English and Russian.
  • Views: Missile boat, destroyer, minelayer and signalman.
The signal lamp without filter for daylight, and with red and green color filter for signalling in the night.
Version 1.1 and 1.5.

Version history

Date Version Description
2021‑05‑15 2.1 Final version.
2021‑04‑02 2.0 Added functions for random sending of characters/word/sentences for reception practice. Added function for manual operation of lamp with interpretation of flashing. Responsive design for vertical/horisontal view on small screen devices.
2021‑02‑19 1.5 Added 3 more views; missile boat, destroyer and minelayer. Added English and Russian language.
2019‑04‑05 1.1 Adjusted length of dah and word space. Added text under "About". Removed high speed selections.
2018‑05‑02 1.0 First version for sending characters.

RASOR – Radio-orienteering simulator

Rasor 3.0 is a web app written as a single HTML page with Javascript, CSS and JSON. The application can run in 4 modes:

  • Demonstration: Foxes transmit in sequence.
  • Identify foxes: Listen to the transmission and click on the correct transmitter button.
  • Find foxes: Find the foxes using 2 bearings per fox.
  • Handheld: Use your smartphone as a receiver.

Radio-orienteering is also known as ARDF, Amateur Radio Direction Finding.

The simulator in mode Identify foxes.
Selections that can be made: Language, mode, number of foxes, and transmit interval.

Version history

Date Version Description
2016‑04‑03 3.0 Final version.
2016‑03‑27 3.0 Added running time clock. Added text "Fox" with morse code.
2016‑03‑25 2.0 First offical version. Resize of handheld canvas.
2016‑03‑06 2.04 Added compass sensor for handheld devices.
2016‑02‑24 2.03 Morse code via oscillator.
2016‑02‑20 2.02 Morse code via sound file.
2016‑01‑06 3.03 6 transmitters
2016‑01‑03 1.01 First version, 3 transmitters

DCF77 Demonstrator

DCF77 Demonstrator demonstrates the radio signal interface of the transmitter used to set the time of radio-controlled clocks in Europe.

  • Signals shown: The binary bits sent over the radio frequency 77,5 kHz.
  • Parameters than can be set: All time parameters used in the DCF77 protocol. No weather data.

Version history

Date Version Description
2011‑02‑20 First test version Work in progress

Flash applications

Hans creates Macromedia Flash applications programmed in ActionScript. The programming language is popular during the turn of the century and the coding is object-oriented.

Simulator RasorLite

Simulator: RasorLite

Description: RasorLite is a simulator of radio orienteering on the 144 MHz frequency band. Rasor Lite is multi-lingual with 6 different languages and can run on small screen devices like a Pocket PC PDA. The simulator can run in 2 modes: Training and Competition. In Competition mode there is a high score list.

Design challenges: Small physical size for small screens, multi-language support, php and MySQL for score, language text set by external XML file.

Released: Version 1.75, 2005-06-25

Details: 240×320 pixels, 108 kB swf file

Files: Swf file | ActionScript file (fla) | Part of HTML file | Program structure | Main source code | Finnish translation source | Czech translation source.

Game Rasor-144

Game: Rasor-144

Description: A simple radio-orienteering game to be embedded in an HTML page..

Design challenges: Small file size, easy to run, limited number of controls, 3D rendering of antenna.

Released: 2006-04-03

Details: 400×225 pixels, 108 kB swf file

Game Rasor-X.

Game: Rasor-X

Description: A radio-orienteering game. There are 18 hidden posts in 6 levels and your score can be published on the high score list.

Design challenges: Multi-level game, 3D rendering of antenna, php and MySQL for score.

Released: Version 1.1 2006-04-10

Details: 600×400 pixels, 305 kB swf file

Simulator Rasor-Posts

Simulator: Rasor-Posts

Description: A demonstration of how the different posts in radio-orientering sound. The demo has one demo mode and one quiz mode where you can test yourself.

Design challenges: Small file size, easy to understand, requiring no instructions.

Released: 2007-04-15

Details: 400×225 pixels | 104 kB

Files: Swf file | ActionScript file (fla) | Part of HTML file.

Christmas card

Animated card: Christmas card

Description: Christmas card with animation.

Design challenges: Integrate 3:rd party fireworks code.

Released: 2008-12-20

Details: 640×360 pixels, 98 kB

Files: Swf file | ActionScript file (fla) | Part of HTML file.

Rasor2

Work in progress, game: Rasor2

Description: A full screen simulator of radio orienteering on the 144 MHz frequency band. Not fully developed yet.

Design challenges: The flow of activites should correspond to the reality, getting the map, moving to the start position, finding posts and running to the finish, where the time is registered.

Released: Not released, last editing 2006-06-17

Details: 800×550 pixels, 165 kB swf file

Files: Main source code.

xxxx

Work in progress, simulator: DCF 77 Time signal

Description: A simulator of the coding of the DCF long wave transmitter for radio controlled clocks.

Design challenges: Coding and generating square wave.

Released: Not released, last editing 2009-11-22

Details: 650×450 pixels, 50 kB swf file

Files: Swf file | ActionScript file (fla) | Part of HTML file.