Skip to content

Latest commit

 

History

History

PolargraphESP32

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Demobots Polargraph ESP32

Uses arduino-esp32 FreeRTOS core. Hosts a web server which allows nearby users to control the device when in the same local network. Supports SVG file inputs and lists of coordinates.

Polargraph Image

Arduino Libraries

ESP32-Arduino, FreeRTOS
AccelStepper

Source Files

  • src/iot contains modules for WiFi and the HTTP Web Server
    • src/iot/webserver.h HTTP Web Server
    • src/iot/webserver.cpp
    • src/iot/templates.h Web Server front end HTML templates
    • src/iot/iot_config.h Quick WiFi settings
    • src/iot/wifi_setup.h WiFi connection functions
    • src/iot/json_parse.h JSON parse functions
  • src/polargraph contains the polargraph device class, motor control, and the coordinate buffer
    • src/polargraph/polargraph.h
    • src/polargraph/polargraph.cpp
  • static HTML and JS source files used to generate the string literals in the web server templates

WiFi Settings

  • WiFi ssid, pass, and mode set in src/iot/iot_config.h
  • WIFI_MODE Modes:
    • AP Access Point: Device Broadcasts an access point, webserver IP default 192.168.4.1
    • STA Station : Device connects to existing access point, webserver IP based on access point settings
    • AUTO Auto: Device searches for existing access point, and broadcasts if it can't find one

Hardware

ESP32 Pins

Stepper Step Direction
R GPIO 12 GPIO 13
L GPIO 4 GPIO 5