HOW TO DESIGN A SMART CAR MODEL From Requirements to Implementation Speaker: Fei Cheng
Latex XJTLU Template http://www.treee.com.cn/doku.php?id=os:treee 2
Design Flow Requirements Analysis Functions & Features Components Selection Using Background Knowledge Circuit Design, Simulation and Verification Pass PCB Schematic and Layout Using Tech and Skills Fail Debug and Test 3
Requirements A smart car model with sensors Multiple applications Powered by battery For beginners Soldering practice Programming practice Not expensive 4
Functions and Features Beginner Battery MCU Size Soldering Car Model Sensors Applications Programming Hardware Price Conditions 5
Functions and Features MCU Functions? Difficulty? Car model: Steering mechanism? Motor? Motor Driver? Sensors Types? How to obtain data from sensors? 6
Components Selection 7
MCU ARM Cortex M Family (32 bits) Digital Signal Processer (DSP, 32 bits) Simple MCU (16 bits, 8 bits) Beginner Price 8
MCU ARM Cortex M Family (32 bits) Digital Signal Processer (DSP, 32 bits) Simple MCU (16 bits, 8 bits) Beginner Price 9
Simple MCU TI MSP 430 STM 8 Atmel AVR Arduino Beginner Applications 10
Simple MCU TI MSP 430 STM 8 Atmel AVR Arduino Beginner Applications 11
Arduino Arduino Uno Arduino Nano Size 12
MCU Arduino Nano 13
Car Model PCB used as the chassis ( 底盘 ) Special chassis Beginner Price Size 14
Car Model PCB used as the chassis ( 底盘 ) Special chassis Beginner Price Size 15
Motor DC brush motor DC brushless motor Beginner Applications 16
Motor DC brush motor DC brushless motor Beginner Applications 17
Motor Size 18
Motor Driver IC based driver Transistor of Power MOSFET based driver Beginner Price 19
Motor Driver IC based driver Transistor of Power MOSFET based driver Beginner Price 20
Motor Driver L293 Size Price 21
Sensors Applications: Auto driving following black line Collision avoidance and falling prevention Black line tracking Optics method Camera based method Falling prevention Optics method For collision avoidance Mechanical method Optics method Beginner Price Multiple 22
Sensors Applications: Auto driving following black line Collision avoidance and falling prevention Black line tracking Optics method Camera based method Falling prevention Optics method For collision avoidance Mechanical method Optics method Beginner Price Multiple 23
Sensors IR sensors ITR20001 Collision Switches Beginner Price 24
Sensor Data All the sensor signals are digital switch signals Problem: there are 14 switch signals, but Arduino Nano only has 11 digital input pins. Parallel in serial out shift register 2 x 74XX165 Only 4 Pins 25
Block Diagram AAA BATx4 +5 Power IC PWM L293 Motor 1 Motor 2 Interruption input Speed Arduino Nano SPI 74XX165 IR sensor 1 IR sensor 2 IR sensor 6 Key 1 Switch 1 Switch 2 Switch 6 Key 2 26
Circuit Design Follow the knowledge from your modules EEE103 EEE104 EEE109 Follow the datasheet of ICs How to connect? Examples Electrical characteristics Follow your experience 27
How to become an engineer? INCEPTION Initially motivation interested in EEE Basic knowledge 103,104,109,116,203,204 28
How to become an engineer? Do not try to remember all the knowledge and information Just remember the index of them: Key words Webpages Our own database Search: IC companies website IC datasheets Shops (Taobao, Digikey ) 29
IC Companies TI: MSP430, DSP, Analog IC, Low power, expensive ST: STM8/32, cheap Atmel: AVR, fast Freescale: Automobile Electronic Linear: Analog, Power Infineon: Power IC, MOSFET Altera: FPGA Nordic: Wireless IC 30
IC Companies TI ST Atmel Freescale Linear Infineon Altera Nordic 31
IC Companies TI 32
IC Companies Website 33
IC Companies Website 34
IC Companies Website 35
Brainstorming An idea Search STM32 L293 IR Sensor MSP430 DC-DC C++ DC-AC 3D Print Bluetooth 74HC165 IRF9530 74HC595 24L01 ST Java 7805 ESP8266 Arduino DSP C TCP/IP TI Switch IRF530 STM8 36
Brainstorming An idea Search IR Sensor DC-DC Bluetooth C Switch L293 C++ 74HC165 Arduino 7805 37
Brainstorming idea idea idea idea idea STM32 L293 IR Sensor MSP430 DC-DC C++ DC-AC 3D Print Bluetooth 74HC165 IRF9530 74HC595 24L01 ST Java 7805 ESP8266 Arduino DSP C TCP/IP TI Switch IRF530 STM8 idea idea idea 38
Brainstorming Your Knowledge 39
Simulation and Verification Simulation Software Multisim Pspice Proteus Breadboard Verification Try each part Find problems Redesign 40
PCB Schematic Software: Altium designer Cadsoft Eagle PCB KiCad 41
PCB Layout Footprint Inline elements Surface mount 42
Test and Debug Write codes to test each function Debug codes Find problems of circuit Improve circuit and PCB board 43
Thanks Email: c@treee.com.cn TREEE Wechat My Wechat www.treee.com.cn www.feieee.com 44