Presentation is loading. Please wait.

Presentation is loading. Please wait.

Arduino UMBC IEEE Sekar Kulandaivel Week 3: Motor Control w/ H-Bridges

Similar presentations


Presentation on theme: "Arduino UMBC IEEE Sekar Kulandaivel Week 3: Motor Control w/ H-Bridges"— Presentation transcript:

1 Arduino Microcontroller Workshop UMBC Institute of Electrical and Electronics Engineers
Arduino UMBC IEEE Sekar Kulandaivel Week 3: Motor Control w/ H-Bridges Technical Skills Series Presentation April 15th – 16th, 2014

2 Topics to Cover Diodes & Transistors External Voltage Sources MOSFETs and H-Bridges Motor Control (Speed & Direction)

3 Metal-Oxide-Semiconductor Field-Effect Transistor (MOSFET)
Gate Source Drain

4 Battery Motor Made with Fritzing.org

5 Using Transistors Create constants and variables.
Set inputs and outputs for setup() function. Read from switch and write to transistor pin.

6 Important Functions int val, time; void setup() { … } void loop() { … } Serial.begin(9600); Serial.print(“Hello”); Serial.println(“Hi”); delay(1000); pinMode(8, INPUT); pinMode(9, OUTPUT); val = digitalRead(8); digitalWrite(9, out); val = analogRead(A0); analogWrite(9, out); time = millis(); map(var, testLow, testHigh, mapLow, mapHigh);

7 Motor Driver (H-Bridge)
Enable 1,2 VCC1 Input 1 Input 3 Output 1 Output 3 GND GND GND GND Output 2 Output 4 Input 4 Input 2 VCC2 Enable 3,4

8 Input 1 Input 2 M Vin Output 1 Output 2 Design from Wikipedia

9 Input 1 Input 2 M Vin Output 1 Output 2 Design from Wikipedia

10 Input 1 Input 2 M Vin Output 1 Output 2 Design from Wikipedia

11 Battery Motor Made with Fritzing.org

12 Using H-Bridges Create constants and variables.
Set inputs and outputs for setup() function. Read from on-off and direction switch. Changing the direction. Going in one direction Going in other direction. Enabling the H-bridge. Start or stop.

13 Important Functions int val, time; void setup() { … } void loop() { … } Serial.begin(9600); Serial.print(“Hello”); Serial.println(“Hi”); delay(1000); pinMode(8, INPUT); pinMode(9, OUTPUT); val = digitalRead(8); digitalWrite(9, out); val = analogRead(A0); analogWrite(9, out); time = millis(); map(var, testLow, testHigh, mapLow, mapHigh);

14 Color 1st Digit 2nd Digit Multiplier
4th band is Tolerance. L R Color 1st Digit 2nd Digit Multiplier Black 100 Brown 1 101 Red 2 102 Orange 3 103 Yellow 4 104 Green 5 105 Blue 6 106 Violet 7 107 Gray 8 108 White 9 109

15 330Ω 3 x = 10kΩ 1 x = 2kΩ 2 x = 1MΩ 1 x =


Download ppt "Arduino UMBC IEEE Sekar Kulandaivel Week 3: Motor Control w/ H-Bridges"

Similar presentations


Ads by Google