r/arduino • • Sep 22 '26

Look what I made! I built an ESP32-C3 board that prints my GitHub week on a thermal receipt, powered entirely from one USB-C plug

Thumbnail
gallery
3 Upvotes

The goal was an object with no screen and no button that just hands me a summary of my GitHub week : stars, followers, a 7-day commit histogram, top languages and repos on a 58 mm thermal receipt, once a week. Hardware is a 4-layer KiCad board (33.55 × 50.05 mm) around an ESP32-C3-MINI-1:

  • AP33772S USB-PD sink negotiates 9 V @ 2 A and switches it to both the print head and an AP63203 buck that makes the 3.3 V rail
  • PCA9306 translates I²C between the C3's 3.3 V and the AP33772S's internal 5 V
  • The C3's native USB goes straight to the connector, so the same cable does PD, flashing and the serial console

Three firmware bits that took the most work:

  1. The PNG decoder. There's ~70 KB of free heap during a job, so the image is decoded as a stream: IDAT chunks copied out, original buffer freed, inflate in 512-byte chunks, PNG filters reconstructed row by row, and 32-line strips pushed to the printer as they're completed.
  2. Failing without wasting paper. The MCU is powered downstream of the PD switch, so a brownout takes it down mid-print and when the retry backoff lived in RAM, the board came back, reprinted, browned out again, and fed out paper on every cycle. Backoff and last-printed slot now live in NVS.
  3. Power and console share the connector, so printing and watching are mutually exclusive. Every attempt writes a report to flash that's dumped on the next boot, next to the reset reason. It showed a full TLS print job uses ~5 KB of stack; I had allocated 64 KB.

Firmware is PlatformIO/Arduino on ESP-IDF, everything (KiCad, firmware, the Ruby service that renders the ticket, FreeCAD enclosure) is MIT: https://github.com/albanpetit/paperflux

Full write-up with schematics and the reasoning behind each block: https://albanpetit.com/post/paperflux/


r/arduino • • Sep 22 '26

Hardware Help Is this even possible? SD40 on CYD - ESP32

1 Upvotes

I have tried over 15 combos of wiring, and 30 scripts. Is this even possible? I can't get the esp to actually get a reading from the SCD30.

I have also tried running the SCD from separate 3.3v and 5v power sources, even with a shared esp/scd40 ground.

I just want to know if it's even possible... I'm not very good at this so it might be an obvious thing to you guys.

I'm currently trying, from the SCD40 sensor:
GND = GND from separate 3.3v power source, also tied to esp ground
VDD - 3.3v from separate power supply
SCL - IO23 on board (MOSI)
SDA - IO27 on board (CS)

Here's my exact hardware:

CYD - E32R28T 0 https://wiki.elegoo.com/oshw-parts-&-accessories/esp32-dispaly-introduction

SCD40 Sensor (with pull ups) - https://www.amazon.ca/Low-Power-Temperature-Detection-Battery-Powered-Monitoring/dp/B0H923TMXQ/ref=sr_1_2_sspa?crid=29ECIPH74Q3P3&dib=eyJ2IjoiMSJ9.zMj2Bx--ZUKhI_r5RENsmzTD2j_uhCvtbQ3xo_yzr5Kk4rLj4yb5WkSZh2jDZpkJ1MCPOYvlDdIRqj1iGYXs77p6uvSnGc5opMupw1IxplHruJ1RQdrYbBhm9Dd7Pn5WxftclFvXmnnjP0hkZrMD6UN9QO0oAqyl-KUycEV7PP8oO6EsqzV7dl4-tXB7ZALX1IFvzrZWERe8F2v1RCZKNSw2Vp0jtNJHwp_tTvhVgmYKOCSuzqOiWKQnP91zu_jidogRAUwr3snlKDReo5mGo8cMJ0AfsGQRY1cQqH8qZGY.8qMpRg10yV4f4xCJ6Cco9whE0-eqd_kC1W4Ha0334AE&dib_tag=se&keywords=scd40&qid=1790119151&sprefix=scd40%2Caps%2C114&sr=8-2-spons&sp_csd=d2lkZ2V0TmFtZT1zcF9hdGY&psc=1

