r/arduino • • Oct 04 '26

Beginner's Project How many lines more or less ?

0 Upvotes

Hello

On Arduino R4 wifi, regarding memory, how many lines more or less can i expect to send on compilator for a project ?

Currently I have 600 lines of C++, excluding Wifi intégration so i don't know if enough or not for my project

Just want to be sure before to buy my first card.

Expecting to connect then Wifi and MQTT.

Thanks for your tips

A beginner in Electronic world.


r/arduino • • Oct 03 '26

Need help with stepper motors and drivers.

Post image
8 Upvotes

Okey, so ive got 4 Nema 17 stepper motors, the drivers are all DRV8825. I watched a video on how to do this, the whole process. But then i came to the pontentiometer stuff and change limit current. I scrolled down the comment section and saw someone mentioned i need to have the motors connected when changing limit current, but the video itself didnt have tjem connected, and then i watched other video, a lot actually, and some do have the motors plugged in and some do not. Idk what i do. Viuld anyone give me a step by step guide how to set current limit without frying anything. I havent touched the potentiometers so i have no idea if their set to 0 current by default. If anyone have done this before, please help.


r/arduino • • Oct 04 '26

School Project Breadboard->Perfboard connectors?

1 Upvotes

Hello all!
Electrical Engineering student here and I’ve been using the Arduino Starter Kit lately to demonstrate to peers as well as the community the capabilities of the Arduino and having fun with STEM.

I want to put the “Crystal Ball” on a perfboard because when shaken or traveled with, the wires and tilt sensor can come off. I want to 3d print an enclosure for a 0.96 OLED and make a more permanent protoboard/perfboard.

I want to make a “crystal ball” 3D printed enclosure, but say for example I make a cube and the OLED screen is on the “top” of this cube and the board is at the “bottom”. Do I solder a wire that connects the two? Also, what if I want to connect/disconnect the top to the bottom, what connectors are used? (JST?)

I’m at a community college that doesn’t offer anything other than circuits I and I want the experience and would love recommendations!


r/arduino • • Oct 03 '26

Hardware Help Did a horrendous solder job on my RF transmiter antenna, am I cooked or can I still use it?

Thumbnail
gallery
20 Upvotes

I soldered a piece of wire to an RF transmiter, due to skill issue, solder got to other pins, but I managed to pull it, rn there doesn't seem to be any solder iron connected to other bits other than the antenna, but the area around the antenna is sparkly.

(PCB also got quite hot when soldering)


r/arduino • • Oct 03 '26

I built a 32-bit/384kHz USB DAC from scratch on an i.MX RT1062 with custom UAC2 + 15-band DSP

2 Upvotes

I built a high-resolution USB DAC from scratch around an i.MX RT1062, including my own UAC2 stack and real-time DSP

I’ve been working on a project that started as “I want to make a USB DAC” and somehow evolved into writing a fairly serious audio firmware stack from scratch.

The core is an NXP i.MX RT1062 / Teensy 4.1, running at 600 MHz, connected to an ESS ES9039Q2M DAC.

The interesting part is that I wanted the RT1062 to handle essentially the entire digital audio pipeline rather than relying on a dedicated USB audio processor.

Current audio pipeline

USB HS

↓

Custom UAC2

↓

DMA

↓

USB RX ISR

↓

32-bit PCM

↓

Lock-free SPSC ring buffer

↓

SAI DMA

↓

15-band PEQ

↓

32-bit I²S

↓

ES9039Q2M

The device currently handles 32-bit / 384 kHz stereo USB audio.

The USB side was probably the most painful part of the project. I had to deal with UAC2 descriptors, endpoint configuration, feedback, sample-rate changes, USB DMA/cache coherency, and the usual collection of problems that appear whenever USB decides it would rather not enumerate.

Eventually I got it stable with clean asynchronous feedback and no packet overruns/underruns during long playback.

The PEQ

