https://github.com/getlarge/node-webcam-mqtt
ESP8266 - Arduino - MQTT - Arducam
https://github.com/getlarge/node-webcam-mqtt
Last synced: about 1 year ago
JSON representation
ESP8266 - Arduino - MQTT - Arducam
- Host: GitHub
- URL: https://github.com/getlarge/node-webcam-mqtt
- Owner: getlarge
- Created: 2019-02-28T13:24:09.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-04T18:10:54.000Z (about 7 years ago)
- Last Synced: 2025-02-14T06:51:21.172Z (over 1 year ago)
- Language: C++
- Size: 1.27 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NODE WEBCAM MQTT
ESP8266 arduino sketch to interact with [Aloes backend](https://framagit.org/aloes/device-manager) MQTT API.
Adding camera functionnality with [Arducam](https://github.com/ArduCAM/Arduino) device and library.
## Requirements
Arduino IDE - download the latest from arduino
- https://www.arduino.cc/en/Main/Software
Packages for ESP8266
- Enter `http://arduino.esp8266.com/stable/package_esp8266com_index.json` into Additional Board Manager URLs field.
following libraries are required :
- ArduinoJson
- Bounce2
- FS
- Ticker
- WifiManager
## Installation
```
git clone https://github/getlarge/node-webcam-mqtt.git
```
Edit Arduino/libraries/ArduCAM/memorysaver.h to :
```
#define OV2640_MINI_2MP
```
Edit Arduino/libraries/PubSubClient/src/PubSubClient.h to :
```
#define MQTT_MAX_PACKET_SIZE 4096
```
## Usage
- Open any .ino file of the folder with Arduino IDE
- Edit your preferences in `config.h`
- Upload the code on your ESP8266 board
#if using MQTT_CLIENT
- Copy the deviceId ( generated at setup on the serial interface ) to Aloes backend
- Enter device credentials in `config.h` or configure the board via the Access Point ( 192.168.244.1 )
#endif
## Reference
- resolutions:
- 0 = 160x120
- 1 = 176x144
- 2 = 320x240
- 3 = 352x288
- 4 = 640x480
- 5 = 800x600
- 6 = 1024x768
- 7 = 1280x1024
- 8 = 1600x1200