Top Banner
lecture 6 Parts Design Choices(part2)
18

Lecture 6 Parts Design Choices(part2). Motor/Encoder.

Jan 03, 2016

Download

Documents

Natalie Adams
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Lecture 6 Parts Design Choices(part2). Motor/Encoder.

lecture 6 Parts Design Choices(part2)

Page 2: Lecture 6 Parts Design Choices(part2). Motor/Encoder.

Motor/Encoder

Page 3: Lecture 6 Parts Design Choices(part2). Motor/Encoder.

P/N mosfet type w/ level shifter Motor driver

Page 4: Lecture 6 Parts Design Choices(part2). Motor/Encoder.

N/N mosfet type half H-bridge w/ boost converter level shifter

Page 5: Lecture 6 Parts Design Choices(part2). Motor/Encoder.

N/N mosfet type All-In-One motor driver

Page 6: Lecture 6 Parts Design Choices(part2). Motor/Encoder.

Encoder

• Provided with eagle library for kitmouse

• Either 3.3V-5V supply

Page 7: Lecture 6 Parts Design Choices(part2). Motor/Encoder.

User Interface

Page 8: Lecture 6 Parts Design Choices(part2). Motor/Encoder.

LED

• 2 ways to control LED with MCU

• The one on left is easier for wiring since ground is easier to find

• The way to the right is better MCU since it doesn’t draw power from MCU

Page 9: Lecture 6 Parts Design Choices(part2). Motor/Encoder.

button

Page 10: Lecture 6 Parts Design Choices(part2). Motor/Encoder.

Button Shared with Boot0

• To save one more button

Page 11: Lecture 6 Parts Design Choices(part2). Motor/Encoder.

Reset Button

• Reset instead of re-power

• Helpful for Bluetooth, no re-pair needed is just reset instead of power it off and on

Page 12: Lecture 6 Parts Design Choices(part2). Motor/Encoder.

Buzzer

• PWM Driven• Optional diode

to prevent kick-back current from buzzer

• Must be magnetic buzzer(w/polarities)

Page 13: Lecture 6 Parts Design Choices(part2). Motor/Encoder.

Display

• Optional• Costly but

takes less time than serial print

• Real time date output

Page 14: Lecture 6 Parts Design Choices(part2). Motor/Encoder.

Device

Page 15: Lecture 6 Parts Design Choices(part2). Motor/Encoder.

Gyro

• Power sensitive, make clean power and ground

• Doesn’t have to place in the middle of mouse

Page 16: Lecture 6 Parts Design Choices(part2). Motor/Encoder.

MCU• We use STM32F405RG as MCU

• All VCAP and VDD VSS should connect as what indicated here

• Boot0/boot1/reset should be connected as well

• Connect programmer and USART port

Page 17: Lecture 6 Parts Design Choices(part2). Motor/Encoder.

Communication Port

• Basic 8 pin config• Need 3.3V for

USART side for Bluetooth Power

• Follow the pin order in picture in order to compatible with existing gadgets we have

Page 18: Lecture 6 Parts Design Choices(part2). Motor/Encoder.

Voltage Meter• Need to detect battery voltage in order to protect

battery• Choose resistor wisely to prevent ADC reading

saturation• Resistor supposed to be K level