Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
interfaces:afmotorv1 [2023/09/27 12:16] – [Resources] darroninterfaces:afmotorv1 [2023/09/30 00:09] (current) – [Shift register] darron
Line 2: Line 2:
  
 <wrap right> <wrap right>
 +{{interfaces:mabuchi.jpg?200}} \\ \\
 {{interfaces:afmotorv1clone.jpg?100}} {{interfaces:sg90servo.png?100}} {{interfaces:afmotorv1clone.jpg?100}} {{interfaces:sg90servo.png?100}}
 </wrap> </wrap>
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 to control the motor power (speed).
 ===PWM==== ===PWM====
  
 ^Motor^Motor #^Arduino^UNO^MEGA2560^ ^Motor^Motor #^Arduino^UNO^MEGA2560^
-|Servo           | 1 | Timer1A PB1 Timer2B PH6 +|Servo           | 1 |10 Timer1B PB2 Timer2A PB4 
-|Servo           | 2 |10 Timer1B PB2 Timer2A PB4 |+|Servo           | 2 | Timer1A PB1 Timer2B PH6 |
 |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 |D12 |PB4| PB6| +|STCP |STORAGE CLOCK |D12 |PB4| PB6| 
-|SHCP |SHIFT  |D4  |PD4| PG5| +|SHCP |SHIFT CLOCK  |D4  |PD4| PG5| 
-|!OE  |ENABLE |D7  |PD7| PH4| +|!OE  |O/P ENABLE  |D7  |PD7| PH4| 
-|DS   |DATA   |D8  |PB0| PH5|+|DS   |DATA    |D8  |PB0| PH5|
  
 ^Q^Input^Motor #^ ^Q^Input^Motor #^
Line 69: Line 70:
  
 [[https://cdn-learn.adafruit.com/downloads/pdf/adafruit-motor-shield.pdf|User manual]] [[https://cdn-learn.adafruit.com/downloads/pdf/adafruit-motor-shield.pdf|User manual]]
- 
-[[https://github.com/adafruit/Adafruit-Motor-Shield-library|Arduino library]] 
  
 [[https://cdn-learn.adafruit.com/assets/assets/000/009/769/original/mshieldv1-schem.png|Schematic]] [[https://cdn-learn.adafruit.com/assets/assets/000/009/769/original/mshieldv1-schem.png|Schematic]]
Line 80: Line 79:
 [[https://en.wikipedia.org/wiki/Servo_control|Servo control]] [[https://en.wikipedia.org/wiki/Servo_control|Servo control]]
  
-[[https://microcontrollerslab.com/arduino-l293d-motor-driver-shield-tutorial/|Tutorial for Arduino]]