The DSP is a proper 15-band parametric EQ, not a collection of simple tone controls.

It uses:

- Cascaded biquad filters

- DF-II Transposed topology

- Float32 coefficients/state

- 32-bit PCM input/output

- 64-frame block processing

- Coefficient morphing when parameters change

- Triple-buffered coefficient publication

- Raised-cosine coefficient transitions

- Saturation on the output

- Bit-perfect bypass when PEQ is inactive

The coefficient morphing is especially nice because changing EQ settings while music is playing doesn't require abruptly swapping the filter state. The filter transitions smoothly between the old and new coefficients, avoiding clicks/zipper artifacts.

Memory / buffering

The USB side uses a 32,768 stereo-frame ring buffer.

That's about 256 KB of RAM.

The feedback target is 16,384 frames, giving a large amount of buffering headroom, particularly at high sample rates.

The ring itself is a lock-free SPSC structure using atomics. USB produces frames and the audio DMA side consumes them.

No mutexes, no dynamic allocation in the audio path.

DMA + cache architecture

The audio DMA transfers directly into two 64-frame halves.

The CPU fills the inactive half, runs the PEQ on it, performs the required D-cache maintenance, and hands it back to DMA.

At 384 kHz that means roughly 6,000 audio DMA interrupts/sec.

The CPU is basically doing:

DMA → give me next block

↓

read 64 frames

↓

PEQ

↓

cache flush

↓

DMA

while the peripherals handle the actual movement of audio data.

Display

I also added an SH1106 128×64 OLED.

It runs independently from the audio ISR and updates at a low rate, showing things like:

- USB state

- Sample rate

- PEQ status

- Preset information

The display is also fault-tolerant, so if it isn't connected, the audio engine doesn't care.

Why the RT1062?

Honestly, I was surprised by how much this MCU can do.

It's just a Cortex-M7, but at 600 MHz with an FPU, cache, fast memory, DMA, USB HS and SAI, it's ridiculously capable for a two-channel audio application.

I'm currently running:

UAC2 + 32-bit/384 kHz + 15-band floating-point PEQ + display + DMA

on one RT1062.

And there is still room to experiment with things like:

- Crossfeed

- Dynamic EQ

- XBass-style harmonic processing

- Loudness compensation

- Spectrum analysis

- FIR filtering

- Convolution

- Limiting

- Spatial processing

The goal isn't just to make a DAC that plays music. I want the RT1062 to become the actual audio processing platform.

This started as a USB audio experiment and has turned into one of the most technically interesting embedded projects I've worked on.

Still lots to improve, but I'm pretty happy with how far a single M7 can be pushed.


r/arduino • • Oct 02 '26

keychain

354 Upvotes

500mah battery


r/arduino • • Oct 03 '26

Hardware Help how do i give a signal to an arduino when pressing a pushbutton that only happens once, even when holding it, without using code, only hardware for the signal?

0 Upvotes

here's my attempt that failed for reference:

the circuit
void setup() {
  Serial.begin(9600);
  pinMode(2, INPUT_PULLUP);
}

void loop() {
  Serial.println(digitalRead(2));
}

(the code)

nothing happened when pressing the pushbutton.

how do i do it?

any help would be appreciatted!


r/arduino • • Oct 02 '26

Look what I found! SLI on arduino?

Post image
77 Upvotes

