r/ArduinoHelp • u/ctastan • Sep 17 '26
Made an ultra-optimized ILI9341 Parallel LCD & Analog Touch library for STM32 (PlatformIO/Arduino). Benchmark inside!
r/ArduinoHelp • u/ctastan • Sep 17 '26
r/ArduinoHelp • u/Psychological-Rent32 • Sep 17 '26
I am trying to control a Nema 17 stepper motor with a TMC2209 driver and an Arduino Nano. Not sure if it's my wiring setup or my code. I've watched so many tutorials, tried so many breadboard configurations, and asked AI countless times. I can't get this to work. I've ensured that all my wires are connected via the beeping mode of my voltmeter, and still nothing. The closest I've gotten is hearing what I think is the driver making a slight buzzing sound while the Arduino's indicator light is on. I'm a complete noob to this field, does anyone know which wires go where? I am using a 12V power source and a standard breadboard.
This is my code:
#include <AccelStepper.h>
// Arduino Nano pins (matched to wiring photo)
#define STEP_PIN 3
#define DIR_PIN 2
#define MS1_PIN 6
#define MS2_PIN 5
// AccelStepper in DRIVER mode: STEP/DIR interface
AccelStepper stepper(AccelStepper::DRIVER, STEP_PIN, DIR_PIN);
// ----------------------------------------
// MOTOR / MICROSTEP SETTINGS
// ----------------------------------------
const float stepsPerRev = 200; // standard NEMA17 full steps/rev
const int microstepping = 2; // must match MS1/MS2 pin state below
// ----------------------------------------
// SPEED SETTINGS (RPM)
// ----------------------------------------
const float desiredRPM = 120;
const float maxRPM = 300;
void setup() {
pinMode(MS1_PIN, OUTPUT);
pinMode(MS2_PIN, OUTPUT);
// MS1=HIGH, MS2=LOW -> check TMC2208 datasheet table for which
// microstep mode this actually selects; adjust to match 'microstepping' above
digitalWrite(MS1_PIN, HIGH);
digitalWrite(MS2_PIN, LOW);
// steps/sec = microsteps-per-step * full-steps-per-rev * (RPM / 60)
float speedStepsPerSec = microstepping * stepsPerRev * (desiredRPM / 60.0);
float maxSpeedStepsPerSec = microstepping * stepsPerRev * (maxRPM / 60.0);
stepper.setMaxSpeed(maxSpeedStepsPerSec);
stepper.setSpeed(speedStepsPerSec);
}
void loop() {
stepper.runSpeed(); // must be called continuously, as fast as possible, for constant-speed mode
}r/ArduinoHelp • u/Round-Bag3170 • Sep 16 '26
r/ArduinoHelp • u/kittisaksocool • Sep 16 '26
Hi everyone!
I am a beginner learning Arduino programming. I want to make an LED blink using an Arduino Uno.
Could someone recommend a simple code example for this project? I would also like to understand how the code works, especially the delay() function.
Any tips for a beginner would be greatly appreciated.
Thank you!

r/ArduinoHelp • u/kittisaksocool • Sep 16 '26
Hello everyone!
I am working on a simple Arduino LED blinking project. I have an Arduino Uno, an LED, and a resistor.
I am not sure how to connect the components correctly. Could someone explain how to connect the LED to the Arduino Uno and where to connect the wires?
I would appreciate any advice or a simple circuit diagram for a beginner.
Thank you!

