Seeed Studio XIAO ESP32C6 tiny buttons

I just received a 3 pack of the XIAO ESP32C6. The boot and reset buttons are tiny. What are some of the preferred tricks for pressing them?

If you've ever bought a display with a resistive touch screen it may have come with a stylus. Dig one out and see how that works. Or for the really ancient among us (looks sheepish), an old Palm Pilot stylus will also work.

That's a good idea. I'm about to walk out to the shed and get a piece of sandpaper. I think a toothpick with the end sanded down might work okay too.

I use an unmodified toothpick.

I'll try that first!

That works perfectly!
There are probably lots of other ways but I'll mark that as the solution.

I have the ESP32C3-zero. I just let my sausage fingers have at them. Even when boot-reset-unreset-unboot sequence is needed. I can even use one finger for both (rolling over one, then two, and reverse). The C3-zero buttons feel "solid" if that is possible. Not the loose feeling like a standard pushbutton.

off-topic, but my favorite sketch is a "wifi sniffer"... I did not know Toyota Rav4 and EUFY robot sweeper had internets on them. I can "hear" the internets driving by, as well as neighbors on the street in the back-side. My phone only shows, like six, out of over thirty. Fun toy.

I already had to throw away a XIAO S3 because I broke one of the buttons by pushing it with my nail. Definitely have to be careful there and use a fitting tool.

I'll remember that. Pressing with my nail was a losing proposition as it was hard to find the sweet spot. The tooth pick works so well I can easily not press the buttons too hard.

I also use round wood tooth picks with the point on the end a little flattened with my XiaoC3s.


The black dot in the center of the switch is about 1 mm diameter so if you can fat finger those while avoiding the USB C connector you need to make a YouTube video.

This is my first Seeed Studio product and I'm happy to see the documentation is excellent.

I normally get the Espressif dev kits but as these have been spoken highly of in the forum I thought I'd give them a try for some Matter devices as they are reported to have very low power capabilities.

Seeed should supply the three-packs with a plastic tool that clips over the USB socket, with hinged wings that touch the buttons. Someone with a 3D printer could do the same.

Yes, that would be nice accessory.

Chopsticks work fine too.


I couldn't find an SMT connector that aligns with the battery tabs. Is just soldering wires to the tabs the usual way?

Yes, I did. And make sure you have a protected cell.
Also include a Two resistor divider across the battery and connect the tap to a pin, so you can monitor battery voltage too. The C3 documentation (scroll down) uses 2x240k, but any value between 100k and 330k could do. With equal values I didn't have to calibrate at all. The voltage was spot on with two equal values and the correct gain setting. No experience with the C6.

If I've read it correctly, the C6 has an internal resistive divider connected to one of the ADC channels.

When my protected cell arrives in a day or so I'll run the sketch and see if that is true.

Edit:
Sketch won't compile. I need to track down the required include file.

Edit 2:
Now it seems that the C6 may not have the internal battery monitor divider after all. I need to do more research.

It seems they have included the divider on the C6.
And switchable, so you can save a few uA in sleep mode.
The "*2" because an equal resistor voltage divider halves it and "1000" to convert mV to volt.
The internal charging circuit of my C3 stops at 4.18V.
Have fun.

Found the official SEEED page. It is as you say. I will build the divider.

Reading Battery Voltage

To monitor the battery voltage on the XIAO ESP32C6, similar to the XIAO ESP32C3, you'll need to solder a 200k resistor in a 1:2 configuration. This setup reduces the voltage by half, allowing safe monitoring through the A0 analog port.

Sample Code

The code below initializes the ADC on the A0 port and averages 16 readings to calculate the battery voltage, adjusting for the 1:2 attenuation ratio of the voltage divider.

#include <Arduino.h>

void setup() {
  Serial.begin(115200);
  pinMode(A0, INPUT);         // Configure A0 as ADC input
}

void loop() {
  uint32_t Vbatt = 0;
  for(int i = 0; i < 16; i++) {
    Vbatt += analogReadMilliVolts(A0); // Read and accumulate ADC voltage
  }
  float Vbattf = 2 * Vbatt / 16 / 1000.0;     // Adjust for 1:2 divider and convert to volts
  Serial.println(Vbattf, 3);                  // Output voltage to 3 decimal places
  delay(1000);                                // Wait for 1 second
}

This code takes 16 measurements from the ADC, averages them, and then compensates for the voltage divider's 1:2 ratio to output the battery voltage in volts with three decimal places of precision.

I would call it a 1:1 ratio :grinning_face:
A 1:2 ratio outputs 1/3 of the voltage.
But I'm sure you understand that.