Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Metal detector to PIC16F877

Status
Not open for further replies.

tomas

Member level 1
Joined
Dec 16, 2012
Messages
41
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,553
I want to connect this metal detector metalo.jpg to PIC16F877 analog pin, but don't know hot to do it. On LED there is from 1,5V to 2V voltage and 20mA current, and I need this voltage to be read by PIC16F877.

I need that microcontroller would read voltage from diode and send signals to other microcontroller.

Can anyone helpme? :cry:
 

You should design the metal detector circuit such that it gives 5V O/P by turning on a transistor when metal is inserted. If there is no metal it should give 0V o/p i.e., transistor turned off. Then you don't have to use ADC to read the analog voltage. You can use Digital i/p to read the 0v and 5v logic levels.
 
but i want that when voltage is growing from 1,5 to 2 V, microcontroller would light 1 LED, when voltage is 1,6, 2 LEDs when voltage is 1,7, 3 LEDs when 1,8 and so on. So I suppose I need analog input for this, right? :)
 

You need like this, right? V=1.6V 1 LED ON, V=1.7V 2 LEDs ON, V=1.8 3 LEDs ON.

See attachment
 

Attachments

  • adc.rar
    64.9 KB · Views: 62
Last edited:
  • Like
Reactions: tomas

    tomas

    Points: 2
    Helpful Answer Positive Rating
jap :) but without LCD
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top