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...
# 64  
Old 02-02-2015
Hi Corona688...

No.

It is a series C loaded into 1M in the open cct O/P in the diagram. It is not a shunt C.
The series C and shunt R is a effectively a high pass filter but with a very low LF cut off frequency of around 5Hz. This is so as to maintain the shape of the SQ wave on the O/P.
An external load of 100K will make little or no difference to the O/P.

The C is effectively a short cct to AC but _infinite_ 'resistance' at DC.

The SQ wave is fed into the series C and the O/P follows the input with almost no attenuation at all. The I/P is grounded in this case through 100K.

When the DC voltage is 0V on the I/P the O/P is also 0V.

Any +ve DC voltage on the I/P is reflected on the O/P as an identical waveform to the I/P of the same amplitude BUT is now AC coupled on the O/P. Remember the C is effectively a S/C at 2KHz. In other words a 2V DC I/P will become 2V P-P centred about 0V. The peak amplitude remains the same. This makes for ultra-simple sampling and decoding through the sound card.

(Reactance); Xc=1/(2*PI*f*C) where f is in Hz C is in Farads.

So its reactance, (AC__resistance__)......

Xc=1/(2*PI*2000*(10^-6))

This is around 80 ohms. Effectively a S/C to AC but completely blocks any DC component.

However The DC component is now a copy of the I/P but centred around real 0V. That is 2V DC relative to 0V is equivalent to +1V and -1V centred on 0V.

Hope this makes sense...

I have been doing this stuff for at least 20 years on differing platforms.

Here is a GIF anim of a full application I wrote for the AMIGA and finshed in 2001:-

http://wisecracker.host22.com/public/SCOPE.GIF

It has a GUI of its own, buttons that stay depressed when _pushed_. The waveform is a real one generated from a second AMIGA. And a FULL project for anyone to build on AMINET. A fully calibrated DC - 100KHz Oscilloscope where everything inculding simple calibration gear is built. This was aimed at the more experienced constructor.

Bazza...
This User Gave Thanks to wisecracker For This Post:
# 65  
Old 02-02-2015
I somehow missed the 1M. Excuse me. You are correct.
# 66  
Old 02-02-2015
Hi Corona688...

Ha ha, I am glad we have cleared that one up... ;o)

Text mode circuits are not easy to read, but sure are easy to place into a script... ;o)

I am only going to use the original or second cct for the time being...

I am coding for it ATM but I leave my options open for the last one. The only problem is that the last one takes much longer to build than the simple or second version.

If I do a FIXED reference for the I/P voltage rather than connected to _GND_ then this makes for the ability to make the BW using this part from DC to about 200 Hz. This would allow for the Mic input roll off which I assume to be around 300Hz. It would take 2 scans to do, firstly the the normal AC capture, then switch to the chopper and scan the DC to LF component.

A reference voltage can be near anything from say 0 to +2.5V.

This should be relatively easy to code for using shell scripting as this now becomes modulated carrier of + or - DC offset centred on DC offset. This coiuld be regarded as a sampler in its own right. I was thinking of using a forward biased small signal silicon diode, like a 1N4148 for a reference of about 0.7V, accuracy is of no importance...

You now see where I am coming from... <wink>

I can honestly say that I don't think a project like this has ever been done before.

A shell script creating near everything to run and calibrate an audioscope from DC to 20KHz in pure text mode through the Mic input.

I have learnt a lot from you guys at shell scripting and all that bragging by me two years ago is now slowly converging to a sophisticated conclusion...

Admis and staff, thanks for allowing this to continue...

Bazza.

Last edited by wisecracker; 02-03-2015 at 03:57 AM.. Reason: Wrong diode number, should be 1N4148 not 1N1418... ;o)
This User Gave Thanks to wisecracker For This Post:
# 67  
Old 03-25-2015
Hi everyone...

This is the still unfinished manual that is part of the AudioScope.sh.

I need a little help please.

I have copied it from the running file generated and would like a little bit of help from those following it.

It has been modified quite a bit and although still unfinished would some of you who are following it please proof read it for typos, spelling, grammar and if it seems to makes sense.

This is it so far to the version 0.31.27 which is not officially released yet.

Would you post on here if you find anything that fails.

To see the drawings the whole is best viewed in plain text format.

(Note: I had to add the '.txt' extension to get it to upload.)

TIA...

Bazza...

Last edited by wisecracker; 03-25-2015 at 12:45 PM.. Reason: Changed version to 0.31.27 and changed Manual to suit.
This User Gave Thanks to wisecracker For This Post:
# 68  
Old 03-25-2015
109: colour?
<multiple> automatically
<multiple> tolerence
444: though - unsure of usage
497: Thoroughly
868: requird
906: thge
1000: you could save easy 8 chars by removing unrequired - between pseudoground and R1 and between R2 and R3. (if that was an issue?)
1102: virtaul
1137: Verobaord

Unsure:
917: flanged
1185-1187: potentiometer

Note that i'm neither a sound guy nor is english my native language.

Hope this helps
# 69  
Old 03-25-2015
Quote:
Originally Posted by sea
109: colour?
<multiple> automatically
<multiple> tolerence
444: though - unsure of usage
497: Thoroughly
868: requird
906: thge
1000: you could save easy 8 chars by removing unrequired - between pseudoground and R1 and between R2 and R3. (if that was an issue?)
1102: virtaul
1137: Verobaord

Unsure:
917: flanged
1185-1187: potentiometer

Note that i'm neither a sound guy nor is english my native language.

Hope this helps
Automatically is correct in UK English.

Tolerance: thanks a lot, no idea why I spelt it that way numerous times.

Though, thoroughly and flanged are correct UK English.

Required, the, virtual and Veroboard now corrected.

(Left the drawing '-' as is as it looks better.)

Ecellent job thank you very much...

EDIT:-

Version now at 0.31.27...

Last edited by wisecracker; 03-25-2015 at 12:46 PM.. Reason: See above.
# 70  
Old 03-25-2015
Your text sounded like you wanted to get rid of unrequired dashes.. Smilie
Guess to foreign eyes, a word like thoroughly and automatically is like writing unnecessarily.

Copy & paste can be friend or foe Smilie

Welcome Smilie
This User Gave Thanks to sea For This Post:
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