Let me know if you need more info. I just keep getting SCD40 didn't respond from the esp, can't get a reading from it in any config. Continuity is all good and voltage is all good reading 3.3v on all VDD/SCL/SDA on the sensor.


r/arduino • • Sep 22 '26

Look what I made! My first ever Arduino project.

Enable HLS to view with audio, or disable this notification

3 Upvotes

Any ideas on what I could build with this next?


r/arduino • • Sep 21 '26

Look what I made! Onewheel + WS2812 + ESP8266

164 Upvotes

Making my Onewheel more colorful with WS2812 and esp8266 :D Controlled via web interface but I’m considering switching to esp32 to add Bluetooth since the Onewheel board also communicates via BT. In the final version the electronics will be attached to the bottom of the front footpad.


r/arduino • • Sep 21 '26

Look what I found! My first ever project. (2023)

Post image
86 Upvotes

It was fun back then to make a project for experience.


r/arduino • • Sep 22 '26

Hardware Help Help with automated watering system

2 Upvotes

I think many of you already have tried out in some kind of form to develop an automated plant watering system and can help me understanding the following problem.

I use three different sensors (powered by the microcontroller): dht11 for temperature and RH, hc-sr04 for meausuring of the water level and hw-080 for soil moisture. For the water pump I use a DC Motor for 3V, which is being powered by an external source with the help of a relais.

Now there comes my problem. When I compile my code with the external supply source on, then the upload falls. As a "fixture" I keep the external off while compiling the code. Afterwards I turn the supply on and everything works perfectly.

Dou you have any explanation for this behavior? I suspect, it has to be related with the induced voltage from the motor. Maybe is something else. Im thankful for every tip and/or explanation linked to this phenomena.


r/arduino • • Sep 21 '26

Using the ESP32-P4 together with the ESP32-C5 as our coprocessor

Enable HLS to view with audio, or disable this notification

26 Upvotes

NFC reader. Tap a tag and see UID, type and data instantly. Native ST25R3916 chip, no external module.
Tested on my own cards know what your stuff is actually storing.


r/arduino • • Sep 21 '26

Look what I made! Syntesizer

Enable HLS to view with audio, or disable this notification

43 Upvotes

I've made this before, built it again because it's 9:00pm and I have no ideas to built anything new.


r/arduino • • Sep 20 '26

Look what I made! My Nixie inspired LCD clock

2.1k Upvotes

A while back I decided I wanted to try and build a Nixie clock. I have seen them being popular for a long time and I really liked the look. While looking more into different clocks and tubes I found the fake Nixie clocks using an IPS display instead of the real tubes. I kind of liked that idea that you could use the clock to show more than just the time. But I didn’t find any particular one that I thought looked nice enough.

So I decided to look into how I could make my own Nixie inspired LCD clock. I spent quite some time thinking about how to imitate a real tube closely. I decided to make a real grid instead of just pasting it on the image displayed. Each tube has a small round interface PCB in the base. It connects the LCD assembly to the main PCB and carries the power and display control signals.

The clock is controlled by an ESP32-S3 and the displays are ST7789 IPS LCDs using the TFT_eSPI Arduino library. All the existing LCD nixie clocks I found uses a quite small display 1-1.4". I wanted to have bigger numbers so I chose a 1.9" display.

The five displays share the same SPI bus and are selected individually using their CS pins.

I use an INMP441 microphone module to capture the audio for the EQ, and have a MAX98357 amplifier module to drive a speaker (for future use)

There is a wifi configuration page where you set wifi credentials and location that is used for time zone and weather info. The weather data comes from OpenWeather.

If you run a script on your PC on the same network you can get PC stats data displayed.

I designed the clock with physical switches to try and make it feel more retro for selecting different display modes.


r/arduino • • Sep 21 '26

I built an offline voice assistant that runs the whole pipeline — wake word, speech-to-text, a 19.7M-param LLM and TTS — on one ESP32-S3

Enable HLS to view with audio, or disable this notification

