CoilPad is a flexible, ultra-thin PCB coil that can be adapted for various applications, including metal detection. By pairing CoilPad with a capacitor, you can create an LC oscillator that responds to the presence of metal objects. Additionally, two CoilPad can be used as a poor transformer, enough to wirelessly transmit data or even wirelessly power an LED!
When a capacitor is placed in parallel with CoilPad, it forms an LC circuit (inductor-capacitor circuit). When driven at its resonant frequency, this circuit oscillates. If a metal object comes near, it disturbs the field, altering the circuit’s frequency. This change can be detected, allowing CoilPad to function as a simple metal detector.
To turn CoilPad into a metal detector, you need:
#define COIL_PIN 2
void setup() {
pinMode(COIL_PIN, INPUT);
Serial.begin(115200);
}
void loop() {
int freq = pulseIn(COIL_PIN, HIGH);
Serial.println(freq);
delay(100);
}
This code reads the frequency and prints it to the serial monitor, allowing you to observe frequency changes when metal is nearby.
CoilPad can also be used for wireless transfer by pairing two CoilPads tuned to the same resonant frequency.
Where L is the inductance of the CoilPad which is 30.7uH
#define COILPAD_PIN1 2
#define COILPAD_PIN2 3
void setup() {
pinMode(COILPAD_PIN1, OUTPUT);
pinMode(COILPAD_PIN2, OUTPUT);
}
void loop() {
digitalWrite(COILPAD_PIN1, HIGH);
digitalWrite(COILPAD_PIN2, LOW);
delayMicroseconds(5); // 100kHz Resonant Frequency - Adjust delay for desired resonant frequency
digitalWrite(COILPAD_PIN1, LOW);
digitalWrite(COILPAD_PIN2, HIGH);
delayMicroseconds(5);
}
When the receiver CoilPad is placed nearby, the LED should glow, demonstrating wireless transfer.
Beyond power transfer, you can also use CoilPad to transmit data by modulating the signal frequency on the transmitter side and detecting changes on the receiver side. How cool is that!
With these techniques, you can start using CoilPad to sense metal or even as a wireless antenna.
Ready to start experimenting? Grab a CoilPad today and bring motion to your next project!
Erfahren Sie als Erster von neuen Projekten und sichern Sie sich spannende Angebote!
© 2025 Microbots.