The Start Of A Simple Audio Scope Shell Script...


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting The Start Of A Simple Audio Scope Shell Script...
# 57  
Old 01-30-2015
Hi Corona688...

It does give a TC of around 1 Second and I always err on the high side with RC networks.
It is subjective though.
It does work better than expected however.
Working on auto switching in _real-time_ at the moment and putting this baby in a box with input attenuators for 1V an 10V per division.
I will put the auto switching in a separate box too so that everything is modular and can be used for something else in the future.
Gimme time to draw the circuit(s) as doing it in text mode is NOT easy.
The only thing I have to be careful of is crosstalk from the earphone output(s) to the mic input in simultaneous soundcard access mode, but, I do have a workaround if it is required.
# 58  
Old 01-30-2015
It's not an RC network, though. What happens if you just leave the capacitor out?
# 59  
Old 01-30-2015
The O/P CR is a differentiator and I put the C in to _isolate_ the input from the output.

Also if the input resistance, (note resistance like in my vertical amp circuit), of any other home brew vertical amp, (it doesn't have to be mine), is low to medium then the high value C will aid in reducing any differentiation and isolate the two.

Although at about 2KHz clock speed I probably do not need to worry.

HTH.
# 60  
Old 01-30-2015
Differentiation is precisely what you don't want a chopper to do. When the chopper's on, you want the signal grounded out, when it's not, you want raw, undistorted signal.

A capacitor certainly doesn't isolate it, in any case. It has to be charged up by the input signal, the larger the value, the harder it sucks on it. You're putting your signal, input and output, through a fairly brutal low pass filter.

If the chopper is distorting the input, your input resistance of 1K may be too low.
# 61  
Old 01-31-2015
Found this little snippet:-

Almost identical to mine except mine runs at 2KHz...

Index 1372 - Circuit Diagram - SeekIC.com

Back to your reply:-
In the above cct the C 0.1uF in that case is acting as a DC blocker exactly the same as mine.
Mine has 100K to ground on the input and 1M to ground on the output, there is a reason, - why?

The TC, (time constant), on the O/P when not connected to anything at all is 1 Second.
This approximately gives me a turnover real audio frequency of 1Hz at 6dBV down. The upper limit depends on CCT strays. This TC is OTT for a 2 KHz chopper clock signal but I tend to go OTT at times.
I could have used 0.01uF and this would still work because the TC is 100Hz before turnover occurs.
The C is purely for AC coupling and is technically in fact a high pass filter not low pass.
High-pass filter - Wikipedia, the free encyclopedia
Low-pass filter - Wikipedia, the free encyclopedia

I want the 2 KHz to go through as it is AM at any random DC, in other words it is effectively a carrier of 2 KHz modulated at any random DC level.
It goes without saying that with a little jiggery pokery an AC signal modulating this carrier could be used to extend the BW of the MBPs microphone audio from DC - 20KHz fairly flat.

It works and if you want real AC coupled oscilloscope displays then I will create some when the box is finished.

And finally the WHOLE system is AC coupled so I don't really need the 1uF and 1M at all.
But this is modular project which leads to what I was taught......
NEVER put DC into any random black box system without some kind of blocking capacitor and in my case a 1M shunt resistor.

EDIT:
A simple CCT change that generates a 2KHz carrier at 1V P-P, where a maximum of 2V P-P signal, centred at 1V instead of ground, can modulate it from DC to say 200Hz.
Code:
                               R3 = 1M
    O/P O-----------------*----/\/\/\----+ 
                          |            __|__
                          |            /////
                         === C1 = 1uF
                          |
 LF AC OR    R1 = 1K      |
 DC I/P O----/\/\/\----*--*--+
                       |     |
                       \     o C  Q1 = BC549
                       /      \    b
             R2 = 100K \       \|__o----/\/\/\----O Square wave in from approx 2KHz multivib.
                       /       /|      R4 = 22K
                       \     |/_
                       /     o e
                       |     |
   _GND_  O----*-------)-----*--------------------O
             __|__     |
             /////     |
                       |
  +1V REF O------------+


Last edited by wisecracker; 01-31-2015 at 06:31 AM.. Reason: Add simple modified circuit.
This User Gave Thanks to wisecracker For This Post:
# 62  
Old 02-01-2015
Another variant using an extra transistor as an input offset bias from + or - 0.5V.

This generates the regulated 5V rail for the clock and creates a virtual earth, IF REQUIRED, for the input from a non regulated negative rail from a single PP3 battery only. The -ve BIAS is taken from the volts drop across a(n) LED through a PNP transistor. For all intents and purposes under normal conditions the LED is a regulator of around 1.8 to 2.1V. This is not critical...

I now have the second CCT but with contol of any offset carrier if needed.

Decoupling may be required from A to _GND_ because of the 2KHz clock, we will see... ;o)

Bazza...
Code:
                               R3 = 1M       SUPPLY FOR CLOCK AND BIAS TRANSISTOR
    O/P O-----------------*----/\/\/\----+        +5V O----*----------*----------+
                          |            __|__               |          |          |
                          |            /////               |          ^          |
                         === C1 = 1uF                      |       FROM R6       |
                          |                                | +                 + |
 LF AC OR    R1 = 1K      |                              --+--+                __|__
 DC I/P O----/\/\/\----*--*--+                            / \ | ZD1             ===
                       |     |                  2KHz TTL '___' 5.1V              |
                       \     o C  Q1 = BC549     +-+ +-    |                 BY1 |
                       /      \    b            -+ +-+     |                     |
             R2 = 100K \       \|__o----/\/\/\----O        |                   __|__
                       /       /|      R4 = 22K CLOCK IN   |                    ===
                       \     |/_                  O        |                     |
                       /     o e                  |        |    LED1             |
                       |     |                    |        |   |\|>>>  R5 = 120R |
   _GND_  O----*-------)-----)--------------------*------*-*---| +---*---/\/\/\--*
             __|__     |     |                           |     |/| + |           |
             /////   A +-----*--*--/\/\/\---> +5V        |           |           |
                                | R6 = 3K9               +---/\/\/\=-+ RV1 = 2K2 |
  "A" SET BIAS, -0.5V TO +0.5V  |                         BIAS -+-               |
           AS REQUIRED          | e     c                       |                |
                                +-o     o-----------------------)----------------+
                                   \   /                        |
                                 b _\|/ Q2 = BC557              |
                                   --+--                        |
                                     |                          |
                                     o--------------------------+


Last edited by wisecracker; 02-01-2015 at 05:49 PM.. Reason: Add line at the end...
This User Gave Thanks to wisecracker For This Post:
# 63  
Old 02-02-2015
I really don't get it. A chopper is supposed to make a squarewave of nearly the same amplitude. Putting a high frequency chopper through a brutal low-pass like that would turn it into a tiny triangle wave, no?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. OS X (Apple)

A simple variable frequency sinewave audio generator.

Hi all... Well I have not been inactive but working out how to make OSX 10.14.x command line audio player have a variable sample rate. This is a back door as afplay does not have a sample rate flag unlike aplay for ALSA, in Linux flavours. This is a DEMO only but a derivative of it will... (2 Replies)
Discussion started by: wisecracker
2 Replies

2. Shell Programming and Scripting

Generate 10000 unique audio file of 2MB each using shell script.

Hi, I want 10000+ unique Audio file of approx 2MB each. How can i generate numerous audio files using shell script. Any tool, command or suggestions are welcome. If i give one audio seed file then can we create numerous unique files with same seed file? Any help is highly appreciable.... (11 Replies)
Discussion started by: sushil.kumar
11 Replies

3. OS X (Apple)

Python script to do simple audio capture...

This site is the first to get this snippet. It will capture an audio recording of any time length within the limits of OSX's QuickTime Player's capablility... A shell script derivative of this will be used as a further capture for CygWin's AudioScope.sh. Thoroughly read ALL the comments in... (0 Replies)
Discussion started by: wisecracker
0 Replies

4. UNIX for Dummies Questions & Answers

unable to start shell script

Hi, Pleasse could someone advise why i'm getting this error below - No such file or directory dev6:$ ls -ltr ReleaseManagement.sh -rwxr-xr-x 1 dev fix 4830 Aug 22 11:13 ReleaseManagement.sh dev6:$ ./ReleaseManagement.sh : No such file or directory dev6:$ thank you (2 Replies)
Discussion started by: venhart
2 Replies

5. Shell Programming and Scripting

The scope of the shell/perl script is to read the input text file. Validate the expiry date of each

The scope of the shell/perl script is to read the input text file. Validate the expiry date of each certificate and send the mail to the user. The user takes action to add the new certificate to the storage file and user owns the responsibility to update the input text file with the new certificate... (5 Replies)
Discussion started by: casmo
5 Replies

6. What is on Your Mind?

Scope of Shell Programming and scripting

Hi all, I want to know what is the scope and job status of shell Programming and scripting. Does it have any attractive jobs? (2 Replies)
Discussion started by: malikshahid85
2 Replies

7. Shell Programming and Scripting

Help with stop/start Shell Script.

Hi All, I would like to develop a shell script for stop & start an application server (1-4) on Solaris box. Here are the user requirements for this task. 1. User will input the option which server they wish to stop. 2. Will clear cache files from specific location. 3. ... (1 Reply)
Discussion started by: venga
1 Replies

8. Shell Programming and Scripting

scope of a Variable inside shell script

hi all, i'm using the following script, Status=1 Function_do () { while read line; do if ; then #echo $line if ; then Status=0 echo " LINKINK ERROR " fi fi done < ldd.log } Function_do (4 Replies)
Discussion started by: vij_krr
4 Replies

9. Shell Programming and Scripting

simple shell - how to get a parameter typed in a shell script

Hi, I am new to unix and using linux 7.2. I would like to create a script that would make it easyer for me to run my java programms. At the moment I have to type java myJavaprogram I am trying to write a script that will allow me to type something like this "myscript myJavaprogram" or maybe... (4 Replies)
Discussion started by: cmitulescu
4 Replies

10. Shell Programming and Scripting

problem with shell variable's scope

Hi, I am stuck while developing a shell sub-routine which checks the log file for "success" or "failure". The subroutine reads the log file and checks for key word "success", if found it set the variable (found=1). It returns success or failure based on this variable. My problem is, I can... (2 Replies)
Discussion started by: cjjoy
2 Replies
Login or Register to Ask a Question