The DC Control and Timer boards for AudioScope.sh...
Hi all...
Apologies for any typos...
For those intersted in the AudioScope the next construction is finished.
I have not been totally idle but working out the hard stuff to be able to be very simple to build.
It is a single transistor simple timer that lasts for about 1.2 to 1.8 seconds.
The time length is not important as one can code around it.
How it works.
When AudioScope.sh is run several test files are generated and placed into the '/tmp/' drawer. One of these files is a one second 2KHz square wave RAW file at 8 bit depth, unsigned integer and 8KHz sample rate.
It is set to this so that '/dev/dsp/' and 'SOX' can use ot directly. I have decided that all of the ALTDC modes MUST be used with SOX capture only, so for these extras SOX becomes a dependency.
The filename is called squarewave.raw. When used in normal, ('/dev/dsp'), mode it is a 1 second 2KHz poor example of a square wave. HOWEVER, it is called using SOX and at 48KHz sample rate.
This creates about a 170mS burst of a square wave at 12KHz. This is fed to the earphone output on the MBP and from there to the DC_Control board.
This board is a voltage doubler and its output at around 2.5 Volts for 170mS is fed to the timer board. This fires the timer board to hold a relay for about the times mentioned above.
The two sets of relay contacts are completely isolated and can be used to switch the input and/or ouptu from the AC signal to the DC one.
There are two captures when in ALTDC and SOX capture mode; the first capture is the normal AC one through the Y amplifier.
The second is the timer switcher to allow the current guise, the VFO, to have enough time for a 1 second capture for the frequency counter to count the number of cycles of this burst.
It is then converted to a voltage to the accuracy of 4 to 5 bit depth.
The positive DC component is displayed in the yellow part of the COMMAND window for a couple of seconds and AC component, (if any), in the DISPLAY window.
I hope this is lucid enough...
The code to do this will be added to AudioScope.sh soon here is the test code...
EDIT:
The Dc Control board circuit, now added to the script...
This User Gave Thanks to wisecracker For This Post:
AudioScope Project.
(Apologies for any typos.)
For the few following......
AudioScope.sh...
Now at Version 0.60.00.
Well this baby has come a long way since its inception in January 2013. It is now at Version 0.60.00. It is MUCH more Apple centric now with a new OSX Sierra minimum _silent_... (7 Replies)
Using AudioScope.sh on Ubuntu 17.04 from a live DVD disc I came across an error.
Consider the code below it is a MUCH shortened version of the KEYBOARD input in AudioScope.
#!/bin/bash
bash --version
uname -a
status=0
KEYBOARD()
{
read -r -p "Enter QUIT or EXIT to quit:- " kbinput
if ||... (11 Replies)
Boy oh boy, with only a MONO mic input to use AudioScope gets much more difficult when the ALTDC board is included.
It needs, so far, two hits at the MIC input with a single hit at the HEADPHONE audio output.
The first at the highest practical resolution for the AC component and the second... (0 Replies)
Hi guys...
Well I have entered an area of partial insnity... ;o)
Below is a photo of the 'ALTDC' board for AudioScope.sh...
I have decided to incorporate all three methods for obtaining DC into this MBP via the MIC input.
1) VFO.
2) CHOPPER.
3) COUNTER.
The controller for the COUNTER... (9 Replies)
Development machine:- Standard MBP 13 inch, OSX 10.7.5...
GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin11)
Copyright (C) 2007 Free Software Foundation, Inc.
Scenario:- Audio capture for AudioScope.sh for CygWin without ANY third party installs.
I am trying my hardest to get a... (6 Replies)
Hi all...
Has _below_ ever been done in UNIX shell scripting before?
(I have done this easily in Python but this is using purely the shell.)
The DEMO version IS built and has been tested.
Pre-amble...
I now need at least one control pulse for the AudioScope.sh when in PURELY audio I/O mode,... (2 Replies)
Hi Admin and Staff...
Thanks for hosting AudioScope.sh on this site. I have had the biggest surprise of my life today.
This months issue of the UK Linux magazine "Linux Format" have done a small piece on the project.
Issue April 2014, LXF 182, page 65...
This I never expected and I... (1 Reply)