Skip to content

Instantly share code, notes, and snippets.

@indra1234
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save indra1234/0a8cfc1a2670d92f6484 to your computer and use it in GitHub Desktop.
Save indra1234/0a8cfc1a2670d92f6484 to your computer and use it in GitHub Desktop.

Embedded System & Microcontroller Projects 02: PC based multiple Sensor Control, Part #1 - Sensor Interfacing with Microcontroller P89VRD2BN/PIC18F45801.

02.1 Project Description:

  • Project Name : Sensor Interfacing with Microcontroller P89VRD2BN/PIC18F458.
  • Skill: Sensor interfacing like Temperature, Pressure, Humidity, Proximity etc, programming used Embedded C, Hardware design Multisim, PCB design in Ultiboard, Microcontroller used PIC18F458/P89Vrd2BN.
  • Application : In Industry, Biomedical, Automation industry, Aerospace etc.
  • Result : Completed
  • Actually when I do the work then I faced some problems and that’s are first of all sensor value or calibration which is very important for contr0l any type of machine, because that is backbone of machine means of sensor not detect or you don't set the sensor then machine not working properly. Here I used light sensor so light effect is the problem means always change the value of sensor on the light effects. Second milestone is PCB or printed circuit board, the value of bread board and value of PCB both are quite different when I was doing this work.
    So, that’s the challenge for me and I was overcome this problem after lot of hard work. This is the microcontroller based project where I just interfaced sensors with P89VRD2BN/PIC18F458 microcontroller. In here I used two optical or light sensors, microcontroller and motor. The main object of this project is control the motor speed or motion with respect to sensor value. Its applications in everywhere just like as in Automation industry, Aerospace and Biomedical industry. In here I just used two optical sensors for control the A.C or D.C motors. The main skills used Embedded system, programming in c and Analogy & Digital Circuit in Multisim.

02.2 EMB02 Hardware Connection & Description:

WP2 WP2

02.3 Pin Connection:

                    LCD Data Bus                P1                             LCD_DATA

                    LCD Enable Pin              P0.2                           LCD_EN

                    LCD Read/Write Selection    P0.1                           LCD_RW

                    LCD Register Selection      P0.0                           LCD_RS

                    ADC Data Bus                P1                             ADC_DATA

                    ADC Output Enable (Read)    P0.5                           ADC_RD

                    ADC Start Conversion (Write)P0.4                           ADC_WR

                    ADC Clock                   P0.3                           ADC_CLK

                    Buzzer                      P3.3                           BUZZER

                    Relay                       P3.4                           RELAY

                    RC5 Input / Test LED        P3.2                           RC5

                    IIC Serial Clock            P0.7                           SCL

                    IIC Serial Data  P0.6  SDA

                    L293D input 1A-4A           P0.0, P0.1, P0.2, P0.3         M1_A, M1_B, M2_A, M2_B

                    LM339 Sensor Socket 1-4     P2.4, P2.5, P2.6, P2.7         S1,S2,S3,S4

                    Left Input Key              P3.5                           L_KEY

                    Right Input Key             P3.7                           R_KEY

                    Center Input Key            P3.6                           C_KEY

02.4 Picture of the Machine:

WP2 WP2 WP2 WP2 WP2 WP2

Photos of the Schematics Hardware and the Project Workplace :

WP2

02 PC based multiple Sensor Control, Part #2 – The Control Software running on standard Desktop PCs.

Project Name : PC Based Multiple sensor controlled. Skill : Analog & Digital hardware Design, PCB design, Programming in Embedded C, Testing. Software : Keil, Micro pro PIC, Multisim, NI LabView. Application : In industry, widely used in Biomedical & automobile industry etc Result: Completed

  • Previous project is useful but needed automation means needed computer based control. So just improved this project using PC and control the system or machine by computer. So, here I used RS232/USB to Serial converter, NI Lab View and others hardware’s are same. NI Lab View is useful software for connecting and detect external hardware to your PC. Here RS232 used for connect to hardware with your PC. The application is automation, biomedical and aerospace etc. In here I used Lab View for control the system or machine and automation means show the output graphically of the system. WP2 WP2 WP2 WP2 WP2 WP2 WP2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment