# Snap a photo with a momentary pushbutton

**URL:** https://forums.openmv.io/t/snap-a-photo-with-a-momentary-pushbutton/10965
**Category:** OpenMV Boards
**Created:** [May 3, 2025, 3:54am UTC](https://forums.openmv.io/t/snap-a-photo-with-a-momentary-pushbutton/10965 "2025-05-03T03:54:49Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![dannytaki](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/dannytaki/32/4048_2.png) [@dannytaki](https://forums.openmv.io/u/dannytaki)
#### Post date: [May 3, 2025, 3:54am UTC](https://forums.openmv.io/t/snap-a-photo-with-a-momentary-pushbutton/10965/1 "2025-05-03T03:54:49Z")

</div>

I was thinking of using the openMV RT1062 to snap a photo triggered by a pushbutton. Is this possible? I’m going to machine this enclosure and mount it on this table and I want to be able to have the openMV camera snap a photo of a package, then send the image to file share server for manual inspection of the label on the package.

 ![Screenshot 2025-05-02 225037](https://canada1.discourse-cdn.com/flex029/uploads/openmv1/original/2X/4/4af22e8036ef91b76f3eedddab4975ac2781f6bd.png)

---

<div class="post-metadata">

### Author: ![dannytaki](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/dannytaki/32/4048_2.png) [@dannytaki](https://forums.openmv.io/u/dannytaki)
#### Post date: [May 3, 2025, 3:55am UTC](https://forums.openmv.io/t/snap-a-photo-with-a-momentary-pushbutton/10965/2 "2025-05-03T03:55:28Z")

</div>

![20250502_104949(0)](https://canada1.discourse-cdn.com/flex029/uploads/openmv1/original/2X/1/16361a9422495e975dad89fe4542ac369bd38709.jpeg)  
Table leg I’m going to mount it to.

---

<div class="post-metadata">

### Author: ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)
#### Post date: [May 3, 2025, 4:25am UTC](https://forums.openmv.io/t/snap-a-photo-with-a-momentary-pushbutton/10965/3 "2025-05-03T04:25:49Z")

</div>

Yes, this is pretty straight forward.

1. See our example scripts for connecting to WiFi.
2. Figure out what the prototocol is for sending data to the sever.
3. Test that protocol with Python on the deskop.
4. Ask ChatGPT for help changing that desktop code to micropython.
5. You want to ask it how to send a jpeg bytearray(). This is the easist way to send an image.
6. Then, button reading is just machine.Pin().

---

<div class="post-metadata">

### Author: ![dannytaki](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/dannytaki/32/4048_2.png) [@dannytaki](https://forums.openmv.io/u/dannytaki)
#### Post date: [May 3, 2025, 4:38am UTC](https://forums.openmv.io/t/snap-a-photo-with-a-momentary-pushbutton/10965/4 "2025-05-03T04:38:57Z")

</div>

Thanks I already purchased the camera and I’m 3D Printing the case for it right now but i’ll test it out when I gets here supposed to be 15 days.

---

<div class="post-metadata">

### Author: ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)
#### Post date: [May 3, 2025, 5:52am UTC](https://forums.openmv.io/t/snap-a-photo-with-a-momentary-pushbutton/10965/5 "2025-05-03T05:52:50Z")

</div>

Cool, please note shipping is very backed up right now.
