aj soundcard tech-manual - instructables€¦ · this is a brief manual containing relevant...

15
Aj_SoundCard Version 1.0 www.ajoyraman.in Aj_SoundCard Sound Card Interface Technical Manual

Upload: others

Post on 26-Mar-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Aj SoundCard Tech-Manual - Instructables€¦ · This is a brief manual containing relevant technical data required for understanding ... Once the Aj_SoundCard_SigGen USB and Audio

Aj_SoundCard Version 1.0

www.ajoyraman.in

Aj_SoundCard

Sound Card Interface

Technical Manual

Page 2: Aj SoundCard Tech-Manual - Instructables€¦ · This is a brief manual containing relevant technical data required for understanding ... Once the Aj_SoundCard_SigGen USB and Audio

Aj_SoundCard Version 1.0

www.ajoyraman.in

1 of 10

1. Introduction: This is a brief manual containing relevant technical data required for understanding construction and use of the Aj_SoundGen_SigGen ‘PC Sound card interface’.

This unit is designed as a teaching aid for budding engineers, electronic enthusiasts and hobbyists. The Aj_SoundGen_SigGen unit is connected to the PC audio output and draws power through an USB connector. This unit overcomes the basic limitations of AC coupling and ±2V signal level limit of the audio output and implements a simple circuit providing a fixed gain and a variable offset of typically ±5V at the signal generator output. 2. Warning & Disclaimer: All content provided in this document is for informational purposes only. The owner of this document makes no representations as to the accuracy or completeness of any information. The owner will not be liable for any errors or omissions in this information. The owner will not be liable for any losses, injuries, or damages from the display or use of this information including software.

Figure 1 Aj_SoundGen_SigGen PC Sound Card Interface

Page 3: Aj SoundCard Tech-Manual - Instructables€¦ · This is a brief manual containing relevant technical data required for understanding ... Once the Aj_SoundCard_SigGen USB and Audio

Aj_SoundCard Version 1.0

www.ajoyraman.in

2 of 10

3. Specifications Input No of Channels Two Audio Left/Right Input impedance 10 kilo Ohm Input connection 3 mm Audio Jack Output

Sin/Square/Triangle Gain 5.5 Offset ± 5V Aux out1 1V Sq 40kHz Aux out1 5V Sq 40kHz Sampling Rate 44 kbps PC Software VB.Net 2.0 Power Supply USB +5V 20mA 4. Block Schematic and Function Description

GND

+5V

R-CHANNEL

L-CHANNEL

GND

SIN/SQ/TRI OUT

GND OUT

5V SQ 40 KHZ

1V SQ 40 KHZCIRCUITRY

GAIN/SUM

PWM-DC

MAX232

PC U

SB P

OR

T

DUAL DRIVER/RECEIVER

PC A

UD

IO O

UT

SIN/SQ/TRI

441Hz PWM

+8V -8V

Figure 2, Aj_SoundGen_SigGen simplified block schematic

Page 4: Aj SoundCard Tech-Manual - Instructables€¦ · This is a brief manual containing relevant technical data required for understanding ... Once the Aj_SoundCard_SigGen USB and Audio

Aj_SoundCard Version 1.0

www.ajoyraman.in

3 of 10

Figure 2 shows the simplified block schematic of the system. The USB +5V is fed to the MAX232 dual driver/receiver which carries out several functions:

• Generation of generates +8V and -8V supply for the op-amp circuitry • Conversion of TTL level PWM to ± 8V level • Generation of 40 kHz aux outputs

The Left-Channel outputs a 441 Hz PWM signal which when converted to TTL and fed to the Max 232 provides a ± 8V level PWM which is averaged to provide a DC offset signal. The Right Channel provides the Sin/Square/Triangle signal from the PC which is amplified by 5.5 and summed with the DC offset signal to form the Aj_SoundGen_SigGen output. 5. Software on the PC Host: Microsoft Windows based GUI software has been developed which interfaces with the internal sound-card of the PC and provides the audio-outputs to the Aj_SoundGen_SigGen via the speaker port. Visual Basic .Net Microsoft Windows Application Code

Figure 3, Aj_SoundGen_SigGen icon MS Windows

Page 5: Aj SoundCard Tech-Manual - Instructables€¦ · This is a brief manual containing relevant technical data required for understanding ... Once the Aj_SoundCard_SigGen USB and Audio

Aj_SoundCard Version 1.0

www.ajoyraman.in

4 of 10

GUI VB.Net 2.0:

Figure 4, Aj_SoundGen_SigGen GUI

