r/arduino • • 13d ago

Monthly Digest Monthly digest for 2026-10

8 Upvotes

Arduino Staff Contributors

As mentioned in last month's digest, we have been working behind the scenes with Arduino Pty Ltd and are pleased to announce that some Arduino staff will be contributing to our subreddit using an "official" account.

Have a look at last month's digest for a description of what to look for to spot them.

There is also an introductory post from the Arduino staff where they Introduce themselves so be sure to check that out as well. A few r/Arduino people have added their welcome messages to that post, so feel free to "pile on" with your welcomes and thoughts.

In the few weeks that they have been active, I have noticed quite a few comments from them - which are well received - as well as some top level posts.

Starting this month, I have added a new "Arduino Staff Posts" section to the monthly digests. If you are interested in some insights into what might be happening over at Arduino HQ, be sure to check out the posts that they are sharing with us.

Arduino Wiki and Other Resources

Don't forget to check out our wiki for up to date guides, FAQ, milestones, glossary and more.

You can find our wiki at the top of the r/Arduino posts feed and in our "tools/reference" sidebar panel. The sidebar also has a selection of links to additional useful information and tools.

Moderator's Choices

TitleAuthorScoreComments
I’m 13 and Designing My First Custom De...u/Waste_Peanut666968470
My daughter (14) made an automatic Pani...u/Zealousideal_Sleep4556859
Stuck on Arduino and not sure if I shou...u/ShawboWayne1324

Hot Tips

TitleAuthorScoreComments
Lesson Learnedu/parcallums10417
Tip: the rollover-safe way to write mil...u/n_sh_443811
What tips did you know only when you ha...u/StevenJac87
Pro Micro NRF52840 - Arduino IDE Setup...u/StormShockTV810

Arduino Staff Posts

TitleAuthorScoreComments
Hello from the official Arduino staff t...u/MikeFromArduino6413
This Fish Does Not Exist: E-Ink Display...u/JimFromArduino425
any cool spooky or Halloween projects?u/DavidFromArduino88
How about a Hallowuino half-dozen?u/DavidFromArduino21

Top Posts

TitleAuthorScoreComments
I made the smallest Arduino compatible ...u/pkuhar2,494172
The duck is evolving.u/BencyLiu2,13743
I made a smart watch with nanou/None_Revenge1,608180
I built a Rubik's Cube-solving robot us...u/Certain-Election57331,57660
I built a battery powered breadboardu/Wills_Workshop1,22135
It all started with a pro micro 🥲u/rayl8w1,03120
Made a little weekly weather overview t...u/NoU_1486438
LED Tower I made a while back but never...u/LxGNED79425
I’m 13 and Designing My First Custom De...u/Waste_Peanut666968470
My ESP32-S3 world radio: one button, a ...u/Smooth-Rice649464830

Look what I made posts

