All posts by ingmarsretro

Selfmade ROM module for Vectrex

Loading

edit Nov. 2024: I keep receiving requests to make the Gerber files for the circuit boards available for reproduction. The download is now possible with this link:

vectrex_rom27c1001

For the Vectrex game console a home arcade machine from 1982, there were, or there are a very limited number of game titles available. I will present the Vectrex itself, or the restoration of this darling, in a separate article.

The games were available in the form of ROM modules and had to be inserted into the side of the console. Today, like the console itself, they are pretty rare and difficult to find. In terms of price, they are usually not bargains either. There are also replicas, multiroms and some DIY projects that keep the game program or even several games saved on the basis of the old EPROMS and were thus playable via a “module”. Since I also have all sorts of Eproms with different sizes in the component store and also got a couple of 27C512 Eproms sponsored by a colleague (thank you Jürgen), I just had to try to tinker with a ROM module.

originale Vectrex ROM-Module board

So quickly thought about what I would need for this. Here is a small list:

  • old EPROMS (I use Eproms that can be erased with UV light)
  • an Eprom programmer (in the back corner of a box I found a ChipLab programmer with a parallel interface)
  • an old computer with a parallel interface and an older operating system (Windows XP). Fortunately, I once again did without disposal and brought an old laptop back to life.
  • software for the programmer (here I use “ChipLab” which can run on WindowsXP with the help of “porttalk22”)
  • the binary data or HEX files of the original ROM modules (you can use the internet search for this)
  • a layout tool (Autodesk Eagle)
  • a craft shop where you can etch circuit boards, or an account with
  • a Far Eastern PCB manufacturer
  • Soldering tools and small parts
  • and of course a Vectrex – otherwise none of this makes any sense
EPROMs

In order to determine the memory requirements of the Eproms, I first have to know the size of the games. Here is the list of titles and their size:

Games with a size of 4 kB (4 kilo bytes). This corresponds to an address range from hex 0000 to 0FFF

  • Armor Attack
  • Art Master
  • Bedlam
  • Berzerk
  • Clean-Sweep
  • Cosmic Chasm
  • Engine Analyzer
  • Hyperchase
  • Minestorm 2
  • Rip Off
  • Scramble
  • Solar Quest
  • Space Wars
  • Star Castle
  • Star Hawk
  • Star Trek

Games with a size of 8 kB (8 kilo bytes). This corresponds to an address range from hex 0000 to 1FFF

  • Animaction
  • Blitz
  • Fortess of Narzod
  • Heads Up
  • Melody Master
  • Pitchers Duel
  • Pole Position
  • Spike
  • Spinball
  • Tour de France
  • Web Wars

Games with a size of 12 kB (12 kilo bytes). This corresponds to an address range from hex 0000 to 2FFF

  • Dark Tower

Next, I’ll take a look at the Eproms for pinout and size. I have two sizes available for the number of pins. Eproms with 28pin and 32pin in DIL housing. The following types belong to those in the 28-pin housing:

  • 27c64         8k x 8 bit  so   64 kb (kilo Bit)
  • 27c128   16k x 8 bit  so 128 kb (kilo Bit)
  • 27c256   32k x 8 bit  so  256 kb (kilo Bit)
  • 27c512   64k x 8 bit  so  512 kb (kilo Bit)
picture from (www.futurlec.com)
picture from (www.futurlec.com)

 

The pinout is identical except for the different number of address lines. However, the 1Mbit variant 27C1001 (27C010) has a different pinout.

Bild von (www.futurlec.com)

The next step is to look at the pinout of the Vectrex module bay. The pin numbers of the module are marked in the picture below.

Pin Nummerierung des Vectrex Moduls

The signals associated with the pin numbers can be found in the Vectrex circuit diagram of the mainboard. The picture below shows an extract from the circuit diagram with the area of ​​the 36-pin cartridge connector. (Source: console5.com)

All the information you need to start with a circuit diagram and layout has now been collected. I looked for an eagle layout for the circuit board connector on the web. But nothing could be found straight away. So an original ROM module had to be used as a reference for the dimensions and spacing of the contact pads. With the dimensions removed in this way, it was quickly done and I had drawn a new Eagle component and saved it in the library.

vectrex_connector.lbr

I drew two variants of the module circuits. One for the EPROMs with 28 pins and one for the 1Mbit ROMs with 32 connection pins. (Since there is also space for more games here) In order to be able to distribute all possible sizes of games differently on the EPROM, I have made address bits 12, 13 and 14 switchable. In such a way that these three address lines can either be controlled by the Vectrex or selected externally by the operator using DIP switches (L / H). Bits 15 and 16 (can also be selected via DIP switches).

The following table shows a few examples of how the start addresses of the games can be selected.

