add relais and move connections
This commit is contained in:
parent
460903a503
commit
da55fe65c9
|
@ -26,8 +26,8 @@ long last_serialdebug=0;
|
|||
|
||||
//Inputs
|
||||
#define PIN_BUTTON PB0 //D8 = PB0
|
||||
#define PIN_ENCA PD6 //D6 = PD6
|
||||
#define PIN_ENCB PD7 //D7 = PD7
|
||||
#define PIN_ENCA PC1 //A1 = PC1
|
||||
#define PIN_ENCB PC2 //A2 = PC2
|
||||
#define BUTTON_RELEASE_DEBOUNCE 100 //minimum time after button release to reenable triggering
|
||||
|
||||
boolean button_flag=false; //true if button pressed
|
||||
|
@ -46,8 +46,10 @@ Encoder volEnc(PIN_ENCA,PIN_ENCB);
|
|||
float encoderMultiplier=4.0;
|
||||
|
||||
//Servo stuff
|
||||
#define SRPIN_MOTOR_IN1 1 //L293(pin2) Motor IN1
|
||||
#define SRPIN_MOTOR_IN2 2 //L293(pin7) Motor IN2
|
||||
#define PIN_MOTOR_IN1 PD5 //to L293(pin2) Motor IN1
|
||||
#define PIN_MOTOR_IN2 PD6 //to L293(pin7) Motor IN2
|
||||
//#define SRPIN_MOTOR_IN1 1 //L293(pin2) Motor IN1 -- moved to atmega pin
|
||||
//#define SRPIN_MOTOR_IN2 2 //L293(pin7) Motor IN2 -- moved to atmega pin
|
||||
|
||||
#define PIN_POT A0 //A0 = PC0, reference potentiometer wiper
|
||||
#define DEADZONE_POTI 5 //maximum allowed error. stop when reached this zone
|
||||
|
@ -59,10 +61,14 @@ int poti_set=512; //set value
|
|||
int poti_read=0; //read value from poti
|
||||
boolean poti_reachedposition=true; //set to true if position reached. after that stop turning
|
||||
|
||||
#define MOTOR_STOP(); srWrite(SRPIN_MOTOR_IN1,LOW); srWrite(SRPIN_MOTOR_IN2,LOW);
|
||||
#define MOTOR_LEFT(); srWrite(SRPIN_MOTOR_IN1,LOW); srWrite(SRPIN_MOTOR_IN2,HIGH);
|
||||
#define MOTOR_RIGHT(); srWrite(SRPIN_MOTOR_IN1,HIGH); srWrite(SRPIN_MOTOR_IN2,LOW);
|
||||
#define MOTOR_TURNING() (srRead(SRPIN_MOTOR_IN1) != srRead(SRPIN_MOTOR_IN2))
|
||||
//#define MOTOR_STOP(); srWrite(SRPIN_MOTOR_IN1,LOW); srWrite(SRPIN_MOTOR_IN2,LOW);
|
||||
//#define MOTOR_LEFT(); srWrite(SRPIN_MOTOR_IN1,LOW); srWrite(SRPIN_MOTOR_IN2,HIGH);
|
||||
//#define MOTOR_RIGHT(); srWrite(SRPIN_MOTOR_IN1,HIGH); srWrite(SRPIN_MOTOR_IN2,LOW);
|
||||
//#define MOTOR_TURNING() (srRead(SRPIN_MOTOR_IN1) != srRead(SRPIN_MOTOR_IN2))
|
||||
#define MOTOR_STOP(); digitalWrite(PIN_MOTOR_IN1,LOW); digitalWrite(PIN_MOTOR_IN2,LOW);
|
||||
#define MOTOR_LEFT(); digitalWrite(PIN_MOTOR_IN1,LOW); digitalWrite(PIN_MOTOR_IN2,HIGH);
|
||||
#define MOTOR_RIGHT(); digitalWrite(PIN_MOTOR_IN1,HIGH); digitalWrite(PIN_MOTOR_IN2,LOW);
|
||||
#define MOTOR_TURNING() (digitalRead(PIN_MOTOR_IN1) != digitalRead(PIN_MOTOR_IN2))
|
||||
|
||||
|
||||
//Motorcheck
|
||||
|
|
|
@ -0,0 +1,57 @@
|
|||
EESchema-LIBRARY Version 2.4
|
||||
#encoding utf-8
|
||||
#
|
||||
# NEC-EB2-12NU
|
||||
#
|
||||
DEF NEC-EB2-12NU K 0 40 Y Y 1 F N
|
||||
F0 "K" 900 150 50 H V C CNN
|
||||
F1 "NEC-EB2-12NU" 950 50 50 H V C CNN
|
||||
F2 "" 250 -250 50 H I C CNN
|
||||
F3 "" 250 -250 50 H I C CNN
|
||||
DRAW
|
||||
S -600 200 600 -200 1 1 10 f
|
||||
S -525 75 -275 -75 1 1 10 N
|
||||
P 2 1 1 10 -500 -75 -300 75 N
|
||||
P 2 1 1 0 -400 -200 -400 -75 N
|
||||
P 2 1 1 0 -400 200 -400 75 N
|
||||
P 2 1 1 0 -385 110 -345 110 N
|
||||
P 2 1 1 0 -365 130 -365 90 N
|
||||
P 2 1 1 10 -275 0 -250 0 N
|
||||
P 2 1 1 10 -225 0 -200 0 N
|
||||
P 2 1 1 10 -175 0 -150 0 N
|
||||
P 2 1 1 10 -125 0 -100 0 N
|
||||
P 2 1 1 0 -100 100 -100 200 N
|
||||
P 2 1 1 10 -75 0 -50 0 N
|
||||
P 2 1 1 10 -25 0 0 0 N
|
||||
P 2 1 1 20 0 -100 -75 150 N
|
||||
P 2 1 1 0 0 -100 0 -200 N
|
||||
P 2 1 1 10 25 0 50 0 N
|
||||
P 2 1 1 10 75 0 100 0 N
|
||||
P 2 1 1 0 100 100 100 200 N
|
||||
P 2 1 1 10 125 0 150 0 N
|
||||
P 2 1 1 10 175 0 200 0 N
|
||||
P 2 1 1 10 225 0 250 0 N
|
||||
P 2 1 1 10 275 0 300 0 N
|
||||
P 2 1 1 0 300 100 300 200 N
|
||||
P 2 1 1 10 325 0 350 0 N
|
||||
P 2 1 1 20 400 -100 325 150 N
|
||||
P 2 1 1 0 400 -100 400 -200 N
|
||||
P 2 1 1 0 500 100 500 200 N
|
||||
P 3 1 1 0 -100 100 -75 125 -100 150 F
|
||||
P 3 1 1 0 100 100 75 125 100 150 N
|
||||
P 3 1 1 0 300 100 325 125 300 150 F
|
||||
P 3 1 1 0 500 100 475 125 500 150 N
|
||||
X ~ 1 -400 300 100 D 50 50 1 1 P
|
||||
X ~ 10 -400 -300 100 U 50 50 1 1 P
|
||||
X ~ 2 -100 300 100 D 50 50 1 1 P
|
||||
X ~ 3 0 -300 100 U 50 50 1 1 P
|
||||
X ~ 4 100 300 100 D 50 50 1 1 P
|
||||
X ~ 5 750 300 100 D 50 50 1 1 N
|
||||
X ~ 6 750 -300 100 U 50 50 1 1 N
|
||||
X ~ 7 500 300 100 D 50 50 1 1 P
|
||||
X ~ 8 400 -300 100 U 50 50 1 1 P
|
||||
X ~ 9 300 300 100 D 50 50 1 1 P
|
||||
ENDDRAW
|
||||
ENDDEF
|
||||
#
|
||||
#End Library
|
|
@ -57,6 +57,55 @@ X Pin_2 2 200 -100 150 L 50 50 1 1 P
|
|||
ENDDRAW
|
||||
ENDDEF
|
||||
#
|
||||
# Connector_Conn_01x03_Male
|
||||
#
|
||||
DEF Connector_Conn_01x03_Male J 0 40 Y N 1 F N
|
||||
F0 "J" 0 200 50 H V C CNN
|
||||
F1 "Connector_Conn_01x03_Male" 0 -200 50 H V C CNN
|
||||
F2 "" 0 0 50 H I C CNN
|
||||
F3 "" 0 0 50 H I C CNN
|
||||
$FPLIST
|
||||
Connector*:*_1x??_*
|
||||
$ENDFPLIST
|
||||
DRAW
|
||||
S 34 -95 0 -105 1 1 6 F
|
||||
S 34 5 0 -5 1 1 6 F
|
||||
S 34 105 0 95 1 1 6 F
|
||||
P 2 1 1 6 50 -100 34 -100 N
|
||||
P 2 1 1 6 50 0 34 0 N
|
||||
P 2 1 1 6 50 100 34 100 N
|
||||
X Pin_1 1 200 100 150 L 50 50 1 1 P
|
||||
X Pin_2 2 200 0 150 L 50 50 1 1 P
|
||||
X Pin_3 3 200 -100 150 L 50 50 1 1 P
|
||||
ENDDRAW
|
||||
ENDDEF
|
||||
#
|
||||
# Connector_Conn_01x04_Male
|
||||
#
|
||||
DEF Connector_Conn_01x04_Male J 0 40 Y N 1 F N
|
||||
F0 "J" 0 200 50 H V C CNN
|
||||
F1 "Connector_Conn_01x04_Male" 0 -300 50 H V C CNN
|
||||
F2 "" 0 0 50 H I C CNN
|
||||
F3 "" 0 0 50 H I C CNN
|
||||
$FPLIST
|
||||
Connector*:*_1x??_*
|
||||
$ENDFPLIST
|
||||
DRAW
|
||||
S 34 -195 0 -205 1 1 6 F
|
||||
S 34 -95 0 -105 1 1 6 F
|
||||
S 34 5 0 -5 1 1 6 F
|
||||
S 34 105 0 95 1 1 6 F
|
||||
P 2 1 1 6 50 -200 34 -200 N
|
||||
P 2 1 1 6 50 -100 34 -100 N
|
||||
P 2 1 1 6 50 0 34 0 N
|
||||
P 2 1 1 6 50 100 34 100 N
|
||||
X Pin_1 1 200 100 150 L 50 50 1 1 P
|
||||
X Pin_2 2 200 0 150 L 50 50 1 1 P
|
||||
X Pin_3 3 200 -100 150 L 50 50 1 1 P
|
||||
X Pin_4 4 200 -200 150 L 50 50 1 1 P
|
||||
ENDDRAW
|
||||
ENDDEF
|
||||
#
|
||||
# Connector_Conn_01x06_Female
|
||||
#
|
||||
DEF Connector_Conn_01x06_Female J 0 40 Y N 1 F N
|
||||
|
@ -272,6 +321,28 @@ X B 2 150 0 100 L 50 50 1 1 P
|
|||
ENDDRAW
|
||||
ENDDEF
|
||||
#
|
||||
# Jumper_SolderJumper_2_Open
|
||||
#
|
||||
DEF Jumper_SolderJumper_2_Open JP 0 0 Y N 1 F N
|
||||
F0 "JP" 0 80 50 H V C CNN
|
||||
F1 "Jumper_SolderJumper_2_Open" 0 -100 50 H V C CNN
|
||||
F2 "" 0 0 50 H I C CNN
|
||||
F3 "" 0 0 50 H I C CNN
|
||||
$FPLIST
|
||||
SolderJumper*Open*
|
||||
$ENDFPLIST
|
||||
DRAW
|
||||
A -10 0 40 901 -901 0 1 0 N -10 40 -10 -40
|
||||
A -10 0 40 901 -901 0 1 0 F -10 40 -10 -40
|
||||
A 10 0 40 -899 899 0 1 0 N 10 -40 10 40
|
||||
A 10 0 40 -899 899 0 1 0 F 10 -40 10 40
|
||||
P 2 0 1 0 -10 40 -10 -40 N
|
||||
P 2 0 1 0 10 40 10 -40 N
|
||||
X A 1 -150 0 100 R 50 50 1 1 P
|
||||
X B 2 150 0 100 L 50 50 1 1 P
|
||||
ENDDRAW
|
||||
ENDDEF
|
||||
#
|
||||
# MCU_Microchip_ATmega_ATmega328P-PU
|
||||
#
|
||||
DEF MCU_Microchip_ATmega_ATmega328P-PU U 0 20 Y Y 1 F N
|
||||
|
@ -335,6 +406,105 @@ X VI 3 -300 0 100 R 50 50 1 1 W
|
|||
ENDDRAW
|
||||
ENDDEF
|
||||
#
|
||||
# Transistor_Array_ULN2803A
|
||||
#
|
||||
DEF Transistor_Array_ULN2803A U 0 20 Y Y 1 F N
|
||||
F0 "U" 0 525 50 H V C CNN
|
||||
F1 "Transistor_Array_ULN2803A" 0 450 50 H V C CNN
|
||||
F2 "" 50 -650 50 H I L CNN
|
||||
F3 "" 100 -200 50 H I C CNN
|
||||
ALIAS ULN2802A ULN2801A ULN2804A ULN2805A
|
||||
$FPLIST
|
||||
DIP*W7.62mm*
|
||||
SOIC*7.5x11.6mm*P1.27mm*
|
||||
$ENDFPLIST
|
||||
DRAW
|
||||
C -70 200 10 0 1 0 N
|
||||
C -50 -90 10 0 1 0 F
|
||||
C -50 0 10 0 1 0 F
|
||||
C -50 100 10 0 1 0 F
|
||||
C -20 200 10 0 1 0 F
|
||||
S -300 -600 300 400 0 1 10 f
|
||||
P 2 0 1 0 -180 200 -140 200 N
|
||||
P 2 0 1 0 -60 200 160 200 N
|
||||
P 2 0 1 0 0 265 -40 265 N
|
||||
P 3 0 1 0 -20 200 -20 300 90 300 N
|
||||
P 4 0 1 0 -140 240 -140 160 -80 200 -140 240 N
|
||||
P 4 0 1 0 0 235 -40 235 -20 265 0 235 N
|
||||
X I1 1 -400 200 100 R 50 50 1 1 I
|
||||
X COM 10 400 300 100 L 50 50 1 1 P
|
||||
X O8 11 400 -500 100 L 50 50 1 1 C
|
||||
X O7 12 400 -400 100 L 50 50 1 1 C
|
||||
X O6 13 400 -300 100 L 50 50 1 1 C
|
||||
X O5 14 400 -200 100 L 50 50 1 1 C
|
||||
X O4 15 400 -100 100 L 50 50 1 1 C
|
||||
X O3 16 400 0 100 L 50 50 1 1 C
|
||||
X O2 17 400 100 100 L 50 50 1 1 C
|
||||
X O1 18 400 200 100 L 50 50 1 1 C
|
||||
X I2 2 -400 100 100 R 50 50 1 1 I
|
||||
X I3 3 -400 0 100 R 50 50 1 1 I
|
||||
X I4 4 -400 -100 100 R 50 50 1 1 I
|
||||
X I5 5 -400 -200 100 R 50 50 1 1 I
|
||||
X I6 6 -400 -300 100 R 50 50 1 1 I
|
||||
X I7 7 -400 -400 100 R 50 50 1 1 I
|
||||
X I8 8 -400 -500 100 R 50 50 1 1 I
|
||||
X GND 9 0 -700 100 U 50 50 1 1 W
|
||||
ENDDRAW
|
||||
ENDDEF
|
||||
#
|
||||
# nec-eb2-12nu_NEC-EB2-12NU
|
||||
#
|
||||
DEF nec-eb2-12nu_NEC-EB2-12NU U 0 40 Y Y 1 F N
|
||||
F0 "U" 1100 -50 50 H V C CNN
|
||||
F1 "nec-eb2-12nu_NEC-EB2-12NU" 1150 50 50 H V C CNN
|
||||
F2 "" 0 0 50 H I C CNN
|
||||
F3 "" 0 0 50 H I C CNN
|
||||
DRAW
|
||||
S -600 200 600 -200 1 1 10 f
|
||||
S -525 75 -275 -75 1 1 10 N
|
||||
P 2 1 1 10 -500 -75 -300 75 N
|
||||
P 2 1 1 0 -400 -200 -400 -75 N
|
||||
P 2 1 1 0 -400 200 -400 75 N
|
||||
P 2 1 1 0 -385 110 -345 110 N
|
||||
P 2 1 1 0 -365 130 -365 90 N
|
||||
P 2 1 1 10 -275 0 -250 0 N
|
||||
P 2 1 1 10 -225 0 -200 0 N
|
||||
P 2 1 1 10 -175 0 -150 0 N
|
||||
P 2 1 1 10 -125 0 -100 0 N
|
||||
P 2 1 1 0 -100 100 -100 200 N
|
||||
P 2 1 1 10 -75 0 -50 0 N
|
||||
P 2 1 1 10 -25 0 0 0 N
|
||||
P 2 1 1 20 0 -100 -75 150 N
|
||||
P 2 1 1 0 0 -100 0 -200 N
|
||||
P 2 1 1 10 25 0 50 0 N
|
||||
P 2 1 1 10 75 0 100 0 N
|
||||
P 2 1 1 0 100 100 100 200 N
|
||||
P 2 1 1 10 125 0 150 0 N
|
||||
P 2 1 1 10 175 0 200 0 N
|
||||
P 2 1 1 10 225 0 250 0 N
|
||||
P 2 1 1 10 275 0 300 0 N
|
||||
P 2 1 1 0 300 100 300 200 N
|
||||
P 2 1 1 10 325 0 350 0 N
|
||||
P 2 1 1 20 400 -100 325 150 N
|
||||
P 2 1 1 0 400 -100 400 -200 N
|
||||
P 2 1 1 0 500 100 500 200 N
|
||||
P 3 1 1 0 -100 100 -75 125 -100 150 F
|
||||
P 3 1 1 0 100 100 75 125 100 150 N
|
||||
P 3 1 1 0 300 100 325 125 300 150 F
|
||||
P 3 1 1 0 500 100 475 125 500 150 N
|
||||
X ~ 1 -400 300 100 D 50 50 1 1 P
|
||||
X ~ 10 -400 -300 100 U 50 50 1 1 P
|
||||
X ~ 2 -100 300 100 D 50 50 1 1 P
|
||||
X ~ 3 0 -300 100 U 50 50 1 1 P
|
||||
X ~ 4 100 300 100 D 50 50 1 1 P
|
||||
X ~ 5 750 300 100 D 50 50 1 1 N N
|
||||
X ~ 6 750 -300 100 U 50 50 1 1 N N
|
||||
X ~ 7 500 300 100 D 50 50 1 1 P
|
||||
X ~ 8 400 -300 100 U 50 50 1 1 P
|
||||
X ~ 9 300 300 100 D 50 50 1 1 P
|
||||
ENDDRAW
|
||||
ENDDEF
|
||||
#
|
||||
# power_+5V
|
||||
#
|
||||
DEF power_+5V #PWR 0 0 Y Y 1 F P
|
||||
|
@ -350,6 +520,21 @@ X +5V 1 0 0 0 U 50 50 1 1 W N
|
|||
ENDDRAW
|
||||
ENDDEF
|
||||
#
|
||||
# power_+9V
|
||||
#
|
||||
DEF power_+9V #PWR 0 0 Y Y 1 F P
|
||||
F0 "#PWR" 0 -150 50 H I C CNN
|
||||
F1 "power_+9V" 0 140 50 H V C CNN
|
||||
F2 "" 0 0 50 H I C CNN
|
||||
F3 "" 0 0 50 H I C CNN
|
||||
DRAW
|
||||
P 2 0 1 0 -30 50 0 100 N
|
||||
P 2 0 1 0 0 0 0 100 N
|
||||
P 2 0 1 0 0 100 30 50 N
|
||||
X +9V 1 0 0 0 U 50 50 1 1 W N
|
||||
ENDDRAW
|
||||
ENDDEF
|
||||
#
|
||||
# power_GNDA
|
||||
#
|
||||
DEF power_GNDA #PWR 0 0 Y Y 1 F P
|
||||
|
|
|
@ -39,12 +39,12 @@ $EndComp
|
|||
$Comp
|
||||
L power:GNDA #PWR?
|
||||
U 1 1 5CD1433E
|
||||
P 7150 3350
|
||||
F 0 "#PWR?" H 7150 3100 50 0001 C CNN
|
||||
F 1 "GNDA" H 7155 3177 50 0000 C CNN
|
||||
F 2 "" H 7150 3350 50 0001 C CNN
|
||||
F 3 "" H 7150 3350 50 0001 C CNN
|
||||
1 7150 3350
|
||||
P 4850 7450
|
||||
F 0 "#PWR?" H 4850 7200 50 0001 C CNN
|
||||
F 1 "GNDA" H 4855 7277 50 0000 C CNN
|
||||
F 2 "" H 4850 7450 50 0001 C CNN
|
||||
F 3 "" H 4850 7450 50 0001 C CNN
|
||||
1 4850 7450
|
||||
1 0 0 -1
|
||||
$EndComp
|
||||
$Comp
|
||||
|
@ -86,15 +86,11 @@ Wire Wire Line
|
|||
1950 4650 1950 4500
|
||||
Wire Wire Line
|
||||
2550 1800 3050 1800
|
||||
Wire Wire Line
|
||||
2550 4100 3050 4100
|
||||
Wire Wire Line
|
||||
2550 4200 3050 4200
|
||||
Text GLabel 3050 1800 2 50 Input ~ 0
|
||||
ENCODER_BUTTON
|
||||
Text GLabel 3050 4100 2 50 Input ~ 0
|
||||
Text GLabel 2750 2800 2 50 Input ~ 0
|
||||
ENCODER_A
|
||||
Text GLabel 3050 4200 2 50 Input ~ 0
|
||||
Text GLabel 2750 2900 2 50 Input ~ 0
|
||||
ENCODER_B
|
||||
Text GLabel 3250 3900 2 50 Input ~ 0
|
||||
SRLATCH
|
||||
|
@ -508,99 +504,87 @@ $EndComp
|
|||
$Comp
|
||||
L Driver_Motor:L293D U?
|
||||
U 1 1 5CD2818F
|
||||
P 7350 2450
|
||||
F 0 "U?" H 7650 3500 50 0000 C CNN
|
||||
F 1 "L293D" H 7650 3400 50 0000 C CNN
|
||||
F 2 "Package_DIP:DIP-16_W7.62mm" H 7600 1700 50 0001 L CNN
|
||||
F 3 "http://www.ti.com/lit/ds/symlink/l293.pdf" H 7050 3150 50 0001 C CNN
|
||||
1 7350 2450
|
||||
P 5050 6550
|
||||
F 0 "U?" H 5350 7600 50 0000 C CNN
|
||||
F 1 "L293D" H 5350 7500 50 0000 C CNN
|
||||
F 2 "Package_DIP:DIP-16_W7.62mm" H 5300 5800 50 0001 L CNN
|
||||
F 3 "http://www.ti.com/lit/ds/symlink/l293.pdf" H 4750 7250 50 0001 C CNN
|
||||
1 5050 6550
|
||||
1 0 0 -1
|
||||
$EndComp
|
||||
$Comp
|
||||
L power:VCC #PWR?
|
||||
U 1 1 5CD2A75C
|
||||
P 7250 1350
|
||||
F 0 "#PWR?" H 7250 1200 50 0001 C CNN
|
||||
F 1 "VCC" H 7267 1523 50 0000 C CNN
|
||||
F 2 "" H 7250 1350 50 0001 C CNN
|
||||
F 3 "" H 7250 1350 50 0001 C CNN
|
||||
1 7250 1350
|
||||
P 4950 5450
|
||||
F 0 "#PWR?" H 4950 5300 50 0001 C CNN
|
||||
F 1 "VCC" H 4967 5623 50 0000 C CNN
|
||||
F 2 "" H 4950 5450 50 0001 C CNN
|
||||
F 3 "" H 4950 5450 50 0001 C CNN
|
||||
1 4950 5450
|
||||
1 0 0 -1
|
||||
$EndComp
|
||||
Wire Wire Line
|
||||
7250 1350 7250 1450
|
||||
4950 5450 4950 5550
|
||||
Wire Wire Line
|
||||
7150 3350 7150 3300
|
||||
4850 7450 4850 7400
|
||||
Wire Wire Line
|
||||
7250 3250 7250 3300
|
||||
4950 7350 4950 7400
|
||||
Wire Wire Line
|
||||
7250 3300 7150 3300
|
||||
Connection ~ 7150 3300
|
||||
4950 7400 4850 7400
|
||||
Connection ~ 4850 7400
|
||||
Wire Wire Line
|
||||
7150 3300 7150 3250
|
||||
4850 7400 4850 7350
|
||||
Wire Wire Line
|
||||
7550 3250 7550 3300
|
||||
5250 7350 5250 7400
|
||||
Wire Wire Line
|
||||
7550 3300 7450 3300
|
||||
Connection ~ 7250 3300
|
||||
5250 7400 5150 7400
|
||||
Connection ~ 4950 7400
|
||||
Wire Wire Line
|
||||
7450 3250 7450 3300
|
||||
Connection ~ 7450 3300
|
||||
5150 7350 5150 7400
|
||||
Connection ~ 5150 7400
|
||||
Wire Wire Line
|
||||
7450 3300 7250 3300
|
||||
5150 7400 4950 7400
|
||||
$Comp
|
||||
L power:VCC #PWR?
|
||||
U 1 1 5CD2E54B
|
||||
P 7450 1350
|
||||
F 0 "#PWR?" H 7450 1200 50 0001 C CNN
|
||||
F 1 "VCC" H 7467 1523 50 0000 C CNN
|
||||
F 2 "" H 7450 1350 50 0001 C CNN
|
||||
F 3 "" H 7450 1350 50 0001 C CNN
|
||||
1 7450 1350
|
||||
P 5150 5450
|
||||
F 0 "#PWR?" H 5150 5300 50 0001 C CNN
|
||||
F 1 "VCC" H 5167 5623 50 0000 C CNN
|
||||
F 2 "" H 5150 5450 50 0001 C CNN
|
||||
F 3 "" H 5150 5450 50 0001 C CNN
|
||||
1 5150 5450
|
||||
1 0 0 -1
|
||||
$EndComp
|
||||
Wire Wire Line
|
||||
7450 1350 7450 1450
|
||||
Wire Wire Line
|
||||
6850 1850 6500 1850
|
||||
Wire Wire Line
|
||||
6500 1850 6500 1900
|
||||
Wire Wire Line
|
||||
6500 1900 6300 1900
|
||||
Wire Wire Line
|
||||
6850 2050 6500 2050
|
||||
Wire Wire Line
|
||||
6500 2050 6500 2000
|
||||
Wire Wire Line
|
||||
6500 2000 6300 2000
|
||||
5150 5450 5150 5550
|
||||
$Comp
|
||||
L Connector:Conn_01x02_Male J?
|
||||
U 1 1 5CD323EC
|
||||
P 8350 2000
|
||||
F 0 "J?" H 8322 1880 50 0000 R CNN
|
||||
F 1 "Conn_Motor" H 8322 1971 50 0000 R CNN
|
||||
F 2 "" H 8350 2000 50 0001 C CNN
|
||||
F 3 "~" H 8350 2000 50 0001 C CNN
|
||||
1 8350 2000
|
||||
P 6050 6100
|
||||
F 0 "J?" H 6022 5980 50 0000 R CNN
|
||||
F 1 "Conn_Motor" H 6022 6071 50 0000 R CNN
|
||||
F 2 "" H 6050 6100 50 0001 C CNN
|
||||
F 3 "~" H 6050 6100 50 0001 C CNN
|
||||
1 6050 6100
|
||||
-1 0 0 1
|
||||
$EndComp
|
||||
Wire Wire Line
|
||||
8150 1900 8000 1900
|
||||
5850 6000 5700 6000
|
||||
Wire Wire Line
|
||||
8000 1900 8000 1850
|
||||
5700 6000 5700 5950
|
||||
Wire Wire Line
|
||||
8000 1850 7850 1850
|
||||
5700 5950 5550 5950
|
||||
Wire Wire Line
|
||||
7850 2050 8000 2050
|
||||
5550 6150 5700 6150
|
||||
Wire Wire Line
|
||||
8000 2050 8000 2000
|
||||
5700 6150 5700 6100
|
||||
Wire Wire Line
|
||||
8000 2000 8150 2000
|
||||
5700 6100 5850 6100
|
||||
$Comp
|
||||
L Connector:Conn_01x02_Male Conn_Motor?
|
||||
L Connector:Conn_01x02_Male J?
|
||||
U 1 1 5CD34BBF
|
||||
P 2800 950
|
||||
F 0 "Conn_Motor?" H 2906 1128 50 0000 C CNN
|
||||
F 0 "J?" H 2906 1128 50 0000 C CNN
|
||||
F 1 "Conn_5V" H 2906 1037 50 0000 C CNN
|
||||
F 2 "" H 2800 950 50 0001 C CNN
|
||||
F 3 "~" H 2800 950 50 0001 C CNN
|
||||
|
@ -848,34 +832,34 @@ Wire Wire Line
|
|||
$Comp
|
||||
L Device:CP C?
|
||||
U 1 1 5CDA1999
|
||||
P 6850 1250
|
||||
F 0 "C?" H 6968 1296 50 0000 L CNN
|
||||
F 1 "470uF" H 6968 1205 50 0000 L CNN
|
||||
F 2 "" H 6888 1100 50 0001 C CNN
|
||||
F 3 "~" H 6850 1250 50 0001 C CNN
|
||||
1 6850 1250
|
||||
P 4450 5350
|
||||
F 0 "C?" H 4568 5396 50 0000 L CNN
|
||||
F 1 "470uF" H 4568 5305 50 0000 L CNN
|
||||
F 2 "" H 4488 5200 50 0001 C CNN
|
||||
F 3 "~" H 4450 5350 50 0001 C CNN
|
||||
1 4450 5350
|
||||
1 0 0 -1
|
||||
$EndComp
|
||||
$Comp
|
||||
L power:GNDA #PWR?
|
||||
U 1 1 5CDA1A27
|
||||
P 6850 1400
|
||||
F 0 "#PWR?" H 6850 1150 50 0001 C CNN
|
||||
F 1 "GNDA" H 6855 1227 50 0000 C CNN
|
||||
F 2 "" H 6850 1400 50 0001 C CNN
|
||||
F 3 "" H 6850 1400 50 0001 C CNN
|
||||
1 6850 1400
|
||||
P 4450 5500
|
||||
F 0 "#PWR?" H 4450 5250 50 0001 C CNN
|
||||
F 1 "GNDA" H 4455 5327 50 0000 C CNN
|
||||
F 2 "" H 4450 5500 50 0001 C CNN
|
||||
F 3 "" H 4450 5500 50 0001 C CNN
|
||||
1 4450 5500
|
||||
1 0 0 -1
|
||||
$EndComp
|
||||
$Comp
|
||||
L power:VCC #PWR?
|
||||
U 1 1 5CDA1A5E
|
||||
P 6850 1100
|
||||
F 0 "#PWR?" H 6850 950 50 0001 C CNN
|
||||
F 1 "VCC" H 6867 1273 50 0000 C CNN
|
||||
F 2 "" H 6850 1100 50 0001 C CNN
|
||||
F 3 "" H 6850 1100 50 0001 C CNN
|
||||
1 6850 1100
|
||||
P 4450 5200
|
||||
F 0 "#PWR?" H 4450 5050 50 0001 C CNN
|
||||
F 1 "VCC" H 4467 5373 50 0000 C CNN
|
||||
F 2 "" H 4450 5200 50 0001 C CNN
|
||||
F 3 "" H 4450 5200 50 0001 C CNN
|
||||
1 4450 5200
|
||||
1 0 0 -1
|
||||
$EndComp
|
||||
Wire Wire Line
|
||||
|
@ -898,21 +882,10 @@ Wire Wire Line
|
|||
Connection ~ 3250 800
|
||||
$Comp
|
||||
L Jumper:SolderJumper_2_Bridged JP?
|
||||
U 1 1 5CDB8600
|
||||
P 3850 1100
|
||||
F 0 "JP?" H 3850 900 50 0000 C CNN
|
||||
F 1 "SolderJumper_2_Bridged" H 3850 1000 50 0000 C CNN
|
||||
F 2 "" H 3850 1100 50 0001 C CNN
|
||||
F 3 "~" H 3850 1100 50 0001 C CNN
|
||||
1 3850 1100
|
||||
1 0 0 -1
|
||||
$EndComp
|
||||
$Comp
|
||||
L Jumper:SolderJumper_2_Bridged JP?
|
||||
U 1 1 5CDBB9F4
|
||||
P 3850 800
|
||||
F 0 "JP?" H 3850 950 50 0000 C CNN
|
||||
F 1 "SolderJumper_2_Bridged" H 3850 900 50 0000 C CNN
|
||||
F 1 "SolderJumper_5V_VCC" H 3850 900 50 0000 C CNN
|
||||
F 2 "" H 3850 800 50 0001 C CNN
|
||||
F 3 "~" H 3850 800 50 0001 C CNN
|
||||
1 3850 800
|
||||
|
@ -928,4 +901,252 @@ Wire Wire Line
|
|||
4350 1100 4000 1100
|
||||
Wire Wire Line
|
||||
4000 800 4350 800
|
||||
$Comp
|
||||
L nec-eb2-12nu:NEC-EB2-12NU U?
|
||||
U 1 1 5CDD16FE
|
||||
P 8700 1500
|
||||
F 0 "U?" V 7933 1500 50 0000 C CNN
|
||||
F 1 "NEC-EB2-12NU" V 8024 1500 50 0000 C CNN
|
||||
F 2 "" H 8700 1500 50 0001 C CNN
|
||||
F 3 "" H 8700 1500 50 0001 C CNN
|
||||
1 8700 1500
|
||||
0 1 1 0
|
||||
$EndComp
|
||||
$Comp
|
||||
L Transistor_Array:ULN2803A U?
|
||||
U 1 1 5CDD2737
|
||||
P 6800 3900
|
||||
F 0 "U?" H 6800 4467 50 0000 C CNN
|
||||
F 1 "ULN2803A" H 6800 4376 50 0000 C CNN
|
||||
F 2 "" H 6850 3250 50 0001 L CNN
|
||||
F 3 "http://www.ti.com/lit/ds/symlink/uln2803a.pdf" H 6900 3700 50 0001 C CNN
|
||||
1 6800 3900
|
||||
1 0 0 -1
|
||||
$EndComp
|
||||
$Comp
|
||||
L power:GNDA #PWR?
|
||||
U 1 1 5CDD292F
|
||||
P 6800 4650
|
||||
F 0 "#PWR?" H 6800 4400 50 0001 C CNN
|
||||
F 1 "GNDA" H 6805 4477 50 0000 C CNN
|
||||
F 2 "" H 6800 4650 50 0001 C CNN
|
||||
F 3 "" H 6800 4650 50 0001 C CNN
|
||||
1 6800 4650
|
||||
1 0 0 -1
|
||||
$EndComp
|
||||
Text Notes 4750 900 2 50 ~ 0
|
||||
VCC for \nMotor (3V - 7V)
|
||||
$Comp
|
||||
L Connector:Conn_01x02_Male J?
|
||||
U 1 1 5CDD6503
|
||||
P 6100 900
|
||||
F 0 "J?" H 6206 1078 50 0000 C CNN
|
||||
F 1 "Conn_9V" H 6206 987 50 0000 C CNN
|
||||
F 2 "" H 6100 900 50 0001 C CNN
|
||||
F 3 "~" H 6100 900 50 0001 C CNN
|
||||
1 6100 900
|
||||
1 0 0 -1
|
||||
$EndComp
|
||||
$Comp
|
||||
L power:GNDA #PWR?
|
||||
U 1 1 5CDD6820
|
||||
P 6400 1050
|
||||
F 0 "#PWR?" H 6400 800 50 0001 C CNN
|
||||
F 1 "GNDA" H 6405 877 50 0000 C CNN
|
||||
F 2 "" H 6400 1050 50 0001 C CNN
|
||||
F 3 "" H 6400 1050 50 0001 C CNN
|
||||
1 6400 1050
|
||||
1 0 0 -1
|
||||
$EndComp
|
||||
Wire Wire Line
|
||||
6400 1050 6400 1000
|
||||
Wire Wire Line
|
||||
6400 1000 6300 1000
|
||||
$Comp
|
||||
L power:+9V #PWR?
|
||||
U 1 1 5CDDA496
|
||||
P 6450 850
|
||||
F 0 "#PWR?" H 6450 700 50 0001 C CNN
|
||||
F 1 "+9V" H 6465 1023 50 0000 C CNN
|
||||
F 2 "" H 6450 850 50 0001 C CNN
|
||||
F 3 "" H 6450 850 50 0001 C CNN
|
||||
1 6450 850
|
||||
1 0 0 -1
|
||||
$EndComp
|
||||
Wire Wire Line
|
||||
6450 850 6450 900
|
||||
Wire Wire Line
|
||||
6450 900 6300 900
|
||||
$Comp
|
||||
L Jumper:SolderJumper_2_Open JP?
|
||||
U 1 1 5CDDE1BC
|
||||
P 3850 1100
|
||||
F 0 "JP?" H 3850 1000 50 0000 C CNN
|
||||
F 1 "SolderJumper_GNDA" H 3850 900 50 0000 C CNN
|
||||
F 2 "" H 3850 1100 50 0001 C CNN
|
||||
F 3 "~" H 3850 1100 50 0001 C CNN
|
||||
1 3850 1100
|
||||
1 0 0 -1
|
||||
$EndComp
|
||||
Text GLabel 4500 5950 0 50 Input ~ 0
|
||||
MOTOR_1
|
||||
Text GLabel 4500 6150 0 50 Input ~ 0
|
||||
MOTOR_2
|
||||
Wire Wire Line
|
||||
4550 6150 4500 6150
|
||||
Wire Wire Line
|
||||
4550 5950 4500 5950
|
||||
Text GLabel 3100 4000 2 50 Input ~ 0
|
||||
MOTOR_1
|
||||
Text GLabel 3100 4100 2 50 Input ~ 0
|
||||
MOTOR_2
|
||||
Text GLabel 2650 2700 2 50 Input ~ 0
|
||||
SERVO_SLIDER
|
||||
Wire Wire Line
|
||||
2650 2700 2550 2700
|
||||
Wire Wire Line
|
||||
2750 2800 2550 2800
|
||||
Wire Wire Line
|
||||
2750 2900 2550 2900
|
||||
Wire Wire Line
|
||||
3100 4000 2550 4000
|
||||
Wire Wire Line
|
||||
2550 4100 3100 4100
|
||||
$Comp
|
||||
L Connector:Conn_01x03_Male J?
|
||||
U 1 1 5CE08F51
|
||||
P 6500 6400
|
||||
F 0 "J?" H 6473 6330 50 0000 R CNN
|
||||
F 1 "Conn_Servo_Poti" H 6473 6421 50 0000 R CNN
|
||||
F 2 "" H 6500 6400 50 0001 C CNN
|
||||
F 3 "~" H 6500 6400 50 0001 C CNN
|
||||
1 6500 6400
|
||||
-1 0 0 1
|
||||
$EndComp
|
||||
$Comp
|
||||
L power:+5V #PWR?
|
||||
U 1 1 5CE0942F
|
||||
P 6200 6300
|
||||
F 0 "#PWR?" H 6200 6150 50 0001 C CNN
|
||||
F 1 "+5V" H 6215 6473 50 0000 C CNN
|
||||
F 2 "" H 6200 6300 50 0001 C CNN
|
||||
F 3 "" H 6200 6300 50 0001 C CNN
|
||||
1 6200 6300
|
||||
1 0 0 -1
|
||||
$EndComp
|
||||
$Comp
|
||||
L power:GNDD #PWR?
|
||||
U 1 1 5CE09472
|
||||
P 6200 6500
|
||||
F 0 "#PWR?" H 6200 6250 50 0001 C CNN
|
||||
F 1 "GNDD" H 6204 6345 50 0000 C CNN
|
||||
F 2 "" H 6200 6500 50 0001 C CNN
|
||||
F 3 "" H 6200 6500 50 0001 C CNN
|
||||
1 6200 6500
|
||||
1 0 0 -1
|
||||
$EndComp
|
||||
Text GLabel 6200 6400 0 50 Input ~ 0
|
||||
SERVO_SLIDER
|
||||
Wire Wire Line
|
||||
6300 6400 6200 6400
|
||||
Wire Wire Line
|
||||
6200 6300 6300 6300
|
||||
Wire Wire Line
|
||||
6200 6500 6300 6500
|
||||
$Comp
|
||||
L Connector:Conn_01x04_Male J?
|
||||
U 1 1 5CE19110
|
||||
P 4000 5700
|
||||
F 0 "J?" H 4000 5300 50 0000 C CNN
|
||||
F 1 "Conn_Encoder" H 4000 5400 50 0000 C CNN
|
||||
F 2 "" H 4000 5700 50 0001 C CNN
|
||||
F 3 "~" H 4000 5700 50 0001 C CNN
|
||||
1 4000 5700
|
||||
-1 0 0 1
|
||||
$EndComp
|
||||
$Comp
|
||||
L power:GNDD #PWR?
|
||||
U 1 1 5CE20D44
|
||||
P 3650 5850
|
||||
F 0 "#PWR?" H 3650 5600 50 0001 C CNN
|
||||
F 1 "GNDD" H 3654 5695 50 0000 C CNN
|
||||
F 2 "" H 3650 5850 50 0001 C CNN
|
||||
F 3 "" H 3650 5850 50 0001 C CNN
|
||||
1 3650 5850
|
||||
1 0 0 -1
|
||||
$EndComp
|
||||
Wire Wire Line
|
||||
3650 5500 3800 5500
|
||||
Text GLabel 3650 5500 0 50 Input ~ 0
|
||||
ENCODER_BUTTON
|
||||
Text GLabel 3650 5600 0 50 Input ~ 0
|
||||
ENCODER_A
|
||||
Text GLabel 3650 5700 0 50 Input ~ 0
|
||||
ENCODER_B
|
||||
Wire Wire Line
|
||||
3800 5700 3650 5700
|
||||
Wire Wire Line
|
||||
3650 5600 3800 5600
|
||||
Wire Wire Line
|
||||
3800 5800 3650 5800
|
||||
Wire Wire Line
|
||||
3650 5800 3650 5850
|
||||
Wire Wire Line
|
||||
6400 3700 6300 3700
|
||||
Wire Wire Line
|
||||
6300 3800 6400 3800
|
||||
Wire Wire Line
|
||||
6400 3900 6300 3900
|
||||
Wire Wire Line
|
||||
6300 4000 6400 4000
|
||||
Wire Wire Line
|
||||
6400 4100 6300 4100
|
||||
Wire Wire Line
|
||||
6300 4200 6400 4200
|
||||
Wire Wire Line
|
||||
6400 4300 6300 4300
|
||||
Wire Wire Line
|
||||
6300 4400 6400 4400
|
||||
Wire Wire Line
|
||||
6800 4650 6800 4600
|
||||
$Comp
|
||||
L Transistor_Array:ULN2803A U?
|
||||
U 1 1 5CE689B3
|
||||
P 6800 2000
|
||||
F 0 "U?" H 6800 2567 50 0000 C CNN
|
||||
F 1 "ULN2803A" H 6800 2476 50 0000 C CNN
|
||||
F 2 "" H 6850 1350 50 0001 L CNN
|
||||
F 3 "http://www.ti.com/lit/ds/symlink/uln2803a.pdf" H 6900 1800 50 0001 C CNN
|
||||
1 6800 2000
|
||||
1 0 0 -1
|
||||
$EndComp
|
||||
$Comp
|
||||
L power:GNDA #PWR?
|
||||
U 1 1 5CE68A43
|
||||
P 6800 2750
|
||||
F 0 "#PWR?" H 6800 2500 50 0001 C CNN
|
||||
F 1 "GNDA" H 6805 2577 50 0000 C CNN
|
||||
F 2 "" H 6800 2750 50 0001 C CNN
|
||||
F 3 "" H 6800 2750 50 0001 C CNN
|
||||
1 6800 2750
|
||||
1 0 0 -1
|
||||
$EndComp
|
||||
Wire Wire Line
|
||||
6800 2750 6800 2700
|
||||
Wire Wire Line
|
||||
6400 2500 6300 2500
|
||||
Wire Wire Line
|
||||
6300 2400 6400 2400
|
||||
Wire Wire Line
|
||||
6400 2300 6300 2300
|
||||
Wire Wire Line
|
||||
6300 2200 6400 2200
|
||||
Wire Wire Line
|
||||
6400 2100 6300 2100
|
||||
Wire Wire Line
|
||||
6300 2000 6400 2000
|
||||
Wire Wire Line
|
||||
6400 1900 6300 1900
|
||||
Wire Wire Line
|
||||
6300 1800 6400 1800
|
||||
$EndSCHEMATC
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
EESchema-DOCLIB Version 2.0
|
||||
#
|
||||
#End Doc Library
|
|
@ -0,0 +1,57 @@
|
|||
EESchema-LIBRARY Version 2.4
|
||||
#encoding utf-8
|
||||
#
|
||||
# NEC-EB2-12NU
|
||||
#
|
||||
DEF NEC-EB2-12NU U 0 40 Y Y 1 F N
|
||||
F0 "U" 1100 -50 50 H V C CNN
|
||||
F1 "NEC-EB2-12NU" 1150 50 50 H V C CNN
|
||||
F2 "" 0 0 50 H I C CNN
|
||||
F3 "" 0 0 50 H I C CNN
|
||||
DRAW
|
||||
S -600 200 600 -200 1 1 10 f
|
||||
S -525 75 -275 -75 1 1 10 N
|
||||
P 2 1 1 10 -500 -75 -300 75 N
|
||||
P 2 1 1 0 -400 -200 -400 -75 N
|
||||
P 2 1 1 0 -400 200 -400 75 N
|
||||
P 2 1 1 0 -385 110 -345 110 N
|
||||
P 2 1 1 0 -365 130 -365 90 N
|
||||
P 2 1 1 10 -275 0 -250 0 N
|
||||
P 2 1 1 10 -225 0 -200 0 N
|
||||
P 2 1 1 10 -175 0 -150 0 N
|
||||
P 2 1 1 10 -125 0 -100 0 N
|
||||
P 2 1 1 0 -100 100 -100 200 N
|
||||
P 2 1 1 10 -75 0 -50 0 N
|
||||
P 2 1 1 10 -25 0 0 0 N
|
||||
P 2 1 1 20 0 -100 -75 150 N
|
||||
P 2 1 1 0 0 -100 0 -200 N
|
||||
P 2 1 1 10 25 0 50 0 N
|
||||
P 2 1 1 10 75 0 100 0 N
|
||||
P 2 1 1 0 100 100 100 200 N
|
||||
P 2 1 1 10 125 0 150 0 N
|
||||
P 2 1 1 10 175 0 200 0 N
|
||||
P 2 1 1 10 225 0 250 0 N
|
||||
P 2 1 1 10 275 0 300 0 N
|
||||
P 2 1 1 0 300 100 300 200 N
|
||||
P 2 1 1 10 325 0 350 0 N
|
||||
P 2 1 1 20 400 -100 325 150 N
|
||||
P 2 1 1 0 400 -100 400 -200 N
|
||||
P 2 1 1 0 500 100 500 200 N
|
||||
P 3 1 1 0 -100 100 -75 125 -100 150 F
|
||||
P 3 1 1 0 100 100 75 125 100 150 N
|
||||
P 3 1 1 0 300 100 325 125 300 150 F
|
||||
P 3 1 1 0 500 100 475 125 500 150 N
|
||||
X ~ 1 -400 300 100 D 50 50 1 1 P
|
||||
X ~ 10 -400 -300 100 U 50 50 1 1 P
|
||||
X ~ 2 -100 300 100 D 50 50 1 1 P
|
||||
X ~ 3 0 -300 100 U 50 50 1 1 P
|
||||
X ~ 4 100 300 100 D 50 50 1 1 P
|
||||
X ~ 5 750 300 100 D 50 50 1 1 N N
|
||||
X ~ 6 750 -300 100 U 50 50 1 1 N N
|
||||
X ~ 7 500 300 100 D 50 50 1 1 P
|
||||
X ~ 8 400 -300 100 U 50 50 1 1 P
|
||||
X ~ 9 300 300 100 D 50 50 1 1 P
|
||||
ENDDRAW
|
||||
ENDDEF
|
||||
#
|
||||
#End Library
|
|
@ -0,0 +1,3 @@
|
|||
(sym_lib_table
|
||||
(lib (name nec-eb2-12nu)(type Legacy)(uri /media/fisch/HDD/Projects/mixer/schematic/controller/nec-eb2-12nu.lib)(options "")(descr ""))
|
||||
)
|
Loading…
Reference in New Issue