This circuit exploits the high slew rate, high input impedance, and high output-voltage capability of CA3140 BiMOS op amp. It also provides mid-band unity gain with standard linear potentiometers.
Baxandall Tone-Control Audio Amplifier |
Decimal | The | A 3 | A 2 | A 1 |
---|---|---|---|---|
0 | 0 | 0 | 0 | 0 |
1 | 0 | 0 | 0 | 1 |
2 | 0 | 0 | 1 | 0 |
3 | 0 | 0 | 1 | 1 |
4 | 0 | 1 | 0 | 0 |
5 | 0 | 1 | 0 | 1 |
6 | 0 | 1 | 1 | 0 |
7 | 0 | 1 | 1 | 1 |
8 | 1 | 0 | 0 | 0 |
9 | 1 | 0 | 0 | 1 |
decToBcd byte (byte val) { return ((val / 10 * 8) + (val% 10)); }
/ * Example of a counter from 0 to 9 that adds each Since there is an entry in A0 author: Arturo Guadalupi * / // Declaration of pins used in the 4511 entries The const int = 2; const int b = 3; const int c = 4; const int D = 5; void setup () { pinMode (A0, INPUT); pinMode (A, OUTPUT); // LSB pinMode (B, OUTPUT); pinMode (C, OUTPUT); pinMode (D, OUTPUT); // MSB } int count = 0; // Used for the variable number void loop () { if (digitalRead (A0) == LOW) // if the button is pressed on the A0 input { count ++; delay (200); // The delay prevents multiple counts if (count == 10) // 0-9 counter count = 0; to_BCD (); // Convert to binary } if (count == 10) count = 0; } to_BCD void () { if (count == 0) // write 0000 { digitalWrite (A, LOW); digitalWrite (B, LOW); digitalWrite (C, LOW); digitalWrite (D, LOW); } if (count == 1) // write 0001 { digitalWrite (A, HIGH); digitalWrite (B, LOW); digitalWrite (C, LOW); digitalWrite (D, LOW); } if (count == 2) // write 0010 { digitalWrite (A, LOW); digitalWrite (B, HIGH); digitalWrite (C, LOW); digitalWrite (D, LOW); } if (count == 3) // write 0011 { digitalWrite (A, HIGH); digitalWrite (B, HIGH); digitalWrite (C, LOW); digitalWrite (D, LOW); } if (count == 4) // write 0100 { digitalWrite (A, LOW); digitalWrite (B, LOW); digitalWrite (C, HIGH); digitalWrite (D, LOW); } if (count == 5) // write 0101 { digitalWrite (A, HIGH); digitalWrite (B, LOW); digitalWrite (C, HIGH); digitalWrite (D, LOW); } if (count == 6) // write 0110 { digitalWrite (A, LOW); digitalWrite (B, HIGH); digitalWrite (C, HIGH); digitalWrite (D, LOW); } if (count == 7) // write 0111 { digitalWrite (A, HIGH); digitalWrite (B, HIGH); digitalWrite (C, HIGH); digitalWrite (D, LOW); } if (count == 8) // write 1000 { digitalWrite (A, LOW); digitalWrite (B, LOW); digitalWrite (C, LOW); digitalWrite (D, HIGH); } if (count == 9) // write 1001 { digitalWrite (A, HIGH); digitalWrite (B, LOW); digitalWrite (C, LOW); digitalWrite (D, HIGH); } }
ledpins int [] = {4,5,6,7,8,9,10,11}; byte digits [] = {B11111100, B01100000, B11011010, B11110010, B01100110, B10110110, B10111110, B11100000, B11111110, B11110110}; void setup () { for (int i = 0; i <8; i ++) { pinMode (ledpins [i] OUTPUT); digitalWrite (ledpins [i], HIGH); } } void loop () { for (int i = 0; i <10; i ++) { displayDigit (i); delay (1000); AllOff (); delay (500); } } displayDigit void (int digit) { for (int i = 0; i <8; i ++) { digitalWrite (ledpins [i] ,! bitRead (digits [Scan], 7-i)); } } void AllOff () { for (int i = 0; i <8; i ++) { digitalWrite (ledpins [i], HIGH); } }
Circuit description: Connecting two TDA2030 thru cheap power transistors we can create a amplifier wich can deliver a higher power. Wi...