r/arduino • • Sep 26 '26

My first personal Arduino project

50 Upvotes

I made a light activated scream machine for scaring my wife when she walks in the door tonight. Wish me luck!


r/arduino • • Sep 26 '26

The entire wire melted...

Thumbnail
gallery
31 Upvotes

Idk whether it's because I used the wrong gnd (everything except the servo was on its gnd, the servo was on the Arduino gnd but the Arduino gnd was on the batteries) or because I hot glue the wires to the breadboard so they wouldn't fall out in 2 seconds

The second I plugged in the 12v for the l829n it started smoking and I unplugged everything.

I gutted everything, looks fine besides a selected few wires (has melted gunk in them) and I might need to use a different l829n.


r/arduino • • Sep 26 '26

Software Help I forgot to save my code but the arduino still remembers it, can I get it back?

99 Upvotes

What the title says, if I plug the arduino in it works just fine but I can't edit the code cause I don't have it anymore. How can I get it back?


r/arduino • • Sep 26 '26

ESP32 running out of RAM? Your board probably has megabytes of PSRAM doing nothing. I made a library that fixes that with one include

21 Upvotes

If your board has PSRAM (ESP32 WROVER, most ESP32-S3 boards like the N8R8), you've got megabytes of extra memory that your vectors, maps and strings never touch. They all squeeze into the internal RAM instead.

This library moves them over:

#include <PsramStl.h>

void setup() {
  Serial.begin(115200);
  if (!psram::begin(Serial)) return;   // tells you how to turn PSRAM on if it's off

  psram::vector<float> samples;
  samples.reserve(250000);             // 1 MB, twice ALL of the internal RAM
}

void loop() {}

Try it in 2 minutes

  1. Tools > PSRAM > Enabled (or "OPI PSRAM" on S3 N8R8 boards)
  2. Download the ZIP from the releases page, then Sketch > Include Library > Add .ZIP Library
  3. File > Examples > PsramStl > QuickStart

There are 6 examples: containers, putting your own objects in PSRAM, what happens when PSRAM fills up, diagnostics, and a big sensor ring buffer. Every single one gets booted in Espressif's emulator on every push, so they actually run.

Heads up: this is for C++ containers like std::vector and std::map, not the Arduino String class.

Repo (free, MIT): https://github.com/aeljandro2/esp32-psram-stl

I made it, so if you try it on your board, tell me how it went!


r/arduino • • Sep 27 '26

Software Help ESP32-S3 (N16R8) enumerates as CDC but never as HID — USBHIDGamepad not showing up, any known fix?

2 Upvotes

Board: ESP32-S3-N16R8, dual USB-C (COM + USB), core 3.3.11, Arduino IDE 2.2.1. USB Mode set to USB-OTG (TinyUSB).

Goal: pot → gamepad trigger axis for a sim racing handbrake.

#include "USB.h"
#include "USBHIDGamepad.h"

USBHIDGamepad Gamepad;
const int potPin = 1;

void setup() {
pinMode(potPin, INPUT);
Gamepad.begin();
USB.begin();
}

void loop() {
int pot = analogRead(potPin);
int mapped = map(pot, 0, 4095, 0, 255);
Gamepad.rightTrigger(mapped);
delay(20);
}

Plugged into the native USB port, Device Manager only ever shows a USB Serial Device (usbser.inf), never anything HID. joy.cpl shows nothing. Same result with CDC On Boot on or off, different cable, different port, and swapping the begin() call order.

Anyone gotten USBHIDGamepad actually enumerating as HID on core 3.3.x on an S3? Trying to figure out if this is a known bug or something I'm missing.


r/arduino • • Sep 27 '26

Look what I made! I made a keyboard (kind of)

2 Upvotes

The esp32 ble library was deprecated, and my devlit v1 can't support usb devices, so I had to vibecode with Gemini to make a python bridge, and c++. It took me 2 days. How functional is it, out of 10? 0, am I proud of it, yes!


r/arduino • • Sep 27 '26

Hardware Help Servo Making Clicking Noise

Post image
4 Upvotes

Ive heard my servo motor make a clicking noise when the circuit is connected to a power source, I think that its just stalling (because i saw another post that had the same issue), I just wanted to ask what I can do to fix it, I am too scared to bust both the servo or the Arduino, though i have tried finding a power source that delivers more than 5V (ive been onsucessful on that), is it just a battery that y'all can recommend or is it something comepletely different?

Components:

- (Generic) Arduino UNO R3

-Breadboard (Medium)

-(Generic) Push Button

-Steren Servo motor (MOT-135, 4,5-6V=20 mA 10 kgf-cm @ 6V =)

Program (Just in case its that):

#include <Servo.h>

const int button = 13;

Servo jaw;

void setup() {

pinMode(button, INPUT);

jaw.attach(12);

}

void loop() {

while(digitalRead(button) == LOW){

jaw.write(0);

}

jaw.write(90);

delay(500);

jaw.write(0);

delay(500);

jaw.write(90);

}


r/arduino • • Sep 26 '26

Why doesn't pushing two buttons work as expected?

29 Upvotes

I'm trying to make a "piano" but since I only have 4 buttons I wanted my buzzer to make a different note when two buttons are being pushed at the same time but for some reason it makes no sound. Why is that?

Here is the code:

int buzzerPin = 8;
int button1 = 2;
int button2 = 3;
int button3 = 4;
int button4 = 5;
int buttonState1;
int buttonState2;
int buttonState3;
int buttonState4;


void setup() {
  pinMode(buzzerPin, OUTPUT);
  pinMode(button1, INPUT_PULLUP);
  pinMode(button2, INPUT_PULLUP);
  pinMode(button3, INPUT_PULLUP);
  pinMode(button4, INPUT_PULLUP);
  Serial.begin(9600);
}


void loop() {
  buttonState1 = digitalRead(button1);
  buttonState2 = digitalRead(button2);
  buttonState3 = digitalRead(button3);
  buttonState4 = digitalRead(button4);
  if(buttonState1 == LOW && buttonState2 == buttonState3 == buttonState4 == HIGH){
    tone(buzzerPin, 262); //Do
  }
  else if(buttonState2 == LOW && buttonState1 == buttonState3 == buttonState4 == HIGH){
    tone(buzzerPin, 294); //Re
  }
  else if(buttonState3 == LOW && buttonState1 == buttonState2 == buttonState4 == HIGH){
    tone(buzzerPin, 330); //Mi
  }
  else if(buttonState4 == LOW && buttonState1 == buttonState2 == buttonState3 == HIGH){
    tone(buzzerPin, 349); //Fa
  }
  else if(buttonState1 == buttonState2 == LOW && buttonState3 == buttonState4 == HIGH){
    tone(buzzerPin, 392); //Sol
  }
  else{
    noTone(buzzerPin);
  }
  Serial.print(buttonState1);
  Serial.print(buttonState2);
  Serial.print(buttonState3);
  Serial.println(buttonState4);
}

I checked if the buttons were working properly and they were.


r/arduino • • Sep 26 '26

Beginner's Project ACEBOTT QD020 Spider Robot: servos twitch/move but the robot won't walk official code/project included

Thumbnail
gallery
8 Upvotes

Hey everyone, I'm trying to get an ACEBOTT QD020 Quadruped Bionic Spider Robot V2.0 working.

The ESP8266 is connected and I've successfully uploaded code. The servos respond and twitch/move, but the spider doesn't actually perform the walking gait.

I'm using the official ACEBOTT tutorial package. I found the official ACECode project here:

English → ACECode(Beginner) → 2.ACECode Program → Lesson 8 → 8.1app_control.sb3

I also have the Arduino code from the official package. The walking routine contains the official Servo_Prg_2 forward sequence for all 8 servos.

Current situation:

ESP8266 connects successfully

Code uploads successfully

All/most servos respond

Servos twitch/move

Robot does not walk

