---
title: "Arduino stop motion with Ethernet shield"
url: "https://maker.wiznet.io/gemma/projects/Arduino-stop-motion-with-Ethernet-shield/"
markdown_url: "https://maker.wiznet.io/gemma/projects/Arduino-stop-motion-with-Ethernet-shield/md"
type: "UCC: User Created Content"
author: "gemma"
original_author: "gemma"
original_url: "https://github.com/csyager/arduino-stop-motion"
published: "2022-03-29"
language: "en"
hardware: ["Arduino UNO", "Ethernet shield", "Arducam"]
likes: 0
views: 179
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# Arduino stop motion with Ethernet shield

> Arduino stop motion with Ethernet shield

Original author: gemma (source: https://github.com/csyager/arduino-stop-motion)

## Components

- **Arduino UNO** x 1 ([docs](https://www.farnell.com/datasheets/1682209.pdf))
- **Ethernet shield** x 1
- **Arducam** x 1
- Software: **AmazonWebServices AWS S3** ([docs](http://aws.amazon.com/s3/))
- Software: **AmazonWebServices AWS Lambda** ([docs](https://aws.amazon.com/ko/lambda/))
- Software: **AWS IAM Role**
- Software: **AmazonWebServices AWS API Gateway** ([docs](https://aws.amazon.com/api-gateway/))
- Software: **AmazonWebServices AWS CloudFront** ([docs](https://aws.amazon.com/cloudfront/))

## Article

## Configuring the Arduino

[The Arducam docs](https://www.arducam.com/knowledge-base/mini-tutorial/)?are a good place to start to get the Arducam module configured. To use my code, you will need to have the Arducam library installed in the library directory of your Arduino IDE environment. Make sure to uncomment the?`OV2640_MINI_2MP_PLUS`?lines in memorysaver.h, as instructed in the documentation. When I downloaded the library, this happened to be configured for my model by default.

The code found in Arduino/StopMotion.ini configures the Ethernet client to send requests to port 80 of a CloudFront distribution that I set up. If you've already set up your own AWS environment, take the domain name of the CloudFront distribution you've created and replace the one at the top of my file, the variable?`char HOST_NAME[]`. Once the configuration steps laid out above are followed, running your Arduino script should start sending POST requests to your CloudFront distribution, which will forward to the API Gateway, which will trigger the lambda, which will write the image bytes as a file to the S3 bucket. Set up your camera somewhere sturdy (I used a breadboard to give it a horizontal base), let it run for a bit, and you'll amass a nice collection of images in the S3 bucket to make a stop motion out of.?[![pic of setup1](https://github.com/csyager/arduino-stop-motion/raw/master/assets/setup.png)](https://github.com/csyager/arduino-stop-motion/blob/master/assets/setup.png)?[![pic of setup2](https://github.com/csyager/arduino-stop-motion/raw/master/assets/setup2.png)](https://github.com/csyager/arduino-stop-motion/blob/master/assets/setup2.png)

---

Source: https://maker.wiznet.io/gemma/projects/Arduino-stop-motion-with-Ethernet-shield/