bit
16
bit
15
bit
14
bit
13
bit
12
bit11-bit0
game adresses
adresses
start – end (hex)
L L L L L at 8k game 0000 – 1FFF
L L L H L at 8k game 2000 – 3FFF
L L H L L at 8k game 4000 – 5FFF
L L H H L at 8k game 6000 – 7FFF
L H L L L at 8k game 8000 – 9FFF
L H L H L at 8k game A000 – BFFF
L H H L L at 8k game C000 – DFFF
L H H H L at 8k game E000 – FFFF
H L L L L at 4k game 10000-10FFF
and so on…
Ansicht im Hex Editor

Provided, of course, that the game data was written to the EPROM in this way. To do this, I use one of the many freeware hex editors (HxD) and assemble a binary file from the individual game images. This “file” is then imported into the ChipLab software, the correct EPROM is selected from the database, then the chip is inserted into the programmer and off you go … (First, check again whether the chip is empty. Otherwise it has to ” topless “in the sun, or under the UV lamp (for about 15-20min)

Eprom inserted to the programmer

Once the chip has been filled with bits and a layout has been made from the circuit diagram, a prototype can be etched. To do this, I was able to use our company’s etching system in a short lunch break and remove the unnecessary copper from the board using etching technology.

pcb layout printed on foil

After exposing a double-sided board coated with photopositive lacquer and then developing it, the excess copper can be removed with EisenDreiChlorid. What remains is the desired structure.

Sometimes a selfie in between. It takes about 57 seconds to expose the circuit board to UV light. Enough time to take stupid photos with the phone: D

 

The next step is to drill the holes in the board. The vias (VIAs) from the top to the bottom layer are not implemented in the prototype by galvanic application of copper in the holes, but by hand by pushing a piece of silver wire through the hole and then soldering it on both sides.

the etching is completed

Now all that’s missing is the assembly. But it is done very quickly. Because apart from the IC socket, a couple of pull-up resistors and the DIP switches, there isn’t much on the board. So solder the few parts, put the chip in the socket – and the ROM module is ready.

ready assembled ROM module

What the finished module looks like on the Vectrex and, above all, how it works, I’ll show you in a short video. I also embellished the board a bit and commissioned it as an industrially manufactured circuit board from a Far Eastern printed circuit board manufacturer …

(small update on October 20, 2020)
The circuit boards made in far east have come and, in my opinion, look quite acceptable. A board is quickly assembled … here is the result:

 

Vectrex gameconsole

Loading

It was some time ago that I edited and prepared this darling. Writing a post about it is a completely different topic. I have often thought to myself that one could film the repairs and preparations right away and then make a small film out of them and publish it on a video platform … Well, at least now, in the meanwhile second Corona Lock down and a sleepless night, I am sitting in front of the computer again and try to write a few lines about this piece of ingenious hardware. I have never owned this “ingenious piece of hardware” myself and found out about its existence late, but when I had read a little bit, I had to have one – but of course at an affordable price. As always, we searched for defective devices for a long time – and since they were only manufactured for a short time, they are also rare and difficult to find. But after a long search I was lucky and found a defective, but partly complete device. As already written above in the title, it is about the (or “the”) Vectrex.

The Vectrex is a home arcade machine, with a 24cm monochrome picture tube, a fold-out and also removable joystick. This slot machine is a complete “stand-alone” system that only needs a power supply from the socket and you can start right away. The game of the Vectrex is called “MINE STORM” and is a clone of the ASTEROID game. So at that time you bought an ASTEROIDS machine for your home. When I speak of “then”, it means from 1982 to 1984. Because the US company General Consumers Electronics (GCE) started selling the machine in 1982. At that time, however, Atari was already on the market with the 2600 and enjoyed great popularity. The sale of the C64 by Commodore was also imminent. These events reduced the chance of the Vectrex’s big breakthrough, especially since the starting price of $ 200 was not a bargain. The sales company GCE went bankrupt in 1984. In Europe, “MB” Milton Bradley was the rights holder from 1983 and sold the Vectrex (or which?). In order to not only have to play the integrated MINE STORM, there is an expansion port in which game modules in ROM form can be plugged. There was a manageable amount of game titles – by that I mean, there weren’t that many. I mentioned a few of them in the post “Homemade game module for the Vectrex”. But there is still a community today that deals with the hardware and software for the Vectrex and develops its own games (so-called homebrew games). On the website vectrex.de you can find a rich collection of information about the hardware. Youtubers like Zerobrain and Wolfgang Robel also deal with this topic and have published interesting articles on it.

Driver board for high voltage and deflection etc.

So – but now to the technology of the console. The Vectrex consists of a black plastic housing. Built into it is a CRT (in German a cathode ray tube, i.e. picture tube) in portrait format. A board for controlling the tube with the high voltage generation and drivers for the deflection coils. Then there’s a 50 Hz mains transformer that serves as a low-voltage supply for all of the electronics. It should be noted here that the primary side of the transformer is connected directly to the mains cable as the 240VAC side. The transformer ALWAYS consumes energy. The combined volume / mains switch is attached to the low-voltage side and only separates the electronics. The transformer always remains connected to the network. So if you are not using the device, you should also pull the power plug.

Mainboard

To continue with the list of innards: What is still missing is the, well, not entirely unimportant part – the mainboard with the “computer”. A 6809 CPU from Motorola works on it. This is an 8-bit CPU that is driven with a clock rate of 1.6MHz. The clock is generated by the on-chip oscillator, which only needs the quartz in the outside world. As always, the exact technical features can be found in the data sheet. A three-channel synthesizer sound chip, the AY-3-8910, is installed to generate the sound. Unfortunately, savings were made in further signal processing and the audio signal has to take along almost all of the radiated interference on the way to the audio amplifier that the power levels emit to control the picture tube. But that is a well-known phenomenon. The Vectrex is known for the “I call it” messy, noisy sound output. But this also shows the originality of the early consoles. Allegedly the last generations should not have this problem anymore before the end of the sale. So far I have only got to know the noisy Vectrexes.

From sound to picture. And that’s also one of the big differences from traditional video game consoles. A conventional game console as well as any television receiver rasterizes the image. The electron beam of the tube means that the image information is written line by line onto the luminous layer. Depending on the standard, there are differences here, such as field processes or the number of lines or the number of image changes. But the principle is the same for all raster writers. At the top left, you begin to write a line with the different brightness and color information. Then the beam reaches the right end of the picture edge and is switched to dark in order to start again very quickly in the next or (depending on the method) the next but one line. With the PAL system the time from left to right was 64µs and that with 625 lines. That means a complete picture was written in 0.04s. This in turn means that in one second you can achieve a number of 25 displayed images:

64µs per line * 625 lines = 0.04s per image * 25 images = 1 second

So far so good. The electron beam was deflected by means of magnetic fields via coils on the neck of the picture tube.

It works a little differently with the Vectrex. The name Vectrex, according to my approach, comes from the term “vector” by definition: size that is represented as an arrow running in a certain direction with a certain length and which can be determined by various information (direction, amount). In the data sheet of the Vectrex one reads with a screen resolution of 256×256 positions. This means that, starting from its zero position (i.e. both deflection coils do not generate a magnetic field), the electron beam can be deflected in 128 steps up, down, left and right. (both axes each have a resolution of 8 bits). How does it work now? Let us assume that a small triangle is to be displayed in the upper left area of ​​the screen. We assume that the left edge of the image is at x = -128, the right at x = + 128, the upper at y = -128 and the lower at y = + 128.

Vectrex picture tube

For this purpose, the electron beam is deflected from its zero position to the top left, for example in x = -50 and y = -50. From there it drives to the next point of the triangle e.g. -40 / -60 and from there to the next (e.g. -30 / -50) and then back again to -50 / -50. While approaching these three points, the electron beam is switched to light. So he draws the triangle. From the last point and also the first point of the closed triangle, it goes back to the zero position and of course with the electron beam switched to dark. As long as the triangle is displayed on the screen, the process is repeated at maximum speed in order to see a nice, flicker-free triangle. Now you can imagine what happens if a lot of symbols are to be drawn at the same time. Of course that is not possible. The beam must approach and draw all symbols one after the other. This means, in turn, the more symbols, the longer it takes until the image is completely drawn and, conversely, the slower the refresh rate. So the more graphic symbols, the more flicker.

The X / Y data are generated digitally as 8-bit values ​​and converted into an analog voltage via two 8-bit DA converters (digital / analog). This voltage is adapted to the non-linear behavior of the deflection electronics (using OP-amp integrators) and fed to a two-channel amplifier stage, which also creates frequencies in the higher kilohertz range and is able to drive the deflection coils, i.e. inductive loads. And what is available here: An audio output stage from an audio amplifier. And that’s exactly how it was solved here. Under the heat sink is a LM379 dual 6W audio amplifier IC from National Semiconductor. A nice detail on the side: The high-voltage transformer is IC-clocked by an NE555 …

In order to be able to operate the games on the Vectrex, a removable controller – i.e. joystick – is integrated with four buttons in the form of the lower front cover. The two-axis stick consists of two potentiometers with which a fine, “quasi stepless” control of the game objects is possible.

Well, and such a console, or Home Arcade, or just such a treasure, I found cheap after an endless search. With a few problems, of course. First and foremost, it was important to me that everything was complete and that no parts were missing if possible. From the outside, everything was there, except for a cut power cord. The controller was complete – the spiral connection cable was not missing either and was in good condition. Unfortunately, someone had already tinkered with the controller housing and tried to pry the two housing halves apart with a screwdriver, but apparently had not considered that there are a number of screws under the upper sticker that hold everything together. The case looks accordingly today. – Unfortunately-

Housing shell of the controller damaged by screwdriver levers

Due to the accumulation of dust and the musty smell, the Vectrex had apparently spent the past 35 years in a cellar or attic. So my plan was to completely dismantle the whole device and check for completeness at the same time. As soon as I opened the case screws, I noticed that a couple of screws were missing. So there was already someone inside. After the complete dismantling, intensive cleaning was required. More precisely, it was more of a washing. So everything from the picture tube, the deflection unit to the boards had to go into the soap bath. After drying, the result can also be seen. The parts look like new again. Repairs could now begin.

In the end it turned out that apart from a few small things there were no major problems. At first the power switch was so resinous on the contacts that no closed contacts could be reached at both poles. Then there was no high voltage on the tube – here the transistor BU407 was defective and only switched through very tired or not at all. The various pots needed a little affection and one or the other capacitor still had to be replaced. But that’s about it. Below I upload a few pictures of the cleaning and repair work.

 

Homematic actuator quick repair (dimming actuator RS485)

Loading

I have another small contribution to make on the subject of “Aging and Homematic Smart Home”. Many thanks to Fritz for the preparation and analysis.

As in the last post “Homematic actuator quick repair”, this time it is again about a device from the Smart Home series. It is the dimmer actuator with the designation “HMW-LC-Dim1L-DR”. This is a phase control dimmer actuator for incandescent lamps and low-voltage halogen lamps with conventional transformers. Many modern LED lamps can also be controlled with this dimmer. The actuator belongs to the “wired” series, which means that it is not connected to the CCU via the BidCos radio protocol, but via the RS485 bus. The actuator receives the power supply for data communication from a 24V power supply unit. This also supplies the µC in the actuator. The network side is supplied with control data from the low-voltage side via an optocoupler. This ensures galvanic isolation. On the network side there is a dimmer controller module, which in turn controls the triac. This controller must be supplied with a voltage of approx. 15V. To generate this, the manufacturer has built in a capacitive voltage divider. And this is where the aging problems begin …

The error pattern manifests itself as follows: The connected light source cannot be dimmed or switched on. However, the dimmer is communicating correctly with the bus. The red function LED lights up correctly. The commands for “Off” and “On” via buttons are also displayed in the CCU.

Circuit diagram of the mains side on the “main board”
defective 330nF X2 capacitor

The cause: According to the data sheet, the IC U2008, a dimmer control module, is supplied with a voltage of DC 15V. In this case, the supply voltage was significantly lower (at approx. 5.8V). This supply voltage is made the 330nF / 275V X2 capacitor C4. The capacitor is optically in perfect condition, but a simple capacitance measurement quickly shows that nothing fits here. The capacitor C4 only had a capacity of approx. 30-40nF. So it’s like so often -> It was the capacitor: D

Dimmer module side view

After the replacement, the voltage on the U2008 was ok again and the dimmer is doing its job again. As a preventive measure, the two other X2 capacitors on the board (C1 47nF / 275V and C2 100nF / 275) were replaced.

Installation locations of C1 and C2

 

 

 

 

 

 

The Wetterfrosch 2.0 or environmental data logger

Loading

A few years ago I presented a project in which a Raspberry Pi was working as a data logger. A few sensors were connected to this Raspberry, which recorded environmental data such as air temperature, relative humidity, air pressure and the current GPS position. The sensors mostly consisted of ready-made breakout boards that were connected to the RaspberryPi via the various buses (I²C, Serial, SPI …). Python scripts ran on the PI itself, which read out the sensors, summarized the data and stored it on a USB flash memory. I then built this hodgepodge of components into a plastic box with a size of 150x80x50mm.

But it’s also about a lot smaller. As part of a small project, the task was to downsize this sensor / data logger. My approach to realizing this was very simple: “Everything new”. So I changed the concept like this:

  • the RaspberryPi is replaced by a microcontroller
  • a circuit board is created on which all components are housed
  • the recorded data is saved on a microSD card
  • the board is reduced to the most essential components. The sensor electronics and the SD card reader are placed directly on the board
  • a GPS receiver (in the form of a breakout board) should be able to be plugged in as an option
  • the controller is programmed via an ISP interface
  • the power supply is 5V DC

From this I created the following block diagram:

Block diagram

As is so often the case, the central element is the Atmega328 microcontroller. As an external circuit, it only needs a quartz for clock stabilization. (More precisely, it also offers the option of using internal oscillators …) The microcontroller communicates with the sensors HYT939 and BME280 via the I²C bus. The level from 5V on the controller side to 3.3V on the sensor side is adjusted via the sophisticated bidirectional level shifter circuit using a BSS138 Mosfet with an integrated body diode. This circuit is used for both the SCL (Serial Clock) and the SDA (Serial Data) line.

The data is saved on a microSD card. A card slot is installed for this, which communicates with the controller via SPI (Serial Peripheral Interface). An adjustment of the signal amplitudes is also necessary here. This time, however, the TXB0108 chip from Texas Instruments takes care of that. This is an 8-bit bidirectional level shifter.

A button will start and stop data recording and a LED will display various status messages through flashing sequences.

The optional plug-in GPS module works with a 5V power supply and the levels of the serial data communication (RS232) are also 5V compatible.

Last but not least, the power supply must of course also be planned. Only an external, stabilized 5VDC source should be connected here to supply the logger. The 3.3VDC required for the sensors and SD card are generated on the board by means of an LDO (Low Drop Out) controller.

Once all components and their interaction have been defined, the circuit diagram is drawn from them. For my handicraft projects I mainly use the schematic and layout editor “eagle”. The circuit shown below results from the block diagram.

From the circuit diagram I created a layout with two layers, the floor plan of which has the dimensions 55x25mm. Except for the connectors, only SMD components are on the board.

In the layout tool there is the function to view an optical preview of the finished board. In this way you can check in advance whether the board corresponds to the requirements and, if necessary, optimize the position of the components. Once this is done, a package with production files (Gerber files) is generated from the design and this is then sent to the circuit board manufacturer you trust. Since it is also located very, very far away, production also takes a few days. But in the end the circuit boards arrive and are also impressive. 🙂

The two pictures above show the board from the TOP and the BOTTOM side. The next step is to order the components according to the plan and then assemble them.

I do the assembly by hand with a soldering iron suitable for the SMD components with a correspondingly small tip. For the very small parts, such as the BME280 sensor, a microscope or microscope camera is also used.

The two pictures above show what the board looks like after it has been assembled. The following photo shows the size difference of the finished logger with the attached GPS module compared to the old “weather frog”After completing the hardware, it is now time to start with the software. I tinkered it in a practical way with the Arduino IDE tool and flashed it to the controller via AVRISP mk2 via ISP. In order to get the AVRISP to work on a Windows 10 computer, a suitable driver must be installed. (libusb-win32-1.2.6.0 helps here)

program code created with the ArduinoIDE
controller flashed with AVRISPmkII

Data recording is started on the SD card after applying the supply voltage and pressing the button. The measured values ​​are written every second. If, as in this example, the GPS sensor is plugged in, the GPS data is also recorded. The software also records if the GPS sensor does not have a “fix” yet. (Since there was no GPS fix in the example log below, no valid GPS data is included.)

Example of the data log:

Luftdruck962.41
Luftfeuchte37.05
Temperatur26.96
-----------------------------
$PGACK,103*40
$PGACK,105*46
$PMTK011,MTKGPS*08
$PMTK010,001*$GPGGA,235947.799,,,,,0,00,,,M,,M,,*71
$GPGLL,,,,,235947.799,V,N*73
$GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,1,1,00*79
$GPRMC,235947.799,V,,,,,0.00,0.00,050180,,,N*48
$GPVTG,0.00,T,,M,0.00,N,0.00,K,N*32
$GPGGA,235948.799,,,,,0,00,,,M,,M

-----------------------------
Luftdruck962.39
Luftfeuchte36.72
Temperatur26.95
-----------------------------
Luftdruck962.43
Luftfeuchte36.66
Temperatur26.97
-----------------------------

Tabletop game console Galaxy II

Loading

“ASTRO WARS” or “GALAXY II” is the name of the table top game console that I am introducing here. It is the home version of the arcade game “Galaxian”, which was implemented as a small tabletop device for everyone at home. The manufacturer was Epoch, which sold the device in 1981. There was also a clone made by Grandstand under license from Epoch. The device was named “ASTRO WARS”

As was the case with many game consoles back then, the technical structure is a “stand-alone” console. This means that the device could be operated without any additional accessories. You only need four 1.5V cells or a 6V plug-in power supply. The display, i.e. the display, was implemented using VFD (vacuum fluorescence display), as LCDs were still expensive at that time and were only used as clock displays due to the low power consumption.

The screen is designed in such a way that a curved, transparent film, printed with space motifs, is placed over the VFD tube. A Fresnel Fresnel lens shows the display content optically enlarged. The display also appears in color or shows the game symbols in color. This was solved by sticking colored foil over individual areas of the VFD tube. This gives the entire design of the ad a certain 3D effect.

From the original advertising text on the packaging:

“Ultra-modern arcade excitement is now yours, as you defend your earth ships against a fierce invasion. You must dodge the enemy missiles and fire back at the squadrons of attaching fightes, warships and enemy command ships. If you survive, you can attempt the exiting DOCKING MANOUEVRE and earn extra points.”

Die hochmoderne Arcade-Spannung liegt jetzt bei Ihnen, wenn Sie Ihre Erdschiffe gegen eine heftige Invasion verteidigen. Sie müssen den feindlichen Raketen ausweichen und auf die Staffeln zurückschießen, in denen Kämpfe, Kriegsschiffe und feindliche Kommandoschiffe angebracht sind. Wenn Sie überleben, können Sie mit dem aufregenden Docking Manöver zusätzliche Punkte verdienen.

To the technical structure:
As already mentioned, the structure is based on a fluorescent display, which in turn is controlled by an NEC D553C microcontroller / processor. This 4Bit 42PIN IC in the DIP housing is one of the chips used very often in game consoles at that time, as it not only contains the game algorithm, but is also able to control the display directly. There is also sound that is output via a piezo. The chip only needs a power supply. The clock is generated with an external resonator … a more detailed description can be found in older articles.

  • Tabletop game console
  • Manufacturer EPOCH, Grandstand licensed
  • Distributed by Schuco Tronic
  • Space Invaders / Galaxian clon
  • Screen: VFD Display
  • Three game modes
  • Year of manufacture 1981
  • Power supply: 6V with 4×1.5V Cells or plug-in power supply
  • Size ca. 22 x 17 x 16cm
  • Sound output via piezo
  • Age recommendation according to sales: From 8 years

Photo gallery:

Update 2.2.2024: At the request of a blog reader, I measured the dimensions and shape of the “front screen” of the console.

Frontseite

 

Configurable plug-in power supplies

Loading

This short post is only intended as an aid to be able to look up quickly if necessary. Over time, each of us will probably accumulate countless power packs and adapters. Some are fixed voltage power supplies, others can be adjusted in the range of the output voltages. The output voltages of these power supplies can be adjusted with slide or rotary switches or with small plugs (jumpers) in which resistors are built-in.

The voltage that is set is always printed on the jumpers. There is a small catch, however. If you have several different power supplies (different in terms of performance and output voltage range), you quickly have a hodgepodge of different resistor jumpers. The problem now is that the jumpers all look the same and are also printed with the same voltage values. If you don’t sort them properly according to the respective power supply units, the mishap happens quickly. An example: A type SPS24-24W power supply unit has a jumper labeled 9V. The jumper has a resistance of approx. 9kOhm. Another power supply of the type SPS12-23W also has a jumper marked 9V – but a resistance of only 1.5kOhm. And so it quickly happened that you (or I) plugged in the jumper from the wrong power supply. In my example I put the 9V jumper with 1.5kOhm into the SPS24-24W power supply. Before I was with the test leads at the cable socket, there was a thud, a well-known cloud of smoke and the associated smell of a burst capacitor (electrolytic capacitor).

What happened? The value of the wrong jumper resistance was smaller than the smallest value of the correct jumper (24V = 2.42kOhm). So the output voltage was significantly higher than 24V and thus also significantly higher than the dielectric strength of the electrolytic capacitor at the output (which had a dielectric strength of 25V at 220µF).

To avoid this in the future, I measured the resistance values ​​to match the power supply models of the SPS series.


Model SPS12-12W-A (unfortunately I don’t have a copy of this model – if someone has one at hand, I would be happy to include the resistance values ​​in the list here)

Voltages:
3V ………….  0.00k
4.5V………..  0.00k
5V…………… 0.00k
6V…………..  0.00k
7.5V……….  0.00k
9V …………  0.00k
12V………..  0.00k

Model SPS12-24W-B
Voltages:
3V …………. 373.0k
4.5V………..  6.01k
5V…………… 4.51k
6V…………..  3.08k
7.5V……….  2.04k
9V …………  1.54k
12V………..  1.02k

Model SPS24-24W-A
Voltages:
9V ………….  9.09k
12V…………  5.75k
13.5V……..  4.97k
15V…………  4.29k
18V…………  3.39k
20V ………..  2.98k
24V………..   2.42k

Model SPS24-48W-B
Voltages:
9V ………….  17.38k
12V…………  8.27k
13.5V……..  6.78k
15V…………  5.48k
18V…………  4.20k
20V ………..  3.60k
24V………..   2.78k

edit 10.52021: Added pictures of the board of the power supply SPS24-24W-A:

Wall socket with integrated USB port (repair)

Loading

Thanks to the USB standard, it is now easy to operate or charge your mobile phones, tablets, Arduinos, Raspberry PIs, toothbrushes, power banks, etc., etc., with one and the same charging adapter or plug-in power supply. The “plug-in power supply” is an AC / DC converter which, ideally, electrically isolates the mains side with the 240VAC / 50Hz from the low-voltage direct voltage side in compliance with the applicable regulations. The low-voltage side provides the 5VDC via a USB-A socket. Depending on the model and origin, maximum currents of 1A up to approx. 2A can be taken.

Due to the large number of USB-powered devices in households, there are also quite a few of these plug-in power supplies. In order to operate the plug-in power supply, you naturally also need a socket in the house installation in order to connect the power supply to the utility grid. If several USB devices are in operation, or better – in charging mode, some of the sockets in the household are quickly occupied and the power supply for more important devices such as coffee machines and the like is missing …

Some manufacturers came up with the idea of ​​integrating a USB-compliant power supply unit with a corresponding USB socket into a Schuko socket that was designed for installation in a wall outlet, without losing the space for the Schuko socket.

These sockets with integrated USB power supplies are nothing new and have therefore been on the market for several years. Of course, I also had to install such sockets at the time, because they are really extremely practical. So – now, of course, the years have passed and the service life of the power supplies built into the sockets is coming to an end and they will fail. More precisely, they no longer provide a 5V supply.

no more voltage at the 5V output

However, since I don’t throw everything away and replace it with new ones – the sockets were also expensive at the time – my plan was to look for the fault and repair them if possible. In this case it is a Busch-Jaeger socket of the type 20EUCBUSB-214-500 which now refuses to function. The power supply unit should require approx. 100mW in standby mode and with 5VCD it can deliver a maximum current of 700mA.

After removing the socket, it was also quickly dismantled. The plastic cover attached to the rear is held in place on the opposite side by means of locking lugs. Now a circuit board came out that can be easily pulled out. The contact to the network side and also to the USB socket is realized via spring contact pins. It should be mentioned right away – they fall out quickly. That is why you should always work the socket with the back facing up. This saves you the hassle of searching for the little pens.

cover removed
Socket without power supply board

 

When the board was now released from its housing, at least one problem was revealed, which explains the failure of the power supply. A small chip on the board had a hole that definitely doesn’t belong there. The components surrounding it also showed traces of smoke. Thanks to another functioning socket of this series, I was able to identify the IC.

Power supply board
the hole in the IC doesn’t belong there
“Gunsmoke traces” on the resistance

 

It is a Link Switch-II series LNK614DG from PowerIntegrations. It is a small ALL-IN-ONE IC that has integrated the power FET, the oscillator and the control via a feedback winding of the transformer. The power rating according to the data sheet is 3.5W installed in a closed housing and 4.1W in an open frame or ventilated state.

“typical” application – Quelle: Datenblatt https://ac-dc.power.com/products/product-archive/linkswitch-ii/

The chip therefore only needs a few peripheral components, which in this case also makes it easier to search for further errors. On the network side, only the AC rectification and smoothing as well as the line filtering are necessary. These components were in top condition and worked. Then there is only the transformer with its primary, secondary and feedback winding, the secondary rectification and smoothing and a few resistors that are connected as a divider. No fault was found with any of these components. So – who dares wins – the IC ordered and exchanged – and bingo – the 5V are back at the exit and can also be loaded.

the new chip before installation 🙂

 

 

 

 

 

 

CO2 measurement with SCD30, Arduino and Matlab

Loading

This project – actually a mini project – might also be interesting for one or the other. It is the now well-known and frequently used carbon dioxide sensor SCD30 (CO2 sensor) from the manufacturer Sensirion. There are a number of projects that can be found on the internet. As part of a quick test setup, I tried to read out the data from the sensor using an Arduino Uno board in order to then display it in a plot using the Matlab software. The data transfer takes place via the serial interface or via the serial protocol of the USB-UART.

To connect the SCD30 to the Arduino, you need the power supply and the I²C data bus – so in total just four wires. This means that the minimum configuration is fulfilled and the data can be read out.

The sensor itself works on the principle of NDIR technology. (NDIR = non-dispersive-infrared). That means the sensor is a small spectrometer. The medium to be examined is fed into a sample chamber. The sample chamber is illuminated by an infrared source and the IR light shines through the medium and a very narrow-band wavelength filter and then hits the IR detector. The wavelength of the filter is designed in such a way that precisely those wavelengths are let through that are absorbed by the molecules of the medium (gas). Depending on the number of molecules or the density of the gas, fewer light beams are recognized by the detector. A second measuring chamber, which is filled with a reference gas, serves as a reference. A controller on the sensor evaluates this information and forwards it in the form of ppm via the I²C (or switchable MOD-Bus) interface. There is also a temperature and humidity sensor on the board, the data of which can also be read out via the bus. The preset I²C address of the SCD30 is 0x61. The exact information on the data protocol can be found in the documentation from Sensirion.

Ideally, as almost always, there is already a ready-made library suitable for students for the various microcontrollers. So you don’t have to worry anymore and can read out the data from the connected sensor directly. The example programs can be found under the examples of the libraries.

electrical specifications

The Arduino with 3.3V or 5V can be used for the supply voltage of the sensor. However, caution is advised when using the I²C bus: Here the input high level is set at 1.75-3.0V and the output high level with a maximum of 2.4V. But on an Arduino the levels are 5V !! So a level shifter has to be built in here – or at least, suitable resistors for a quick test.

The program code listed here essentially comes from the example of the library by Nathan Seidle from SparkFun Electronics:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
By: Nathan Seidle SparkFun Electronics  
Library: http://librarymanager/All#SparkFun_SCD30  
*/

#include <Wire.h>
#include "SparkFun_SCD30_Arduino_Library.h" 
SCD30 airSensor;

void setup()  
{
  Wire.begin();
  Serial.begin(9600);
  //Serial.println("SCD30 Example");
  airSensor.begin(); //This will cause readings to occur every two seconds
}

void loop()  
{
  if (airSensor.dataAvailable())
  {
   // Serial.print("co2(ppm):");
   
    Serial.print(airSensor.getCO2());

    //Serial.print(" temp(C):");
    Serial.print(",");
    Serial.print(airSensor.getTemperature(), 1);

   // Serial.print(" humidity(%):");
    Serial.print(",");
    Serial.print(airSensor.getHumidity(), 1);

    Serial.println();
  }
  else
    //Serial.println("No data");

  delay(500);
}

 

With these lines of code in the Arduino Uno and the correct wiring (SDA -> to Arduino A4 and SCL -> to Arduino A5 via a suitable level converter) you can continue with Matlab. The Arduino should now output the following lines in a serial terminal: (example)

473,28.5,12.9
473,28.5,13.0
470,28.5,13.1
469,28.5,12.9
466,28.5,12.9
465,28.5,12.7
465,28.5,12.5
463,28.6,12.6
461,28.6,12.5
463,28.5,12.4 … und so weiter

This now has to be read into Matlab and recorded over a definable period and at the same time displayed in a plot. The matlab script here makes it possible … (pn if someone needs it)

The result is a plot that shows the course of CO2 in the room (in this case on my office desk).

 

 

Tomy Racing Cockpit – electrical wiring

Loading

Due to some inquiries regarding the electrical wiring of the Tomy Racing cockpit, I sat down and drew out the wiring. There are apparently many contemporaries who still find toys from the 80s in their basements, attics, etc. and repair them again. With the Tomy Cockpit it happens again and again that the thin wires break off when they are dismantled or the soldered joints no longer hold, often forgotten cells in the battery compartment have dissolved and the contacts and soldered joints are corroded as a result.

I show a sketch of the wiring in the following figure.

By the way, I only use two 1.5V cells, since the parallel connection of two cells each in the battery compartment is nonsense, as the cells are guaranteed to have different internal resistances and thus comfortably discharge each other even when they are not used.

In order to be able to identify the components shown in the sketch in the racing cockpit, I also took photos of them.

This is the back of the “switch” that represents the cockpit’s ignition lock and with which the system is switched on.

I called this part “breaker” because it is a normally closed contact that is triggered by a small “gearwheel” and causes the drum lighting to flash. That happens when you leave the “street”.

These are the connections of the battery box. I doubt whether the colors of the wires are the same for all versions. Because in the devices that I have since revived, different wire colors were installed.

With this information it should now be a little easier to recreate the broken wires and solder joints.

 

Tidying up and archiving

Loading

Behind the title mentioned in the article headline is my idea of ​​tidying up the “ingmarsretro” blog and tidying it up a bit. By “cleaning up” I mean checking the individual posts again for spelling errors, maybe reformatting one or the other post and adding to it. That is why there will be no other contribution in January 2021.

There are also plenty of new posts that are digitally saved on the server, but there is no paper version of them yet. So I want to put all the posts that have been created since the last backup back on paper in the form of a book. And unfortunately that is not done in a jiffy, but requires a lot of work. The job and the “family time” with my little son only allow me to work on the contributions mostly at night. And between the posts I also work on the projects (little projects) that I then write about. I also have a lot of them in my head that may one day be realized. And then there are some that I’m working on that are still to be completed, or at least should be continued.

For the last few months I have been working on a Nixie clock that should be set up fairly discreetly. The watch has meanwhile also achieved a reasonable status, so that circuit boards from self-etched prototypes to reasonable, industrially manufactured condition have been created here.

the Nixie clock prototype

The “tube radio receiver” that I started with a few years ago is also waiting to be tinkered with.

Of course, the topic of retro computers does not let me go either. Here are a few devices left to restore and wait to be brought back to life. (This is where I remember right away: I’m looking for a RUN / STOP button for a Commodore Plus 4 – I would be happy if any reader could help …)

looking for a RUN / STOP key

The project with the MOS8501 CPU as a lattice – FPGA – mini board is also in the “carry on queue”. There is still a lot to do here (the level shifters are not doing as they should, the VHDL code still needs to be adapted, the prototypes Circuit boards have to be combined on one board and then also miniaturized …) So there is still enough to do.

Then there are also old devices that I would like to present here in the blog and a number of repairs that keep falling into my hands … Also one or the other HomeMatic tinkering is still pending.

I also toyed with the idea of ​​publishing content from the blog in the form of videos on YouTube. On the one hand, however, I cannot assess whether someone is interested and whether I would like to do that to myself, to present my face in front of the camera. It would probably make more sense to do it with a more didactically gifted person as the protagonist. And of course for Lau, as fun. On the other hand, there are quite a few Youtubers here who are very experienced here (e.g. Dave Jones with his EEVblog, NoelsRetroLab, Adrian’s Digital Basement, GreatScott, ZeroBrain, JanBeta, etc.) and have been doing this for a long time. Also not to be neglected is the immense effort involved in producing such films. When I look at my assembly videos here: It takes almost one day to record the raw material when soldering the respective kit and, in total, almost three days for the cut and post-processing. Let’s see if something can come of it one day …