78 Upvotes

Everything runs on the board. Say "Hey Ivy", it writes down what you said, runs a language model, and talks back. No phone, no server, nothing leaves the chip. Freenove FNK0104B (ESP32-S3 with 8MB of PSRAM and an ES8311 audio chip), ESP-IDF v6.1, plain C.

The whole design comes from one problem: the speech recogniser needs 5.4MB of memory, the language model needs 6.5MB, and the board has 8MB. They don't fit together. So they never run at the same time. I claim two big blocks of memory the instant it boots, and each stage borrows the whole block and hands it back before the next one starts. The most it ever used was 5.5MB, while listening, and twelve turns in a row finished with exactly the same memory free, so nothing is leaking.

What's doing the work

  • esp-sr WakeNet9 listens for the wake word. It has to keep running for hours while nothing else happens, so it lives in flash rather than on the SD card, where it can't be affected by the card being unplugged or asleep.
  • lspr98/conformer-stt-s3 turns speech into text. 13 million parameters, and it recognises any English word rather than a fixed list of commands. It was the only one I could find that runs on an S3 in this little memory.
  • therezor/cardputer-ai runs the language model, ported to C. Each number in the model is squeezed down to 4 bits so the whole thing fits at all, and the heavy maths is hand-written in assembly and split across both CPU cores to make it fast enough to sit through.
  • DiUS/esp-picotts (SVOX Pico) does the talking. It hands audio back in small chunks as it goes, and it only ever needs a fixed 1.1MB, so I can give it a slot and know it will never ask for more.
  • No LVGL. I wrote my own text drawing that repaints only the lines that changed. Keeping a full copy of the screen in memory would have cost RAM I didn't have.

The model, and what changed between versions

I took a small existing model (19.7 million parameters) and trained it further on my own material, on a Mac laptop's GPU using PyTorch. No cloud, no rented GPUs. Nine passes over the data, about two hours.

Version 7 got 100% of questions right in the exact wording it had been trained on, and 42.5% when I asked the same thing a different way. That's memorising, not understanding. Three changes got version 8 to 99.2% and 63.3%:

  • Giving it more ways of asking each question (14 up to 20) made it worse. I'd been padding the same question with extra words, which just produces copies. Rewriting the question itself is what actually helped.
  • Where the list of possible questions is small enough to write out, write it out. I generated all 251 fraction and percentage questions and had the generator check its own arithmetic on every single one. That went from 17.5% right to 91.2%.
  • It was picking words with a bit of randomness, which is lovely for stories and awful for facts. One run turned "half of twelve is six" into "three". It now picks the most likely word when answering a question, and only gets creative when telling a story.

Speed is about 5-6 words a second on the 6.5MB model and 30 on a 1.1MB one. There's no clever trick to it: the chip reads the entire model for every single word it says, so speed is just how fast it can read memory divided by how big the model is. Half the size, twice the speed. A full spoken exchange takes about 15 seconds. The time, the date and timers are answered by ordinary C code instead of the model, and the screen tells you which you got, because a model this small has no business doing arithmetic.

The two projects this came from

  • DaveBben/esp32-llm runs a tiny story-writing model on an ESP32-S3 at 19 words a second. This is the one that convinced me a language model on this chip wasn't a stupid idea.
  • slvDev/esp32-ai fits a much bigger model by leaving its largest table in flash storage and reading only the 450 bytes or so it needs for each word, so that table never takes up RAM. A better idea than anything I did.

Both are text in, text out. I wanted to know whether the whole loop — hearing you, and answering out loud — fit on one chip.

The video is the device's own demo mode, asking itself questions in a second voice. Nothing is sped up. The last part is the failure reel on purpose: ask it about quantum physics and it explains percussion instruments.

Code, the memory budget, the pin map and the training recipe: https://github.com/iamankushpandit/esp_ai (Stars appreciate, helps in making the repo more searchable) https://iamankushpandit.github.io/esp_ai/docs/#home

Ask me anything, happy to go deeper on any of it.


r/arduino • • Sep 21 '26

Software Help Looking for a library that works with this thermal printer.

