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 11:43] darroninterfaces:afmotorv1 [2023/09/30 00:09] (current) – [Shift register] darron
Line 2: Line 2:
  
 <wrap right> <wrap right>
-{{interfaces:afmotorv1clone.jpg?200}} {{interfaces:sg90servo.png?200}}+{{interfaces:mabuchi.jpg?200}} \\ \\ 
 +{{interfaces:afmotorv1clone.jpg?100}} {{interfaces:sg90servo.png?100}}
 </wrap> </wrap>
  
-This is a clone.+No longer in production but available as various clones, this board can 
 +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 to control the motor power (speed).
 ===PWM==== ===PWM====
  
 ^Motor^Motor #^Arduino^UNO^MEGA2560^ ^Motor^Motor #^Arduino^UNO^MEGA2560^
-|Servo           | 1 | Timer1  PB1 Timer2B PH6 +|Servo           | 1 |10 Timer1B PB2 Timer2A PB4 
-|Servo           | 2 |10 Timer1  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 |
 |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===
 +
 +<code>
 +1,2EN 1-----16 VCC1
 +1A    2     15 4A
 +1Y    3     14 4Y
 +GND       13 GND
 +GND       12 GND
 +2Y    6     11 3Y
 +2A    7     10 3A
 +VCC2  8-----9  3,4EN
 +</code>
 +
  
  
Line 32: 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 46: Line 63:
 |6|L293D IC2 2A | 4 | |6|L293D IC2 2A | 4 |
 |7|L293D IC2 3A | 3 | |7|L293D IC2 3A | 3 |
- 
-===L293D=== 
- 
-<code> 
-1,2EN 1-----16 VCC1 
-1A    2     15 4A 
-1Y    3     14 4Y 
-GND       13 GND 
-GND       12 GND 
-2Y    6     11 3Y 
-2A    7     10 3A 
-VCC2  8-----9  3,4EN 
-</code> 
  
  
Line 66: 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 75: Line 77:
 [[https://www.ti.com/product/L293D|L293D product page]] [[https://www.ti.com/product/L293D|L293D product page]]
  
-[[https://microcontrollerslab.com/arduino-l293d-motor-driver-shield-tutorial/|Tutorial for Arduino]]+[[https://en.wikipedia.org/wiki/Servo_control|Servo control]]