Sunday, July 14, 2013

Amplifier using LM380n-8


Type
Quantity
Value
IC
1
LM380N-8
POTENTIOMETER
1
10K ohms
BATTERY
1
9v
RESISTOR
1
2.7 Ohms    ¼ Watt
CAPACITOR
1
100nF          100V

1
4.7uF           25V

1
470uF          25V

1
220uF          25V
Speaker
1
8ohm        10Watt

Battery can be replaced by a DC power supply up to 22V.


IC DESCRIPTION

The LM380 is a power audio amplifier for consumer applications. In order to hold system cost to a minimum, gain is internally fixed at 34 dB. A unique input stage allows ground referenced input signals.
The output automatically self-centers to one-half the supply voltage. The output is short circuit proof with internal thermal limiting. The package outline is standard dual-in-line. The LM380N uses a copper lead frame. The center  the three pins on either side comprise a heat sink. This makes the device easy to use in standard PC layouts. Uses include simple phonograph amplifiers, intercoms, line drivers, teaching machine outputs, alarms, ultrasonic drivers, TV sound systems, AM-FM radio, small servo drivers, power converters, etc.

*IC description and features are from http://www.ti.com/lit/ds/symlink/lm380.pdf


FEATURES
• Wide Supply Voltage Range: 10V-22V
• Low Quiescent Power Drain: 0.13W (VS= 18V)
• Voltage Gain Fixed at 50
 • High Peak Current Capability: 1.3A
• Input Referenced to GND
• High Input Impedance: 150kΩ
• Low Distortion
• Quiescent Output Voltage is at One-Half of the Supply Voltage
 • Standard Dual-In-Line Package













Friday, January 25, 2013

matlab gui to control servo motor


*initial position 90 degrees


This project is almost similar to the servo motor posted before but in here mouse is used to control the motor instead of joystick.   

The signal pin (yellow) of the servo motor is connected  to the digital pin 9 of the arduino.

For the file:
step 1: open pde folder
2: open open adiosrv folder
3: upload the adiosrv pde file to your arduino
4: run the SERVO MATLAB M-File

download the file here








Thursday, January 3, 2013

Stepper motor control using Arduino and L293


Components
IC1
L293D

B1
5v DC supply

SW1,SW2
N.O. Push Button

R1,R2,R3,R4
100 omhs   1/4W

R5.R6
10k ohms 1/4W

D1,D2,D3,D4
LED

CN1
To pin13 (digital pin)
ARDUINO
CN2
To pin12 (digital pin)
CN3
To pin11 (digital pin)
CN4
To pin10 (digital pin)
CN5
To Stepper motor(4 wire)
MOTOR
CN6
To pin2 (digital pin)
ARDUINO
CN7
To pin3 (digital pin)
CN8
To A0(analog pin)
CN9
To Ground pin
CN10
To 5v pin




























There are 2 push buttons, one is for CW rotation and the other is for reverse.
Potentiometer is used to control the speed of the motor. Minimum speed is 0 and 100 for the maximum. If the speed is 0 the motor will not rotate even the push button is pressed. If the two push buttons were pressed the motor will not rotate as well. 


Codes:


#include <Stepper.h>

int forward = 2;
int reverse = 3;

Stepper motor(200, 10,11,12,13);            

void setup() {
  pinMode(forward,INPUT);
  pinMode(reverse,INPUT);
    Serial.begin(9600);
}

void loop() {
  int Speed = analogRead(A0);
  int RPM = map(Speed, 0, 1023, 0, 100);
  int f = digitalRead(forward);
  int r = digitalRead(reverse);
  if(f == 1 && r == 0 && RPM > 1){
  motor.step(1);
    motor.setSpeed(RPM);
    delay(.01);
  }
  if(r == 1 && f== 0  && RPM > 1){
    motor.step(-1);
    motor.setSpeed(RPM);
        delay(.01);
  }
  delay(5);
    Serial.println(RPM);
}







Friday, October 5, 2012

Roulette


Roulete Circuit using 555 timer and 4017 decade counter.

COMPONENTS
IC1
555 timer
IC2
4017 decade counter
SW1
N.O. Push Button
Q1
BC557 PNP
B1
5v battery
C1
4.7uf
C2
100nf
R1
3.3M ohms
R2
4.7M ohms
R3
10k ohms
R4
3.3M ohms
R5,R6,R7,R8,R9,R10,R11,R12,R13,R14
100 ohms
D1,D2,D3,D4,D5,D6,D7,D8,D9,D10
LED





Every time SW1 is pressed, LED turns on immediately and in order. And if you let go of the SW, the light gradually turns off randomly.








First To Press


There will be 5 push buttons one for each of the 4 players and then a reset button. 

player 1
player 2
player 3
player 4
and for the host (reset)

COMPONENTS
SW1
N.O. Push Button
SW2
N.O. Push Button
SW3
N.O. Push Button
SW4
N.O. Push Button
SW5
N.O. Push Button
IC 1  and   IC 4
7408  quad 2 input and gate
IC 2  and   IC 3
4013  dual D flip flop
IC 5
7432 quad 2 input or gate
R1,R2,R3,R4, R5,R6
1k ohms 1/4W
R7,R8,R9,R10,R11,R12,R13,R14,R15,R16
10k ohms 1/4W
R17,R18,R19,R20
100 ohms 1/4W
D1,D2,D3,D4
LED
BZ1
Buzzer
First To Press Video




If SW 1 is pressed LED 1 will lit and the buzzer will turn on and  for the other SW, it will be disabled until the reset (SW5) is pressed...the same goes for  SW 2 3 and 4...

SW 5 is connected to the reset of all the D flip flop, then the Q’ of the And gate. When we press SW 5 all  Q’ will turn on so that the pin 8 of IC 3 will be high, and all  LEDs are low. Then one of the inputs of the And gate in IC 1 will be high. If one of the SW1 , SW2 ,SW3, SW4 is pressed one of the SET pin of the D flip flop will be high then its output Q will then be at high also, LED will turn on and pin 8 of IC 3 will be low.







Wednesday, October 3, 2012

FM wireless Transmitter

Frequency: 88-108 MHz





Components
R1
4.7K ohms   1/4W
R2
100k ohms 1/4W
R3
4.7K ohms   1/4W
R4
10K ohms   1/4W
R5
4.7K ohms   1/4W
R6
270 ohms   1/4W
C1
10uf    16v     electrolytic
C2
10uf    16v     electrolytic
C3
1nf  ceramic
C4
3 – 18 pf variable cap.
C5
10pf    ceramic
C6
10pf    ceramic
C7
10pf    ceramic
C8
10pf    ceramic
C9
10pf    ceramic
C10
10pf    ceramic
C11
4pf    ceramic
Q1
2n3904
Q1
2n3904
B1
9v Battery
L1
5turns, 5mm diameter, 22awg magnetic wire
L2
5turns, 5mm diameter, 22awg magnetic wire
Ant
Antenna


It transmits clear signal but for shorter range only.