supremeDuck on CJMCU3212 - michalmonday/supremeDuck GitHub Wiki
CJMCU3212 is a board that contains Atmega32u4 and ESP12F modules (together with a SD card reader module).
It wasn't created with supremeDuck in mind but with few modifications it can run supremeDuck software well.
Steps:
- Desolder 1K resistor (located just next to the oscillator). It is indicated by red arrow (on the image it was already desoldered).
- Connect MISO of Atmega32u4 to GPIO_0 of ESP12F (orange wire on images below)
- Connect MOSI of Atmega32u4 to Enable of ESP12F (blue wire on images below)
- Connect a switch to SCL of Atmega32u4 and GND
- Comment-out 2 lines and uncomment 2 lines in Definitions.h file.
Before:
#define WIFI_DUCKY_GPIO_0_CONTROL_PIN 2 // 2 of Arduino Pro Micro, SDA, PD1 (19 of Atmega32u4)
#define WIFI_DUCKY_ENABLE_CONTROL_PIN 20 // 20 of Arduino Pro Micro, A2, PF5 (38 of Atmega32u4)
// CJMCU3212 setup
//#define WIFI_DUCKY_GPIO_0_CONTROL_PIN 14 // 14 of Arduino Pro Micro, MISO, PB3 (11 of Atmega32u4)
//#define WIFI_DUCKY_ENABLE_CONTROL_PIN 16 // 16 of Arduino Pro Micro, MOSI, PB2 (10 of Atmega32u4)
After:
//#define WIFI_DUCKY_GPIO_0_CONTROL_PIN 2 // 2 of Arduino Pro Micro, SDA, PD1 (19 of Atmega32u4)
//#define WIFI_DUCKY_ENABLE_CONTROL_PIN 20 // 20 of Arduino Pro Micro, A2, PF5 (38 of Atmega32u4)
// CJMCU3212 setup
#define WIFI_DUCKY_GPIO_0_CONTROL_PIN 14 // 14 of Arduino Pro Micro, MISO, PB3 (11 of Atmega32u4)
#define WIFI_DUCKY_ENABLE_CONTROL_PIN 16 // 16 of Arduino Pro Micro, MOSI, PB2 (10 of Atmega32u4)
Then the software can be flashed by following steps from 2 to 6 in the following guide: https://github.com/michalmonday/supremeDuck/wiki/How-to-make-wifi-based-version-(Esp8266)
Resources I found useful:
CJMCU3212 schematic:
Wifi-based supremeDuck wiring:
https://github.com/michalmonday/supremeDuck/wiki/Esp-12F-based-board-documentation