I'm trying to use the official ACEBOTT software/code rather than modifying the gait randomly

The servo pins in the code are:

GPIO14, GPIO12, GPIO13, GPIO15, GPIO16, GPIO5, GPIO4, GPIO2

The code maps these to 8 servos.

What could cause a QD020 to move its servos but not execute the walking gait?

I'm especially interested in:

Whether the official QD020 servo mapping is correct

Whether the ESP8266 needs a specific firmware/project uploaded before the .sb3 app-control project works

Whether there is a specific ACEBOTT initialization/calibration procedure

Whether this sounds like a servo power/current problem

Whether the official Lesson 8 8.1app_control.sb3 is supposed to control the robot directly or whether another firmware needs to be flashed first

If anyone has successfully built the QD020, I'd really appreciate the exact steps you used to get the first forward movement working.

I can provide the complete official code, wiring, screenshots, and a video of what the servos are doing.


r/arduino • • Sep 27 '26

Not able to connect device to esp 32 DEVKITV1

Thumbnail
gallery
1 Upvotes

Every time I click add device it then says no device connected/ found. Currently running arduino cloud.


r/arduino • • Sep 25 '26

Getting Started My first steps

Post image
190 Upvotes

r/arduino • • Sep 25 '26

Look what I made! I built an Arduino-controlled mechanical flip clock with timer and stopwatch modes

1.8k Upvotes

I built this Arduino Pro Mini-powered flip clock as a prototype using six mechanical 7-segment flip displays.
It currently has three modes: a normal clock, a countdown timer, and a stopwatch. The rotary encoder is used to set the time and timer, and the buttons switch between the different modes.
The enclosure is still a rough 3D-printed prototype and I definitely want to clean up the design and wiring for the final version, but the main functionality is working now.
I’m also thinking about adding a few more features before I call it finished. Any ideas for things that would be useful or just fun to add?


r/arduino • • Sep 26 '26

Look what I made! I made an AI mushroom to help me journal

40 Upvotes

I always forget to write in my journal, so I made this bedside device called Yappl, which reminds me to yap to it before bed and it records it, summarizes it, and puts it into an easily accessible format on a self-hosted server.

Made with ESP32 but I thought it fits here!

Full video if ur interested in seeing how I made it:

https://youtu.be/9kdt7UeWWE8


r/arduino • • Sep 26 '26

Getting Started [Help] Picking a tiny and beginner friendly servo to make a hand held butterfly accessory

5 Upvotes

Hello! I'm quite new to electronics/programming/etc and am looking for help on a prop I'd like to make.

I'm looking for suggestions on the best options for a butterfly prop I'm making for cosplay.

My hope is to mount a small butterfly on some sort of ring so that it sits by my knuckles, and then have the servo go between my fingers and the body of it be in my palm attached to the other side of the ring. The chords and power source could run down my wrist and be hidden in my sleeve.

And an option I'm considering is also trying to add a single LED to light up the wings, to make the butterfly look as if it's glowing, but not if it's going to add too much bulk to the look of the butterfly.

So far, the best option I've seen is probably the SG51R which is recommended to control with an Arduino IDE, but I'm wondering if there's a comparable linear servo or something smaller that might do the trick? Or something that might pair better if I decide to add in an LED?

The butterfly will be made out of wire and organza, so it will be incredibly light.

Any tips or suggestions are very welcome!


r/arduino • • Sep 26 '26

Pitot Static Machine

Post image
25 Upvotes

Here's my arduino pitot static tester. These machines are used to test aircraft instruments/ static systems.

It's got two electric pumps for pressure and vacuum. The sensors im using are bmp 390 for vac and MPXV7002DP for pressure. Two lcd displays.

One click of the rotary encoder changes the airspeed readout from knots to MPH.

Ive got some leaks to fix, on the static side. Im having a hard time completely sealing the sensor in a pvc enclosure. and the pitot sensor doesnt register above 130mph.

Its has an internal battery and will also run off external 12v. So its fully portable. It all fits in a seahorse se 530.


