-
Notifications
You must be signed in to change notification settings - Fork 0
/
Nimrod_Wiring
103 lines (77 loc) · 2.21 KB
/
Nimrod_Wiring
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
##########################################################################
#
# EPP - 1/12/21
# Current Wiring Configuration
#
# Adafruit PCA9658 16 channel i2c PWM board
# L298N Driver Board
# 9V Battery Pack - 6 AA Batteries
# 18650 Charging Pack for 5v output for Pi 3B+
#
# 2021-01-25 msipin Added two new ultrasonic sensors (left and right)
#
##########################################################################
----------------------------------------------------------------------------
Adafruit PCA9658 16 channel i2c PWM board:
PWM Pi 3B+
Gnd -> Pin 6
SCL -> Pin 5
SCA -> Pin 3
VCC -> Pin 1
V+ -> EMPTY (this is servo power, 6v MAX, typical 5v used)
use power block instead, its polarity protected.
Power Block (servo input)
[ o o ]
Gnd 5v
Connections:
Gnd: from Motor Driver/Batt terminal block
Pwr: 5v in from Motor Driver's 5v output.
5v out continues on to Ultrasonic power
--------------------------------------------------------------------------
L298N Driver Board:
Power Block
[ 0 0 0 ]
9v(in) Gnd 5v(out)
batt
Connections:
PWR: Batt + (12v max)
Gnd: Batt -, Pi Gnd, PWM
5V(out): Power to PWM
[ X 0 0 0 0 X ]
ENA IN1 IN2 IN3 IN4 ENB
Driver
ENA -> PWM Channel 2 (on PWM Board)
ENB -> PWM Channel 0 (on PWM Board)
IN1 -> Pin 38 of Pi
IN2 -> Pin 40 of Pi
IN3 -> Pin 32 of Pi
IN4 -> Pin 35 of Pi
Out terminal arrangement:
out1 out4
out2 out3
Out 1 -> Drivers Side motor white wire
Out 2 -> Drivers Side motor striped wire
Out 3 -> Passenger Side motor striped wire
Out 4 -> Passenger Side motor white wire
-------------------------------------------------------------------------
Ultrasonic Sensors
MAIN/"FORWARD"
Sensor Pi 3B+
Echo -> Pin 29 (GPIO 05)
Trigger -> Pin 31 (GPIO 06)
Gnd -> From PWM Grd
Vcc -> From PWN V+ Power Block
Servo -> PWM Board, Channel 15
LEFT
Sensor Pi 3B+
Echo -> Pin 37 (GPIO 26)
Trigger -> Pin 33 (GPIO 13)
Gnd -> From PWM Grd
Vcc -> From PWN V+ Power Block
RIGHT
Sensor Pi 3B+
Echo -> Pin 18 (GPIO 24)
Trigger -> Pin 16 (GPIO 23)
Gnd -> From PWM Grd
Vcc -> From PWN V+ Power Block
-------------------------------------------------------------------------