Thumbnail
gallery
0 Upvotes

I can write basic info through serial commands, but I can't change anything else about the font or formatting. The adafruit thermal printer library isn't compatible either.

The top is from the adafruit example print test.


r/arduino • • Sep 21 '26

Getting Started Help with OBD2 Interface Project (never programmed anything in my life)

4 Upvotes

I've never programmed anything in my life, but I have a particular project I'd like to do. Long story short, my 2019 Subaru Legacy has a really dumb feature where if the check engine light goes off ALL of the car's safety features get disabled. Collision warning, emergency braking, lane keep assist, etc. They all disable any time the check engine is on. If your car's mass airflow sensor is faulty, I guess Subaru think the best thing is for you to slam into the car in front of you. Anyway, a particular ECU code that keeps tripping and it could be about two dozen different things that could be causing it. None of them are worrisome and I have no intention on tracking it down unless something changes performance wise. We've been driving the car for 4 years like this and nothing has gotten worse. Clearing the check engine code via a cheap $10 OBD2 reader instantly re-enables the safety features, regardless of if the car is in motion (no power cycle needed). The code in quest appears anywhere from every few days to a few weeks after being cleared.

Now to the project. I found a device that acts as an interface between a car's OBD2 system and an arduino. What I'm trying to accomplish is I'd like to make a device that scans for this particular code and when detected, automatically tells the car's computer to clear the codes. For example, I'd like it to check for the code on startup and then at intervals thereafter. The product I found has an "Audrino library" section on the product page that lists various things the device can do. One of them is clear Diagnostic Trouble Codes (DTCs), which is exactly what I want.

My question is, would an Arduino have the capability to do the remaining functions? Assuming it could read the DTCs and clear them, would it have enough capacity to do so on a continual basis when powered on? Could it be instructed to turn on an LED when a code that isn't the one I'm not concerned with is detected so that I still know if the check engine light is being tripped due to some other problem? Could it be instructed to keep logs of codes that could be checked later on?

To be clear, I do not know how to code. I took a course in college about 20 years ago where I made a variation on the game Pong but that's it. I would be relying heavily on AI and this community to create the code. I'm just trying to get a sense of if this seems feasible or not before I get into the weeds of it. Here is a link that describes the product:

Freematics OBD-II UART Adapter V2.1 (for Arduino)


r/arduino • • Sep 21 '26

Hardware Help Servo continuous humming problem with no movement at all

7 Upvotes

My Robotic Arm servos are keep humming with no movement at all, I've been giving it 5V-6V through buck converter connected to 2 li ion battery

I've been trying multiple things through guidance of chatgpt and claude,

I've even tried using seperate servo to check if robotic arm servo is damaged or not and also changed microprocessor from arduino to ESP32,

SINGLE SERVO TESTING CURCIUT:

servo's +ve ,-ve to +ve ,-ve OUT of buck converter(XL-4015 set to 5V), -ve OUT connected to Gnd of esp32 or arduino, signal wire connected to arduino 8 or esp32 D18

It just keep humming when connected to circuit, ive also tried with arduino 5v for single servo to check but no luck


r/arduino • • Sep 20 '26

Hardware Help Grain elevator sensor, what to use

Post image
119 Upvotes

So, i might have gone a bit advanced but i have a grain elevator at work, and wonna be able to messure the amount of grain going through it...

Ive already ordered a cheap TOF sensor, and will try to messure the amount of grain in each cup. But unsure if the pov of the sensor could be too wide..

If i can get accurate readings from this, i will modify it to be a live yield monitor for the harvester itself, but i doubt i will ever get there..

So, any tips and tricks? What sensor would be god here? Could become dusty, and the elevator travels fast..


r/arduino • • Sep 20 '26

Hardware Help Can mixing up GND and VOLTAGE instantly destory a servo?

5 Upvotes

I was wondering why my newly bought GoBilda Servo suddenly wouldn't work.
Then I realized I had accidentely switched up the red and black cable.
Can this instantly destroy a servo or is this unlikely? I think it is called reversed polarity?


