My workbench

I would like to introduce part of my workbench. It is computer side of my workbench. There is electronics workbench, but it is not described here. I’ve made some order here before making pictures- regularly there is a big mess here:

Workplace

Small description of the stuff:

1. Very old, >20″ SGI (Silicon graphics) monitor. It is time to throw it away, but from time to time I need to connect so old unix box of some PC with nonstandard video timing. This monitor is capable to sync to very wide range of sync signals (or even without them- sync on green). The only problem is rare 3W10 connector. I’ve made some cables for it. Very heavy.
2. Some old unix boxes: SGI Indy, Sun Sparc Xterminal 1 and Sparcstation 5 (from recent blog entries you may understand were I found last one). And what is displayed on CRT screen.
3. My regular computer, every day it is getting older and weaker compared to new ones. It is P4, 3GHz, HT computer. (nor D, nor Duo). with some SATA drives and 2GB of RAM. I was sick of out-of-RAM messages and virtual memory performance. Now memory is cheap and I recommend to invest some money to RAM.
5. Two 14″ LCD monitors. I love Lot’s of desktop space.
6. some HDD.
7. Black keyboard. I love classic small keyboard. I hate “natural” keyboard and keyboard with “media keys”.
8. Classic Russian tea cup. Regularly I drink white coffee with lots of sugar.
9. Sun keyboard. It is only connected to test sparcstation.

And now backstage…
Continue reading

Posted in Anything | Leave a comment

Battery of capacitors

From computer tomograph PSU, I removed battery of capacitors. It is 12 high power electrolytic capacitors. 6 x 12000μF and 6 x 8200μF. All caps working ant 400V (450V surge). Total 121200μF (0,12F). We can charge them to about 400V and store about 9696J of energy. Lots of energy. And lots of lethal energy. It can kill you.

lethal charge can be stored here

More about capacitor calculations in older blog entry.

Posted in Anything | Leave a comment

Computer tomograph

I achieved personal top record in braking electronics. Today (Nov 14th) I disassembled computer tomograph. As whole device was too big to fit in the van, I don’t have classic photos of the doughnut (donut). I have only partly disassembled device images.

Here is the images of “super computer” displaying human body slices:

computer tomography, CT scan image

In fact, it is very old, Sun Sparcstation 5 computer, with 256Mb RAM, some external CDROM and hard-disk. With SunOS and Philips software.

tomograph donut

Here is the remains of donut. The device was ancient. It was made in 1995, but the design is much older. Main custom computer is made using DIP chips in 5V technology. The only identified CPU was MC68020 working at 16MHz, and several custom made or maybe MIPS CPU’s on several printed circuit boards.

It was X-ray tomograph. Images are produced using rotating x-ray tubes and 192 detectors. This whole bunch of heavy metal is rotating around human body. This system is powered from 380V 3 phase mains system. The power is converted to higher frequency, so all x-ray high voltage transformers are much smaller. But main PSU is very big, full of big capacitors and power IGBT transistors. Lots of power is used for such device- mains braker is 250A.

As device is very old, only few interesting components were found inside. It was great disappointment.

Posted in Anything | Leave a comment

ATMEGA USB 13

Maybe I have some superstitious beliefs. So the are no Atmega USB 13 blog entry and no project #13.

Posted in Anything, MCU | Tagged | Leave a comment

ATMEGA USB 12

Next toys connected to my AVR-USB testing board are two Freescale semiconductors (ex Motorola) accelerometer chips: MMA3202D and MMA7260QT. First is “catastrophic” accelerometer chip with high-G (100g X-axis and 50g Y-axis) sensor. If you apply such acceleration to human body it will squash to yogurt. Bet in real world such forces are achieved in various accidents- just drop down your hard disk to stone floor and the force will be about this. 🙂 Sensitivity is not very high, but it is possible to detect static gravity force or free fall.

gravity Accelerometer XY

Next chip is more sensitive, so called low-G sensor. (Selectable Sensitivity (1.5g/2g/4g/6g)). It has 3 axis. As this device required 3.3V power supply, I placed small linear regulator on board. All other stuff on PCB is to filter electric noise. The device is very noisy. First I thought that my PCB and AVR analog input is the source of the noise, but after visiting Freescale seminar and looking at original demo board of the same chip I found that the chip itself is very noisy.

gravity Accelerometer XYZ

There is small example in software to demonstrate the usage of the chip. When jumper “firmaware” in ON, the LCD display is showing the position of sensor PCB. It is useful to use such feature in video and photo cameras to display pictures in LCD display. Or to reduce handshaking. I didn’t implemented “free fall” feature in my source. But is very easy to do- just detect 0g on all three axis. It is useful to use 0g detection in some notebook computers or hard disks. Just to park shock sensitive devices and prevent them from shock damage. Another interesting device is small shock logger- just to collect data in some parcel. But there is bad side from this technology. In near future, all handheld devices will have such loggers. And if your device will fall down to ground it will log this accident. And in local repair shop, your device will betray you. 🙂

gravity Accelerometer toy

The software is very simple. All freescale chips are analog chips. I was asking about I2C or other chips (they are promoted in website), but freescale representative was very mysterious about the developing schedule. So now I just measure the output with ADC converter and interpret the answers.

Source code: 20071102.zip.

There is NO PCB for these devices. My laserjet printer is bad and PCB are very simple. So I hand cut the traced with small graver. Even for leadless QFN chip.

Posted in Anything, MCU | Tagged , | Leave a comment

ATMEGA USB 11

There are lots of “rainbow LED” projects in the internet. So, I decided to place something similar in my weblog.
There are 4 hardware PWM outputs in ATMEGA16. So do not need to build fancy software routines to make pulse width modulation (PWM) by software. Just define PWM output in the chip and forget. Other chips may have less of more PWM outputs. Just check the data sheet.