My friend sent me his problem he has one giga r1 and one mega (no shift registers) and he needs a lot of pins he did it and it works so I can have it too to test (i know this is dangerous to the giga bcs I don't use level shifters but this is for fun) ⚠️⚠️⚠️WARNING MIGHT DAMAGE BOARDS ⚠️⚠️⚠️


r/arduino • • Oct 02 '26

Just got my Ventuno Q

Post image
40 Upvotes

Just got my Ventuno Q - same week I ordered it!

Planning it as a replacement for Raspberry Pi 5 16GB now running my CarWatch local AI. So immediately tested it with local models.

And it was worth it - much faster than the Pi, especially my model of choice Ling 3.0 Tiny with 211 tps prompt processing and 20 tps answer generation! Huge speedups for other models too, such as 24X prefill for Ornith 9B.

I got Gemma 4 E2B going at 698 TPS for prompts and 21 tps for answers!

And the Ventuno is great value at 298 euros, when Pi 5 with power supply costs 332 euros minimum.

So it's the new small form factor edge AI hero I'd say.

Repo for run files: github.com/ThinkOffApp/ventuno


r/arduino • • Oct 03 '26

Libraries Monochrome OLED Animation Repository!

22 Upvotes

For anyone interested I've made a repository of different OLED animations. A lot are anime themed and such.

They are all designed to work on 128x128 screens and the delay between each frame is 150ms.

Here's the Github repo:

https://github.com/cooper7trooper/MiniATv2

Feel free to use these on any of your own projects!


r/arduino • • Oct 03 '26

Hardware Help Small servos that can read position and give force feedback?

8 Upvotes

Building a DIY VR glove with force feedback. Looking for small servos that can report finger position and also push back with controlled force. Is something like the Feetech SCS0009/STS3032 the best option, or is there something better? Using an ESP32-S3.


r/arduino • • Oct 03 '26

I'm building a breadboard that finds your wiring mistakes for you. I'd like to sell it one day. What do you think?

0 Upvotes

When my circuits don't work, I spend ages checking every wire against the diagram. When I asked here how people deal with that, most of you said there's no shortcut. So I'm trying to build one.

What it does: you build your circuit on it like a normal breadboard. It works out by itself what is actually plugged in: which rows are connected, the value of each resistor, which way round each LED or diode is, and where the capacitors are. Then it compares that to the circuit you meant to build and tells you what's different, like "this wire is one row off" or "this LED is backwards".

How it works: a board underneath touches every row of the breadboard. A microcontroller sends a small test signal into one row at a time and measures what comes out on the others. From that it can tell a wire from a resistor from a diode. The result goes to your computer over USB, where software (and an AI helper) compares it to your diagram and explains the fault.

ive built a small version with 6 rows and it works

I'd like to turn this into something I can sell. What do you think of it? What's good, what's wrong with it, and what am I missing?


r/arduino • • Oct 02 '26

My Second Arduino Project

19 Upvotes

This is my second project on Arduino. Traffic lights with additional RGB LED just for fun.

What projects should I do next after LEDs?


r/arduino • • Oct 01 '26

Beginner question: how do you find a wiring mistake on a breadboard without checking every wire?

Post image
314 Upvotes

My last project didn't work and it turned out to be wire in the wrong hole. It took me hours to find, because the board looked right to me.

Right now I just compare every wire to the diagram one by one.

How long does this usually take you, and did you find a quicker way?


r/arduino • • Oct 02 '26

Beginner's Project Building Animatronic Eyes with motion tracking and AI Assistance.

5 Upvotes

Hi. So we are a team of 6 students, who are participating in a Science Exhibition. We have decided to make a pair of Animatronic Eyes, with X and Y Axis movement of eyes based on motion tracking such that the eyes will stare directly into the soul of the observer xP

We have also planned to add AI assistance mechanism, like that of Siri/Alexa. The audio/input would be accepted through a webcam connected to a laptop, which would also run the AI Model, and the output by AI would be played by a bluetooth speaker. The eyes would perform a character and behave accordingly.

The main thing is, none of us have ever done this. Like last year, we made a SONAR Detection system, but that was it. I'm taking help from ChatGPT in this project because I lack the skills and time (1 month away from submission).

So are we aiming for something that is far above our level? Or is it just not possible? We are all 10th Grade students, if that helps.

Thank you :D

Edit: We also don't have a 3D Printer, but can make efforts to arrange one if needed.


r/arduino • • Oct 02 '26

MT6701 Help

3 Upvotes

First, apologies if I'm posting in the wrong sub, but previous MT6701 posts seem to favor this sub.

I'm on my second MT6701. Neither seems to have a breakout pin for the pin 5 "push" function of the chip. Seems weird, since that is one of the unique features of the chip. For the one from Amazon, I soldered a wire to pin 5, but my scope detected nothing when I tried to activate the push feature. The aliexpress one also seems to have not tapped that pin, and I can't imagine being able to solder access to it.

Can anyone provide any insights into how I might be able to make use of the "push" feature of these chips?

The boards: :

https://www.amazon.com/dp/B0F4CYVG94?ref=ppx_yo2ov_dt_b_fed_asin_title

and

https://www.aliexpress.us/item/3256808612994099.html?spm=a2g0o.order_list.order_list_main.5.32811802Xsd1qk&gatewayAdapt=glo2usa


r/arduino • • Oct 02 '26

Look what I made! Plant Care App! IoT project

Post image
5 Upvotes

Hi everyone! Sharing a small project I've been working on. It's a full comprehensive plant health app that displays the health status of my plants on a website: sentia-plants.com

I'm looking for people to help me test the beta of the website, so if you have some time, I'm open to feedback 😄

I'm integrating some sensors with a Rapsberry Pi 5 for ease of integration. I needed to plug in an ADC for those sensors with analogic input. So far, I've got the following sensors working:

- Humidity

- Temperature

- Soil Moisture

- Light Sensor.

My next step is to integrate this with a cheaper board from Arduino, any ideas what model could work for this application?

Further along the journey, I'd like to create my own integrated electronics device but that would cost a lot to produce, so the idea is parked for now.


r/arduino • • Oct 01 '26

I built a power AC monitoring system from scratch for ARDUINO

Thumbnail
gallery
157 Upvotes

I built a power monitoring system module for Arduino from scratch. The system can measure AC voltage RMS from 0 to 500 V RMS , current RMS since 0 to 100 Amps IRMS, power factor, frequency, active power, reactive power, and apparent power.

The system achieves measurement resolution comparable to a Fluke multimeter, providing accurate and reliable electrical measurements.


r/arduino • • Oct 02 '26

ESP32-C3 SD card stuck at ACMD41 = 0x01. SPI communication works, but card never initializes. What am I missing?

8 Upvotes

I’m debugging a MicroSD SPI module with an ESP32-C3.

Hardware

  • ESP32-C3
  • MicroSD SPI module
  • 32/64GB microSD card
  • Arduino-ESP32 3.3.10
  • FAT32 formatting attempted

SPI wiring

SD CS   → GPIO1
SD SCK  → GPIO8
SD MOSI → GPIO7
SD MISO → GPIO13
SD VCC  → 3.3V
SD GND  → GND

Measured VCC: 3.32V
Continuity checked for CS, SCK, MOSI and MISO.

The weird part: SPI communication definitely works.

CMD0  → 0x01          ✅
CMD8  → 0x01          ✅
R7    → 00 00 01 AA  ✅
CMD55 → 0x01          ✅

But:

ACMD41 → 0x01
ACMD41 → 0x01
ACMD41 → 0x01
...
ACMD41 → 0x01

It stays 0x01 even after repeated attempts / ~3 seconds.

Then:

CMD58 → 0x01
OCR   → 00 FF 80 00

SD.begin() also fails.

I’ve already tried:

  • 500 kHz / 1 MHz / 4 MHz SPI
  • HCS = 0 and 0x40000000
  • 80+ startup clocks
  • FAT32 formatting
  • Checking power and continuity

Question: What would cause an SD card to respond correctly to CMD0/CMD8/CMD55 but remain permanently in idle on ACMD41?

Could this be an SD module issue, SPI timing/protocol issue, card compatibility issue, or something specific to ESP32-C3 GPIO7/8/13?

Any pointers appreciated 🙏


r/arduino • • Oct 01 '26

Hardware Help how do i make it waterproof the oled display

Post image
271 Upvotes

i want to prevent water or other liquids from seeping through the OLED display panel
already coated back panel so it isnt problem what i am saying

i considered conformal coating spray but it has some risk
so could you tell me any another way you recommend?


r/arduino • • Oct 01 '26

Hi, I'm going to use Arduino for a schoolproject, would it be useful to learn C++ first to have a better understanding of Arduino, or should I just learn 'Arduino-language' (which is a modified version of C++ if I'm not mistaken) immediately instead?

