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
en:iot-open:practical:hardware:taltech:arduino:scenarios:dc [2025/07/18 11:03] ingmar05en:iot-open:practical:hardware:taltech:arduino:scenarios:dc [2025/09/02 15:02] (current) raivo.sell
Line 1: Line 1:
-====== Controlling a DC Motor ======+<pagebreak> 
 +====== Controlling a DC motor ======
  
 This scenario demonstrates how to control a DC motor's rotation direction and speed using Arduino with the Pololu TB6612FNG Dual Motor Driver. This scenario demonstrates how to control a DC motor's rotation direction and speed using Arduino with the Pololu TB6612FNG Dual Motor Driver.
 +
 +{{:en:iot-open:practical:hardware:taltech:arduino:scenarios:dc.jpg?100|}}
  
 ===== Prerequisites ===== ===== Prerequisites =====
-  * Familiarize yourself with Arduino hardware reference.+  * Familiarize yourself with the Arduino hardware reference.
   * Understand basic PWM concepts.   * Understand basic PWM concepts.
   * Familiarity with the Pololu TB6612FNG motor driver.   * Familiarity with the Pololu TB6612FNG motor driver.
  
 ===== Hardware Connections ===== ===== Hardware Connections =====
-Motor Driver Pin Arduino Pin +Motor Driver Pin  Arduino Pin  ^ 
-|------------------|-------------| +| AIN1              | 12           
-| AIN1             | 12          +| AIN2              | 11           
-| AIN2             | 11          +| PWMA              | 3 (PWM)      |
-| PWMA             | 3 (PWM)     |+
  
 **Motor specifications:** **Motor specifications:**
Line 21: Line 23:
   * Shaft Diameter: 4 mm   * Shaft Diameter: 4 mm
  
-===== Suggested Knowledge Resources ===== 
-  * Arduino programming fundamentals 
-  * [[taltech:arduino:hardware|Arduino Uno Hardware Reference]] 
  
 ===== Task ===== ===== Task =====
-Implement a program that rotates the DC motor forward at full speed for 5 seconds, pauses for 2 seconds, reverses at half speed for 5 seconds, then pauses again for 2 seconds, repeatedly.+Implement a program that rotates the DC motor forward at full speed for 5 seconds, pauses for 2 seconds, reverses at half speed for 5 seconds, and then pauses again for 2 seconds, repeating this sequence.
  
 ===== Steps ===== ===== Steps =====
en/iot-open/practical/hardware/taltech/arduino/scenarios/dc.1752836621.txt.gz · Last modified: 2025/07/18 11:03 by ingmar05
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0