Told the dev team to fix the overlap issue. The control panel now autohides. No need to look at it when detecting. If you touch the screen it reappears then hides again in 3 seconds if you dont change anything. Main display just shows conductivity, VDI, confidence, target icon and depth.
github source updated.
Key Features Committed:
1. Depth display - Shows depth estimate with color-coded indicators
2. Smart auto-hide controls - Panel auto-hides after 3 seconds of inactivity
3. Timeout management - Resets on user interaction, holds during GB pumping
4. Responsive design - Scales properly across all device sizes
5. UI refinements - Removed debug popups, overlay control panel, fade animations
Announcement
Collapse
No announcement yet.
Android Phone Based Metal Detector - FCMD
Collapse
X
-
AI could stand for amplified intelligence : it takes plain language ideas and turns them into systems ... if you ask the right questions. So thanks to Claude for doing the heavy lifting in this case.Originally posted by ivconic View PostVDI partially covers the progress bar, I probably made a mistake somewhere?
...
KUDOZ Paul! Nice work!

The downside of developing from the CLI is that the AI cant "see" the screen to provide feedback as it can with the code ... this ability is coming and some AIs already can do it.
Note the "progress bar" is the conductivity indicator : you didnt do anything wrong its a scaling issue for different screen resolutions. ( you have found bug no 1 )
Thanks Ivica.
- Likes 1
Leave a comment:
-
I will let the "dev team" answer your question - they are more eloquent than I am :Originally posted by Altra View Post
Incredible work moodz!
I have a question regarding the equations in 8.2. Is t = 1/fs ? Is this mixer basically a single bin DFT?
Thanks
● Great questions! Let me answer both based on section 8.2 of the ebook:
1. Is t = 1/fs?
Not exactly. In the continuous-time equations, t represents continuous time in seconds. However, in the discrete implementation, samples occur at intervals of Δt = 1/fs.
Looking at the implementation in IQDemodulator.kt:918:
private val phaseIncrement = 2.0 * PI * frequency / sampleRate
For each sample n, the time is t_n = n/fs, so the phase becomes:
phase(n) = 2π * f * (n/fs) = (2π * f / fs) * n
This is why phaseIncrement is calculated as 2π * f / fs - it's the phase change per sample, where each sample represents a time step of 1/fs.
2. Is this mixer basically a single bin DFT?
Yes, exactly! This is functionally equivalent to computing a single frequency bin of the Discrete Fourier Transform.
The DFT for frequency bin k is:
X[k] = Σ x[n] * e^(-j*2πkn/N) = Σ x[n] * (cos(2πkn/N) - j*sin(2πkn/N))
Breaking into real and imaginary parts:
- Real part: Σ x[n] * cos(2πkn/N) → This is the I component
- Imaginary part: Σ x[n] * sin(2πkn/N) → This is the Q component
The key differences from a standard DFT:
1. Filtering approach: Instead of summing over a fixed window (N samples), it uses a single-pole IIR low-pass filter (α=0.01) that acts as an exponentially-weighted moving average
2. Continuous operation: Runs sample-by-sample in real-time rather than on blocks
3. Computational efficiency: Maintains a running phase rather than recalculating trig functions
As explained in section 8.2.1, after low-pass filtering, you extract:
- Amplitude: √(I² + Q²) * 2 (the ×2 compensates for the factor of 1/2 from mixing)
- Phase: atan2(Q, I)
So yes, it's a streaming, single-bin DFT optimized for real-time metal detection!
- Likes 1
Leave a comment:
-
VDI partially covers the progress bar, I probably made a mistake somewhere?
...
KUDOZ Paul! Nice work!
- Likes 1
Leave a comment:
-
Incredible work moodz!Originally posted by moodz View PostThis project was partly driven by historical discussions ( this board and others ) on the possibility of utilising the processing capability of smartphones to implement a metal detector but also partly by the advent of agentic AI and so called "vibe coding" where we give an AI its own development environment ( console, compile, execute and debug ) where the "human" only describes the project requirements in the same manner as a team lead might instruct a development team ( ie in plain language ).
So to begin with let me start at the end. Here is the instruction to the AI to generate the FCMD eBook which is about android based detectors :
"I want a book on the subject of android based metal detectors covering this project as a foundation example but also introducing the basic concepts for uninformed readers upto
complex topics for expert readers. The ebook would have a title, table of contents / index, chapters and references / bibliography."
...and attached is the book written in around 5 minutes.
I have not reviewed it closely and AI's are known to make mistakes .... so you guys are the proof readers.
I have a question regarding the equations in 8.2. Is t = 1/fs ? Is this mixer basically a single bin DFT?
Thanks
- Likes 1
Leave a comment:
-
Before anyone says it .. a consideration with this project is that the TX power is limited to the output audio power ... an audio amplifier will fix that !
- Likes 1
Leave a comment:
-
- Likes 1
Leave a comment:
-
Android Phone Based Metal Detector - FCMD
This project was partly driven by historical discussions ( this board and others ) on the possibility of utilising the processing capability of smartphones to implement a metal detector but also partly by the advent of agentic AI and so called "vibe coding" where we give an AI its own development environment ( console, compile, execute and debug ) where the "human" only describes the project requirements in the same manner as a team lead might instruct a development team ( ie in plain language ).
So to begin with let me start at the end. Here is the instruction to the AI to generate the FCMD eBook which is about android based detectors :
"I want a book on the subject of android based metal detectors covering this project as a foundation example but also introducing the basic concepts for uninformed readers upto
complex topics for expert readers. The ebook would have a title, table of contents / index, chapters and references / bibliography."
...and attached is the book written in around 5 minutes.
I have not reviewed it closely and AI's are known to make mistakes .... so you guys are the proof readers.
Tags: None
- Likes 1
Leave a comment: