Files
mata-avispas/README.md
T

25 lines
1.4 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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.