Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
interfaces:afmotorv1 [2023/09/27 11:44] – darron | interfaces:afmotorv1 [2023/09/30 00:09] (current) – [Shift register] darron | ||
---|---|---|---|
Line 2: | Line 2: | ||
<wrap right> | <wrap right> | ||
+ | {{interfaces: | ||
{{interfaces: | {{interfaces: | ||
</ | </ | ||
No longer in production but available as various clones, this board can | No longer in production but available as various clones, this board can | ||
- | driver | + | drive two 5V servos and up to 4 motors |
+ | A shift register is used to provide the direction inputs to the ICs and PWM outputs from the CPU connect to the driver enable inputs to control the motor power (speed). | ||
===PWM==== | ===PWM==== | ||
^Motor^Motor # | ^Motor^Motor # | ||
- | |Servo | + | |Servo |
- | |Servo | + | |Servo |
|L293D IC1 1,2EN | 1 |11 | Timer2A PB3 | Timer1A PB5 | | |L293D IC1 1,2EN | 1 |11 | Timer2A PB3 | Timer1A PB5 | | ||
|L293D IC1 3,4EN | 2 | 3 | Timer2B PD3 | Timer3C PE5 | | |L293D IC1 3,4EN | 2 | 3 | Timer2B PD3 | Timer3C PE5 | | ||
|L293D IC2 3,4EN | 3 | 6 | Timer0A PD6 | Timer4A PH3 | | |L293D IC2 3,4EN | 3 | 6 | Timer0A PD6 | Timer4A PH3 | | ||
|L293D IC2 1,2EN | 4 | 5 | Timer0B PD5 | Timer3A PE3 | | |L293D IC2 1,2EN | 4 | 5 | Timer0B PD5 | Timer3A PE3 | | ||
+ | |||
+ | ===L293D=== | ||
+ | |||
+ | < | ||
+ | 1,2EN 1-----16 VCC1 | ||
+ | 1A 2 15 4A | ||
+ | 1Y 3 14 4Y | ||
+ | GND | ||
+ | GND | ||
+ | 2Y 6 11 3Y | ||
+ | 2A 7 10 3A | ||
+ | VCC2 8-----9 | ||
+ | </ | ||
+ | |||
Line 33: | Line 49: | ||
^74HCT595^Function^Arduino^UNO^MEGA2560^ | ^74HCT595^Function^Arduino^UNO^MEGA2560^ | ||
- | |STCP |STROBE | + | |STCP |STORAGE CLOCK |D12 |PB4| PB6| |
- | |SHCP |SHIFT | + | |SHCP |SHIFT |
- | |!OE |ENABLE |D7 |PD7| PH4| | + | |!OE |O/P ENABLE |
- | |DS | + | |DS |
^Q^Input^Motor #^ | ^Q^Input^Motor #^ | ||
Line 47: | Line 63: | ||
|6|L293D IC2 2A | 4 | | |6|L293D IC2 2A | 4 | | ||
|7|L293D IC2 3A | 3 | | |7|L293D IC2 3A | 3 | | ||
- | |||
- | ===L293D=== | ||
- | |||
- | < | ||
- | 1,2EN 1-----16 VCC1 | ||
- | 1A 2 15 4A | ||
- | 1Y 3 14 4Y | ||
- | GND | ||
- | GND | ||
- | 2Y 6 11 3Y | ||
- | 2A 7 10 3A | ||
- | VCC2 8-----9 | ||
- | </ | ||
Line 67: | Line 70: | ||
[[https:// | [[https:// | ||
- | |||
- | [[https:// | ||
[[https:// | [[https:// | ||
Line 76: | Line 77: | ||
[[https:// | [[https:// | ||
- | [[https://microcontrollerslab.com/arduino-l293d-motor-driver-shield-tutorial/|Tutorial for Arduino]] | + | [[https://en.wikipedia.org/wiki/Servo_control|Servo control]] |