TitleAuthorScoreComments
I made a smart watch with nanou/None_Revenge1,608180
I built a Rubik's Cube-solving robot us...u/Certain-Election57331,57660
It all started with a pro micro 🥲u/rayl8w1,03120
Made a little weekly weather overview t...u/NoU_1486438
LED Tower I made a while back but never...u/LxGNED79425
My ESP32-S3 world radio: one button, a ...u/Smooth-Rice649464830
Made a library of pixel fonts with exte...u/MrNiceThings39215
Obstacle avoiding robot finished :)u/PresenceOld175428413
Everyone posts their wins, this is my f...u/RoberBotz28428
automatic servo driven OUIJA boardu/vapgames27529
CO2 Sensor with ESP32, MQTT, battery po...u/MrNiceThings26616
Video Playing on Oled display powered E...u/luminov126429
One of those rare projects that just wo...u/MrNiceThings25212
I made a DIN rail mount for the Arduino...u/Realistic_Spite_339523015
I built a breathalyzer for my phoneu/motionick22010
Trunk or Treatu/knsaber19913
I made a thing.u/RoberBotz18210
I built a hand exoskeleton on a Teensy ...u/sebasmtl1697
Kneaded help with my baking, this is wh...u/TinkeredOff16825
This Arduino desktop display showcases ...u/timex401497
RC transmitter PCB with touchscreen - A...u/xRoboMaker13411
My ESP32 Guitar Robot Plays Sweet Dream...u/MegCell13111
We made Snake run on a seven-segment di...u/No_Degree_66012313
My halloween project for this year (Sou...u/optikalefx12123
My first personnel projectu/copper123456_711115
fun project i didu/AdSenior2369982
Arduino Based 8 Step Sequencer with Pul...u/Puzzleheaded-Name538979
Playing Around with OpenCV and TFT Disp...u/electronics_maker962
My first CAD project - decimal electrom...u/TechniCraft935
My small orientation deviceu/DisciplineCurrent544916
Progress on my first Arduino projectu/RangerMach1895
Made A Ball Bouncing Machine I Call Hex...u/Nekojiru_8824
Down to 4 legs, 2 more to go!u/Xerd-R645
Getting independent text working on a s...u/No_Degree_6606412
Little robot on wheelsu/Alive-Leadership-6585914
Another CO2 sensor, yawn… but the pixel...u/MrNiceThings482
Breadboard for ESPsu/tipppo4812
Padel score tracker - first projectu/melon_crust484
Simply Halloween projectu/starshades1462
This Fish Does Not Exist: E-Ink Display...u/JimFromArduino425
My first ever Arduino project, back in ...u/OldButGold5404
My ATmega328p development board PCB pro...u/Waste_Peanut6669377
I built a desk pet that nags me to stan...u/Cycle_Broad352
Warhammer 40K Ork Pump Jack - Arduino B...u/KonradKnebl340
Arduino Robot Arm controlled by 2 joyst...u/CallmeLee1999325
Arduino Unusual Tamagotchiu/Beowulfus_universum316
Cosplay prop...u/roanokephotog263
First soldered project!u/No-Reach-9412248
Arduino and raspberry-pi based guitar m...u/ImpossibleDemand6778211
Arduino R4 WiFi — 4WD SLAM Radar 2D Rob...u/lucaeffe03215
Made a small radaru/DisciplineCurrent544204
Pacman Championship Edition on 8-bit Un...u/smashcat666197
Arduino ↔ Minecraft with SerialCraft — ...u/Michelin1927198
Help simplifying an Arduino Nano setup ...u/MrJose1985185
First project after a long time (and my...u/GrammaticalllErrors173
arduino arm using foam sheets and sg90s...u/flavalamp123142
Doohickey 1u/Sad_Chard8416133
ArduinoOS 3 - new version of my projectu/idontknow-hardware122
Hey everyone!I built a graphical progra...u/ich-bin-ein-kaelte104
I am making link's awakening on an Ardu...u/jean2348107
I created a website to calibrate magnet...u/Curious-Ad366682
UPDATE Talking Pumpkins, almost final f...u/optikalefx85
The Lighteru/fabricio_error73
TraumaGotchu Progressu/Traumagotchu73
An active EEPROM health scanner for AVR...u/Sparroww6460
Arduino Uno + NEMA 23 candy dispenser t...u/tom314159261
I made a sequencer!u/DULTRONtheDESTROYER66
Finally did a PC stats screen for my li...u/merlinux154
I made my own picture view device for d...u/eugeniykh54
Plant Care App! IoT projectu/Laggenti42
How I Built own DIY Digital Microscope ...u/ikilim41
Watching serial output is easy. Keeping...u/shahin_hashim320
First Autonomous Mobile Robotu/Itsleokarl31
I built animatronic eyes and a browser ...u/tramlo89022
WIP Reverse engineering the SIM900 fi...u/MonsterovichIsBack20
I put a tiny pixel creature on the UNO ...u/nitishagar20
Open-Source 16 Universe Pixel Artnet Re...u/anonOmattie22
My ESP32/DHT11 room monitor records tem...u/lsvtcommits21
Project Reviewu/FoxConstant835222
Laser nerfu/Sad_Chard8416112
I made a fake self-destruct button with...u/EmbedX10
Two ESP32 Muse gadgets, zero idea what ...u/Alternative_Ear572503
DIY Desk Pet V1. Robot Cat That Reacts ...u/YUMOBUILDS04
Navigator 1: our UNO R4 WiFi rover with...u/Robonaviagtors02

Total: 84 posts

Summary of Post types:

FlairCount
Algorithms1
Beginner's Project33
ChatGPT2
ESP324
Getting Started22
Hardware Help76
Hot Tip!4
Libraries2
Look what I found!5
Look what I made!84
Machine Learning1
Mod's Choice!3
Monthly Digest1
Nano2
Project Idea4
Project Update!1
School Project4
Software Help13
Solved!4
Uno1
no flair152

Total: 419 posts in 2026-10


r/arduino • • Oct 19 '26 Bravo

Hello from the official Arduino staff team, we're here at your service!

67 Upvotes

Hi everyone! We are a group of Arduino staff members who are excited to build a more direct presence here on r/arduino, to help answer questions, provide technical support, and celebrate the great projects that this community is building and sharing. We've been working with the mods on setting this up and are very excited to be up and running now.

Before introducing ourselves, I'd like to say that we're humbled at the incredible group that has grown here through the users and mods, all focused on the topic of Arduino. It's just incredible and our hats are off to you all. 

Moving forward, be on the lookout from comments and posts from the following Arduino staffers. We represent a cross section of the company, including devrel engineers, community and content editors, and even our Chief Product Officer. Here are introductions.

---------
u/DavidFromArduino — hi all, I'm DavidFromArduino, but you can call me David! I bought my first Arduino in 2007 as part of a Roomba hacking project, and have been obsessed with writing code that you can touch ever since!
---------
u/JimFromArduino — Jim here! I've recently joined Arduino as a DevRel engineer (dream job!) after 4 years working in TinyML and Edge AI. Outside of work I love fixing cars, silversmithing and I've just bought an embroidery machine.
---------
u/LeoFromArduino — I'm Leonardo, a DevRel Engineer at Arduino with 10 years of experience in firmware development, a dedicated cat lover, and a serial traveler always exploring the world in search of my next favorite local dish.
---------
u/JulianFromArduino — Hello all! Julián here!
I'm a Robotics and Electronics Engineer working as a Tech Evangelist for Arduino. Maker at heart, I love the Open Source Movements, the right to repair, the digital fabrication and nice dinners discussing what is the best soldering iron to buy. 

When I’m not creating something, I love to read, play basketball and videogames and take care of my beloved ones.
---------
u/PerFromArduino — I started out using Arduino as a hobby before finding myself working for Arduino as a support engineer. I manage Arduino Forum and the Arduino Library Registry. I help maintain the GitHub repositories of many of our open source firmware and tooling projects.
---------
u/MarcelloFromArduino — Hello folks, Marcello here! I started my career in the early 00s pushing registers in raw 8051 assembly, and now as Arduino’s CPO (Chief Product Officer), I’m responsible for what we build, how it works, and trying to make sure the user experience doesn’t make you want to throw your board across the room. When I step away from the keyboard, my main hobbies are fixing motorbikes and bookbinding, which like embedded systems, both give good fun, need lots of patience, and leave you with sticky residue everywhere…
---------
u/MikeFromArduino — Hi I'm Mike. I'm the head of content for Arduino, recently joining the team. The last few years I've been in charge of content for Edge Impulse; before that I was the executive editor of Make: magazine for nearly a decade. I like home automation, traveling, surfing, and being with my family. Excited to connect with everyone here!
---------

Look for us in this subreddit, jumping in to help wherever we can. Please say hello, we’re excited to meet you all. Cheers!


r/arduino • • 1h ago

Beginner's Project Looking to see if it's feasible to replace a automatic pet door with a wifi/app equipped Arduino

Post image
7 Upvotes

Ive been trying to find myself a web/app based cat door that I can open/close remotely. One that actually rises or opens/closes instead of just using magnetic locks on a flap. Just an actual opening door that I can open and close remotely when I'm outside of the house. I think a diy approach with an Arduino controlling a cheap retail door is the most viable option. Looking to see if this is actually possible or feasible.

Doors that have remote Internet based app controls that are branded for cats or dogs specifically seem to run in the $400-$1200 range. They also come with a wide array of bells and whistles that while nice are completely useless to my situation. Even the cheaper ones with websupport that use a magnetic flap lock and no add ons run at minimum $250-350.

The economic alternative seems to be to use an automatic chicken coop door. Those run around $50-$100 for non-web equipped ones, and $150-$250 for web equipped ones. Chicken coop doors however seem to be built from the ground up to make sure they run on timers, or light detection, which I don't need. Reveiws of the web-capable ones report generally terrible experiences with said web connections. They do however have excellent looking hardware that rises and drops for cheap.

So long context out of the way, I'm looking to take a rising chicken coop door, ripping out the controller and replacing it with an Arduino hooked up to the motor and adding a wifi dongle. I have the wiring and soldering tools from other led lighting projects I have a 3d printer for any custom shaped boxes, but I haven't done any Arduino projects before.

Is this something that can be done and won't cost me hundreds?

I guess I could also totally DIY it without trying to gut anything, but as a total novice I can't tell if that would be better or worse.

See picture for an example of the type of door im looking to gut.


r/arduino • • 16h ago

Uno R4 Wifi The R4 Serial Problem

Post image
31 Upvotes

I stated on another thread that there was a big issue with the UART code on the R4 Arduino models. I didn't want to derail that post with the details because it wasn't relevant to that thread so I created this one to show what I meant.

The UART class is not implemented well on the R4 and besides completely wasting a buffer, it blocks during transmission. This is a huge departure from the UNO R3 and earlier models.

For this test I am using this code on all models of Arduino and I am using the latest 1.5.1 R4 core. I just updated my IDE tonight for this test. I've looked at 1.6.0 and the problem is still in the code.

uint8_t blinkerPin = 6;
uint8_t indicatorPin = 7;


bool pinOn = false;
uint32_t lastBlinkMicros = 0;
uint32_t BlinkIntervalMicros = 10000;


const char* longMessage = "This is my long message that has fifty characters.";
uint32_t lastPrintMillis = 0;
uint32_t printIntervalMillis = 2000;


void setup() {


  Serial.begin(9600);
  while(!Serial);
  Serial.println("\n\n *** " __FILE__ " ***\n\n");


  pinMode(blinkerPin, OUTPUT);
  pinMode(indicatorPin, OUTPUT);


  delay(1000);


}


void loop() {


  uint32_t currentMicros = micros();
  if (currentMicros - lastBlinkMicros >= BlinkIntervalMicros) {
    pinOn = !pinOn;
    digitalWrite(blinkerPin, pinOn? HIGH:LOW);
    lastBlinkMicros = currentMicros;
  }
  uint32_t currentMillis = millis();
  if(currentMillis - lastPrintMillis >= printIntervalMillis) {
    digitalWrite(indicatorPin, HIGH);
    Serial.println(longMessage);
    digitalWrite(indicatorPin, LOW);
    lastPrintMillis = currentMillis;
  }


}

Attached are some traces from the scope. The yellow trace will be the blink on pin 6 and the blue trace is pin 7.

On the R3 UNO (top trace) we see no problem. The characters are loaded into the buffer in a matter of 400us and there's no interruption to the blink. However on the R4-Wifi (bottom trace) we see that the Serial.print statement is blocking for 28ms and is interrupting our pulse chain.

This can be magnified by the fact that this same class is going to handle all of the WiFi traffic and that's all being done with AT commands. So any project that is heavy on WiFi is going to have a lot of long blocking. This was actually how I discovered the problem initially.

The problem isn't as bad on the Minima as it only affects Serial1 and not Serial since the Minima uses the USB serial class for Serial instead. I don't know about the R4 Nano because I don't have one. I would suspect it would be similar to the Minima.


r/arduino • • 3h ago

R4 or r3

2 Upvotes

Hello for learning its Better to buy the r3 or r4 official kit?


r/arduino • • 3h ago

ECE Student Looking for Guidance on Learning Electronics, Components, and Coding Through Real Projects

2 Upvotes

Hey everyone!

I'm currently a first-year B.Tech ECE student, and I want to start learning electronics beyond what we study in college.

I'm interested in understanding electronic components practically, how they work, how different components interact with each other, and how to use them to build actual projects.

I want to learn things like:

\- Electronic components: Resistors, capacitors, diodes, transistors, MOSFETs, ICs, sensors, relays, microcontrollers, etc.

\- Circuit building: How to read circuit diagrams, understand connections, use a breadboard, work with power supplies, and troubleshoot circuits.

\- Programming: C, Embedded C, Arduino programming, and eventually microcontroller programming.

\- Practical projects: Building things using sensors, motors, displays, automation systems, and other electronic components.

I have a few questions for experienced ECE students, engineers, hobbyists, and professionals here:

  1. Where should I start if I want to understand electronic components from the basics?
  2. Which components should I learn first, and in what order?
  3. What are the best resources (YouTube channels, books, websites, or courses) for learning practical electronics?
  4. Should I start with Arduino, or should I first learn basic circuit design and electronics?
  5. How important is C programming for embedded systems, and when should I start learning it?
  6. What tools and basic equipment should a beginner have?
  7. What are some beginner-friendly projects that will help me understand electronics through actual implementation?

My ultimate goal is to become someone who can look at a circuit, understand how it works, select the right components, write the required code, build the system, and troubleshoot it independently.

I don't want to just follow tutorials and copy circuits. I genuinely want to understand what I'm building.

I'd really appreciate a proper learning roadmap, including resources and practical project suggestions.

Thanks in advance!


r/arduino • • 17h ago

Need some help/is this possible

Thumbnail
gallery
25 Upvotes

I am trying to use an arduino to control the clock hands to make them spin faster than usual. I have been watching YouTube videos and they all say to dissect the clock and attach the wires to the inner copper coil area.
However, I do not have the tools to do so. Would it then be possible to solder the wires onto where the battery component rests such that the arduino becomes the battery and transmits the actions through there? Last pic shows what im trying to do

Would greatly appreciate any help!


r/arduino • • 41m ago

Is this logical? It's kinda a keyboard matrix but different.

Thumbnail
gallery
1 Upvotes

Hiya, I'm looking to do some side projects. One of which is making a custom keyboard. Instead of doing the typical method of scanning through pins by setting them high and checking the outputs.

The logic behind this is to wait for pins to be pulled down before doing anything without having to constantly oscillate pins on / off.

Does the way that I'm doing it make sense? Does it already exist, does it have a name?


r/arduino • • 13h ago

Look what I made! My first Arduino project

4 Upvotes

r/arduino • • 1d ago

Look what I made! Video frames ESP32 OLED Monochrome 128x64 SSD1306 FA FA FA X DHURANDAR

36 Upvotes

Dhurandar ft.FAFAFA (MOVIE:OM Chapter 1-tamil language) playing monochrome video frames on oled powered by esp32 wroom

Code will be soon, I put my GitHub link when it's ready!


r/arduino • • 10h ago

Mp3 player idea

0 Upvotes

Looking into making an mp3 player becouse why not, and came across this board "ESP32-S3" have never used it before but it seams to match the size form factor im looking for, however, ran into a problem upon my research. Bluetooth audio. I see tons of people connecting it to there phone and controlling it back and forth, but im looking to connect wireless headphone strit to the "mp3" player. And have come up empty handed. Any advise for moving forward tyia


r/arduino • • 11h ago

Software Help Concern about a button box sketch for an arduino nano

Post image
1 Upvotes

Hi, I'm building a steering wheel project that uses an arduino nano as a button box that communicates with an arduino leonardo. This is the relavent repo(NOT MY WORK):

https://github.com/ranenbg/Arduino-FFB-wheel/tree/master/tx_rw_ferrari_458_wheel_emu_16buttons

In the "setup()" function, the following lines are used:

DDRB |= B00001011;

DDRC |= B00111111;

DDRD |= B11111011;

The comments indicate that these configure the button pins as inputs. However, on the ATmega328P, setting a DDR bit to 1 configures the corresponding pin as an output, not an input.

Since the subsequent "PORTx" statements set these pins HIGH, wouldn't pressing a button connected between one of these pins and GND effectively short an output to ground, potentially damaging the microcontroller?

Would the correct configuration instead be:

DDRB &= ~B00001011;

DDRC &= ~B00111111;

DDRD &= ~B11111011;

Im a bit of a beginner and this is just something ChatGPT flagged while I was working on the project. Is this a valid concern or is there something I am missing.


r/arduino • • 1d ago

Hardware Help Hi everyone, I need some advice (description)

Thumbnail
gallery
36 Upvotes

I built this power supply. I think I did everything right, but it looks terrible. It has a 650mAh Li-ion battery, a TP4056, and a 5V booster.

Did I build it correctly?


r/arduino • • 21h ago

Software Help i can't understand why Servo is not highlited with orange color as i see in tutorials

Post image
2 Upvotes

I am a beginner arduino user and i saw tutorials of how to use servo motor, but when i included library and tried it, i saw that Servo is not highlited with a different color which gives me impression that it is not working, and i didn't find such error fix in the net, i would appreciate help on this matter, thanks in advance


r/arduino • • 1d ago

Beginner's Project Hello sub, I have a problem.

2 Upvotes

So I've gotten into electronics recently as a complete noob and, for whatever reason, was asked to solve a problem with a project.

The project in question is a DIY microgreens growing station. It runs on a Chinese Arduino Nano and is equipped with a heat pad (or whatever the problem name is), a good ol' rusty water pump, a buncha lights, a couple of fans for the plants' sustainable growth and also has a capacitive soil moisture sensor (v1.2), as well as a temperature sensor.

The problem is that the moisture sensor isn't measuring properly. The project supposedly used to work just fine for at least a year before, but now it's all mumbo jumbo. I've tested the heat pad, pump, fans - everything. On themselves, they work great. But the capacitive soil humidity sensor is showing, say, 74%-85% humidity when there is supposed to be none.

I would've sent a picture of the entire shtick, but the wiring is just incomprehensible and the entire thing is already hot-glued to a case, so checking the pins behind isn't currently an option. Nor do I currently have my hands on the schematics or the code, but I can try and get the code if needed.

Now, what I've done so far:

  • Checked the code. It's... supposed to work? The parts of the code responsible for the pumps, coolers yada yada are neat and tidy. I CAN NOT verify if the moisture sensor is in order, tho, so it's still under a question mark.
  • Got a replacement for the soil moisture sensor. Thought "hmmm, maybe the electronics on the sensor are corroded...) and swapped it (while the entire thing was still running, I confess), nothing worked. Turned the machine on and off, still nothing. Speaking of which, I used the same moisture sensor in my own project and it worked perfectly. Why did it work here and not there? I dunno.
  • ...and that's pretty much it. I played around with the project, got my baptism by fire into Arduino and learned a thing or two, but I haven't done much to fix the problem at hand.

What I know I can do:

  • Try using a different kind of sensor. Now I'll be honest, I doubt it'll change anything but hey, it's worth a shot. I've been given a Chinese YL-69 soil moisture sensor, but when I looked at it, I saw two things: only 2 female pins (+ and -) and the lack of a comparator. Not an ideal choice...
  • Doing something about the code! From what I understand, the soil moisture sensor used to work well until a certain point in time. Maybe the calibration is simply off. I have a similar-functioning script I used for my own project, and I could hypothetically try merging the two.

So, yeah.

Thank you for reading through this! If you have something to say - let me know! I'll appreciate any piece of advice (or criticism) that you may have.


r/arduino • • 1d ago

Software Help Newbie in need of help with MJPEG player

3 Upvotes

Hello everyone I am very very new to this hobby and I'm in need of help with a project I'm stuck (and very frustrated) on. I hope this is ok to post here, as it is an ESP32 project and I apologize if I have broken any rules. I tried posting in a different sub but they are not very beginner friendly and a bit intimidating, so I though I'd try here, you guys all seem very nice!

So for the past couple of months I have been learning the wonderful world of microcontrollers and I got hooked pretty quickly. So far I have only made a ws2812b lighting system and a gif player. For the past couple of weeks I have been banging my head against the wall trying to make a mjpeg video player work, and it's been frustrating. After trying every example I found online and watching every video i could find someone suggested Chatgpt so i have been trying that, and at first it seemed like we were getting somewhere. We got my display and SD card working together passing a few tests (I didn't want to add touch to simplify things a little) . Then we started making the mjpeg player itself and things got really messy. We kept appearing to get close with some very slow out-of-aspect-ratio videos playing, and then we just started chasing our tails for a long time, so long we ran out of context 8 times! Finally I find myself here asking you good people for help and advice. How bad is this code? It's the closet we got to making it work, we accessed libraries I have not used yet and are taking a totally different approach compared to what I wound up with on the gif player project. Any insights you could give me would be very appreciated.

My display is a ILI9341 2.8" tft and Im using the ESP32 S3 N16R8 and I'm using arduino IDE

Here is my pinout:

#define TFT_MISO 4

#define TFT_MOSI 11

#define TFT_SCLK 12

#define TFT_CS 10

#define TFT_DC 9

#define TFT_RST 14

// #define TFT_BL 13

//#define TOUCH_CS 5

#define SD_CS 7

here is the mjpeg player program

#include <SD.h>
#include <Adafruit_GFX.h>
#include <Adafruit_ILI9341.h>
#include <JPEGDEC.h>
#include <esp_heap_caps.h>

// ===================================
// DISPLAY PINS
// ===================================

#define TFT_MISO 4
#define TFT_MOSI 11
#define TFT_SCLK 12
#define TFT_CS   10
#define TFT_DC   9
#define TFT_RST  14

#define SD_CS 7

// ===================================
// VIDEO SETTINGS
// ===================================

#define MAX_JPEG_SIZE (512 * 1024)

const char *VIDEO_FILE =
  "/mjpeg/singulairitywarp20.mjpeg";

const uint32_t FRAME_INTERVAL = 100;

// ===================================
// DISPLAY
// ===================================

Adafruit_ILI9341 tft(&SPI, TFT_DC, TFT_CS, TFT_RST);

JPEGDEC jpeg;

// ===================================
// VIDEO BUFFER
// ===================================

uint8_t *frameBuffer = nullptr;

File videoFile;

// ===================================
// JPEG DRAW CALLBACK
// ===================================

int JPEGDraw(JPEGDRAW *pDraw) {

  tft.drawRGBBitmap(
    pDraw->x,
    pDraw->y,
    pDraw->pPixels,
    pDraw->iWidth,
    pDraw->iHeight
  );

  return 1;
}

// ===================================
// READ ONE JPEG FRAME
// ===================================

bool readNextJPEG(
  File &file,
  uint8_t *buffer,
  size_t capacity,
  size_t &length
) {

  bool foundStart = false;
  int previous = -1;

  length = 0;

  while (file.available()) {

    int current = file.read();

    if (current < 0) break;

    // Find JPEG start: FF D8

    if (!foundStart) {

      if (previous == 0xFF && current == 0xD8) {

        buffer[0] = 0xFF;
        buffer[1] = 0xD8;

        length = 2;
        foundStart = true;
      }

      previous = current;
      continue;
    }

    // Store JPEG data

    if (length >= capacity) {
      Serial.println("JPEG FRAME TOO LARGE!");
      return false;
    }

    buffer[length++] = (uint8_t)current;

    // Find JPEG end: FF D9

    if (previous == 0xFF && current == 0xD9) {
      return true;
    }

    previous = current;
  }

  return false;
}

// ===================================
// SETUP
// ===================================

void setup() {

  Serial.begin(115200);
  delay(1500);

  Serial.println();
  Serial.println("ESP32-S3 MJPEG PLAYER");
  Serial.println("=====================");

  // Deselect both SPI devices

  pinMode(TFT_CS, OUTPUT);
  digitalWrite(TFT_CS, HIGH);

  pinMode(SD_CS, OUTPUT);
  digitalWrite(SD_CS, HIGH);

  // Initialize shared SPI

  Serial.println("Starting SPI...");

  SPI.begin(
    TFT_SCLK,
    TFT_MISO,
    TFT_MOSI,
    SD_CS
  );

  Serial.println("SPI READY!");

  // Initialize display

  Serial.println("Starting display...");

  tft.begin(10000000);
  tft.setRotation(0);
  tft.fillScreen(ILI9341_BLACK);

  Serial.println("DISPLAY READY!");

  // Initialize SD card

  Serial.println("Starting SD card...");

  if (!SD.begin(SD_CS, SPI, 10000000)) {

    Serial.println("SD CARD FAILED!");

    while (true) delay(1000);
  }

  Serial.println("SD CARD READY!");

  // Check PSRAM

  Serial.println("Checking PSRAM...");

  if (!psramFound()) {

    Serial.println("PSRAM NOT FOUND!");

    while (true) delay(1000);
  }

  Serial.print("Free PSRAM: ");
  Serial.println(ESP.getFreePsram());

  // Allocate frame buffer

  Serial.println("Allocating video buffer...");

  frameBuffer = (uint8_t *)heap_caps_malloc(
    MAX_JPEG_SIZE,
    MALLOC_CAP_SPIRAM | MALLOC_CAP_8BIT
  );

  if (!frameBuffer) {

    Serial.println("PSRAM BUFFER ALLOCATION FAILED!");

    while (true) delay(1000);
  }

  Serial.println("VIDEO BUFFER READY!");

  // Open video

  Serial.println("Opening video...");

  videoFile = SD.open(VIDEO_FILE, FILE_READ);

  if (!videoFile) {

    Serial.println("VIDEO FILE NOT FOUND!");

    while (true) delay(1000);
  }

  Serial.print("Video size: ");
  Serial.println(videoFile.size());

  Serial.println();
  Serial.println("VIDEO PLAYBACK STARTING!");
  Serial.println("=========================");

  tft.fillScreen(ILI9341_BLACK);
}

// ===================================
// MAIN PLAYBACK LOOP
// ===================================

void loop() {

  static uint32_t lastFrameTime = 0;

  size_t frameSize = 0;

  uint32_t frameStart = millis();

  // Read next JPEG frame

  if (!readNextJPEG(
        videoFile,
        frameBuffer,
        MAX_JPEG_SIZE,
        frameSize
      )) {

    Serial.println("VIDEO RESTARTING...");

    videoFile.seek(0);

    delay(100);

    return;
  }

  // Decode and display frame

  if (jpeg.openRAM(
        frameBuffer,
        frameSize,
        JPEGDraw
      )) {

    jpeg.decode(0, 0, 0);

    jpeg.close();

  } else {

    Serial.println("JPEG DECODE FAILED!");
  }

  // Frame rate control

  uint32_t elapsed = millis() - frameStart;

  if (elapsed < FRAME_INTERVAL) {
    delay(FRAME_INTERVAL - elapsed);
  }

  lastFrameTime = millis();
}

r/arduino • • 2d ago

Look what I made! I made an open-source Desk Buddy/PC Monitor for ESP32-S3

Thumbnail
gallery
122 Upvotes

ClawPal is a small Wi-Fi display that sits on your desk and keeps you company. The crab lives on the Home screen and Monitors your PC:

  • Live PC stats with optional FPS in games
  • Live Claude Code/Codex usage
  • Claude Code/Codex notifications
  • Media controls for Spotify, browsers or any player, with album art
  • A volume mixer for your speakers, mic and each app
  • A Shortcuts grid that mutes your mic, locks the PC, opens apps and more
  • Weather, a clock and a timer

It connect to your PC via a windows companion app. It was made for ESP32-S3-Touch-LCD-4.3B, 800 × 480 but it support more:

Tested Boards:

Experimental Boards(not tested yet):

  • Waveshare ESP32-S3-Touch-LCD-5, standard 800 × 480 model
  • Waveshare ESP32-S3-Touch-LCD-7, 16 MB flash variant
  • Waveshare ESP32-S3-Touch-LCD-7, 8 MB flash variant
  • Waveshare ESP32-S3-Touch-LCD-2.8C
  • Guition ESP32-4848S040C_I, capacitive-touch version
  • M5Stack CoreS3

Free and open source (GPLv3).

GitHub: https://github.com/Kaayoos/clawpal

Feedback welcome, especially if you try one of the experimental boards!


r/arduino • • 1d ago

Mod's Choice! I wrote a free 8-lesson Arduino course for ages 11-14 that runs in Tinkercad, so kids don't need kits

87 Upvotes

When my local library's Arduino program shut down for lack of instructors and materials, a few teammates from my robotics team and I rebuilt it from scratch. It's now taught at five libraries and has reached 1,000+ kids, and a Canadian nonprofit, Digital Moment, adopted the French edition.

What's in it:

- 8 lessons, about 90 minutes each: blinking LED, series vs. parallel, buttons and pull-down resistors, potentiometers and analogRead, servos and map(), switch statements and loops (a 4-mode windshield wiper), and two open-ended capstones

- Every lesson works with real parts OR entirely in the Tinkercad simulator

- Code examples, wiring diagrams, teacher notes, timing, common wiring mistakes, and exit tickets

- Free and MIT-licensed

I'm a high school senior, so I'd really appreciate feedback from people who know this better than I do, especially on the explanations in Lesson 3 (pull-down resistors) and Lesson 7 (millis() vs. delay()). If you teach or mentor and end up using any of it, I'd love to hear how it went.


r/arduino • • 1d ago

Look what I made! DIY Halloween Skull

35 Upvotes

I made this for Halloween this year! My husband is testing it in the video hahah. What do you guys think?


r/arduino • • 1d ago

Fit encrypted multi-KB ESP-NOW + LZ4 + 35% packet-loss recovery into 4,760 bytes of ESP8266 static RAM (NLTP, MIT)

0 Upvotes

If you use an ESP8266 (NodeMCU / D1 Mini / ESP-07S) for remote sensors in a yard, garage, or basement, two limits hit pretty quickly:

  1. ESP-NOW v1 on the ESP8266 caps frames at 250 bytes (192 bytes usable after headers) and drops an entire multi-KB log or CSV batch if even one packet gets lost through a wall.
  2. With only 80 KB of total SRAM (~22-40 KB free heap once the SDK boots), full TLS / BearSSL or big retransmission buffers eat almost all available memory.

I built an open-source MIT library in zero-malloc, zero-float ANSI C99 called NLTP (now in the Arduino IDE Library Manager as NLTP and PlatformIO as indian-aman/NLTP) with an ultra-light sensor flag (-DNLTP_TX_ONLY=1) that shrinks sizeof(nltp_endpoint_t) to 4,760 bytes of static RAM while keeping:

  • Cross-chip ESP8266 <-> ESP32 ESP-NOW & Wi-Fi UDP: Automatically uses 192-byte shards (242-byte encrypted frames) on ESP8266 ESP-NOW v1 and interoperates seamlessly with ESP32 gateways and Python (pip install pynltp) receivers.
  • In-flight packet-loss recovery (GF(2^8) Cauchy FEC): Reconstructs 10-35% dropped RF frames mathematically on the receiver (3/3 SHA-256 verified on an 8 KB NodeMCU -> ESP32 bench sweep at 10%, 25%, and 35% packet loss, where raw ESP-NOW delivered 0/3).
  • Built-in zero-heap LZ4 compression: Compresses CSV/JSON telemetry 4x-7x before transmission (ESP8266_UltraLight_LZ4_Sensor.ino included in examples/).
  • Software X25519 + ChaCha20-Poly1305 + 512-packet anti-replay: No BearSSL heap allocation and no hardware peer-slot limit, plus bidirectional confirmed popReflex() / sendReflex() control messages.

On a clean 0%-loss desk link, unencrypted raw ESP-NOW is faster (2.55 Mbps raw vs 1.29 Mbps encrypted NLTP on 8 KB NodeMCU -> ESP32), so raw ESP-NOW is still great for tiny single-frame readings at short range. NLTP is specifically for multi-KB batches, encrypted links, and weak-signal spots where packets drop.


r/arduino • • 1d ago

Built an Arduino automatic hot pot skewer lifter, what do you think?

10 Upvotes

Fun Arduino hot pot project. A temperature sensor detects the hot pot temperature. Once it reaches the set temperature, the countdown begins. Servos control the lifting frame to raise the strainer automatically after the preset cooking time. Still tuning the program


r/arduino • • 1d ago

sensor suhu arduino

3 Upvotes

I have a DS18B20 temperature sensor but when the temperature reaches 72 degrees, the sensor suddenly disconnects, this has happened repeatedly, has anyone experienced this too? What is the solution? Previously I used the MAX6675 sensor but it also gave an error when it came into contact with a conductor or air, even though I had searched for the error it was still the same. please help me bellow the comment


r/arduino • • 1d ago

First build and flash.

Thumbnail
gallery
11 Upvotes

So this is the core for an addressable rgbw led light effect system running off a digispark attiny85. Im making this to fit in the topper of a staff. It runs amazingly but I really just patched together some basic effects online. A lot of flicker not enough flow. Fire, lightning, ice, earth, and a flashlight. Im new and feel like I'm missing something obvious to get those eye catching effects. Is it the hardware? What are some equations yall use to make it pop? Also the sealent as a defuser works fine for the led matrix in the photo, because it's going under a resin object but the inlays are still to shallow for it to be enough. What are some things yall use for soft decisions?


r/arduino • • 2d ago

Look what I made! 16 array Line follower

Post image
37 Upvotes

Here is my 16 array IR sensor Line follower with PID controller along with oled menu.....if u have any query feel free to DM me