Help with recreating code used in a video

Hello, i’m trying to get into coding and I want to l see if anyone knows the code that Michael Reeves used to detect when a shutter button is pressed on a camera using a wireless flash trigger and a Arduino Nano. I’m trying to recreate his Taser Camera as a fun project to mess with my friends.

If you want to see what he does and parts, this is the link to the video: Tazer Camera Makes Me The Tallest Person in The Picture - YouTube

You may or may not get help with this. It's kind of a weapon.

A flash goes off when the trigger contacts are shorted together. The "wireless flash trigger" shorts the trigger when it sees a flash. To the Nano, that would look like a button press.

That coding would look something like:

const byte TriggerInputPin = 2;
const byte RelayOutputPin = 3;
void setup()
{
  pinMode(TriggerInputPin, INPUT_PULLUP);
  pinMode(RelayOutputPin, OUTPUT);
}

void loop()
{
  if (digitalRead(TriggerInputPin) == LOW)
  {
    digitalWrite(RelayOutputPin, LOW); // Turn on
    delay(500);
    digitalWrite(RelayOutputPin, HIGH); // Turn off
  }
}

tysm

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.