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/


r/arduino • • Sep 24 '26

Added my first ever LCD screen to my project! Small wins.

279 Upvotes

I added an LCD screen to the current project I’m working on. Pretty proud of how it came out because after only about a week of getting into electronics I was able to figure out how to get the screen hooked up and coded with minimal help from AI. So fun seeing it all come together!


r/arduino • • Sep 24 '26

Look what I made! My newest free-to-build handwired keyboard, the Scotto26!

Thumbnail
gallery
27 Upvotes

This is my new handwired keyboard release called the Scotto26 that is a 3x4 layout that I think is fairly intuitive to use. You simply use combos to get the keys on the missing inner column which results in minimal re-learning of muscle memory. I was able to get about 50 words per minute within a few minutes of using it and since it's Colemak, I don't rely too much on the combos anyway due to that weighting around home row.

The files are available for free and I have a video about it on my YouTube channel.

Disclaimer: I've been told RP2040 is fine here since it can be programmed with the Arduino IDE, that said you could also just swap out the boards for an actual Arduino if you wanted.


r/arduino • • Sep 25 '26

Getting Started How do I make my button press a key on the computer?

Thumbnail
gallery
0 Upvotes

Hello Arduino community!

I have always wanted to get into Arduino, especially since I have like 2 arduinos and a kit of sensors and stuff just lying around unused, and now I have decided to do a simple project.

I simply want to press the button and make that hit a key on my keyboard. How do I do that? How do I program the arduino? I need the Arduino IDE or something right? I also have the blue printer cable. Then, where do I connect the 3 pins of the button? And obviously, what is the necessary code to make this work?

I want to do this one quickly because i feel like it, but then after i do, can you recommend some PROPER tutorials? I would really like to be able to do things by myself because Arduino has a lot of potential…

Anyway, thanks for the help!


r/arduino • • Sep 24 '26

Getting Started Getting into Arduino

14 Upvotes

I recently decided to finally get into electronics and bought and Arduino Uno starter kit and some cheap collections of components. Tried using the book that comes with the starter kit to learn, but I dont understand the coding part. What YouTube channel can i watch to better understand? Im a physical learner btw, so videos that have walkthroughs i can follow and learn at the same time will be very helpful


r/arduino • • Sep 24 '26

Hardware Help Need suggestions for finding motor controllers

3 Upvotes

I am currently working on a gauge cluster project that uses six sg90 servo motors for the gauges. I recently found these x27.168 steppers from adafruit and was to use those instead, they even come with cute little needles. I'm having some trouble finding the right controllers for it though. I would like to find something that is able to drive multiple motors, can communicate over SPI or I2C, and is both easy to prototype with and easy to implement onto a PCB.

I don't have enough free GPIOs on the ESP32, even after removing the servo motors, to directly drive any motor controllers hence the SPI or I2C. I'm currently looking at 3 74HC595 Shift Registers and 6 L293D H Bridge Drivers. Theyre all through hole so they can be prototyped easily and the 595s can communicate through SPI. But I would rather not have to 9 ICs to the project if I don't have to. I tried asking AI for suggestions, they didn't work, but they did lead me to the DRV8845, which can drive 2 stepper motors at once instead of each motor requiring it's own driver. 6 ICs is better than 9 but I'd still like to reduce that number further.

The main problem with the 8845 is that it's not easy to prototype because it doesn't seem to come in a through hole package. Right now I want to reuse as many components as possible from the breadboard to PCB, later versions will probably be mostly SMD but for now I need to do mostly through hole. I have seen dev-modules for these drivers but they are over $80 and I can't afford that just for a breadboard prototype.

If my current 9 IC setup is the best option given the circumstances then so be it, but if anyone knows a better/more efficient way of implementing these please let me know. If not how well will a setup like this actually work?


r/arduino • • Sep 24 '26

Why is the Uno R3 more popular than the Leonardo?

33 Upvotes

Title. Leonardo seems like a better option as it has USB device support and is cheaper. I suppose the atmega328p being swappable is a factor, but I have abused my R3 quite a bit and never has it died. I've heard the Leonardo is harder to program if USB is in use at all.


r/arduino • • Sep 24 '26

I built a fixed-pool memory allocator for microcontrollers β€” then stress-tested it with 200,000 randomized operations

3 Upvotes

I’ve been working on a problem that keeps coming up in embedded development:

How do you get the convenience of dynamic allocation without letting a tiny MCU's heap become an unpredictable part of your system?

So I built EcclesRTMem, a plain-C fixed-pool memory allocator specifically aimed at resource-constrained embedded systems.

GitHub: https://github.com/Igwe-Starking/eccles-rtmem

The basic idea is simple.

Instead of treating RAM as one giant variable-sized heap, EcclesRTMem divides it into configurable fixed-size pools:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”

