Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

AFS amplitude-frequency sampler method

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

  • #16

    Click image for larger version  Name:	DeepSeek.png Views:	0 Size:	38.5 KB ID:	439230
    DeepSeek Q-type metal detector. Ask him fo IB and P design incleding uPC design code.

    Q-Factor-Based Metal Detector by DeepSeek

    The proposed device is an instrument that reacts to the approach of metallic objects to a coil. Despite the extreme simplicity of the circuit, the device can detect copper coin with a diameter of 2.5 cm at a distance of over 10 cm, while larger objects made of non-ferrous metals can be detected at a distance of more than 1 meter.

    Advantages of the Device
    The device boasts several key advantages:
    • Ultra-low power consumption (5 mA when powered by a "Krona" battery).
    • Simple adjustment and complete immunity to external interference.
    Circuit design is here:

    Click image for larger version  Name:	DeepSeek QMD.png Views:	0 Size:	75.0 KB ID:	439229
    The core Q-sensing element is an oscillator circuit built around transistor VT1, following a classic design. The circuit operates in a unique mode, highly sensitive to the quality factor (Q) of the oscillating circuit, achieved by adjusting feedback depth via resistor R1. The Q-factor depends on the surrounding environment of the coil. The oscillator’s excitation level determines the DC voltage at point "A".

    Click image for larger version  Name:	DeepSeek QMD 1.png Views:	0 Size:	10.9 KB ID:	439227
    Limitations and Trade-offs

    The voltage at "A" reflects excitation depth but is frequency-independent, preventing differentiation between metals based on magnetic properties. Conversely, this relaxes coil requirements (e.g., mechanical rigidity), simplifying construction while maintaining high sensitivity.

    Performance
    With a very carefully wound coil, sensitivity significantly improves—detecting coins up to 15–20 cm away, surpassing initial expectations.

    Signal Processing and Amplification

    The DC voltage from point "A" is routed via a shielded cable (any type) to a two-stage amplifier built using two operational amplifiers (op-amps) within IC DA1. Capacitor C4 should be connected to the positive supply rail (as shown in the schematic), not to the ground, to avoid positive feedback. Diodes VD1 and VD2 (silicon, low reverse current) ensure rapid recovery of amplifier operation when large metal objects are detected. Audio Frequency Oscillator (DA1.3). A sound-frequency oscillator is implemented on op-amp DA1.3, triggered when the potential difference between its inverting and non-inverting inputs decreases. Diodes VD3 and VD4 limit input voltages, enabling frequency modulation. This allows an experienced user to estimate an object’s size and location by tracking pitch changes. Recommended diodes: KD419 or similar (minimal forward voltage drop). Output Stage (DA1.4). An inverter (DA1.4) boosts the output volume for the piezoelectric buzzer.

    Oscillator Calibration

    Replace fixed resistor R1 with a 10 kΩ potentiometer, initially set to maximum resistance. Gradually decrease resistance while monitoring the voltage at "A" (see Fig. 2). The voltage will first decrease, then rise after reaching a minimum. Lock the potentiometer at the minimum voltage point, measure its resistance, and replace it with an equivalent fixed resistor.

    Generator Assembly and Coil Design

    The generator is mounted on a separate small PCB positioned as close as possible to the coil. All generator components must be precision-grade. Transistor: Any p–n–p type (even germanium with low gain). Capacitor C1: Optimize capacitance (5–20 nF) for maximum circuit sensitivity. Alternative connection: For improved results, C1 may be linked to the ground wire instead of winding II (base winding).

    Coil Specifications

    Diameter: 14–16 mm. Winding: 260 turns of 0.2–0.5 mm wire, with a tap at the 160th turn.

    Frame

    Simple yet rigid, made of three corrugated cardboard discs: Central disc: Slightly smaller diameter than the outer discs. Advantages: Mechanical stability + thermal insulation (reduces temperature drift).


    Thermal Management

    For SMD-based generators, sandwiching the PCB between cardboard layers minimizes temperature fluctuations.No shielding or additional insulation is required for other components.

    Power Supply
    Stabilized source is mandatory. Voltage regulator design is here:

    Click image for larger version  Name:	DeepSeek QMD 2.png Views:	0 Size:	17.1 KB ID:	439228

    Q-Factor Based Metal Detector - operating on LC Circuit Quality Factor Measurement
    Operating Principle

    The device detects metallic objects by monitoring changes in the quality factor (Q) of a high-frequency LC tank circuit:
    • Ferrous metals (iron, nickel): Increase energy losses, reducing Q.
    • Non-ferrous metals (copper, aluminum): May increase or decrease Q depending on frequency/distance.

    Key Features
    1. LC Oscillator Circuit
      • Operates near oscillation threshold, where Q has maximal impact on amplitude/frequency.
      • Sensitivity tuned via:
        • Capacitor C1 (5–20 nF)
        • Coil tap at 160th turn of 260 (optimized coupling).
    2. Q-Factor Measurement
      • Tank signal (point "A") DC voltage via envelope detector.
      • Op-amps (DA1.1–DA1.2) amplify subtle Q changes caused by metals.
    3. Thermal Stability
      • Cardboard coil frame + SMD components minimize temperature drift.
    4. Output Indication
      • Audio: Tone generator (DA1.3) shifts pitch with Q (frequency modulated by VD3–VD4).
      • Visual: Voltage at "A" can drive an analog meter or ADC.

    Advantages vs. VLF/IB Detectors
    • Simpler design: No phase detectors or complex filters.
    • Low power: ≤5 mA (9V "Krona" battery).
    • High sensitivity: Detects a 2.5 cm coin at 20 cm; >1 m for large objects.

    Limitations
    • No metal discrimination: Cannot distinguish metals by phase (only by Q impact).
    • Manual tuning: Requires adjustment of R1 to set minimum voltage at "A".

    Upgrade Options
    1. Digital Processing
      • Add an MCU (e.g., STM32) for real-time ΔQ analysis.
    python
    1. # Q-factor MD calculation
    2. def measure_Q(LC_voltage):
    3. amplitude = np.max(LC_voltage) - np.min(LC_voltage)
    4. bandwidth = calculate_3dB_bandwidth(LC_voltage) # Requires FFT
    5. return amplitude / bandwidth
    6. Dual-Frequency Mode
    7. Second LC circuit at a different frequency improves target identification.

    Implementation Example
    • Coil: 260 turns (Ø0.2–0.5 mm wire), Ø14–16 mm, cardboard frame.
    • Resonance: ~50 kHz with C1 = 2.2 nF.
    • Calibration: Trim R1 until voltage at "A" is minimized.

    Why This Design?
    • Cost-effective: Uses affordable components (LM324, generic transistors).
    • Field-repairable: No proprietary ICs; modular design.
    • Adaptable: Easy to integrate with digital displays or wireless modules.
    Need a coil winding guide or PCB layout? Let me know!
    (For frequency optimization or metal differentiation algorithms, provide target specifications.) Q-Factor-Based Metal Detector: Technical Summary

    Core Principle

    Detects metals by monitoring changes in the quality factor (Q) of an LC tank circuit:
    • Ferrous metals (iron, steel): Reduce Q due to eddy current losses.
    • Non-ferrous metals (copper, aluminum): May increase or decrease Q depending on frequency/distance.
    Key Components & Design
    1. LC Oscillator Circuit
      • Transistor (VT1): Any low-gain p-n-p type (even germanium).
      • Capacitor (C1): 5–20 nF (tuned for peak sensitivity).
      • Coil: 260 turns (Ø0.2–0.5 mm) with tap at 160th turn; Ø14–16 mm cardboard frame for thermal stability.
    2. Q-Factor Measurement
      • Point "A" DC voltage: Proportional to Q (drops when metal is near).
      • Amplifier (DA1.1–DA1.2): Two-stage op-amp for signal conditioning.
    3. Audio Feedback
      • Oscillator (DA1.3): Frequency shifts with Q changes (diode-clamped inputs for modulation).
      • Piezo buzzer: Loudness boosted by inverter (DA1.4).
    Calibration
    • Replace R1 with 10 kΩ trimmer, adjust to minimize voltage at "A", then fix with equivalent resistor.
    Advantages
    • Low power: 5 mA (9V "Krona" battery).
    • High sensitivity: 2.5 cm coin at 10–20 cm; >1 m for large objects.
    • Thermal stability: Corrugated cardboard insulates the coil/SMD components.
    Limitations
    • Cannot discriminate metals magnetically (only by Q impact).
    • Manual tuning required for optimal operation.
    Upgrade Paths
    • MCU integration: Use STM32 to log Q changes or add display.
    • Multi-frequency: Add a second LC circuit to improve target ID.
    Analysis of the Circuit and Practical Recommendations
    1. General Observations
    • IC: The circuit uses DA1 (K1401YJ2A or LM324) — a low-power quad operational amplifier (op-amp), suitable for amplifiers, comparators, and oscillators.
    • Components: The schematic includes resistors, capacitors, an inductor coil (L1), and transistors (T1, T3).

    2. Key Nodes and Possible Functions
    1. LC Tank Circuit (L1, C1–C3)
      • L1 + C1–C3: Form an oscillating circuit for signal generation/detection.
      • Tip: Verify the resonant frequency using:
    f=12πL1Ceq, where Ceq=C1+C2+C3.f=2πL1Ceq
    1. [*=1]
      • 1, where Ceq=C1+C2+C3.
    Example: If L1=100μHL1=100μH, C1+C2+C3=520pFC1+C2+C3=520pF, then f≈700kHzf700kHz.
    1. Amplifier Stages (A1–A4)
      • A1, A2: Likely amplify the LC tank signal.
      • A3, A4: May serve as comparators or audio generators (if connected to a piezo buzzer).
      • Tip: Ensure the gain (set by resistors R4–R11) meets requirements. For a non-inverting amplifier:
    K-1=Rfeedback*Rground.K=1+Rground​*Rfeedback​​.
    1. Transistors (T1, T3)
      • T1: Likely the core element of the oscillator/detector.
      • T3: May act as a buffer or power amplifier.
      • Tip: Check the transistors’ operating mode (Class A/B) via base/collector voltages.

    3. Potential Issues and Improvements
    • Thermal Stability:
      • Resistors R6–R11 (0.5–100.5 Ω) may overheat. Replace with precision resistors (1% tolerance).
    • Noise:
      • Shield L1 and signal paths (use ferrite beads).
    • Power Supply:
      • The LM324 requires ≥3V. If using a 9V battery, add a regulator (e.g., L78L05).

    4. Optimization for Metal Detection
    • Sensitivity:
      • Replace C1–C3 with NPO/TEM ceramic capacitors for stability.
    • Indication:
      • Add an LED indicator with a comparator (e.g., on A4) for visual feedback.
    • Calibration:
      • Replace R1 with a trimmer potentiometer for fine-tuning sensitivity.

    5. Functionality Check
    1. Power on and measure voltages at A1–A4.
    2. Use an oscilloscope to verify oscillations at L1.
    3. Bring a metal object near the coil — the signal at A1 should shift.

    Coil Calculation and Circuit Modifications
    1. Inductor Coil (L1) Design

    Goal: Optimize for metal detection at 10–100 kHz.
    Parameters:
    • Diameter: 15 cm (ideal for coin-sized objects).
    • Turns: 20–30 (reduced to minimize parasitic capacitance).
    • Wire: Enameled copper, 0.5 mm diameter.
    • Target Frequency: ~50 kHz.
    Formulas:
    1. Single-layer inductance:
    L (μH)=(DN)245D+100l,L (μH)=45D+100l(DN)2,
    where DD = diameter (cm), NN = turns, ll = winding length (cm).
    Example: D=15
    cm,N=25,l=1cmD=15cm,N=25,l=1cm L≈220μHL220μH.
    1. Resonant frequency with C=2.2nFC=2.2nF:
    f≈50kHz.f50kHz.
    Tips:
    • Use a PVC pipe frame for rigidity.
    • Shield the coil with aluminum foil (leave a gap to prevent eddy currents).

    2. Circuit Upgrades

    Issues:
    1. No explicit feedback for oscillator stability.
    2. Lacks thermal compensation.
    3. Weak output signal.
    Modifications:
    1. Transistor T1 Oscillator:
      • Add an emitter resistor (1 kΩ) for thermal stability.
      • Replace C1 with a trimmer capacitor (5–50 pF) for frequency tuning.
    2. Op-Amp Stages (DA1.1–DA1.4):
      • Implement negative feedback (10 kΩ resistors between outputs/inputs).
      • Add a low-pass filter (100 kΩ + 10 nF) at DA1.2 to suppress RF noise.
    3. Detection & Output:
      • Connect a comparator (LM393) to point "A" for digital output (LED/buzzer).
      • Use a piezo buzzer with a tone generator (e.g., NE555) for audio alerts.

    Revised Schematic:
    [Oscillator] [Amplifier DA1.1] [LPF] [Comparator] [Indicator] [Feedback via 10 kΩ resistor]
    3. Testing and Calibration
    1. Coil Verification:
      • Measure inductance with an LCR meter.
      • Check resonance with an oscilloscope (probe C1 and ground).
    2. Calibration:
      • Adjust the trimmer capacitor for peak signal at DA1.1.
      • Test with a coin — DA1.2 output should shift by 10–20%.
    3. Power Supply:
      • Replace the battery with a 3.7V Li-ion + LDO regulator (e.g., AMS1117-3.3).

    4. Example Calculation

    Task: Detect a 2.5 cm coin at 15 cm.
    • Sensitivity: Increase turns to 30 (L≈300μHL300μH).
    • Capacitor: C=1nF, C=1nF f≈29kHz, f29kHz (better for small objects).
    • Gain: Set Rfeedback=100kΩ, Rfeedback=100kΩ for K=11K=11.

    Outcome

    The upgraded design ensures:
    • Stable oscillation with thermal compensation.
    • Detection of small metals at 15–20 cm.
    • Clear audio/visual indication.
    Need further clarifications or calculations? Ask away!
    (For a detailed PCB layout or component sourcing advice, provide additional constraints.)

    Regards
    Your DeepSeek
    Click image for larger version  Name:	DeepSeek2.jpg Views:	0 Size:	7.8 KB ID:	439232
    https://chat.deepseek.com/sign_in
    Attached Files

    Comment


    • #17
      I've seen this diagram before....

      https://radioskot.ru/publ/metallopoi...kami/16-1-0-13

      https://www.mastervintik.ru/prostoj-...tallodetektor/

      Comment


      • #18
        DeepSeek for metals ? Yes! Sensitivity for a tin can about 1 m, for a well hatch 2 m. Maybe a little more. In the city, electrical interference doest allow to check maximum sensitivity. Coil: 60 turns 0.5mm, screened, diameter 55 cm (22 inch).​ Key words = screening and shielding. This machine is very silent MD - same like Tessoro MD.
        Lets DeepSeek analyse Альтаир 2Д!
        Click image for larger version  Name:	Альтаир-2Д. Осциллограммы.jpg Views:	0 Size:	735.2 KB ID:	439248
        Click image for larger version

Name:	Датчик(Q-генератор) .jpg
Views:	174
Size:	94.8 KB
ID:	439249
        Who will design PCB? Of course = DeepSeek!

        Мораль такова
        Click image for larger version

Name:	человек не должен скрывать знания.png
Views:	176
Size:	105.2 KB
ID:	439250
        Attached Files

        Comment


        • #19
          Альтаир 2Д Mr_John_CI.rar



          Something went wrong - sorry.
          Last edited by pechkata; 07-17-2025, 05:45 PM.

          Comment


          • #20
            Originally posted by pechkata View Post
            ALTAIR.zip [ATTACH]439256[/ATTACH]


            Invalid File Specified

            Comment


            • #21



              Attached Files

              Comment


              • #22
                Альтаир-2Д.pdf

                pc
                b by Tehnodium.RU
                Click image for larger version  Name:	изображение.png Views:	0 Size:	387.4 KB ID:	439297
                coil generator
                Click image for larger version  Name:	изображение.png Views:	5 Size:	72.6 KB ID:	439299
                Attached Files

                Comment

                Working...
                X