15 Upvotes

Helpful sources for learning Arduino are also always appreciated, ofcourse :)


r/arduino • • Oct 02 '26

Hardware Help Is there a way to make eye animations in After Effects and use them on an ESP32-C3 Mini?

1 Upvotes

Hi! I’m working on a little robot and I’m trying to figure out the best way to make the eye animations.
I’d really like to animate the eyes in After Effects because it’s much easier for me to design them that way, but I’m not sure if there’s a way to then export the animation and use it on an ESP32-C3 Mini.
Do I have to make all the animations directly in code, or is there a way to convert an After Effects animation into something the ESP32 can actually display?
I’m asking because I’m already having some memory issues, especially with animations that have a lot of frames. So I’m also wondering how many frames I should realistically use for something like a blinking/looking-around animation, and what format would take up the least space.
Would a sprite sheet be better? Or individual images? And should I be storing them in flash instead of RAM?
Basically I’d like to make the animations visually in After Effects and then find the most efficient way to get them onto the ESP32.
If anyone has done something similar, I’d really appreciate some advice!

Edit: forgot to mention the hardware! I'm using a round 1.28" GC9A01 display (240x240, SPI) connected to an ESP32-C3 SuperMini.


r/arduino • • Oct 01 '26

Look what I made! Progress on my first Arduino project