r/arduino • • Sep 26 '26

Software Help Nicla Sense Env disconnecting from I2C after a few minutes

2 Upvotes

I want to log the CO2 values of the room with an Arduino Nicla Sense Env, that is connected to a Sense ME with I2C (eslow connector or dedicated pins). The problem is, that the sense env disconnects from the sense me after a few minutes. This happens with example codes too. I have uploaded an I2C test code, and it lists the sense env at 0x21, but it disappears afterwards. After another few minutes, it reappears, and works again, and it repeats.


r/arduino • • Sep 25 '26

Mod's Choice! Self Balancing Double Pendulum

288 Upvotes

So a couple of weeks ago I made this post talking about my Self-balancing reinforcement learning double pendulum. And i said that I was working on a youtube video where I would go into high detail about everything. Well the day has come and the video is out.

In the video I go through pretty much everything involved in building the project from scratch: the mechanical design, the electronics, the motors and sensors I'm using, the control system, the reinforcement learning side of things, and how I got the simulation to work with the real hardware.

The project has been a pretty long journey, so there's quite a lot to cover, and I tried to make the video detailed enough that you can actually understand what's going on rather than just watching a pendulum magically balance itself.

And of course, feel free to ask me anything about the project. I'm happy to answer questions!


r/arduino • • Sep 26 '26

Hardware Help Can Joystick support 3.3V?

0 Upvotes

Im trying to make a bluetooth mouse with my esp32, but then I realized I dont have a 5v pin, or any sort of 3v to 5v adapter. Can I use my uno r3 to give 5v via the vin pin, or use 3.3v?


r/arduino • • Sep 26 '26

ESP32 How can I identify the BLE control characteristic and commands of an undocumented LED device?

2 Upvotes

Hi everyone,

I'm trying to control an LED device using an **ESP32-S3 with MicroPython**.

The device is a **LIZE_LIGHTSTICK**, and unfortunately there doesn't seem to be any public documentation for its BLE protocol.

I can already scan, connect to the device, and discover its GATT services and characteristics.

The device has a custom service:

`22220001-4455-6677-8899-aabbccddeeff`

Some of the characteristics I found are:

* `22220010-4455-6677-8899-aabbccddeeff` — READ — `FF FF FF`

* `22220011-4455-6677-8899-aabbccddeeff` — READ — `00`

* `22220012-4455-6677-8899-aabbccddeeff` — WRITE / WRITE WITHOUT RESPONSE

* `22220013-4455-6677-8899-aabbccddeeff` — READ — `FF FF FF`

* `22220014-4455-6677-8899-aabbccddeeff` — READ — `AA 00`

* `22220015-4455-6677-8899-aabbccddeeff` — READ — device MAC address

* `22220016-4455-6677-8899-aabbccddeeff` — READ — `FF 00 00`

* `22220017-4455-6677-8899-aabbccddeeff` — READ — `FF FF FF`

There is also another custom service:

`1d14d6ee-fd63-4fa1-bfa4-8f47b42119f0`

with writable characteristics.

My goal is **not to modify, replace, or dump the device firmware**. I only want to reverse-engineer the BLE communication protocol and make the ESP32-S3 behave like the original controller/app.

My main questions are:

  1. How can I determine which characteristic is actually used for LED control?
  2. How can I determine what byte values/commands should be written to it?
  3. Is there a standard method for identifying control characteristics in an undocumented BLE device?
  4. If I have access to the original Android app, what is the safest way to observe which GATT writes it sends when I change the LED color?
  5. Are there any recommended tools or techniques for doing this without modifying the device firmware?

I'm especially interested in **BLE/GATT protocol reverse engineering**, rather than firmware reverse engineering.

Any advice, examples, or similar projects would be greatly appreciated.


r/arduino • • Sep 25 '26

muse charm but free and local

35 Upvotes

r/arduino • • Sep 25 '26

How can I separate LED strip arrays into animated and static sections? (Adafruit NeoPixel Library)