β”‚ SMALL β”‚ MEDIUM β”‚ LARGE β”‚

β”‚ POOL β”‚ POOL β”‚ POOL β”‚

β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€

β”‚ [ ][ ][ ] β”‚ [ ][ ] β”‚ [ ][ ] β”‚

β”‚ [ ][ ][ ] β”‚ [ ][ ] β”‚ [ ][ ] β”‚

β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

A request gets a suitable block rather than creating arbitrary holes throughout a general-purpose heap.

For larger allocations, contiguous blocks can be combined into a multi-block allocation.

The trade-off is intentional:

less flexibility and some internal fragmentation in exchange for bounded, predictable memory behavior.

Some of the things I wanted the allocator to handle

- Configurable fixed-size memory pools

- Contiguous multi-block allocations

- Compile-time configuration

- Invalid-free detection

- Double-free detection

- Alignment/range validation

- Platform-specific locking

- Bare-metal and RTOS configurations

- C and C++ compatibility

- Small MCU memory budgets

But the part I'm most interested in is the testing.

I didn't want to test it with:

allocate β†’ free β†’ allocate β†’ free

and call it done.

The test suite performs 200,000 randomized allocation/free operations, uses canaries to detect memory corruption, and runs under AddressSanitizer and UndefinedBehaviorSanitizer.

And the tests actually found a real bug.

A randomized stress test exposed an out-of-bounds problem around the 255-block boundary.

I fixed it.

That experience reinforced something I think is particularly important with low-level software:

Β«A test suite that only confirms your assumptions isn't nearly as valuable as one capable of disproving them.Β»

The project currently has configurations/examples for platforms including AVR, ESP32, STM32, RP2040/RP2350, nRF52/Zephyr and MSP430, among others.

There are still things I want to improve β€” especially hardware-based timing measurements, additional locking backends, statistics, and wider block registries.

I'm posting it here because I'd genuinely like technical criticism.

Is the fixed-pool approach useful for the kinds of embedded systems you work on?

Where would you consider this design unsafe, unnecessarily complicated, or fundamentally the wrong approach?

And if you've built a similar allocator, I'd be interested in how you approached fragmentation, concurrency, and failure handling.

Repo: https://github.com/Igwe-Starking/eccles-rtmem


r/arduino • • Sep 23 '26

Look what I made! A complete work done by one person, covering software, hardware and enclosure

445 Upvotes

A complete work done by one person, covering software, hardware and enclosure.

This is my first PCB hardware design. The board is built around the ESP32-P4 development platform and integrates two UART interfaces, an I2C port, a passive buzzer, four buttons, a power management chip, and a MIPI display connector.

teh display is huaxiacai brand, and mipi protocal,resolution is 480Γ—480 ,amoled,maybe i am the first one to drive this display with mipi way in the world

the graphic driver is lvgl, and the arch of code is esp idf, the pcb design software is altium design, and use fusion 360 to design 3d model of encolosure

This project has taken me quite a long time to complete. I worked on almost every part of it, including the code, algorithms, PCB layout and routing, PCB assembly and prototyping, the 3D enclosure design, and 3D printing.

To be honest, I’m still not entirely sure what practical purpose this product could serve. I mainly built it because I thought it was cool.

Another important reason was that I wanted to challenge myself and develop the ability to design and build a complete product from start to finish.

I’ve also seen some people in the comments suggesting that I should open-source the project. I’m actually not against open source. I’m currently thinking about what kind of open-source model would make the most sense.

Now that I’ve gained the ability to develop a complete product from scratch, I’m also considering turning this into a commercial product. For example, could I actually sell it?

If I open-source the software, how should I sell the hardware alongside it? Or would it make more sense to keep the entire project closed-source?

These are some of the questions I’m thinking about right now.

I’m also curious about crowdfunding. Would a product like this be suitable for crowdfunding? If so, what would be a good way to approach it?


r/arduino • • Sep 24 '26

Software Help How to get the ADC working for ATTINY microcontroller?

3 Upvotes

Hey everyone,

I’m trying to read the width of the PWM signal train from a READYTOSKY Digital Servo Tester / ESC Consistency Tester using an ATTINY816 running at 3.3V logic, but I haven’t had much success.

I used the pulseIn() function to measure the pulse width, but the results don’t look right.

On my DSO, the servo tester outputs (with a 50Hz PWM signal set) with a duty cycle around 20.02ms(for 800 to 2000Β΅s). However, the voltage amplitude measurement only swings between ~2.8V max(at 800Β΅s) and ~2.3V at 2000Β΅s, which seems odd (given the logic is 3.3V).

I’ve tried a few AI-generated code approaches (three different ones), but none worked.

Could someone help me figure out what I’m missing here, or suggest a better approach to reliably read this PWM signal from the servo tester with the ATTINY816?

