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 12:16] – [Resources] darron | interfaces:afmotorv1 [2023/09/30 00:09] (current) – [Shift register] darron | ||
---|---|---|---|
Line 2: | Line 2: | ||
<wrap right> | <wrap right> | ||
+ | {{interfaces: | ||
{{interfaces: | {{interfaces: | ||
</ | </ | ||
Line 8: | Line 9: | ||
drive two 5V servos and up to 4 motors attached to two L293D driver ICs. | drive two 5V servos and up to 4 motors attached to two L293D driver ICs. | ||
- | 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. | + | 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 |
===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 | | ||
Line 48: | 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 69: | Line 70: | ||
[[https:// | [[https:// | ||
- | |||
- | [[https:// | ||
[[https:// | [[https:// | ||
Line 80: | Line 79: | ||
[[https:// | [[https:// | ||
- | [[https:// | ||