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
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
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.