r/ArduinoHelp • u/Familiar_Drummer1333 • Jul 26 '26
r/ArduinoHelp • u/Typical_Transition31 • Jul 24 '26
First project - already stuck at beginner level
Hi!
I purchased an arduino esp32 feather S2 and an adafruit ST 7789 TFT Display and breadboarded a simple "change color" project. And its failing. the Backlight of the display is on so it has power, but the display is not changing color.
The IDE monitor says the script is working and its actually changing color. But the display stays dark. I have changed the display already (since i have purchased 2) and it is still not working.
Wiring:
3V - V+
GND - G
SCK -CK
MO - SI
12 - RT
10 -DC
6 - CC
3V - BL
The Code:
```
#include <Adafruit_GFX.h>
#include <Adafruit_ST7789.h>
#include <SPI.h>
#define TFT_CS 6
#define TFT_DC 10
#define TFT_RST 12
Adafruit_ST7789 tft = Adafruit_ST7789(TFT_CS, TFT_DC, TFT_RST);
void setup() {
Serial.begin(115200);
delay(2000);
Serial.println("Starting display test");
tft.init(172, 320);
tft.setSPISpeed(4000000);
tft.setRotation(3);
Serial.println("tft.init() done");
tft.fillScreen(ST77XX_RED);
Serial.println("Filled RED");
}
void loop() {
tft.fillScreen(ST77XX_RED);
delay(1000);
tft.fillScreen(ST77XX_GREEN);
delay(1000);
tft.fillScreen(ST77XX_BLUE);
delay(1000);
Serial.println("Color cycle");
}
```
It is driving me mad, that it does not work... maybe someone of you would be so helpful to have a look at this.
Thank you in advance
r/ArduinoHelp • u/RamB_2k05 • Jul 15 '26
Turn signal indicators help- EV cluster protype project
How do DIY digital instrument clusters detect 12V turn signal status? (ESP32 + TFT)
Hi everyone,
I'm working on a custom digital instrument cluster for my college EV project, and I'm a bit stuck on one part of the design.
The cluster is based on an ESP32 driving a TFT display, and I want it to show the left and right turn indicator icons whenever the actual vehicle indicators are ON.
The vehicle's turn signal circuit is 12V, while the ESP32 only accepts 3.3V GPIO, so I obviously can't connect the indicator wires directly to the microcontroller.
What I'm trying to figure out is:
How do commercial or DIY digital instrument clusters know when the left or right indicators are ON?
What's the proper and reliable way to detect the status of a 12V indicator line?
Should I simply monitor the 12V wire that powers each indicator bulb, or is there a better method?
Is an optocoupler the recommended solution, or would a voltage divider, transistor, automotive comparator, or some other interface be better?
Since the indicators blink, is it okay for the ESP32 to just read the HIGH/LOW transitions on a GPIO pin and animate the TFT accordingly?
This is not for controlling the indicators—only for reading their status.The vehicle uses a standard 12V indicator circuit.The ESP32 is powered separately through a regulated supply.I want the design to be reliable enough for an automotive environment, not just something that works on a breadboard Eventually, I also need to monitor other 12V signals like the high beam, brake light, hazard switch, etc., so I'd like to learn the "correct" way to interface automotive signals with a microcontroller.
If anyone has built a DIY digital dashboard or instrument cluster before, I'd really appreciate seeing how you handled this. Circuit examples, schematics, or even photos of your implementation would be incredibly helpful.
I'm still learning automotive electronics, so I'd appreciate any advice or explanations. Thanks in advance!
r/ArduinoHelp • u/Revolutionary-Log179 • Jul 12 '26
Having trouble with led arrays/multiplexing
As title says, I’m having trouble wrapping my head around multiplexing leans for use with a microcontroller with not enough pins to control them all. Using the drivers makes sense, mosfets too, but the code escapes me? And the use of resistors within the circuit is also confusing to me. Trying to make a small led “screen” made of diodes. Any help is appreciated
r/ArduinoHelp • u/Last-Guarantee6875 • Jul 10 '26
Need help designing an Arduino automatic cat litter box circuit
Hi everyone,
I'm building an automatic cat litter box for my university project using Arduino Uno and I'm having trouble designing the circuit and getting everything to work together.
The features I want are:
Detect when a cat enters the litter box (using an HC-SR04 ultrasonic sensor or another suitable sensor).
Wait until the cat leaves, then wait about 10–20 seconds before cleaning.
Drive a rake using a DC motor to sift the litter and push the waste into a waste tank.
Detect when the waste tank is full and activate a buzzer and/or LED to notify the user.
The rake should only run once after each cat visit, not continuously.
I'm struggling with:
The Arduino circuit wiring.
How to connect the sensors and motor correctly.
The motor keeps running even when the sensor is not triggered.
Choosing the best sensor for detecting the waste level inside the waste tank.
Components I'm using:
Arduino Uno
HC-SR04 Ultrasonic Sensor (cat detection)
DC Motor (for the rake)
NPN Transistor (or motor driver if recommended)
Flyback diode
Buzzer
LED
Power supply (5V)
Can anyone help me with:
A complete circuit diagram (Tinkercad or Fritzing would be great).
The correct Arduino code.
Suggestions for a better sensor to detect when the waste tank is full.
Any recommendations to make the system more reliable.
Any help would be greatly appreciated. Thank you!
r/ArduinoHelp • u/Infinite_Wing6576 • Jul 05 '26
HELP How do I solder a Bluetooth module?
I need to connect the TX, RX, VCC, and GND pins to the Arduino board, but my Bluetooth module doesn't have a breakout board. I don't know how to solder the pins to the module; I would appreciate some guidance.
r/ArduinoHelp • u/TemporarySyrup3728 • Jul 03 '26
Using DS3231 RTC to move Servo Arm at specific time
First time arduino user here. I'm trying to program it to move a servo arm at a specific time of the day. I did some troubleshooting and it doesn't like the line DateTime now = rtc.now() line for some reason.
#include <Wire.h>
#include "RTClib.h"
#include <Servo.h>
RTC_DS3231 rtc;
Servo myServo;
int pos = 0;
// Set your target execution time here (24-hour format)
const int targetHour = 20; // 2 PM
const int targetMinute = 55; // 30 minutes
bool adjustedToday = false;
void setup() {
Serial.begin(9600);
myServo.attach(9);
myServo.write(0); // Default startup position
}
void loop() {
DateTime now = rtc.now(); // Get current time data
//Check if current time matches the target hour and minute
if (now.hour() == targetHour && now.minute() == targetMinute) {
if (!adjustedToday) {
myServo.write(90); // Move servo to 90 degrees
delay(2000); // Wait for 2 seconds
myServo.write(0); // Return to 0 degrees
adjustedToday = true; // Mark done so it doesn't loop continuously during that minute
}
}
// Reset the trigger flag at midnight so it can run again the next day
if (now.hour() == 0 && now.minute() == 0) {
adjustedToday = false;
delay(1000); // Polling delay to reduce processor load
}
}I used this code to set the time on the RTC
#include <Wire.h>
#include "RTClib.h"
RTC_DS3231 rtc;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
Wire.begin();
// Set RTC using the compile time
rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));
}
void loop() {}r/ArduinoHelp • u/Ok_Flower5151 • Jul 01 '26
Built a $13.80 AR heads-up display that clips onto any glasses frame
reddit.comr/ArduinoHelp • u/Bananabat33 • Jun 30 '26
Trying to build a stage tech multitool. need advice on detecting and protecting againt +48V Phantom power
hi everyone,
The idea:
i'm trying to build a custom portable electronic multitool ( flipper zero type) for stagehand/stagetechs.
with functions like:
- in and output audio
- audio wave and frequentie generators
- 48V "Phantom power" detection
- send and receive dmx&artnet ( protocol for stage lighting control)
- lidar distance meter
- Bubble level
- the list of ideas goes on.. an on... and on..
The tool is based on a Unexpected Maker Pros3 (ESP32-S3).
For the audio output part i am integrating a XLR connector into the chassis (via a PCM5102A I2S DAC).
For the 48V phantom detection, i use GPIO 21 as a "phantom sense pin"
the challenge:
i want to implement a "phantom power tester" to detect if 48V phantom power is present on the line.
my questions:
1. Safety/Protection: What is a good way to protect my ESP and CM5102A DAC (3.3v logic) from exposure to +48v phantom power?
2. Detection circuit:
Is a simple resistor-based voltage divider sufficient for reliable phantom power detection? (gemini suggestion) or should i look for something else?
Of course i have already asked gemini etc. But i still would like to ask real people for some real advice.
would really appreciate any ideas or suggestions.
r/ArduinoHelp • u/MagnusMagi • Jun 25 '26
Ultrasonic Sensor fail after second trigger
Hello, all --
I've been designing a "mimic" using an old chest, a linear actuator, and a speaker system. Everything had been working fine enough on desktop testing a few weeks ago, but now I'm getting a stalled loop after a second triggering event.
In short:
Ultrasonic Sensor is measuring distance.
If distance < 85", play from the mp3 queue
if distance < 36", play from mp3 queue, and activate the linear actuator. Wait 5s. Reverse linear actuator.
The problem I'm encountering is that the sensor will register either status, and it will work fine for exactly one loop, then the whole thing stalls out and it bricks up on me and I have to reset it.
It ONLY happens after the < argument is triggered for a second time. The first time through it works perfectly. I cannot figure out why this is happening. Can anyone please help?
#include <DFRobotDFPlayerMini.h>
#include <SoftwareSerial.h>
int rxPin = 5;
int txPin = 6;
SoftwareSerial fxSerial (rxPin, txPin);
DFRobotDFPlayerMini fxPlayer;
const int openPin = 7;
const int closePin = 8;
const int ENAPin = 9;
const int trigPin = 10;
const int echoPin = 11;
float duration;
float distanceCM;
float distanceIN;
void setup() {
Serial.begin(9600);
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
pinMode(openPin, OUTPUT);
pinMode(closePin, OUTPUT);
pinMode(ENAPin, OUTPUT);
pinMode(rxPin, INPUT);
pinMode(txPin, OUTPUT);
fxSerial.begin(9600);
fxPlayer.begin(fxSerial);
fxPlayer.volume(30);
delay(1000);
}
void loop() {
// Close the box
digitalWrite(closePin, HIGH);
digitalWrite(openPin, LOW);
digitalWrite(ENAPin, 250);
// start with a clean signal
digitalWrite(trigPin, LOW);
delayMicroseconds(20);
// send trigger signal
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
// return pulse duration in microseconds
// if set to HIGH, pulseIn() waits for the pin to go from LOW to HIGH
// stops timing when pin goes back LOW
duration = pulseIn(echoPin, HIGH, 99991);
// convert m/s to in/microsec
// 343 m/s = 0.034 cm/microseconds
distanceCM = (duration * 0.034) / 2;
// convert to inches, 1 in = 2.54cm
distanceIN = distanceCM / 2.54;
// print distance
Serial.print("Distance: ");
Serial.print(distanceCM);
Serial.print(" cm | ");
Serial.print(distanceIN);
Serial.println(" in");
delay(100);
if (distanceIN <= 85) {
if (distanceIN <= 36) {
Serial.println("!!!ROAR!!!");
fxPlayer.play(random(1, 8));
digitalWrite(openPin, HIGH);
digitalWrite(closePin, LOW);
digitalWrite(ENAPin, 250);
delay(5000);
digitalWrite(openPin, LOW);
digitalWrite(closePin, HIGH);
digitalWrite(ENAPin, 250);
delay(1500);
} else {
Serial.println("=GROWL=");
fxPlayer.play(random(1, 8));
delay(1500);
}
} else {
Serial.println("=Shhhh=");
digitalWrite(closePin, HIGH);
digitalWrite(openPin, LOW);
digitalWrite(ENAPin, 250);
}
}The Code:
r/ArduinoHelp • u/RelationshipSea1446 • Jun 25 '26
Is arduino sufficient/strong enough for an outdoor water level sensor meant to measure the level of a river?
So for context, my friend and I are fresh grads trying to help our local community by doing a simple level sensor for one of the rivers. I believe these are the only necessary components bar the power supply and chassis?
Arduino or something like arduino but better
Submersible Hydrostatic Pressure Sensors
Siren/Alarm
LED Industrial
Arduino was the first thing that came to mind because well, it's the only thing I have experience with. I was also thinking raspberry pi but it seems too much for a project that can probably be done with a microcontroller like arduino, I don't think a minicomputer is all that necessary. But at the same time, I think an arduino is far too weak for this. I mean, I have this bias that it's used mainly in diy basic stuff, certainly not for something of a pretty large scale like this that requires lasting materials.
Thank you!
r/ArduinoHelp • u/amon_676 • Jun 20 '26
Que programa me recomiendan
Holaa como están. Quiero hacer un proyecto con arduino y tengo duda que programas usar para hacer la simulación del circuito y/o conexiones y del modelaje del esqueleto del mismo ( es un dron acuático) que software me recomiendan gracias 😁
r/ArduinoHelp • u/Natural_Garlic_5159 • Jun 19 '26
Voltage level shifter but from 30v 2A to 3.3v 20mA
galleryr/ArduinoHelp • u/justtryin3455 • Jun 16 '26
Small motor replacement
Hi, I know this isn't necessarily arguing, but I'm trying to source a replacement motor for my rotating Zippo display case. Would be very appreciative if someone could point me in the right direction
r/ArduinoHelp • u/exyriv_anshhh • Jun 14 '26
Deal: Electrobot RFID Starter Kit for UNO R3 from Knowing to Utilizing, Servo, RC522 RFID Module, PS2 Joystick, Learning Kit with Guidebook
amzn.inIs this a best starter kit
r/ArduinoHelp • u/brh_hackerman • Jun 05 '26
ESC on Atmega328p Questions & Help : Code profiling for Arduino nano (Atmega328p)
r/ArduinoHelp • u/Eastern-Eagle-599 • Jun 04 '26
VVB001> PLC S7 1500> PLATFOM
Hi everyone, I am currently working on a vibration analysis project using an ifm VVB001 sensor. I am routing the data through a Siemens S7-1500 PLC and sending it to a custom monitoring platform I developed in Python. Currently, I can successfully retrieve and display cyclic data (V-RMS, A-RMS, temperature, etc.) on both the PLC and my platform.
My current challenge is streaming the raw time-domain vibration signal from the sensor to the Python platform to perform a Fast Fourier Transform (FFT). If anyone has experience extracting and transmitting raw waveform data from this sensor via an S7-1500, I would highly appreciate your insights or advice!
r/ArduinoHelp • u/schmidtbag • Jun 03 '26
Trying to forward Serial1 reading to Serial.println and only getting numbers
I have a battery with a built-in BMS that has a serial console port. It has a baud rate of 115200 and I have been able to successfully send commands and read clean data from it via the Arduino IDE serial console. Considering I can communicate to the battery via the serial console, that suggests there shouldn't be any weird encoding issues.
I want an Arduino Mega to read from this using the Serial1 connection. The problem is, if I try to forward what the battery sends to the Arduino, all I get is a jumble of nothing but numbers. When connecting to the BMS directly, typing "help", the output is mostly text.
Here's what I tried in void loop()
while (Serial.available() > 0 {
Serial1.print(Serial.read());
}
while (Serial1.available() > 0) {
//THE NEXT 4 LINES ARE VARIOUS THINGS I TRIED,
//I UNCOMMENTED THEM ONE AT A TIME
//String incomingtext=Serial1.readString();
//char incomingtext=(char)Serial1.read();
//char incomingtext=Serial1.read();
//int incomingtext=Serial1.read();
//I ALSO TRIED THE FOLLOWING ONE AT A TIME WITH EACH ABOVE COMBO
//Serial.println(incomingtext);
//Serial.println((char)incomingtext);
//Serial.println(" "+incomingtext);
}The first while() loop just takes whatever I enter from the serial console through USB to the BMS. I have no idea if the BMS is receiving the correct commands, but it does have a consistent output if I type different things.
Whenever I type "help" repeatedly, it's usually a consistent output, like this:
10410110811213
r/ArduinoHelp • u/National_Tell_1429 • Jun 01 '26
What do you guys think of my design?? I have made an RPM reading module for a FSAE racecar that converts AC voltage signal from Crankshaft Position Sensor to PWM signal to be analyzed in an MCU like ESP32 or Arduino
galleryr/ArduinoHelp • u/ded_inside999 • May 24 '26
My Arduino not being read by my laptop
This is a issue I am facing for some time
My Arduino is not being read by my computer
When ever I try to connect it every com port is unknown and after selecting board when I click upload it just gets stuck on uploading
And while trying the online Arduino the board is not being found
Can I get some help I need to submit a project soon
r/ArduinoHelp • u/CentericeKS • May 24 '26
Arduino and stepper motor help
So I'm working a project.. just starting out and thought first... let's get the stepper motor to run. Watched this video and followed along.
https://www.youtube.com/watch?v=wcLeXXATCR4&t=8s
code I ran is below
What am I missing? should the code be uploaded and then just start running? driving me nuts trying to solve what should be a simple problem. Maybe it's not the code.. maybe my driver is fried .. not ever sure where to begin trouble shooting this
I appreciate any good advice you can give a newbie
Thanks in advance
code:
// pin connections
const int dirPin = 2; // direction pin
const int stepPin = 3; // step pin
void setup() {
pinMode(dirPin, OUTPUT);
pinMode(stepPin, OUTPUT);
// set direction of rotation to clockwise
digitalWrite(dirPin, HIGH);
}
void loop() {
// take one step
digitalWrite(stepPin, HIGH);
delayMicroseconds(2000);
// pause before taking next step
digitalWrite(stepPin, LOW);
delayMicroseconds(2000);
}
r/ArduinoHelp • u/nickylover67 • May 23 '26
My final project: Smart photography studio
Hi , I want to create a project for a smart photography studio that includes the following functions:
* Create an app to perform the instructions.
*Controlling brightness according to the object via a sensor.
*Align the object to the center.
*create smart lighting modes (e.g., cinema, gaming)
* Controlling the EVA foam background with a motor
I want to know if I use a Arduino Mega/Leonardo or ESP32 and what is the best motor to control the background...
r/ArduinoHelp • u/Coffeenerd2026 • May 21 '26
Help with setup - Spreadsheet to run LED's
I'm new to setting up an arduino and need help with how to get data from a spreadsheet to light up LED's. I've attached images of where I've got to and need help pointing in the direction of next steps please.
I have a spreadsheet with an input screen (Green boxes with amount) this drives the data screen with zero's and one's, where 'one' should light up the corresponding LED.
I want this to change the lights in real time so when the amount input is changed the lights will change.
Any help appreciated.