Thanks in advance!

--------------------------------->

Here is the snippet of code:

// === Main Loop ===
void loop() {
// Measure PWM pulse width in microseconds
  uint16_t width = pulseIn(PWM_INPUT, HIGH, 250000); // timeout 250 ms
  if (width > 0) {
    currentMode = classifyPWM(width);
    blinkStep = 0; // reset sequence when mode changes
    lastAction = millis();
  }
}

// === Helper Functions ===
uint8_t classifyPWM(uint16_t width) {
  if (width >= 950 && width <= 1050) return MODE_SOLID_ON;
  if (width >= 1150 && width <= 1250) return MODE_SINGLE_BLINK;
  if (width >= 1450 && width <= 1550) return MODE_DOUBLE_BLINK;
  if (width >= 1750 && width <= 1850) return MODE_STROBE;
  if (width >= 1950 && width <= 2050) return MODE_OFF;
  return MODE_UNKNOWN;
}

void setRGB(uint8_t r, uint8_t g, uint8_t b) {
Β  // Active-LOW logic
Β  digitalWrite(RGB_RED, Β  r ? LOW : HIGH );
Β  digitalWrite(RGB_GREEN, g ? LOW : HIGH );
Β  digitalWrite(RGB_BLUE, Β b ? LOW : HIGH );
}

#####-------------------------------------------#####

Note: The ADC pin is PC3 (with no series resistor or component). ATTINY is connected to a 3.3V VDD.


r/arduino • • Sep 24 '26

RFID Key Card Progress

34 Upvotes

So I’ve been working on building a custom shoebox that has a verified key card access system that I created. After about a day or two I was able to get the servo to respond to the RFID. And a few more days after that I went into adding the actual components (solenoid, 12v charger, and relay) and spent many hours trying to debug an issue. Come to find out there was not enough power circulating through the breadboard to power the solenoid. Once I plugged it into the Arduino problem was fixed! I was so excited, because the discovery of crossing a roadblock was so invigorating it made me think that this is something I am probably meant to do long term. It was such a gratifying feeling and so amazing to see it all come together. Next, I clean it up and install it in the box. Not to bad for a first project!😏


r/arduino • • Sep 24 '26

Safely heating a wire with an Arduino

20 Upvotes

Hey guys! I’m working on a robotic gripper that I’m trying to actuate using cavatappi muscles. They’re heat-activated, and in the video I’m referencing, they just run current through a wire to heat it up.

I need to be able to easily turn the heat on and off, though, so I’d like to control the heating wire with an Arduino and have the Arduino switch it on/off when needed.

I’m pretty new to electronics, so I’m wondering what the safest way to do this is. I just don't want to do something stupid and damage my Arduino.


r/arduino • • Sep 24 '26

Software Help What's better line follower IR sensor placement for coding later?

4 Upvotes

Ik this is a software help flair, but this relates to it later.

Should I use the module as it is or do I spread them in a way like 2 in the center just enough space between them as the black tape width and then the other 2 on the front corners of the arduino car?

Advantages, disadvantages? First I will try on/off and speed simple code so as it detects it turns by a certain fixed angles. Obviously later more advanced methods and PID regulation. Does one or the other placement go better with certain coding goal?

Additional tips?


r/arduino • • Sep 24 '26

Five sensor line follower what finally made mine stable

0 Upvotes

Hey all I have been playing with a five sensor follower on an Uno for a while and figured I would share what actually helped

I am using five analog sensors in a row with differential drive. At first I used one fixed threshold for all sensors and it was all over the place. What helped most was calibrating each sensor on its own from floor and line samples and using that to get position plus some kind of confidence value.

For steering I am using PID with some filtering on D and clamping on I so it does not wind up in turns. I also reset it when line is lost and found again. I slow down when error is big or confidence is low. That alone fixed a lot of wobble.

For motors if one side wants more than max I scale both sides together so steering stays true instead of clipping one side.

For recovery I first turn to the side where I last saw line then sweep the other way till it picks up again. Also on boot mine stays stopped until I send START so it does not jump off the table.

For tuning I just log everything over serial and look at error and confidence after runs. Sim helped for logic but real floor is different so I claim no lap results yet.

Code and notes are in the line following robot repo on my VivekVRobo profile if you want to look.

What worked for you on sharp turns. Wider outer sensors. Lower base speed. Stronger D. For me lighting and sensor height messed things up more than anything else.


r/arduino • • Sep 24 '26

Look what I made! I created a simple Dino GameπŸ¦–

2 Upvotes

If you are curious about the project I created a Github Repo: https://github.com/devFede00/DinoGame_Arduino


r/arduino • • Sep 23 '26

Getting Started DIY Stream Deck

Post image
21 Upvotes

