---
title: "Esp32-C6-Bug"
url: "https://maker.wiznet.io/simons/projects/esp32-c6-bug/"
markdown_url: "https://maker.wiznet.io/simons/projects/esp32-c6-bug/md"
type: "UCC: User Created Content"
author: "allexoK"
author_url: "https://hackaday.io/project/193049-esp32-c6-bug"
editor: "WIZnet"
editor_url: "https://maker.wiznet.io/"
original_author: "allexoK"
original_url: "https://hackaday.io/project/193049-esp32-c6-bug"
published: "2023-11-02"
language: "en"
tags: ["W5500", "ESP32"]
hardware: ["WIZnet W5500"]
likes: 0
views: 1685
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# Esp32-C6-Bug

> Improving Esp32-C6-Bug by Leveraging w5500 Ethernet Communication

Original author: allexoK (source: https://hackaday.io/project/193049-esp32-c6-bug)

## Components

- **WIZnet W5500** x 1 ([docs](https://docs.wiznet.io/Product/Chip/Ethernet/W5500))

WIZnet parts: W5500 ([Datasheet](https://docs.wiznet.io/Product/Chip/Ethernet/W5500/datasheet?utm_source=maker&utm_medium=project&utm_campaign=w5500), [product hub](https://maker.wiznet.io/products/w5500/))

## Article

## **DESCRIPTION**

Hello everyone, this project is about building a small development board with battery support around the Esp32-C6FH4. The Esp32-C6 is a quite interesting new low-power RISC-V MCU from Espressif with multi-protocol support (WiFi, Ble, Zigbee, Thread...). WiFi-6 further reduces power consumption. So making a board with battery charging and protection circuits seems like an obvious idea. The multi-protocol feature allows easy implementation of protocol bridges or dongles. Low-power consumption, along with battery support, gives users the opportunity to create things like Zigbee sleepy devices...
Official Arduino support is on the way and you already can give Esp32-C6 a test drive by manually installing the newest Esp32 core into the Arduino environment.
For more info about the board check out:
<https://www.crowdsupply.com/prokyber-s-r-o/esp32-c6-bug>

## **DETAILS**

Okey-dockey let's dig into the details. How Esp32-C6 is actually cooler than previous existing Esp32s? Well the first thing that comes to mind is of-course the multi protocol support. What does it mean? Using Esp32-C6 you can basically switch between WiFi/Zigbee/Thread on the go, which allows building protocol bridges like the ones described in the demos section of the [datasheet](https://github.com/allexoK/Esp32-C6-Bug-Docs/blob/main/esp32c6bugdatasheet.pdf).
Now to the schematics which is actually quite simple:

[![](https://cdn.hackaday.io/images/7386881696454947181.png)](https://cdn.hackaday.io/images/7386881696454947181.png)

All the parts are quite 'classic' except for the Esp32-C6FH4 which is a version of Esp32-C6 with integrated 4MB flash memory. The LDO can deliver up to 700mA. Some of that power(around 200mA, but depends on the enabled features) is drawn by the MCU. TP4057 handles the battery charging. The battery is protected from under-voltage by DW01+G.

Since the high frequency signals generated by the antenna may influence the oscillator(for more info check the datasheet), the most challenging part was the oscillator placement and inductor design... Also I had to replace the L5 several times to find the correct value.

Here is a picture of MARK 1:

[![](https://cdn.hackaday.io/images/7947171696455523663.jpg)](https://cdn.hackaday.io/images/7947171696455523663.jpg)

And the final design(I am actually proud of that picture:) Since I am a terrible photographer, I am very surprised by how good it looks):

[![](https://cdn.hackaday.io/images/2136491696455611517.jpg)](https://cdn.hackaday.io/images/2136491696455611517.jpg)

The reference size can be seen on the picture:

The programming options now include:

- ESP-IDF

- CircuitPython - The Esp32-C6 support is on the way, but if you compile the [CircuitPython](https://github.com/adafruit/circuitpython/tree/main/ports/espressif) for Esp32-C6 yourself you can get some basic functionality already.(Checkout project logs)

- Arduino IDE - the official support for Esp32-C6 is on the way but I have already tested the board with the Esp32-Arduino core available on github(master branch as of 15 October 2023)

Checkout this tutorial made by my friend:

[Embedded media](https://www.youtube.com/embed/OTdBqbN45pU)

### [Esp32-C6-Bug Ethernet shenanigans, Surpassing Esp32-C6 radio limitations](https://hackaday.io/project/193049/log/224465-esp32-c6-bug-ethernet-shenanigans-surpassing-esp32-c6-radio-limitations)

- 10/20/2023 at 14:28 • [1 comment](https://hackaday.io/project/193049/log/224465#discussion-list)

Hi,

as we all know Esp32-C6 supports multiple radio protocols: Zigbee, Thread, Wifi, Ble. The problem is that using them at the same time may be challenging since the chip has only one RF path, which means Wi-Fi and Thread can't receive simultaneously and it has a significant impact on performance. Even if it is definitely possible, as demonstrated in [ESP-IDF thread-bridge example](https://github.com/espressif/esp-idf/tree/release/v5.1/examples/openthread/ot_br), there is a better solution. The user can just use the Ethernet and leave the RF to the Thread/Zigbee.

The mentioned example also supports Ethernet out of the box, so why not to check it out? I have used the cheapest W5500 module and Esp32-C6-Bug board. Be sure to set CS pin to GPIO5 using 'menuconfig' if you are using the mentioned example.

The connections are as follow:

W5500 SCLK->Esp32-C6-Bug GPIO6

W5500 MOSI->Esp32-C6-Bug GPIO7

W5500 MISO->Esp32-C6-Bug GPIO2

**W5500 CS->Esp32-C6-Bug GPIO5**

W5500 INT->Esp32-C6-Bug GPIO4

W5500 GND->Esp32-C6-Bug GND

W5500 3.3V->Esp32-C6-Bug 3.3V

[![](https://cdn.hackaday.io/images/7242381697811884211.jpg)](https://cdn.hackaday.io/images/7242381697811884211.jpg)

Works like a charm...

[![](https://cdn.hackaday.io/images/3284781697811989453.png)](https://cdn.hackaday.io/images/3284781697811989453.png)

Since I am a big fan of Ethernet and PoE I am thinking about making a little shield for the Esp32-C6-Bug, what do you think about it?

### [Prototype Evolution Photo](https://hackaday.io/project/193049/log/224331-prototype-evolution-photo)

- 10/14/2023 at 19:37 • [0 comments](https://hackaday.io/project/193049/log/224331#discussion-list)

My friend made a photo of all the Esp32-C6-Bug prototypes(No living creature was hurt to make the footage)

[![](https://cdn.hackaday.io/images/7940411697312205840.jpg)](https://cdn.hackaday.io/images/7940411697312205840.jpg)

### [Esp32-C6-Bug CircuitPython](https://hackaday.io/project/193049/log/223934-esp32-c6-bug-circuitpython)

- 10/06/2023 at 17:05 • [0 comments](https://hackaday.io/project/193049/log/223934#discussion-list)

A little log on testing CircuitPython with Esp32-C6-Bug, I was surprised by how smooth the integration actually was. I just downloaded the CircuitPython [repo](https://github.com/adafruit/circuitpython) with git clone --recursive <https://github.com/adafruit/circuitpython.git> and followed the instructions [here](https://github.com/adafruit/circuitpython/tree/main/ports/espressif) . Basic functions like led blinking and wifi scanning are supported out of the box... I guess more sophisticated things will be added later:)

The logic is negated(True-led off, False-led on)

[![](https://cdn.hackaday.io/images/5749161696611871719.png)](https://cdn.hackaday.io/images/5749161696611871719.png)

[![](https://cdn.hackaday.io/images/9656511696611894501.png)](https://cdn.hackaday.io/images/9656511696611894501.png)

---

Source: https://maker.wiznet.io/simons/projects/esp32-c6-bug/