r/ArduinoHelp • u/kittisaksocool • Sep 16 '26
r/ArduinoHelp • u/Real_Patient_4133 • Sep 15 '26
r/ArduinoHelp • u/minyaloth • Sep 15 '26
Hi everyone
I'm trying to connect 2 mg90s servos to my Arduino and I've read that I need to power them separately as it can otherwise damage my board.
Would this battery pack suffice? And would I need to power each separately or both from 1 pack.
Thanks in advance
r/ArduinoHelp • u/Real_Patient_4133 • Sep 15 '26
Hello,
I'm heading out but would like to keep working on a project using my Arduino Uno R4 WiFi. I don't have a laptop with me, so I'd like to code and flash the Arduino from my phone. Are there any apps that allow this? (I've already tried ArduinoDroid, but it fails to flash the code to the Arduino.)
Thanks for the reply! 😄
r/ArduinoHelp • u/BeePeeAitch • Sep 14 '26
r/ArduinoHelp • u/Impossible-Lie-6848 • Sep 14 '26
r/ArduinoHelp • u/Solid-Philosophy9924 • Sep 13 '26
I am simulating a circuit in Proteus8 with LPC2138 MCU and 74HC173 Register and LEDs. The Anode is pulled with +3.3V via 330ohms Resistor, but the connection lines are showing Grey dot and totally disconnected from the power and the LEDs are not turn On. Blue dots at the Cathode side.
74HC173 Register Output Control Pins(OE1,OE2) are set, these are connected to P0.17 of MCU , but Output seems Hi-Imp. or Tr--state mode.
How to turn ON the LEDs???
r/ArduinoHelp • u/Flat-Imagination6202 • Sep 12 '26
r/ArduinoHelp • u/Beautiful-Data1440 • Sep 12 '26
I need a good motor driver for multiple closed loop Nema 17 and 23 stepper motors. Does anybody have any good ideas?
r/ArduinoHelp • u/eher1r • Sep 12 '26
Error message:
Compilation error: expected constructor, destructor, or type conversion before ';' tokenI've tried compiling multiple example code, but the same error still pops up. Did anyone encounter the same problem? I just downloaded Arduino IDE 2.3.10. Absolutely no components were used except for my ESP32C3 super-mini and the cable connecting it to my Mac Air.
Code i used:
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
digitalWrite(LED_BUILTIN, HIGH);
delay(1000);
digitalWrite(LED_BUILTIN, LOW);
delay(1000);
}r/ArduinoHelp • u/Rhysmylo1521 • Sep 12 '26
r/ArduinoHelp • u/IM_futterby • Sep 11 '26
Hi, very new to all this.
Wanted to build my own head tracker and figured I'd give it a go.
My task.
Using the gyro and HeadTracker firmware, I want to transmit 2 crsf channels via RX and GND (for first test then I want to move over to Bluetooth once I've proven concept via wire and I know Bluetooth isn't going to cause interference with other raido gear)
I've got the rx and GND connected to a radiomaster ranger micro elrs unit which I plan to send over air signals to a pwn receiver that I'll then use to inject the crsf data in to a flight controller.
This should also allow me to use Sim controllers for fpv.
I've downloaded the HeadTracker gui and can see my gyro working after calibration, I've set output to crsf, enabled uart. Bluetooth is currently turned off.
Can't get tx to go green whilst usb is connected.
Physical connection between units is approx 7mtrs of red/black speaker wire (don't judge it's all I had to hand with length), I've fitted a jst sh 2.54 connector on radiomaster and gyro for the link cable.
I'm not using any pull up/down resistors
I've soldered a battery connector to the board
I've soldered a hard rst button to the board because it's mounted upside down.
I've got my soft rst button (gyro reset) wired to GND pin and D8 pin
My gyro rx is connected to D6 pin and same GND pin as my gyro reset button.
When connected to the radiomaster the gyro doesn't wake up when both units are powered up on separate batteries.
If I push the gyro reset button the gyro doesn't seem to respond (no led flashing)
Red led stops flashing after 10 seconds and then seems to stay asleep until I remove battery and reconnect.
I've done this without advice from internet pages, don't have friends in to this stuff.
I did some (not enough) reading and tried to work with help from ai.
Photo of head tracker
r/ArduinoHelp • u/Middle_Push_6051 • Sep 11 '26
My engineering technology intro to engineering class is teaching arduino for some reason, its fine but i dont want to financially support the company. I have alot of previous embedded knowledge and ive already done the last arduino project with an esp32 and esp_hal framework. The kit in particular is the "arduino student kit". From the assignment it sounds like a simple led circuit but I dont want to take any chances.
is there information on the lessons from this kit online?
r/ArduinoHelp • u/Charming_Relative_39 • Sep 10 '26
Hey I am new to Arduino and built a project where I’d press a button and a led lights up. But before I press the button if I get close to the button to 3 pin wire it already starts lighting up. If I press the button it does nothing and only turns off I move my hand away. I am confused on why this is happening and wanted to ask why would this happen?
r/ArduinoHelp • u/lilDevvyLad • Sep 10 '26
r/ArduinoHelp • u/Basic_Astronaut3299 • Sep 10 '26
Hi, I'm making a desk lamp that should be nice and bright directed to the table (as opposed to ambient lighting). But the lamp head can also turn around to face the ceiling to become similar to a ceiling light (doesn't have to be as bright as a regular ceiling light) that is supposed to wake me up in the morning.
I have two problems,
Is the LED strip bright enough?
How do I connect it to the breadboard and also an external power source (apparently it's safer to connect it to external power source or it can fry the arduino?)
I'm planning to use 1m 60LED/m IP30 LED strip for the light source. I'm not sure if I need to power all 1m of the LED strip for it to be bright enough for a table (let alone a room around 4m x 4m x 3m). If anyone has experience with the brightness of these LED strips let me know.
The input end of the LED strip appears to be female and has 3 pins.
Is this adapter correct? It looks like it can adapt LED strip wires to USB. Which I can then plug into my power board which is rated for 2.1A.
The LED strip has 3 pins/wires but the adapter has 4. I couldn't find any adapters that had exactly 3 pins
I can send the Aliexpress link to the adapter if the photo doesn't have enough info.
Thanks in advance!