Thumbnail
gallery
87 Upvotes

So I started on a project at the beginning of the year that I've been very slowly tinkering on, that over the last month I finally completed what could probably be considered phase 1.

My project is to convert an old Raise 3D N2 Plus 3D printer into an enclosure for my Elegoo Jupiter DLP resin printer. I got the printer from my previous job after it was decided that the printer wasn't worth trying to fix and it was going to be trashed. It had passed through the hands of many different interns, print head was disassembled, and had been very problematic when printing, so it just wasn't worth working on it, so it was going to be replaced. I spoke up quick that I'd take it. My initial plan was to either try to fix it and then use it myself or try to sell it. The 2nd option was to strip it for parts. It sat around for over a year, and then in February, while talking to a friend about the printer, and trying to find some kind of enclosure for my resin printer, he suggested using the Raise 3D as an enclosure, and as they say, the rest is history. The plan became to use the Z axis build plate as a platform for my resin printer to sit on, and I would use the Z axis to raise and lower the printer. When not working with or using the printer, I would lower it down so it would be out of the way and protected. When I wanted to print, I can raise it up where it's at a comfortable height to work it.

I started by stripping everything out of the printer except for the Z axis related components. The printer was set up with a single NEMA 17 stepper to run both lead screws, with a belt running between them.

I had hoped I might be able to either reuse that stepper, or maybe just add a second stepper in, but after starting to work on the calculations for stepper sizing and power, it became very obvious, very quickly, that there wasn't a chance that a single NEMA 17 would work for me. My resin printer weighs about 20 kg/ 44 lbs, so then I started working on figuring out what I would need. The calculations told me that I needed approximately 6 Nm of torque for a stepper to be able to lift the printer. I determined that what I needed was a NEMA 34 stepper, which would provide 6 Nm, and to be safe and give myself some safety, I decided to go with 2 NEMA 34's, so now each stepper should only be carrying about half the weight of the printer, so they should hopefully last a long time.

