Ghost (EMF) detector
Posted: Sun Mar 23, 2014 11:37 am
If you think that ghost communicate with us through electromagnetic fields, you might be interested in the following:
It seems that I have a ghost in my alarm clock...
Schematics:
Note: I used a 10M resistor for more sensitivity
Source code:
It seems that I have a ghost in my alarm clock...
Schematics:
Note: I used a 10M resistor for more sensitivity
Source code:
- Code: Select all
#include <SPI.h>
#include <Gamebuino.h>
Gamebuino gb;
int input, prevInput, inputVar;
void setup(){
gb.begin();
gb.titleScreen(F("Ghost detector\nRequires EMF module\nAnd I2C pullup disabled"));
gb.setFrameRate(100);
}
void loop(){
if(gb.update()){
input = analogRead(A5);
inputVar = prevInput - input;
prevInput = input;
gb.display.fillRect(0,40,constrain(abs(inputVar), 0, 84), 8);
if(inputVar > 10)
gb.sound.playTick();
}
}