Rudimentary EMF Detector
Intro: Rudimentary EMF Detector
This is a project that requires little experience with electronics and arduinos. The device featured is a simple EMF detector that picks up stray charges from its surroundings. If the antenna protruding from the arduino is within range of a wire or some other electronic device the red led will light up. The equipment required for this project is a arduino, a 100k ohm resistor, wires, a breadboard, and a led. The inspiration for this project came from the EMF Detector made at http://www.aaronalai.com/emf-detector.
STEP 1: Collect the Materials Needed
- Arduino
- 100k Ohm Resistor
- Wires
- Breadboard
- Led
These parts would be simple enough to find anywhere electronic components are sold. This project is intended to be accessible to those with no experience with electronics. If you are unfamiliar with breadboards refer to this link: https://learn.sparkfun.com/tutorials/how-to-use-a-....
STEP 2: Code
The c++ code below is what I used in order to make the led sensitive enough to the change in charges reaching the antenna.
int inPin = 5;
int var = 0; int pin11 = 11;
void setup(){
Serial.begin(9600);
}
void loop(){
var = analogRead(inPin);
if(var >= 1){
var = map(var, -1000, 100, 1, 255);
analogWrite(pin11, var);
}else{
analogWrite(pin11, 0);
}
Serial.println(var);
}
2 Comments
Simon_Carter 6 years ago
Added this to my list.
tomatoskins 6 years ago
Nice detector! How long did it take you to make?