Passive Infrared Radiation (PIR) motion sensors are one of the most tricky Improvised Explosive Device (IED) triggering systems for Explosive Ordnance Disposal (EOD) technicians to identify, analyze, and render safe. In order to better suit military and local law enforcement, we have set out to design an all inclusive, embedded system that can analyze the PIR circuitry and bypass the accompanied alarm.

Contact Us For Info

Built With

Share this project:


posted an update

Here is v1.0 of uncommented code. Commented code will come later with some more fine tuning.



define DAC 0x62

Adafruit_INA219 ina219;

void setup(void) {
Serial.begin(9600); ina219.begin(); Wire.begin(); }

void loop(void) { float busvoltage[5]; float busval; byte buffer[3]; unsigned int dacval;

for(int i = 0; i < 5; i++) { busvoltage[i] = ina219.getBusVoltage_V(); busval += busvoltage[i]; delay(10); }

busval = busval / 5; dacval = ((1023/5)*busval) * 4; buffer[0] = 0b01000000; buffer[1] = dacval >> 4; buffer[2] = dacval << 4;

Serial.print("Bus Voltage: "); Serial.print(busval); Serial.println(" V"); Serial.print("DAC Val: "); Serial.print(dacval); Serial.println();

Wire.beginTransmission(DAC); Wire.write(buffer[0]); Wire.write(buffer[1]); Wire.write(buffer[2]); Wire.endTransmission();

while(1); }

Log in or sign up for Devpost to join the conversation.