1 / 21

PIC18 Design and Applications

“ Discuss and perform the PIC 18 microcontroller design and the real-world applications. “. PIC18 Design and Applications. Objectives. To understand how to relate between input and electronic To understand how to relate between output and electronic To understand how to choose the input

vgamble
Download Presentation

PIC18 Design and Applications

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. “Discuss and perform the PIC 18 microcontroller design and the real-world applications. “ PIC18 Design and Applications

  2. Objectives • To understand how to relate between input and electronic • To understand how to relate between output and electronic • To understand how to choose the input • To understand how to choose the output • To understand how to use flowchart

  3. Outline • Input • Output • Programming • Flowchart

  4. PIC18 Design: Input Input Type of Sensor: Analog or Digital ? Voltage: 3.3V or 5V or 12V or 24V? Protocol: Rx-Tx or I2C or SPI? Or just analog voltage ! Filters? Circuit: Op-Amp, Comparator Sensor Output: Voltage, Current, Small Value Resolution, Voltage Reference

  5. Example Input Voltage: 12V Output Voltage: Logic 0/1 *Digital Sensor Input Voltage: 5V Output Voltage: Analog Input Voltage: 5V Output Voltage: Logic 0/1 *38KHz Input Voltage: 5V Output Voltage: Analog

  6. PIC18 Design: Output Output Type of Output: Relay, Buzzer, LEDs, etc Voltage: 3.3V or 5V or 12V or 24V ? Protocol: Rx-Tx or I2C or SPI?

  7. Design (Programming) Programming C or Assembly or Basic or Pascal? How to read the sensor: ADC, Digital How to control the output: On-Off, PWM Setting: IO, ADC, SPI, Timers How to use: register, loop, branch, etc Important: Assembly Language!

  8. Example • PWM • CCP • Timer

  9. Design (Electronic/Hardware) Electronic/Hardware TIP or Mosfet Circuit Relay Circuit *Voltage Divider Active LOW/HIGH Switch Common Ground LEDs Current Control H-Bridge for DC Motor Circuit: Op-Amp, Comparator Stepper Motor Connection Servo Motor Connection

  10. Example

  11. Example

  12. Design (Flowchart) Flowchart Initialize, Start, Stop Decision Making

  13. Example Start #include < > Initialize: P.B0=Input P.B1=Output BSF Port B0 BCF Port B1 *T0CON Check Switch BTFSS or BTFSC Switch is Pressed? No Yes Turn ON LED BSF Port B1 *Delay End

  14. Examples

  15. Smart Blinds This project is for self-configuring lighting control system solution for bedrooms, offices and perimeter areas. Under automatic operation, the system senses luminosity inside and outside a room, controls the angle of the blinds and dims the lamps to maintain a prescribed level of illumination inside the room. The system also provides the user with 4 pre-programmed ambience settings that can set the tone of the room with just a button press. This is an environmentally friendly system that saves energy by keeping unoccupied rooms unlit and maximizing the use of available natural light. In the long-run, it will provide control solutions that reduce energy costs and extend lamp life.

  16. Voice Recognition Robotic car Think about a creating a car which would be controlled by your voice. By giving a command, the car would drive you to your destination.   The voice recognition algorithm we used could be applied to daily life; for example it would be most helpful to disabled people to perform their daily work. We can create a speech controlled car using various electrical and mechanical domains such as digital signal processing, analog circuit design, and interfacing the car with the PIC18F4580

  17. Networked Biometric Authentication Due to the increasing need for securing data and places, the biometric authentication industry is seeing large market growth.  We decided to build a scalable, small, and efficient device that can be used to secure doorways throughout a complex.  We use a FingerPrint Cards capacitance based fingerprint scanner as our capturing device.  This data is captured through use of an ATMega32 microcontroller and stored on external SRAM while being sent through the microcontrollers USART serial port into a serial to Ethernet converter to a server computer.  This computer then performs the filtering and authentication and sends the result back over Ethernet to the microcontroller. 

  18. Smart Blind Solution

  19. Voice Recognition Robotic car Solution

  20. Networked Biometric Authentication(Solution)

  21. End of Chapter

More Related