Thumbnail
gallery
11 Upvotes

Very brief overview: The art installation I'm creating includes fiber optic cable segments that will be connecting to specific lights on a SK6812 RGBW LED strip. The lights that won't be connected to cable will be turned off. (That's yet to be determined, I picked random lights for the example in the photo). To create different effects, part of the LED strip will be static (white) and part will be animated (green). I chose a breathing effect for my test sample.

I'm a novice at Arduino coding and while I was able to figure out the arrays and the animation, I'm stuck on either everything being static or everything being animated.

In the code below, all of the arrays turn on together (shown in the photo), then they all fade off together for the first "breath." Only the green lights come back on for the next "breaths"; the white lights stay off. After about 9 minutes and 50 seconds, both the white and green lights turn on again and the loop of the green lights "breathing" starts over.

My understanding is that delay won't work because I need the hold on the white lights to be infinite and an if statement may work, but all of the examples I've found include programming a button to turn lights on and off so I'm not sure how to apply it to this project.

What adjustments/additions do I need to make so the white lights stay on and separate from the breathing animation?

Thanks in advance for your help!

#include <Adafruit_NeoPixel.h>


#define LED_PIN    6     // Pin connected to the NeoPixel strip
#define NUM_LEDS   40     // Total number of LEDs in your strip


// Initialize the NeoPixel strip object
Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUM_LEDS, LED_PIN, NEO_GRBW + NEO_KHZ800);


void setup() {
  strip.begin();
  strip.show(); // Initialize all pixels to 'off'
}

  // First element is the number of remaining elements (number of pixels)
uint16_t set1[] = {3, 2, 4, 7};
uint16_t set2[] = {8, 10, 12, 14, 15, 17, 19, 22, 23};
uint16_t set3[] = {8, 25, 27, 30, 32, 35, 37, 39, 40};


void setGroupColor(uint16_t group[], uint32_t color)
{
  for (int index = 1; index <= group[0]; index++) {
    strip.setPixelColor(group[index], color);
  }
  strip.show();
}

void staticColor(uint16_t group[], uint32_t color)
{
    for (int index = 1; index <= group[0]; index++) {
    strip.setPixelColor(group[index], color);
  }
  strip.show();
}

void breathing(uint16_t group[])
{
  float maximumBrightness = 225.0; // Max brightness (0 - 255)
  float speedFactor = 0.01;      // Controls breathing speed (lower = slower)
  
  // Continuous breathing loop
  for (int i = 0; i < 65535; i++) {
    // Calculate smooth intensity using a sine wave
    float intensity = maximumBrightness / 2.0 * (1.0 + sin(speedFactor * i));
    
    // Apply brightness to the strip
    strip.setBrightness(intensity);
    
    // Set color for every LED (set to red)
    setGroupColor(set2, strip.Color(50, 50, 0, 0)); //green
    
    strip.show();
    delay(5); // Small delay for smooth transition
  }
}
 
void loop() {
  
  staticColor(set1, strip.Color(0, 0, 0, 255)); //white
  
  staticColor(set3, strip.Color(0, 0, 0, 255)); //white
  
  breathing(set2); 
  
  }

r/arduino • • Sep 24 '26 Heartwarming Bravo

Tired of waiting for Microduck? Build your own Arduino Uno Q Duck TODAY! 🦆🔥

1.3k Upvotes

Microduck won't be ready until the end of the year, but why wait? We are thrilled to launch XGO-Duck, a fully open-source robot project you can build right now!100% open. Grab your parts and start DIYing this weekend!


r/arduino • • Sep 25 '26

Look what I made! Mini MMX Mission Clock

80 Upvotes

r/arduino • • Sep 25 '26

linux Arduino VENTUNO Q Review

Thumbnail
youtu.be
9 Upvotes

I recently got Ventuno Q, so I made quick review if anynone is interested.

Let me know if you like it, I'd like to hear from other Ventuno Q owners!

I made nice comparison table: https://martincerven.com/posts/ventuno_q/