Announcement

Collapse
No announcement yet.

Arduino PI detector shield

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Arduino PI detector shield

    Hi,

    I'm trying to design a PI detector based on a schematic from pulsdetektor.biz (the Base-1, Schematic). My goal is to come up with an Arduino metal detector shield, but it's still a long way to go as I'm an mechanical engineering student with some basic EE skills, but I'm looking forward to improve these with this project

    However my first step was to reproduce the transmitter stage in LtSpice in order to analyze the circuit. There is a connection from the TX stage to a microcontroller pin via a transistor (see TP3 in my attached schematic). I think this is used to detect the beginning of the back-emf and start a timer and after the timer has timed out a sample is taken.

    This is how I think it should behave: Once the MOSFET opens, the pin on the microcontroller is pulled high to 5V and when the back-emf sets in it should get pulled low to ground.

    The problem is that LtSpice shows me a negative voltage of -12V on test point 3 (TP3) when the back-emf sets in. This would instantly kill the microcontroller's input pin.... I have already tried to place a diode in the emitter path but this still leaves a negative voltage of about -0.7V.

    Is this a flaw in the original design or am I doing something wrong? How could I improve the design, so that I get high state (+5V) on the pin when the coil is charged (MOSFET open) and a low state (GND) when the back-emf sets in (MOSFET closed) ?

    Thanks for any advice and ideas! And of course I can keep you updated with the progress of my little project if you wish

    Simon


    Click image for larger version

Name:	schematic.png
Views:	1
Size:	97.6 KB
ID:	368561

    Click image for larger version

Name:	testpoints.png
Views:	1
Size:	59.9 KB
ID:	368562

  • #2
    Never mind, got it fixed


    Click image for larger version

Name:	schematic3.png
Views:	1
Size:	87.2 KB
ID:	337875

    Click image for larger version

Name:	voltage.png
Views:	1
Size:	34.1 KB
ID:	337876

    Comment


    • #3
      You can drive the MOSFET directly from an arduino digital output. No need to uses a driver, although it doesn't harm...

      Comment


      • #4
        Originally posted by joop View Post
        You can drive the MOSFET directly from an arduino digital output. No need to uses a driver, although it doesn't harm...
        Hi Joop,
        Is it possible with simple PWM signal and one simple arduino program?

        Comment


        • #5
          What type of coil are you using?

          Comment


          • #6
            its gonna be interesting project good luck sled

            Comment

            Working...