CaprerAVR is a crazy project for office survival, when you are in difficult, push the buzz button and CaprerAVR helps you!!
CaprerAVR is made using a DFR0299 module drived by Arduino using the DFPlayer-Mini-mp3 library (if some functions are missing, try using my version)
- 1 x Arduino or compatible
- 1 x DFR0299
- 4 x Buzz Button
- 1 x microSD card
- 2 x 1k resistors
- 4 x 10k resistor
- 4 x ~100nF capacitator
- 1 x speaker
- some mp3 samples
It's possible to add networking capabilities to this awesome device thank to the ESP8266
module.
There are many versions of the ESP8266 and I tested with the ESP-12e.
Be careful, ESP8266 use a lot of current and work at 3.3V, so if you have problem during scketch upload problably you don't have enought current (from specific 170mA). Evaluate to use an external power source.
Follow instruction from this repository to enable the board on the Arduino IDE.
In order to flash the firmware you need to set in programming mode the module: connect the pins GPIO0
and GPIO15
to GND and GPIO2
to VCC; after setup re-power. For normal operation instead connect GPIO0
to VCC.
Mode | GPIO0 | GPIO2 | GPIO15 |
---|---|---|---|
UART Download Mode (Programming) | 0 | 1 | 0 |
Flash Startup (Normal) | 1 | 1 | 0 |
SD-Card Boot | 0 | 0 | 1 |
For some version of ESP8266
(ex. ESP-01
) only GPIO0
pin to GND is required.
At the arduino/WifiWebServer/ path you can find a simple web service that send commands on the GPIO 2
serial.
From the serial console you can observe this output:
Connecting......
Connected to your-ssid
URL: http://192.168.1.11/
MDNS responder started
HTTP server started
I made a simple Python tool that convert all .html pages in the arduino/WifiWebServer/html/ folder in C headers files with same naming.
HTML file | Header file | Header variable ------|--------|--------|--------- html/index.html | index.h | INDEX
In order to use it, you can simple do this command:
$ pip install -r requirements.txt
$ python html_to_header.py
Create arduino/WifiWebServer/index.h
- 1 x ESP8266
- 1 x Push button
- 4 x 10k resistor
- 1 x Serial adapter