1 / 62

Chapter 8 Parallel Port Interfaces

Chapter 8 Parallel Port Interfaces. 8.4 Transistors Used for Computer-Controlled Current Switches. 전류 제어 Switch(BJT). 8.4 Transistors Used for Computer-Controlled Current Switches. 8.4 Transistors Used for Computer-Controlled Current Switches.

chloe
Download Presentation

Chapter 8 Parallel Port Interfaces

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chapter 8 Parallel Port Interfaces

  2. 8.4 Transistors Used for Computer-Controlled Current Switches • 전류 제어 Switch(BJT)

  3. 8.4 Transistors Used for Computer-Controlled Current Switches

  4. 8.4 Transistors Used for Computer-Controlled Current Switches

  5. 8.5 Computer-Controlled Relays, Solenoids, and DC Motors 8.5.1 Introduction to Relays

  6. 8.5.1 Introduction to Relays • 제어회로와 다른 전원으로 구동하는 Relay의 예

  7. 8.5.1 Introduction to Relays

  8. 8.5.2 Electromagnetic Relays Basics

  9. 8.5.2 Electromagnetic Relays Basics

  10. 8.5.2 Electromagnetic Relays Basics

  11. 8.5.3 reed Relays

  12. 8.5.4 Solenoids

  13. 8.5.4 Solenoids

  14. 8.5.5 Pulse-Width Modulated DC Motors • DC 모터의속도 제어( 모터에 가해지는 실효 전력을 제어 함)를 위하여 펄스 폭 변조 기술을 사용 한다.

  15. 8.5.6 Interfacing EM Relays, Solenoids, and DC Motors

  16. 8.5.6 Interfacing EM Relays, Solenoids, and DC Motors Table 8.12 Maximum voltage parameter for typical snubber diodes

  17. 8.5.6 Interfacing EM Relays, Solenoids, and DC Motors

  18. 8.5.6 Interfacing EM Relays, Solenoids, and DC Motors

  19. 8.5.6 Interfacing EM Relays, Solenoids, and DC Motors

  20. 8.5.6 Interfacing EM Relays, Solenoids, and DC Motors

  21. 8.5.6 Interfacing EM Relays, Solenoids, and DC Motors

  22. 8.5.6 Interfacing EM Relays, Solenoids, and DC Motors

  23. 8.5.6 Interfacing EM Relays, Solenoids, and DC Motors

  24. 8.5.6 Interfacing EM Relays, Solenoids, and DC Motors

  25. 8.5.6 Interfacing EM Relays, Solenoids, and DC Motors

  26. 8.5.6 Interfacing EM Relays, Solenoids, and DC Motors

  27. DC Motor and Stepper Controller L298N Current Motor Supply Logic Current Sensing Voltage Enable Supply Enable Sensing A Out Out Vs In A In GND Vs In B In Out Out B 1 2 1 2 3 4 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 7414 1 4 7414 3 470uF 35V + - +Vout 2 Motor 2 -Vout2 2 2 +Vout 1 Motor 1 -Vout1 1 + 1 + 4 4 Vs Supply Voltage GND 2W06 2W06 Vs Supply Voltage GND Vs 3 3 104 1 2 3 4 5 6 GND Dir1 En1 Dir2 En2 Vcc In Put Control Signal Connector

  28. Dual Full-Bridge Driver L298 • High voltage : 46V • high current : 4A • Dual full-bridge driver • Accept standard TTL logic levels • Drive inductive loads such as • Relays, Solenoids, DC and, Stepping motors

  29. L289 Block Diagram M M

  30. 8.5.7 Solid-State Relays

  31. 8.5.7 Solid-State Relays

  32. 8.5.7 Solid-State Relays

  33. 8.6 Stepper Motors

  34. 8.6.1 Stepper Motors Example

  35. 8.6.1 Stepper Motors Example Table 8.13 Stepper motor sequence

  36. 8.6.1 Stepper Motors Example

  37. Program 8.24. A double circular linked list used to control the stepper motor. // 6811 or 6812 const struct State{ unsigned char Out; // Output const struct State *Next[2]; // CW/CCW }; typedef struct State StateType; typedef StateType *StatePtr; #define clockwise 0 // Next index #define counterclockwise 1 // Next index StateType fsm[4]={ {10,{&fsm[1],&fsm[3]}}, { 9,{&fsm[2],&fsm[0]}}, { 5,{&fsm[3],&fsm[1]}}, { 6,{&fsm[0],&fsm[2]}} }; unsigned char Pos; // between 0 and 199 StatePtr Pt; // Current State

  38. Program 8.25. Helper functions used to control the stepper motor. // 6811 or 6812 // Move 1.8 degrees clockwise void CW(void){ Pt = Pt->Next[clockwise]; // circular PORTB = Pt->Out; // step motor if(Pos==199){ // shaft angle Pos = 0; // reset } else{ Pos++; // CW } } // Move 1.8 degrees counterclockwise void CCW(void){ Pt = Pt->Next[counterclockwise PORTB = Pt->Out; // step motor if(Pos==0){ // shaft angle Pos = 199; // reset } else{ Pos--; // CCW } } // Initialize Stepper interface void Init(void){ Pos = 0; Pt = &fsm[0]; DDRB = 0xFF; // 6812 only }

  39. Program 8.26. High-level function to control the stepper motor. // 6811 or 6812 void Seek(unsigned char desired){ short CWsteps; if((CWsteps=desired-Pos)<0){ CWsteps+=200; } // CW steps is 0 to 199 if(CWsteps>100){ while(desired<>Pos){ CCW(); } } else{ while(desired<>Pos){ CW(); } } }

  40. 8.6.2 Basic Operation

  41. 8.6.2 Basic Operation

  42. 8.6.2 Basic Operation

  43. 8.6.2 Basic Operation

  44. 8.6.2 Basic Operation

  45. 8.6.2 Basic Operation

  46. 8.6.2 Basic Operation

  47. 8.6.2 Basic Operation

  48. 8.6.3 Stepper Motor Hardware Interface

  49. 8.6.3 Stepper Motor Hardware Interface

  50. 8.6.3 Stepper Motor Hardware Interface

More Related