A simple GUI is used to control the PC sound-card outputs and indirectly the Aj_SoundCard_SigGen. Once the Aj_SoundCard_SigGen USB and Audio connector are connected and the PC sound card enabled with maximum volume:

• Three Radio-Buttons select the type of waveform • The first slider sets the signal generator frequency • The second slider sets the amplitude of the chosen waveform • The third slider controls the duty-cycle of the 441 Hz PWM which controls the DC

offset. • The RUN ,STOP and EXIT buttons are self explanatory To ensure compatibility with different sound-cards: • The swap-output check-box swaps the L/R channels if required • And the Invert-Offset check-box inverts the polarity of the 441 Hz PWM.

Page 6: Aj SoundCard Tech-Manual - Instructables€¦ · This is a brief manual containing relevant technical data required for understanding ... Once the Aj_SoundCard_SigGen USB and Audio

Aj_SoundCard Version 1.0

www.ajoyraman.in

5 of 10

6. Aj_SoundCard_SigGen Unit:

Figure 5, Aj_SoundGen_SigGen UNIT In order to economize on the cost of an enclosure the circuitry has been designed to fit within a small matchbox. The USB connection to the PC is on one end along with the Audio-Jack for the audio-signal input. The outputs are provided on the other side along with a power-ON LED. 7. Functional Description: PC sound cards form a readily available Signal Generator for testing electronic circuits. The utility of these signal generators is limited because the outputs are AC coupled and limited to ±2V. Taking advantage of the two channels provided by the sound card the circuit uses one channel to output the Sin/Square/Triangle waveform with a fixed gain, while setting up a 441 Hz PWM square wave on the second channel. This PWM waveform is converted to ±8V averaged and summed with the first channel to provide a DC offset controllable by the duty-cycle setting. The circuit in Figure 6 provides a variable offset of typically ±5V at the signal generator output.

Page 7: Aj SoundCard Tech-Manual - Instructables€¦ · This is a brief manual containing relevant technical data required for understanding ... Once the Aj_SoundCard_SigGen USB and Audio

Aj_SoundCard Version 1.0

www.ajoyraman.in

6 of 10

Figure 6, Aj_SoundGen_SigGen Schematic

The circuit is powered from the PC USB +5V supply which is converted by the capacitive voltage generator within the MAX232 dual driver/receiver IC, U1 to typically ±8V to power the TL082 low power op-amp, U2. L1/C8 and L2/C7 filter out the ripple on the V+ and V- outputs of U1. The 441Hz PWM waveform output on the sound-card left-channel is clamped by C1/D1 and fed through R1 to the base of T1. This produces a TTL compatible square wave at the collector of T1 which is fed to theT2IN of U1. T2OUT is a ±8V PWM waveform which is averaged by R3/C6 and buffered by U2B to generate a DC voltage depending on the PWM duty-cycle. This voltage is summed along with the Sin/Square/Triangle waveform output on the sound-card right-channel by U2A and forms the signal generator output. C16/R5 forms a low-pass filter to smoothen the quantized signal generated by the sound-card. With the values of the components shown the right-channel is amplified by a fixed gain of 5.5 and the DC offset variation is typically ±5V. Figure 7 illustrates the circuit operation. The 75% duty-cycle PWM input signal is converted to typically ±8V at T2OUT and when averaged produces ~ 4V DC at Pin7 of U2B. The 0.5V sin-wave is amplified and offset by the inverting summing amplifier U2A to form the signal generator output.

Page 8: Aj SoundCard Tech-Manual - Instructables€¦ · This is a brief manual containing relevant technical data required for understanding ... Once the Aj_SoundCard_SigGen USB and Audio

Aj_SoundCard Version 1.0

www.ajoyraman.in

7 of 10

Figure 7, Aj_SoundGen_SigGen Waveforms This circuit while removing the limitations of AC coupling and ±2V signal level limit provides a bonus output by potential dividing the C1- output of U1 using R1/R2 to provide a 1V, 40 kHz square wave which can be used for step response testing of analog circuits.

Page 9: Aj SoundCard Tech-Manual - Instructables€¦ · This is a brief manual containing relevant technical data required for understanding ... Once the Aj_SoundCard_SigGen USB and Audio

Aj_SoundCard Version 1.0

www.ajoyraman.in

8 of 10

8. Bill of materials: Sl.No. Qty Value Package Parts