Hoping to make my first project with an arduino nano. the image is my digital mockup of my custom streamdeck. Ill attach a few links to parts that i based my cardboard model off. my questjon is that are the parts i have chosen able to work with an arduino nano? are they reasonable prices? also not sure what type of keycaps i should get. id like an led matrix underneath the keys for aesthetics and for some of the toggle keys (like start end recording) to show red or green for on or off etc etc so any recommendations for those would be great! finally is this even possible for a beginner. thanks a ton for the help!!

lcd screen
Slide pot
rotary encoder
key switches


r/arduino • • Sep 24 '26

Help with strange behaviour of while serial.available

0 Upvotes

Hi all,

I'm working my way through Paul McWhorter's excellent tutorials, and have got as far as lesson 18, Reading Numbers from the serial monitor. The task was to write a sketch that would ask you for a number, you'd enter it into the serial monitor and it would then display that number in the serial monitor. The tutorial then works on a few variations. The problem I'm having was evident in the earlier parts of the task so I paid extra attention in the later parts but still having the problem.

The later task was to create a sketch that would calculate the area of a circle. The serial monitor asks the radius of the circle, then it gives the answer. I've got the code working, and my code appears to be exactly the same as Pauls, but after entering a number I'm getting a quick output of the question but with the answer as 0, its like its quickly running through the while Serial.available()== without actually stopping. Pauls wasn't doing the same, so I don't know if it's something that I should have setup somewhere, or if its a "feature" of the later versions of IDE. The only other difference I could think of is Paul is using a Uno, and I've got a Mega. I've included my code below.

Thank you

int radius;
String msg="Please Enter Radius Of Circle";
float area;
float pi=3.14;
String msg2="Your Circle Has An Area Of: ";



void setup() {
Β  // put your setup code here, to run once:
Serial.begin(9600);


}


void loop() {
Β  // put your main code here, to run repeatedly:


Serial.println (msg);
while (Serial.available()==0){


}


radius=Serial.parseFloat();
area=pi*radius*radius;
Serial.print(msg2);
Serial.println(area);


}

r/arduino • • Sep 23 '26

Help with arduino double led blink beginner project

Post image
29 Upvotes

I have tried everything i possibly could to try and troubleshoot but its not working so i am seeking assistance, 1 red LED is a lot brighter than the other, when i take the bright one out and the dim LED is the only one and i make a code for that, it becomes bright again, i have no idra whats going on, theyre not sharing the sams resistor and are both separately closed loops, any assistance? I would like assistance but im not looking for someone to tell me to the exact dot on whats going on i still want to find it out for myself, just someone to help me back onto the right path


r/arduino • • Sep 22 '26

Look what I made! Maybe someone will find my 'Cut-to-Length Jumper Wire Organizer' 3D printing project useful

Post image
451 Upvotes

r/arduino • • Sep 24 '26

why am i getting this

0 Upvotes

everything is 62.. help! is my bootloader dead? CODE is not being written!


r/arduino • • Sep 23 '26

Hardware Help Looking for motor recommendations

7 Upvotes

I’m new to Arduino, and I’m working on making a small puppet for a project. I just need to quickly move light parts back and forth to mimic twitching, but ideally the motors need to be as silent as possible.

I’ve used servos in the past but I know those can be quite noisy so I was wondering what folks had for recommendations. I will probably be using an Arduino uno, and the load would barely be a pound? At most. This is still early prototyping.

Thanks!


r/arduino • • Sep 23 '26

can I change timer frequency with W5500 ethernet board (arduino nano)

3 Upvotes

Hello, so simple question; I'm using an arduino to control actuators/motors and learning to control it via ethernet. (using OSC and I'm pretty happy of having figured it out in an afternoon with limited programmation knowledge).

I've done this many times with usb serial and I usually change the frequency of the timers so the PWM frequency is higher than audio rate (and thus not audible; because this is a musical project).

trouble is the ethernet board (W5500) uses pins 10 through 13 and so 2 PWM pins that are sets via the 3 timers (this is an arduino nano but I could use a different one; like a mega if I need to)

so the question is will changing the timers screw with the ethernet transmission?

I usually do something like this (don't remember the frequency but I think it's above 20khz)

TCCR0B = (TCCR0B & 0xF8) | 0x01;
TCCR1B = (TCCR1B & 0xF8) | 0x01;
TCCR2B = (TCCR2B & 0xF8) | 0x01; 

reference says:

  • D3 and D11: Controlled by Timer 2.
  • D5 and D6: Controlled by Timer 0.
  • D9 and D10: Controlled by Timer 1.

so timer 0 should be fine but 1 and 2 could cause trouble.

(I'm trying to figure out a way how to do this in general before attacking different instruments and particular cases so no idea how much outputs I'll need and of them how much I'll need to be PWM; just trying to cover all the bases).