# Help with recreating code used in a video

**URL:** <https://forum.arduino.cc/t/help-with-recreating-code-used-in-a-video/984001>\
**Category:** Programming\
**Created:** [April 22, 2022, 8:55pm UTC](https://forum.arduino.cc/t/help-with-recreating-code-used-in-a-video/984001 "2022-04-22T20:55:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![qiay](https://avatars.discourse-cdn.com/v4/letter/q/ba9def/32.png) [@qiay](https://forum.arduino.cc/u/qiay)\
**Post date:** [April 22, 2022, 8:55pm UTC](https://forum.arduino.cc/t/help-with-recreating-code-used-in-a-video/984001/1 "2022-04-22T20:55:22Z")

</div>

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](https://youtu.be/DvrkHAWj1Sk)

---

<div class="post-metadata">

**Author:** ![xfpd](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/xfpd/32/1120236_2.png) [@xfpd](https://forum.arduino.cc/u/xfpd)\
**Post date:** [April 22, 2022, 9:03pm UTC](https://forum.arduino.cc/t/help-with-recreating-code-used-in-a-video/984001/2 "2022-04-22T21:03:30Z")

</div>

> **[This Guy Created a 'Tazer Camera' that Electrocutes His Subjects](https://petapixel.com/2019/09/05/this-guy-created-a-tazer-camera-that-electrocutes-his-subjects/)**
>
> The Internet is a strange place... and YouTuber Michael Reeves is doing nothing to dissuade us of the fact. The developer, who likes to tinker with and

---

<div class="post-metadata">

**Author:** ![er\_name\_not\_found](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/er_name_not_found/32/647693_2.png) [@er\_name\_not\_found](https://forum.arduino.cc/u/er_name_not_found)\
**Post date:** [April 22, 2022, 9:07pm UTC](https://forum.arduino.cc/t/help-with-recreating-code-used-in-a-video/984001/3 "2022-04-22T21:07:13Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![johnwasser](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/johnwasser/32/214270_2.png) [@johnwasser](https://forum.arduino.cc/u/johnwasser)\
**Post date:** [April 24, 2022, 2:00pm UTC](https://forum.arduino.cc/t/help-with-recreating-code-used-in-a-video/984001/4 "2022-04-24T14:00:34Z")

</div>

> [@qiay](#):
>
> 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

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:

```arduino
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
  }
}

```

---

<div class="post-metadata">

**Author:** ![qiay](https://avatars.discourse-cdn.com/v4/letter/q/ba9def/32.png) [@qiay](https://forum.arduino.cc/u/qiay)\
**Post date:** [April 28, 2022, 1:33am UTC](https://forum.arduino.cc/t/help-with-recreating-code-used-in-a-video/984001/5 "2022-04-28T01:33:26Z")

</div>

tysm

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [October 25, 2022, 1:34am UTC](https://forum.arduino.cc/t/help-with-recreating-code-used-in-a-video/984001/6 "2022-10-25T01:34:25Z")

</div>

Closed on October 25, 2022, 1:34am UTC

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