1. 2 1K R0805 R9, R10 2. 1 1N914 DIODE-SOD323-W D1 3. 7 1UF C1210 C2, C3, C4, C5, C6, C 4. 1 1UF16V C1210 C1 5. 2 1mH 35mA C1812 L1, L2 6. 2 3.3K R0805 R2, R8 7. 2 10K R0805 R1, R7 8. 1 22K R0805 R4 9. 1 33PF C0805 C15 10. 1 100K R0805 R3 11. 1 100UF 16V C1812 C11 12. 1 120K R0805 R5 13. 1 180K R0805 R6 14. 1 180PF C0805 C16 15. 1 BC847 SOT23 T1 16. 1 CON-JACK-2CH CON-JACK-2CH U$2 17. 1 TL082CM SO08 IC2 18. 1 MAX232DR SO16 U$3 19. 1 OUTPUT FE06-1 SV1

9. Printed Circuit Boards:

Figure 8, Component layout Top

Page 10: Aj SoundCard Tech-Manual - Instructables€¦ · This is a brief manual containing relevant technical data required for understanding ... Once the Aj_SoundCard_SigGen USB and Audio

Aj_SoundCard Version 1.0

www.ajoyraman.in

9 of 10

Figure 9, Component layout Bottom

Figure 10, Wired PCB Top

Page 11: Aj SoundCard Tech-Manual - Instructables€¦ · This is a brief manual containing relevant technical data required for understanding ... Once the Aj_SoundCard_SigGen USB and Audio

Aj_SoundCard Version 1.0

www.ajoyraman.in

10 of 10

Figure 11, Wired PCB Bottom 10. Appendices

• Schematic Colour • Schematic B&W • PCB 1:1 A4 Top mirrored • PCB 1:1 A4 Bottom

11. Summary This document provides essential information for fabrication and operation of the Aj_SoundCard_SigGen unit. Software and Gerber Files can be downloaded from my website http://www.ajoyraman.in Address any doubts and clarifications to me at [email protected]

Page 12: Aj SoundCard Tech-Manual - Instructables€¦ · This is a brief manual containing relevant technical data required for understanding ... Once the Aj_SoundCard_SigGen USB and Audio

USB-MINI-B

CON-JACK-2CHOUTPUT

TL082CM

TL082CM

MAX232DR

V+

V-

BC847

1N914

1UF16V

1UF

1UF

1UF1UF

1UF

100UF 16V

10K

3.3K

100K

22K

120K

180K

10K

3.3K

1K

1mH

1mH

GND

GND

GND GND

GND

GND

V-

33PF

180PF

GND

1K

GND

GND

1UF

1UF

GND

GND

12345

U$1

U$231245

123456

SV1

2

31

IC2A

6

57

IC2B

C1+1

C1-3

C2+4

C2-5

T1IN11

T2IN10

R1OUT12

R2OUT9

V+ 2

V- 6

T1OUT 14

T2OUT 7

R1IN 13

R2IN 8

U$3G$1

1615

GN

DV

CC

U$3G$2

T1

D1

C1

C2

C3

C4

C5

C6

C11

R1

R2

R3

R4

R5

R6

R7

R8

R9

L1L2

C15

C16

R10

C7

C8

Ajoy
Text Box
Appendix I
Page 13: Aj SoundCard Tech-Manual - Instructables€¦ · This is a brief manual containing relevant technical data required for understanding ... Once the Aj_SoundCard_SigGen USB and Audio

USB-MINI-B

CON-JACK-2CHOUTPUT

TL082CM

TL082CM

MAX232DR

V+

V-

BC847

1N914

1UF16V

1UF

1UF

1UF1UF

1UF

100UF 16V

10K

3.3K

100K

22K

120K

180K

10K

3.3K

1K

1mH

1mH

GND

GND

GND GND

GND

GND

V-

33PF

180PF

GND

1K

GND

GND

1UF

1UF

GND

GND

12345

U$1

U$231245

123456

SV1

2

31

IC2A

6

57

IC2B

C1+1

C1-3

C2+4

C2-5

T1IN11

T2IN10

R1OUT12

R2OUT9

V+ 2

V- 6

T1OUT 14

T2OUT 7

R1IN 13

R2IN 8

U$3G$1

1615

GN

DV

CC

U$3G$2

T1

D1

C1

C2

C3

C4

C5

C6

C11

R1

R2

R3

R4

R5

R6

R7

R8

R9

L1L2

C15

C16

R10

C7

C8

Ajoy
Text Box
Appendix II
Page 14: Aj SoundCard Tech-Manual - Instructables€¦ · This is a brief manual containing relevant technical data required for understanding ... Once the Aj_SoundCard_SigGen USB and Audio
Ajoy
Text Box
Appendix III Top Mirrored
Page 15: Aj SoundCard Tech-Manual - Instructables€¦ · This is a brief manual containing relevant technical data required for understanding ... Once the Aj_SoundCard_SigGen USB and Audio
Ajoy
Text Box
Appendix III Bottom