The DC Control and Timer boards for AudioScope.sh...

 
Thread Tools Search this Thread
Operating Systems OS X (Apple) The DC Control and Timer boards for AudioScope.sh...
# 1  
Old 09-08-2015
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...
Code:
#!/bin/bash
# trigger_test
# Simulate a hires AC capture...
/Users/barrywalker/sox-14.4.0/sox -q -V0 -d -t raw -r48000 -b8 -c1 -e unsigned-integer -> /tmp/waveform.raw trim 0 00:01
# Use the 8000 byte 1 second lores squarewave.raw file for a 170mS burst pulse at 48KHz sample rate giving a 6KHz frequency.
/Users/barrywalker/sox-14.4.0/sox -q -V0 -b8 -r48000 -e unsigned-integer /tmp/squarewave.raw -d
# Temporarily connect the VFO for this basic test to convert the VFO symmetricalwave.raw to the DC readout. 
/Users/barrywalker/sox-14.4.0/sox -q -V0 -d -t raw -r8000 -b8 -c1 -e unsigned-integer -> /tmp/symmetricalwave.raw trim 0 00:01

EDIT:
The Dc Control board circuit, now added to the script...
Code:
# #########################################################
# The SEVENTH extremely simple circuit diagram.
# The DC Control circuit for the ALTDC modes.
# This DC controlled switch is for switching the input of the Y amplifier to
# the output of the ALTDC board and the input to the ALTDC board to the probe.
#                                                                  +------o------+
#                                                                  |      |      |
#                                                                  \      |      |
#                                                                  /      |      |
#  C = Common.             +------O NO                          R3 \    + |      o
# NO = Normally Open.      v                                       /    --+--  S1 /
# NC = Normally closed. NO                                         \  D1 / \     o
#                          ^                                       /    '---'    |
#              C O---o----<o> RLA1 & RLA2 Isolated Contacts.       |      |      |
#                          v                                    +--+--+   |      |
#                       NC ^                     TP1 Optional.  | RLA |   |      | +
#                          +------O NC                 O        +--+--+   |    __|__
#                                                      |        c  |      |     ===
#                                                      |        o--o------+      |
#                        R1     * RV1 Optional.        |  b    /             BY1 |
#  From Trigger  O-----/\/\/\---o---/\/\/\---o------o--o--o__|/  Q1            __|__
# Control Board.                |    ___     |      |        |\                 ===
#                               |     |      |      \          \|                |
#                               +-----+      | +    /         --o--+             |
#                                        C1 ===  R2 \           e  |             |
#                                           ---     /              |             |
#                                            |      \              |             |
#                                            |      /              |             |
#                                            |      |              |             |
#          _GND_ O-----o---------------------o------o--------------o-------------+
#                    __|__
#                    /////
# PartsList:-
# R1 ......... 2K2, 1/8W, 5% tolerance resistor.
# R2 ......... 1M, 1/8W, 5% tolerance resistor.
# R3 ......... 47R, 1/8W, 5% tolerance resistor.
# RV1 ........ 2K2 preset variable resistor, (* optional).
# C1 ......... 220uF, 10V electrolytic capacitor.
# Q1 ......... BC549, or any small signal silicon NPN transistor.
# D1 ......... 1N4004 or any similar silicon rectifier diode.
# RLA ........ DPDT, 5 Volt coil, relay.
# S1 ......... Miniature ON/OFF switch.
# BY1 ........ PP3 battery.
# PP3 battery connector.
# Link Terminals, as required, (TP1 Optional).
# Stripboard, (Veroboard), as required.
# Various coloured and tinned copper wire as required.
# Small cable ties, optional.
# Stick on cable clip, optional.
# #########################################################

The DC Control and Timer boards for AudioScope.sh...-dc_controljpg
The DC Control and Timer boards for AudioScope.sh...-timerjpg

Last edited by wisecracker; 09-21-2015 at 05:22 AM.. Reason: (The circuit, now added to the script.) Corrected a parts list error.
This User Gave Thanks to wisecracker For This Post:
# 2  
Old 09-10-2015
Are PLA and RLA the same thing?
This User Gave Thanks to Corona688 For This Post:
# 3  
Old 09-10-2015
Quote:
Originally Posted by Corona688
Are PLA and RLA the same thing?
OUCH!
I missed that, momentary dyslexia perhaps.
Thanks a lot for seeing it. Corrected for the next upload and will edit the parts list...
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. OS X (Apple)

AudioScope Project.

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)
Discussion started by: wisecracker
7 Replies

2. UNIX for Advanced & Expert Users

Has AudioScope found a bug in bash 4.4.5?

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)
Discussion started by: wisecracker
11 Replies

3. What is on Your Mind?

AudioScope...

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)
Discussion started by: wisecracker
0 Replies

4. OS X (Apple)

The Alternate DC board for AudioScope.sh.

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)
Discussion started by: wisecracker
9 Replies

5. Shell Programming and Scripting

Experimental awk audio converter for CygWin and AudioScope.sh

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)
Discussion started by: wisecracker
6 Replies

6. OS X (Apple)

AC to DC trigger pulse for AudioScope.sh.

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)
Discussion started by: wisecracker
2 Replies

7. What is on Your Mind?

AudioScope has had a magazine review. <shock>

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)
Discussion started by: wisecracker
1 Replies

8. UNIX for Dummies Questions & Answers

UBB boards?

How would i go about making a UBB board. I have downloaded Perl but what else do i need? (1 Reply)
Discussion started by: blueeyez
1 Replies
Login or Register to Ask a Question