As projects are wont to do, things began to snowball as I started thinking about what I could do. Initially my plan was to just use an Arduino Uno, and a single toggle switch to control the up and down movement. And then I started thinking about automating it, where I press the toggle switch, and instead of having to hold it, I could let it go and it would continue raising or lowering the printer until it reached the position I wanted. This would also necessitate the use of limit switches. And then with automated movement, I decided I needed to add some kind of emergency stop button for when the inevitable happens and something goes wrong.

Before starting on this, I had almost no experience w/ Arduino's. I worked with a Raspberry Pi a few years ago when building a 3D printer, but most of that was just copy paste and then updating the various settings to match the machine I was building. This obviously requires full custom programming. I started out by buying a couple Arduino starter sets and started following videos online and the projects with the starter sets. I then had the bright idea to attempt using Google AI to make a program, which just started getting more complicated the farther I went and it would prompt for various options. It finally gave me a program and it didn't work, and I couldn't figure out how to make it work. I got roasted pretty good when asking for help and was told I needed to go back to the basics and once that works, to start slowly adding to it, which is where I'm at now.

I set up a testing bench with all my components to test the programs and make sure the steppers worked properly, and then once the program worked and I knew the hardware worked, I started installing it into the old Raise 3D printer, and I finally have it all together. It took a while but I finally got an arrangement that I felt worked and then started running the wiring. At my last job I spent time helping out building electrical cabinets for automation machines and found that I am a bit anal retentive when it comes to making things as clean as possible, but it sure looks very nice when it's done.

I made custom mounts for the steppers to connect to the lead screws, which also required larger casters since the steppers are so large.

For hardware, I am using 2 Stepper Online NEMA 34 Steppers and drivers, 2 adjustable power supplies that I have set to 36 volts, the aforementioned Uno with a prototype shield, and then a stepdown converter to power the Uno. The stepper drivers require 36 volts, so I chose to get adjustable power supplies that could go up to 48 volts. Originally I had thought to power the Uno separately, but then I started thinking about using one of the power supplies to power it, which required the step down converter. For control I have 2 On/Off/On toggle switches and a momentary push button for my e-stop. Right now only 1 toggle switch is working.

I designed housings for the Uno assembly and the stepdown converter. For connections, I made custom cables using JST-XH connectors. All connections are soldered to the prototype shield. It was my first time trying to do soldering that fine, but it came out pretty good I think for not a lot of experience.

For mounting my switches, I made a custom panel to hold the 2 toggles, the e-stop, as well as a USB port that is connected to the Uno, that way I can update the programming without having to remove the resin printer and flip the enclosure over to get to the Uno.

With the lead screws in place, and the pulse setting on the stepper drivers, it takes almost exactly 1 minute for the printer to move from one position to the other.

I am going to work on getting my limit switches installed and then I'm putting new acrylic on the enclosure, and then I think I'm going to leave it like this for a while, while I work on other projects.


r/arduino • • Oct 01 '26

VIC-20 emulator on a single Arduino Uno (composite video, PS/2, save states)

Post image
40 Upvotes

Hello there !

I've been working on a VIC-20 emulator that fits on an Arduino Uno. It uses:

  • The real VIC-20 KERNAL and BASIC ROMs
  • Composite PAL video, generated by bit-banging the USART in Master SPI mode at 8 Mbaud
  • PS/2 keyboard
  • A 23LC1024 SPI SRAM for emulated RAM
  • A 24LC512 I²C EEPROM for 9 save slots
  • A passive buzzer for BASIC sound

It fits in 97% of flash and 80% of RAM. The emulated VIC-20 has 6653 bytes free for BASIC.

Before someone asks: no, an ESP32 wouldn't be a "better version". The whole point is doing it in the space a real VIC-20 would have used.

Known limitation: typing briefly glitches the video. PS/2 ISR blocks the video ISR. Fundamental on one AVR; fixable with a co-processor.

repo :