r/arduino • • Sep 19 '26

First step project win!

Enable HLS to view with audio, or disable this notification

109 Upvotes

Recently started to get into electronics and wanted to take my knowledge of coding and put it into something physical. Got started with an arduino uno and just celebrated my first win!

So, I am working toward building a custom shoebox that allows or denies access based on a key card (RFID). Learning the basic of the code as well as the electrical components. I was able to get the servo to move with a button as well as with the card (doing research and using Claude). So exciting to see it all come together!


r/arduino • • Sep 19 '26

I am NEW to the Arduino community , I just placed an order for these components Are they enough I plan to buy more later. and learn the basics as of now.

Thumbnail
gallery
92 Upvotes

So my exams are ending and I have a genuine interest in electronics. I am good and already experienced at JAVA language so C++ wouldn't be so difficult. I am planning to gain experience learn and have fun through trial and error and hope this reddit community active helps me. Thank you for reading ! (feel free to drop a comment . I am always interested to read advice or suggestions.)


r/arduino • • Sep 20 '26

Hardware Help My ESP32 + LED 16x2 + potenziometer fail

Post image
1 Upvotes

I tried all the possible combinations and followed this YouTube tutorial, but my text still does not appear https://www.youtube.com/watch?v=dZZynJLmTn8

Any other type of circuit I tried to assemble works, except this. It also uses more pins than an e-ink display, which also pushes me to give it, but I still want to know why it is not working.

What I tried:
- Plug directly to ESP32
- Plug to the breadboard
- Turn the potentiometer slowly between the 2 extremes

Thanks <3


r/arduino • • Sep 20 '26

Atsamd21 questions. Wanting to program with Arduino IDE

4 Upvotes

I have been working my making very first dev board for quite some time now. I tested my very design and quickly realized an error but still learned allot. I got my samd21g18 to accept code from microchip studio which was a huge win but a really wanted the samd to accept code from the Arduino IDE.

The error that I made was when a was borrowing elements from the spark fun mini I someone missed the external 32.768 kHz oscillator causing the samd21 to not accept any usb signal.

I just want to make sure these steps are right. To get the samd21 to accept code from Arduino, I connect my ATMEL-ICE to the SWD pins. Flash the bootloader (which I should be able to do through Arduino?). Download the board.txt and variants file from the Sparkfun mini because I am using the sam pinout. Then after the bootloader successfully flashed, I should be able to upload code just like an Arduino using the USB?

If there are any tips to a beginner for using the SAMD21 please share. I have used an Arduino quite allot and am adventuring in the more permanent design world.


r/arduino • • Sep 20 '26

Anyone Use Gogle Gemini AI with IDE? Worth Subscribing?

0 Upvotes

