Initial commit: mata avispas Arduino code and README

This commit is contained in:
Padrino
2026-06-04 18:00:54 +02:00
commit 14d4cfb943
2 changed files with 254 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
# mata avispas
Flyback high voltage generator (≈12kV output) controlled by an ESP32C3.
Features
- ESP32C3 runs as a WiFi Access Point (AP) so you can connect directly to it.
- A simple web server lets you adjust the PWM frequency/duty cycle that drives the XYMOS driver.
- PWM output is generated on a GPIO using the LEDC hardware (highresolution, glitchfree).
- Safety: the PWM can be disabled via the web page.
Hardware notes
- XYMOS driver expects a PWM signal (typically 5V logic) on its INPUT pin.
- Connect ESP32C3 GPIO to XYMOS INPUT through a levelshifter if needed (ESP32C3 is 3.3V tolerant, most XYMOS accept 3.3V).
- Flyback transformer secondary should be properly insulated and terminated with a highvoltage diode/CockcroftWalton multiplier if you need DC.
- Always use proper shielding, grounding, and never touch the output while powered.
How to build
1. Install the ESP32 Arduino core (Boards Manager → esp32 by Espressif Systems).
2. Select "ESP32C3 Dev Module" (or your specific board).
3. Copy this folder to your Arduino sketchbook or open with PlatformIO/VSCode.
4. Compile and upload.
5. After upload, the ESP32C3 will start an AP named `MataAvispas_AP` (password `avispas123`).
6. Connect your phone/laptop to that AP, open a browser to `http://192.168.4.1` and adjust PWM.
License: MIT feel free to adapt.