ciotto / CaprerAVR

GNU General Public License v3.0
3 stars 2 forks source link

CaprerAVR

CaprerAVR

CaprerAVR is a crazy project for office survival, when you are in difficult, push the buzz button and CaprerAVR helps you!!

Dai dai dai

Breadboar Schematic

CaprerAVR

Info

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)

What you need

ESP8266

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.

ESP8266 family

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.

ESP-12e pinout

Follow instruction from this repository to enable the board on the Arduino IDE.

ESP-12e

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

Compiling .html files

I made a simple Python tool that convert all .html pages in the arduino/WifiWebServer/html/ folder in C headers files with same naming.

Ex.
HTML file Header file Header variable
html/index.html index.h INDEX
Use

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 

What you need

Links