VAULT DWELLERS SERVED

Monday, March 22, 2010

Vault-OS : SBcard input for DRSB-88, CDV-700!!!


Major breakthrough with the soundcard in graphing geiger counter hits and displaying oscilloscope trace in 640x400x256 XMode in DOS.

The final code was so simple it boggles the mind. All you really have to do is monitor the right audio byte 0-255 with INP once you get the soundcard address correct. I am still wrestling with the right metrics to apply to the incoming waveform given the input source but the hard part of the solution was discovered. I am using the CDVCounter for Windows source code as my guide in correctly displaying the approximate radiation levels in DOS.

Any Soundblaster-16 compatible sound card or SBC chip will work with this thing. It's so elegant and pristine in that it replaces around $500.00 of hardware that would normally be used for a PC interfaced geiger counter with around $20 worth of hardware. Can you beat it? I have been thinking that this could be tweaked to work with any geiger counter on the planet with audio output if the user is permitted to create and save configuration files of his own.

This little loop was the seedcorn of a mighty oak that has grown into the Vault-OS radiation monitoring screen:

CONST xMax = 640 'Change for other screen modes

CONST BaseAddr = &H220 'Change if your sound card uses another base address

CONST CommAddr = BaseAddr + &HC
CONST DataAddr = BaseAddr + &HA

DEFINT A-Z
DIM Byte(xMax)
SCREEN ScreenMode
DO
OUT CommAddr, &H20 'Give command to sample a byte
PRESET (i, Byte(i))
Byte(i) = INP(DataAddr) 'Read value from data port
PSET (i, Byte(i))
i = (i + 1) MOD xMax 'Wrap i when end is reached
IF INKEY$ <> "" THEN END
FOR qq = 0 TO 1000
NEXT qq

LOOP


You should see what it looks like when I got supersmooth Mode-X screen scrolling going for the waveform. It would bring tears to your eyes.

The DOS version of Vault-OS is kicking so much ass I can't sit down after working on it. It is the best and most useful computer software I have written in my entire life. It will actually be possible to run your entire shelter off a single x86 computer with a storage device of some kind. I've only been working on this piece of crap off and on for ten years now. It is starting to shape up.

Screenshots, a new site and a possible version 0.7 will be available very soon.

3 comments:

Solsys said...

What is impressive here for me is the idea.

I don't get the technical aspect, which is probably the real gem. If I were software-savvy, I would probably just have a sound monitoring software & a microphone plugged into the soundcard, to listen to the geiger counter... !

Texas Arcane said...

Solsys, just imagine taking that 3.5 mm cord for the microphone and plugging into the top of the 3.5 mm jack on the DRSB-88. Then you go into configuration and set a combo dropdown box to the "DRSB-88" to interpret the incoming data correctly in terms of rads/millirads. The CD-700 requires an adaptor from it's old fashioned output jack (previously for a speaker) to convert to the 3.5 mm standard used on sound cards.

That's as complicated as it gets. I'll provide a little facility for the user to go in and define their own variables and pseudo-code for their own radiation monitoring device, whatever it is, and add it to the dropdown selections available. Since almost any radiation device has some kind of audio output, that should accomodate whatever equipment the user could have.

Rowan said...

http://blogs.reuters.com/great-debate/2010/02/04/did-aspergers-help-cause-the-crisis/

No comment.

www.000webhost.com