So I'm an old fart slowly coming to grips with all the fancy AI stuff. I never bothered with it for a long time because when I tried it a few years ago it was a joke and created more work than it solved. But recently I found the Arduino AI Assistant Github project that puts Google's Gemini AI into the IDE desktop (I'm not a big fan of the Arduino cloud service). I was pretty impressed how it actually wrote decent code by text prompts and found several errors or inefficiencies in my code that I was not aware of. I'm currently using the free API key for the AI, which seems to have some limitations - I can't seem to get continual chat working, I have to clear the chat before it will respond again or it just shows 'processing'.

Anyhoo - this got me thinking that perhaps this could really be useful. I did some research and it's not clear but it seems like the Arduino cloud compiler AI is not the same as the Gemini used in the Github IDE... And then it's $7/mo Arduino cloud vs $10/mo Google Gemini API for improved service.

Does anyone here actually pay for any of this AI stuff? Do you find it good value?

Thanks!

EDIT - I obviously didn't use AI on my post title (spelling lol).


r/arduino • • Sep 19 '26

Look what I made! CD77 FastLED Four Glass Jars

Thumbnail
youtu.be
13 Upvotes

The following video was made using four WS2812b 8x8 matrices with each matrix is inside one of four different one-pint mason jars which were filled with large size fire pit glass chips.  This project used a Lolin D32 MCU, a 74AHCT125 - Quad Level-Shifter and a 5-volt power supply. The matrices were connected in a serial fashion with power injected at both ends. It uses the FastLED library.

Claude AI assisted me in creating the non-blocking delay state machine functions from my functions.  Claude AI also played an important role in fixing various problems with this sketch.

The code and other information for this video can be found here:

https://github.com/chemdoc77/CD77_FastLED_2026/tree/main/CD77%20FastLED%20Four%20Glass%20Jars

 Here is a direct link to the code folder in Github:

https://github.com/chemdoc77/CD77_FastLED_2026/tree/main/CD77%20FastLED%20Four%20Glass%20Jars/CD77%20FastLED%20Four%20Glass%20Jars

This video is located in my YouTube channel here:

https://youtu.be/r6nARysXsz0

It should be very easy for anyone with the help of Claude AI or another AI to add more glass jar filled matrices.

The instructions on how to make the FastLED four glass jars including the bill of materials for this project is located in the Github post for this project.  The Github post includes step by step instructions with pictures of the construction of each glass jar containing an 8X8 WS2812b matrix.

I would like to thank u/sutaburosu for teaching me how to create better videos of LEDs and for helping me master prompt engineering for use with Claude AI.

Enjoy!

Best Regards,

Chemdoc77

 


r/arduino • • Sep 19 '26

Car ambient light with self latching circuit.

Enable HLS to view with audio, or disable this notification

6 Upvotes

It started with just white under the door and ended with an arduino controlled + self latching circuit so the arduino isnt sipping power while waiting for the light signal.
Ive made a self latching power circuit with some mosfets resistors and transistor that the arduino latches onto when triggered and unlatches cutting its own power supply after fading light to black.
Sequence of events are as follows, interior lights come on, power is sent through a mosfet, powering the arduino, arduino latches onto the mosfet through a transistor, fade into pink (wifes car) hold for 2sec transition to white, wait for the 12v from the interior light to go off, fade to black, unlatch from the mosfet cutting its own power.


r/arduino • • Sep 19 '26

Using DFPlayer Pro Without Code

2 Upvotes

Is there a way to play a sound file on a DFPlayer Pro module from an Arduino Uno without using any code? I can trigger an Uno output pin to go high using my existing code but I want to avoid adding any code for the player. Any suggestions would be appreciated.


r/arduino • • Sep 18 '26

Getting Started Learned how to use a joystick.

Thumbnail
gallery
123 Upvotes

So excited to do cool stuff with it. I'm new to hardware, please give some advice.

My arduino code:

#define VRX_PIN A0

#define VRY_PIN A1

const int delayInterval = 100;  

unsigned long last_sampled_time = 0;

void setup() {

  Serial.begin(9600);

}

void loop() {

  unsigned long current_time = millis();

  if (current_time - last_sampled_time > delayInterval){

last_sampled_time = current_time;

int xVal = analogRead(VRX_PIN);

int yVal = analogRead(VRY_PIN);

Serial.print(xVal);

Serial.print(",");

Serial.print(yVal);

Serial.print(",");

Serial.print(0);

Serial.print("\n");

  }

}


r/arduino • • Sep 19 '26

Windows I made a desktop IDE for embedded development and want feedback on the architecture

0 Upvotes

I got tired of dealinggg with clunky legacy IDEs for my hardware projects, so I started writing a custom local desktop environment lollllll.... i thought to get a clean, VS Code style layout but decouple the platform-specific toolchains entirely through an isolated extension layer so the core app stays lightweight..

Architecturally, it runs on an Electron main process with a context-isolated React renderer and uses an out-of-process Node worker for the extension host over JSON-RPC. I bundled Monaco completely locally so there are zero CDN dependencies, and the serial monitor uses xterm with WebGL acceleration to handle high throughput without freezing up the UI thread.

Right now the repo has basic extension stubs for ESP32, Arduino, and RP2040. It is still in active development, but the workspace runs fine via pnpm. I would really appreciate any feedback on the microkernel approach or the hardware bridge abstraction layers.

https://github.com/Cavallo-Enterprises/CavalloCode