I am using 3 color (tricolor) LED form some cheap flatbed scanner. This LED module is very good because it is small, all LEDs are placed on same chip. Also it is very easy to solder it. Also, I guess, that light power of LEDs are compensated and equal to current. I think that if I pass same currents in all three diodes I’ll get white color, no need to adjust tint (hue) of the output.

RBG schematics

Circuit diagram is very simple- diode module, three 470 ohm ballast resistors. Everything is connected to my experimental PCB. OC0 is connected to “firmware” connector, OC1A, OC1B and Vcc can be found on LCD connector.

PWM RGB

Here is the image of working device. Sorry for the quality, my digital camera is not making good images of bright light sources (diodes from scanner are very bright, they are used to light whole scanned line).

Here is short move made by same digital photo camera. Sorry, but the colors are ugly. In real world is full rainbow on your desktop.

Firmware is very simple. It is using “0” timer as interrupt source and also it is the clock for zero PWM channel. So I can’t make timer 0 very slow- with lower frequencies the LED is flickering. So I placed extra calculations in interrupt routine to slow down main color cycle. Other two diodes are connected to timer 1 output.

All the math is made in two procedures. They calculate “H” (hue) value calculations to RGB output values. My H2RGB procedure is identical to MS paint color palette picker (with fixed other values).

Source code: 20071101.zip.

Posted in Anything, LED, MCU | Tagged , | 1 Comment

ATMEGA USB 009

Blog entry 008 is not working… so here is 009

I installed electronic lock with Dallas (Maxim) i-Button chips. It was very simple, low security version of electronic lock as it uses DS1990A chips as the keys. Original lock was made using PIC mcu (the smallest available) and 24C16 serial eprom to store key numbers. I programmed the lock and read chip contents. I found same numbers in eprom as numbers engraved on key. After reading the datasheet I discovered that these chips are not good for real security keys as they don’t have any security features. It is simple serial rom with CRC, and only nice feature that it is using one wire for data and power transfer.

I decided to make few experiments with these i-button chips and to write so software for AVR. The problem is, that there are lots of software for 1 wire protocol, but most of software is based on commercial AVR C compiller with build in 1 wire functions. I am using free GNU C compiler and I need to find software for all 1 wire stuff. I spent few hours searching internet and at last I found it.

The hardware is very simple- I used my AVR USB board with LCD module. I connected i-Button to my “firmware” jumper. The only modification is 4.7K pull-up resistor.

i-button avr

The LCD module is displaying various information about connected i-Button. Top left corner is status. Possible information: OPEN, SHORT, OK and ERROR. Top-right is CRC read from chip. In source there is CRC recalculation routine to check it (untested). Bottom left: device family id. And last and longest number is 48bit device serial number. Same as number on the metal can of the chip.

i-button avr

Source code: 20071027.zip

There are more functions in source code. I am using only minimal set of possible features.

Now you can build your own security lock, the only problem is, that Dallas ID chips are not secure. I think it is possible to build emulator for Dallas i-button chip and program other serial number. Dallas is not responsible for this as this chip is not intended to use as the key:

The DS1990A Serial Number iButton is a rugged data carrier that serves as an electronic registration number for automatic identification.
…allowing the DS1990A to be used easily by human operators. Accessories permit the DS1990A iButton to be mounted on almost any object, including containers, pallets, and bags.

I think that this “commercial” lock is cheap alternative for very low security door lock.

Posted in Anything, MCU | Tagged , | 4 Comments

Dolby digital in cinema

Some time ago, I tore a piece of cinema film from local cinema theatre. The movie was some dark work, about vampires or something. Recently, in wikipedia I found article about Dolby digital encoding on the film tape.

Dolby Digital 35mm

I found my film strip and checked it for digital data. Under microscope I found dolby digital data encoded in matrix bar-code between perforation. Also, I found three additional low rate digital data tracks. There is no data what is encoded here. In wikipedia example there must be analog channels…

Dolby Digital 35mm

I made the photo using small microscope with 25x magnification. Width between two graduations with numbers are one millimeter. You can see Dolby Digital logo in the center of dot matrix . Last image is borrowed from wikipedia:

DD is Wikipedijos

Posted in Anything | Leave a comment

HDTV

HDTV, hdtv… whattheheck is that HDTV? Here is some screenshots to describe the size of unscaled HTDV image. You don’t need to know about pixels and lines, do not need to describe difference between 720p and 1080i… Just look to the image and find little windows start menu gadgets on the bottom of the image.

HDTV
HDTV
HDTV
HDTV

And some unscaled piece…

HDTV

Posted in Anything | 1 Comment

Attenuator

Oh, it is great treasure. I’ve made sweep generator, but I didn’t build any attenuation device for it. I’ve tested regular carbon variable resistor, but the output was too noisy. I’ve also tested high resistance wire wound variable resistor, but the inductance was too high and the attenuation in higher frequency was horrible.
By a chance I found very old (~1964) sweep generator made by some USA company. It was full tube design and not working and partially disassembled. But I was in luck and original attenuator was intact. Also, the device as build in stand alone version- two solid metal cans with BNC connectors. The only problem was t find some inch-based, American tools to unscrew all nuts. I live in normal world where metric system is used.

attenuator

These two metal cans are stepped variable resistors. But they are calibrated and designed to work in wide frequency range. One attenuator is for tens of decibels and other for apiece (ones). Smaller one has 0, 10, 20, 30, 40 and 50 dB attenuation and bigger one is in full scale from 0 to 10 dB and one very useful position- open circuit.
The device is very solid, very well build and working without any glitch. And device is about 43 years old!

Posted in Anything | Leave a comment