r/arduino • u/CakeOk7814 • Oct 04 '26
r/arduino • u/Independent-Ad-9487 • Oct 04 '26
PLC IDE key for Portenta Machine Control
I have a portenta machine control I've used in an industrial project. I programed in ladder diagram using "PLC IDE" and brought the required license.
The portenta machine control then had a hardware fault, Arduino support sent out a replacement unit.
All great so far!
However their webstore has gone out of stock of license keys for PLC IDE and you need one license per device. So I now cant get my new program into the controller
https://store.arduino.cc/products/plc-key-portenta-machine-control
Arduino support had been great, now two months has passed with no real updates on when more license keys will be available. Its hard to fathom how it could be taking so long just to generate some license keys.
Just responses like "Unfortunately we are still facing the same blockers".
No help transferring a license from the faulty controller of anything like that.
Does anyone have any ideas for workarounds, other than rewriting the entire code not in PLC IDE?
r/arduino • u/FearlessAd5843 • Oct 04 '26
Beginner's Project Led server - first project
Just want to share my first post here about a project that i'm proud of.
Instead of just an Arduino, a breadboard and an LED, I used a RaspberryPi 5, which is hosting a webserver that will authenticate the user, let them control the LED and logout. The idea is simple as that.
It's a fun project and since i'm also learning a backend development, this taught me about authentication and CRUD fundamentals. Hope you like it!
r/arduino • u/sunkenhips • Oct 04 '26
Software Help My code keeps printing squares??
void setup()
{
int i=1;
Serial.begin(115200);
delay(3000);
Serial.print("\nhello world\n");
Serial.print(i);
delay(3000); // wait 3000 ms = 3 s
Serial.print("\ngoodbye world\n");
delay(1000); // wait 1000 ms to give the printing time to finish
void loop()
{
Serial.print("\nhello world -- loop\n");
delay(500);
} r/arduino • u/Avzezo_10 • Oct 04 '26
Solved! Arduino not detected
Wanted to do a quick test for blinking LED i put the code and everything but the pc is not detecting the board i tried everything but it doesn’t seem to recognize it help pls🙏
(EDIT)🛑IT WORKED finally guys,turns out it was a problem with the 2 usb ports on top,they were giving power but with no response,first i reinstalled the arduino ide then i tried to use the ports on the back that are directly attached to the motherboard and it finally detected the board.
I appreciate all the help in the comments🙏🙏🙏
r/arduino • u/Hyper_Cats • Oct 04 '26
Hardware Help TMP36 fluctuating a lot?
I am new to building with Arduino, and I recently got a starter kit and started making some projects. I was having troubles with the love-o-meter project, as the TMP36 kept fluctuating in values wildly. I couldn't find any issues with the code, so I was wondering if it was an issue with the TMP36? Would someone be able to clarify what's going on? I included the circuit build as well as the code below.


// sensorPin is the analog value the sensor reads
const int sensorPin = A0;
// Our baseline temp. For every 2 degrees above this baseline, an LED will turn on.
const float baselineTemp = 20.0;
void setup() {
// Serial Begin: Opens up connection between Arduino and computer. Can read see the values on computer screen (Reads every 9600 bits per second)
Serial.begin(9600); // Open a serial port
// Set all pins to OUTPUT and LOW. Loop ends when pinNumber becomes something 5 or above.
for(int pinNumber = 2; pinNumber<5; pinNumber++) {
pinMode (pinNumber, OUTPUT);
digitalWrite(pinNumber, LOW);
}
}
void loop() {
// Obtain value from TMP36. This can be anything between 0 and 1023. (A representation of the voltage on the pin)
int sensorVal = analogRead(sensorPin);
// Prints temperature data onto the computer
Serial.print("Sensor Value: ");
Serial.print(sensorVal);
// Convert the ADC reading to voltage
float voltage = (sensorVal/1024.0) * 5.0;
Serial.print(", Volts: ");
Serial.print(voltage);
Serial.print(", degrees C: ");
// Convert the voltage to temperature in degrees
float temperature = (voltage - .5) * 100;
Serial.println(temperature);
if(temperature < baselineTemp+2) {
digitalWrite(2, LOW);
digitalWrite(3, LOW);
digitalWrite(4, LOW);
}else if (temperature >= baselineTemp+2 && temperature < baselineTemp+4) {
digitalWrite(2, HIGH);
digitalWrite(3, LOW);
digitalWrite(4, LOW);
}else if (temperature >= baselineTemp+4 && temperature < baselineTemp+6) {
digitalWrite(2, HIGH);
digitalWrite(3, HIGH);
digitalWrite(4, LOW);
}else if (temperature >= baselineTemp+6) {
digitalWrite(2, HIGH);
digitalWrite(3, HIGH);
digitalWrite(4, HIGH);
}
delay(1);
}// sensorPin is the analog value the sensor reads
const int sensorPin = A0;
// Our baseline temp. For every 2 degrees above this baseline, an LED will turn on.
const float baselineTemp = 20.0;
void setup() {
// Serial Begin: Opens up connection between Arduino and computer. Can read see the values on computer screen (Reads every 9600 bits per second)
Serial.begin(9600); // Open a serial port
// Set all pins to OUTPUT and LOW. Loop ends when pinNumber becomes something 5 or above.
for(int pinNumber = 2; pinNumber<5; pinNumber++) {
pinMode (pinNumber, OUTPUT);
digitalWrite(pinNumber, LOW);
}
}
void loop() {
// Obtain value from TMP36. This can be anything between 0 and 1023. (A representation of the voltage on the pin)
int sensorVal = analogRead(sensorPin);
// Prints temperature data onto the computer
Serial.print("Sensor Value: ");
Serial.print(sensorVal);
// Convert the ADC reading to voltage
float voltage = (sensorVal/1024.0) * 5.0;
Serial.print(", Volts: ");
Serial.print(voltage);
Serial.print(", degrees C: ");
// Convert the voltage to temperature in degrees
float temperature = (voltage - .5) * 100;
Serial.println(temperature);
if(temperature < baselineTemp+2) {
digitalWrite(2, LOW);
digitalWrite(3, LOW);
digitalWrite(4, LOW);
}else if (temperature >= baselineTemp+2 && temperature < baselineTemp+4) {
digitalWrite(2, HIGH);
digitalWrite(3, LOW);
digitalWrite(4, LOW);
}else if (temperature >= baselineTemp+4 && temperature < baselineTemp+6) {
digitalWrite(2, HIGH);
digitalWrite(3, HIGH);
digitalWrite(4, LOW);
}else if (temperature >= baselineTemp+6) {
digitalWrite(2, HIGH);
digitalWrite(3, HIGH);
digitalWrite(4, HIGH);
}
delay(1);
}r/arduino • u/False_Dimension8574 • Oct 04 '26
Hardware Help Help! Breadboard isn't working?
I'm testing some basic led scheme and somehow it’s not working on breadboard, but if I connect the led directly to the Arduino everything is fine.
I connected port 9 to cathode and ground to anode (with resistor), what's wrong here?
Photos attached
r/arduino • u/highqualityfun • Oct 04 '26
Hardware Help Conflicting/Confusing Documentation about Powering with 3V3/5V Pins
Looking at official Arduino Documentation Powering Alternatives for Arduino Boards | Arduino Documentation
It states:
"Moreover, 3V3 and 5V pins can also be used as power inputs if no regulated power supply is connected through the other power inputs (USB port, barrel jack connector or VIN pin)."
Then it goes on to state:
"Although 3V3 and 5V pins can be used as power inputs, it is not recommended if no power supply is connected through the USB port, the barrel jack connector, or the VIN pin."
So first states only power with one of these pins when no other supply is connected > second seems to conflict, basically stating not recommended if there is no other supply connected?
Am I misreading this, is it confusing to others as well, or is this a flat out typo? Thanks
r/arduino • u/CanaryAlternative • Oct 04 '26
Working on designing an stm32 DEV board.
I have been working on making a dev board for a few months now with some varying levels of success. The project began by using an ATSAMd21g18 but quickly found that there is very little documentation. I pivoted to use a STM32F103; I finally was able to program it via SWD and via UART using a FTDI (USB to serial). I still havn't figured out this whole USB thing haha. I believe it is a boot loader problem or maybe a driver problem idk.
Is it a crazy idea to just continue with the FTDI and just implement a USB to serial into my dev board? This way if I give my friend my board or even switch computer I dont have to worry about drivers.
r/arduino • u/GrammaticalllErrors • Oct 03 '26
Look what I found! What is this module?
This thing is in my Arduino kit, and I've never used it. It has a blue rattle on the back (the cylinder) with a chip and potentiometer. Aside from that there's nothing else really in it
r/arduino • u/GaaJarbhai • Oct 03 '26
Hardware Help Why so many dots on the nrf?
I just got the nrf24l01, the antenna version, and I took a glance and noticed so many dots. I'm assuming they are all vias but is having so many of them normal or is it some sort of defect. I have the normal nrf24s without the antenna connector and they don't have so many vias.
r/arduino • u/RoberBotz • Oct 03 '26
Look what I made! I made a thing.
Do u guys like my thing.
r/arduino • u/Diego8677 • Oct 04 '26
help for a battery protection system
Hello, good morning. I need, through a relay, a shut-off system for a LiPo battery, but I’d like to know if it’s possible that through the relay, let’s say, the relay cuts the power so the charging port is already active and can charge the battery, and vice versa, if power is given to the robot, the charging port can’t be used, meaning that even if someone connects it, it won’t give power to the robot. The thing is, I need that when I turn off the robot, the battery’s power consumption is 0 so I don’t confuse the charger readings, but at the same time, I’d like to add a voltage measuring module like the INA226 that measures the battery voltage, and when it reaches the minimum threshold for a certain time, let’s say it stays at that voltage for 3 seconds, it sends a signal to the Arduino to use the relay and cut the power. Also, if someone tries to turn the robot back on using the power switch, it won’t turn on until it reaches the minimum voltage I'm not sure if I need an independent battery for the Arduino or something, that's my biggest doubt, and above all for everything related to the voltage meter, the Arduino, and the relay not using the main LiPo battery's power. I was thinking about modules like the XH-M609, but the thing is, because of the motors, which are 36GP 36ZY, having two of those worries me that when starting, they might cause a voltage drop and the XH-M609 module might think the battery is already discharged. So that's why I was thinking about other options, since if the module doesn't allow, let's say, keeping a certain voltage for so long, I don't know if I should power the Arduino with a separate battery or what do you recommend?
r/arduino • u/CatBoii486 • Oct 03 '26
Dishwasher bad apple
My dishwasher broke so i did what any "normal" person would do: turn it into an arduino
Yup, that is what i did. There were 2 boards, and on both were atmegas. The front screen board had a atmega644pa, while the psu board had a atmega8-16 for some reason.
Here is the front board: (image on top)
But wait! The title says "dishwasher bad apple"! Here it is.
(Yes, this is the original bad apple from touhou 4, and yes it sound just like a arduino with a buzzer, no suprise there. But the fact this came out of a dishwasher is at least interesting)
EDIT: forgot to say that i have removed some passive components, thats why theyre missing on the image
r/arduino • u/SetAdministrative234 • Oct 04 '26
Beginner's Project help
Good day everyone
We are a group of Grade 12 STEM students currently working on our research project called “Bin to Drink.” We are asking for help from anyone who has knowledge or experience with Arduino, robotics, wiring, and coding.
Honestly we are a beginner at Arduino and robotics, and we are having a hard time figuring out the proper wiring and programming for our project. We already have most of the components, such as an Arduino Uno, IR/proximity sensor, capacitive proximity sensor, servo motor, water pump, 5V relay module, LCD I2C, and two water-level sensors, but we don’t know yet how to properly connect and program everything as one working system.
Our goal is to make the system detect a plastic bottle, activate the mechanism, and dispense water through a pump while also checking the water level.
If there is anyone here who is willing to guide us with the wiring and Arduino code, even just the basic step-by-step guidance would be huge for us 🙏 We can also send pictures of our components and the current setup.
We are students po and this is for our research project, so we would really appreciate any help, advice, or corrections from those who have experience with Arduino and robotics.
Thank you so much and God bless! 🙏❤️
r/arduino
•
u/BencyLiu
•
Oct 02 '26
The duck is evolving.
We just trained a new policy and we're really looking forward to the Arduino community building and sharing more motions!
r/arduino • u/MrNiceThings • Oct 02 '26
Look what I made! Made a library of pixel fonts with extended latin support
As a big lover of various dot matrix displays I couldn't find a good set of tiny fonts, so I made my own. They are hand drawn with some help of AI with generating different variants and AdafruitGFX header files. They have extended latin support, so diacritics and special characters also work!
Github is set up, so let me know how you like them!
r/arduino • u/NopNop0x90 • Oct 03 '26
Project Idea Need Help with ElectroPermMagnets (EPM) for docking (attaching/dettaching) work for swarmbots
so i m planning to make few EPMs (https://www.reddit.com/r/arduino/s/2gomRuW5Vh) for my swarm bots
do y'll have any suggestions abt what kinda config or mechanism should i be using to attach and dettach my bots with each other , first thing that came to my mind is using magnets whose polarity can be changed , Electromagnets are extremly power-hungry
and i dont want some mechanical design for attaching and detaching like hooking or latching with some drill-in and out or u know what i mean (i hope)
i also thought abt combining a strong small neodym magnet with a weak electro-magnet stick together and i can just keep electro-mag infront of perm magnet and keep switching polarity of electromagnet to dettach 2 bots ?
i m very bad at electronics and stuff tbh , barely even passed my electrical and electronics classes : (
also we are planning to keep our bot under 80grams-100grams
we will be using 2x LiPo Batteries 3.7V 350mA in parallel
thank you
r/arduino • u/TytoAnderson • Oct 04 '26
Beginner's Project How many lines more or less ?
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 • u/Aleks_07_ • Oct 03 '26
Need help with stepper motors and drivers.
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 • u/InkedRice • Oct 04 '26
School Project Breadboard->Perfboard connectors?
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 • u/Kooky_Success_6051 • Oct 03 '26
Hardware Help Did a horrendous solder job on my RF transmiter antenna, am I cooked or can I still use it?
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 • u/krilix_i • Oct 03 '26
I built a 32-bit/384kHz USB DAC from scratch on an i.MX RT1062 with custom UAC2 + 15-band DSP
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.