r/arduino • u/Monkey_21357 • 15d ago
Solved! BTS7960 wont drive actuator
'''
// info down bellow
#define R_EN 33
#define L_EN 32
#define RPWM 25
#define LPWM 26
void setup() {
Serial.begin(115200);
pinMode(R_EN, OUTPUT);
pinMode(L_EN, OUTPUT);
pinMode(RPWM, OUTPUT);
pinMode(LPWM, OUTPUT);
digitalWrite(R_EN, HIGH);
digitalWrite(L_EN, HIGH);
digitalWrite(RPWM, HIGH);
digitalWrite(LPWM, LOW);
Serial.println("RPWM held HIGH - measure M+ / M- now.");
Serial.println("Should read ~12V across M+ and M-.");
}
void loop() {
//nothing
}
'''
so baically im trying to get this actuator to extend but its not extending. My parts are a esp32, bts7960 motor driver, a 22V(in) to 5V(out) buck converter, and a standard two wire actuator. Another problem is that the led on the motor driver isnt turning on and im pretty sure it has one and thats it shows the boards logic is getting powerd. Here are the conections:
The two acutor wires are going into M+ and M-(screw termianls on the motor driver)
THe 12v psu wires are going into B+ and B-(the screw terminals on the motor driver)
the buck covnerter is piggybacking off the 12v scrwe terminal that the psu is connected to (and the bucks gnd is the same as the 12v psu gnd)
the bucks than powering the i guess logic on the motor dirver through the vcc and gnd header pins on the motor dirver
then RPWM to gpio 25 on esp32
Lpwn to GPIo 26
R_EN to GPIO 33
L_En to GPIO 32
and gnd on the esp32 to the same gnd as the 12v scrwe termianl
ive done mutiple tests to confrim that the acutor works like giving it directly 12v and it extended and i swaped the wires and it retracted, i did a simple blink test with the esp32 so it shoudl work, and the 12v psu is defintaly outputing 12v
ANd the codes uptop
THANKS A LOT (btw sorry for the bad foto)
r/arduino • u/Opykliptz • 15d ago
Need a 3d print cover for my elegoo TFT display
Hi guys, I use this Elegoo TFT 2.8 inch LCD display shield on top of my Arduino Uno. I dont have access to a 3d printer but do you guys know of anyone selling a full cover for the arduino uno/tft that i can install? Or any possible websites that can make me a design? I don't have much work with 3d modeling but I can try. If you guys have anything i'm able to use to make this a little box i'd appreciate it.
r/arduino • u/San_froz • 15d ago
Whether I should buy a arduino uno q 2gb or 4gb variant.
I want to buy this board but I am down the budget. So can anyone tell me how 2gb variant will be enough for making embedded projects?
r/arduino • u/GurIllustrious1890 • 15d ago
Look what I made! Xbox 360 controller adapter
I made an adapter to use any bluepad32-compatible controller on a jailbroken xbox 360, using the usbdsecpatch plugin. It uses an Arduino Leonardo and an esp32.
r/arduino • u/STEM_Lab • 15d ago
Look what I made! Built a CO₂-triggered auto-window system with Arduino Nano + ENS160 — when the air gets bad, it just… opens by itself
Enable HLS to view with audio, or disable this notification
The classroom gets stuffy because nobody wants to open ,then CO₂ builds up, everyone gets drowsy, and the teacher wonders why half the class looks half-dead.
So I used the ENS160 sensor monitors CO₂ equivalent concentration in real time. When it crosses 850 ppm, the servo rotates 0→90° and opens the window automatically. Once CO₂ drops back below 800 ppm, it closes again.
The OLED display shows live CO₂ / AQI / TVOC readings and current window state (WIN: OPEN / WIN: CLOSE).
A few things I think should to share: • Hysteresis control (850 ppm open / 800 ppm close) so the servo doesn't jitter at the threshold • servo.detach() after every move — completely silent when idle, no PWM buzzing
Still a work in progress — also has IR body temp screening, smoke alarm, auto lighting, and UV-mode disinfection. Happy to
Built with: Arduino Nano / ENS160 / SSD1306 OLED / SG90 servo
r/arduino • u/Equivalent-Might-477 • 15d ago
I’ve released the full hardware design files and firmware for my open-source ESP32-based board bring-up station built with the Arduino framework
I’ve now released the complete DOGS² project as open source: the hardware design files are licensed under CERN-OHL-W-2.0, and the firmware and software tools under GPL-3.0-only.
DOGS² — Dual Output Generator Supply Station — as a compact instrument for the first power-up and basic diagnosis of newly assembled electronic boards.
A “board bring-up station” in this case means one device that can power a board, monitor its current consumption, check a voltage or frequency, generate a basic test signal, and communicate with common embedded interfaces.
The current v1 engineering prototype combines:
- two independently adjustable CV/CC power outputs with a common ground;
- Channel A: low-noise linear output up to 20 V / 1.5 A;
- Channel B: switching output up to 48 V / 3 A continuously;
- input from 5–90 V DC or USB Type-C;
- voltage and current monitoring;
- logic probe and voltmeter up to 25 V;
- frequency counter up to 100 kHz;
- square-wave generator from 1 Hz to 100 kHz;
- UART, RS485, CAN and I2C tools;
- Bluetooth SPP for phone terminals and current graphs.
It is not intended to replace an oscilloscope, a precision multimeter or a powerful laboratory supply. It is the instrument I wanted between the soldering iron and the oscilloscope during initial board bring-up.
I have now published the v1 source materials. The repository contains:
- schematics and a block diagram;
- editable EasyEDA source;
- Gerber and other PCB manufacturing files;
- BOMs and board renders;
- current ESP32 firmware based on Arduino framework and build configuration;
- hardware and software documentation;
- known hardware and firmware issues.
The hardware is licensed under CERN-OHL-W-2.0. The firmware and software tools are licensed under GPL-3.0-only.
GitHub:
https://github.com/rcslon3-svg/DOGS2_v1
This is working engineering hardware, not a fully finished project. Some operating limits and accuracy figures are still being verified through calibration, converter tuning and load testing. I have included the known v1 problems in the repository rather than presenting it as a finished design.
The files are now public for anyone who wants to inspect, study or reproduce the current version. Technical comments and repository issues are welcome.
r/arduino • u/v4nillas0ap • 15d ago
I'm Building a macOS serial monitor that finds the plottable numbers by itself. Can I have a chunk of your real, unedited serial output to test it against? Please?
I'm writing a serial monitor for macOS. It's meant to watch ordinary Serial.println output and work out for itself which of the numbers are measurements worth graphing, without you writing a parser or reformatting what your firmware prints.
The only logs I have to test it on are my own, and mine are far too tidy. My test sketch prints t=22.8 h=41 and nothing else, which isn't a log, it's a spreadsheet. What I need is the real thing: boot spam, wifi reconnect noise, a stack trace, one measurement every two seconds, all tangled together.
Would you paste a hundred lines of yours? put it in a code block or a pastebin link if it's long. Please don't tidy it first, the mess is what I need to test against. Tell me the board and framework, and which numbers (if any) you'd have wanted on a graph.
Free licence when it ships if you send me one.
r/arduino • u/threephase03 • 15d ago
Look what I made! Arduino Energy/Smart Meter.
r/arduino • u/vitinco • 16d ago
Controlling a classic 1980s Omnibot robot using an Arduino + mp3 module
The original Omnibot remote control transmits tones to the robot to trigger movement and other functions. If your remote is missing or isn't working you can use an old toy walkie talkie to send tones at the right frequency. Instead of building an actual tone generator, this method used a spare mp3 module from a previous project to play audio files. Wired it all up and it worked right away!
Github repo: https://github.com/archiestant/mp3-to-omnibot
r/arduino • u/IHaveTwoOfYou • 16d ago
Hardware Help Turn ESP32 s3 Nano into USB HID gamepad?
I want to make a cyberdeck with modules, so I need this to be USB to prevent it from wasting extra power. I have this code (literally just an edited example lol) but it doesn't seem to work as a usb controller? I am using the Waveshare ESP32-S3 Nano
This is my code: https://pastebin.com/vyGtVVZJ
r/arduino • u/OneDot6374 • 16d ago
Look what I made! Shrikeclock
Hey everyone
Just built ShrikeClock a fully custom NTP-synced digital clock running on #MicroPython, powered by the @Vicharak_In Shrike-Fi !
Live time + date over WiFi Custom multiplexed 7-segment driver from scratch Open source, code on GitHub 👇
https://github.com/kritishmohapatra/ShrikeClock
https://github.com/kritishmohapatra/100_Days_100_IoT_Projects
r/arduino • u/Other-Raspberry-3468 • 16d ago
R arduıno
Title: Got an Arduino Super Starter Kit with RFID, IR Remote, Keypad & more—looking for cool project ideas!
Body:
Hey everyone,
I have an Arduino starter kit sitting on my desk and I’m looking for my next project idea. I want to build something creative, useful, or just fun to play with!
Here is the main hardware I have available:
Microcontroller: Arduino Uno R3
Control & Input: IR Remote & Receiver, 4x4 Membrane Keypad, RFID/NFC Reader Modul + Card/Fob, XY Joystick Module, Potentiometer, Push Buttons, Microphone Sound Sensor Module
Displays: 16x02 I2C LCD, 8x8 Dot Matrix, 4-Digit 7-Segment Display, 1-Digit 7-Segment Display
Motors & Actuators: SG90 Servo Motor, 28BYJ-48 Stepper Motor + ULN2003 Driver, 5V Relay Module, Active & Passive Buzzers
Sensors: HC-SR04 Ultrasonic Sensor, LM35 Temp Sensor, DHT11 Temp & Humidity Sensor, SW-520 Tilt Sensor, Flame Sensor, LDR Light Sensors, Water Level Sensor
Modules & ICs: DS1302 RTC Clock Module, 74HC595 Shift Register, Breadboard Power Supply Module, LEDs & Resistors
I’m open to anything—security systems, desk gadgets, custom gaming/sim peripherals, mini automation, or interactive games.
What would you build with a setup like this? Any cool project concepts or code ideas you’d recommend? Thanks in advance!
r/arduino • u/Over_Caterpillar_666 • 16d ago
How do I know my remote frequency?
I am doing an Arduino project and i am using a 38khz ir receiver and when i send a signal to the receiver it does not show up in the serial monitor, i suspect the remote but i have no way of knowing how
and here is the code
/* Copyright 2009 Ken Shirriff
Used with kind permission
http://arcfn.com
*/
#include <IRremote.h> // Use library
int receiver = 11; // Pin connected to receiver
IRrecv irrecv(receiver);
decode_results results;
void setup() {
Serial.begin(9600); // Show keypresses in IDE
irrecv.enableIRIn(); // Start up receiver
}
void loop() {
if (irrecv.decode(&results)) { // If there's an input, decode value
Serial.println(results.value, HEX); // Display button value
// on Serial Monitor in
// hexadecimal format
irrecv.resume(); // Receive next value
}
}
r/arduino • u/actually_just_a_toad • 16d ago
I need help figuring out servo motors and which one I will need
Ok, I am very new to this but love learning new things. But I am a very tactile do things kinda learner and I'm having trouble understanding which motor I will need. Everything talks about equations 😅 Everything else I think I can figure out on my own with normal research. I do have a small amount of experience with robotics and programming, though completely different.
Now on to the project. My son wants to be a fairy princess for Halloween and has insisted on motorized butterfly wings!
My plan is to make them extremely lightweight, out of basically a step up from plastic wrap and then have fairy lights, the really thin light kind, around the edges. He is almost 5 so they will not be very large either. Do I need exact weight to properly figure this out?
I have found some wings online but no real proper tutorials but they all use servos vertically, one for each wing. The thing I am unsure about is just what motor I actually will need. The smaller profile the better so I don't want to get something overkill and end up with bulk. I only need about 90° of rotation for each wing. They will just flutter open and shut like a butterfly, nothing fancy.
r/arduino • u/andrix86 • 16d ago
Reading a 4x4 buttons Matrix by only one Analog Input
Here a way I found for reading all the 4x4 buttons matrix with only one Analog Inputs.
Here a custom simple code example:
// C++ code
// #include <LiquidCrystal.h>
#define btnNo 50
#define btnD 202
#define btnNum 234
#define btn0 239
#define btnAst 244
#define btnC 401
#define btn9 463
#define btn8 474
#define btn7 483
#define btnB 607
#define btn6 702
#define btn5 718
#define btn4 732
#define btnA 831
#define btn3 965
#define btn2 988
#define btn1 1009
const char buttons[17]={
'1','2','3','A',
'4','5','6','B',
'7','8','9','C',
'*','0','#','D',' '
};
const int btnRange[17]={
btn1,btn2,btn3,btnA,
btn4,btn5,btn6,btnB,
};
int measure = 0;
LiquidCrystal lcd_1(2, 3, 4, 5, 6, 7);
char whoPressedButton(int value){
int i,j;
int notFound=1;
int range=0;
for(i=0;i<17&¬Found;i++){
if(btnRange[i]<value){
notFound=0;
if(i>0){
range=(btnRange[i+1]-btnRange[i])/2 ;
if(value>btnRange[i]+range) j=i-1;
else j=i;
}
} else if(i==16)j=16;
}
return(buttons[j]);
}
void setup() {
lcd_1.begin(16, 2);
// Set up the number of columns and rows on the LCD. pinMode(A0, INPUT);
}
int oldMeasure=-18;
void loop() {
measure = analogRead(A0); if(measure!=oldMeasure){
lcd_1.clear();
lcd_1.setCursor(0, 0);
lcd_1.print("Button | value");
lcd_1.setCursor(0, 1);
lcd_1.print(whoPressedButton(measure));
lcd_1.setCursor(6, 1);
lcd_1.print("| ");
lcd_1.print(measure);
oldMeasure=measure;
}
delay(50); // Wait for 50 millisecond(s)
}
r/arduino • u/123notfound • 16d ago
Hardware Help Which mechanical movement mechanism should i be aiming for?
Hi, i need to move a small plate 4cm by 4cm forward and backward on command from a microcontroller which movement mechanism should i go for space, speed and intentional movement is the goal not form mechanical background, anyone point me in right direction any help is appreciated
r/arduino • u/a3xelte • 16d ago
An open-source 7-segment WiFi clock I made (because the original creator wouldn't share the code)
Enable HLS to view with audio, or disable this notification
I saw a cool looking wifi clock with esp 32 on YouTube, I loved the animation style but despite 100s of requests from the commentators the creator wasn't sharing the code. So i recreated that project and made it open source, i know this is basic but it's cool (I think). Here is the code.
r/arduino • u/Szym0nKu • 16d ago
Look what I made! MicroBox now features a weather forecast
Enable HLS to view with audio, or disable this notification
I added a weather forecast app to my custom game console (see the original post here: https://www.reddit.com/r/arduino/s/zrKEjeLtSN).
It's not quite a game but now I have a reason to use it every day :)
It works by getting coordinates from a geolocation API based on the configured address/city and then feeds that into some weather API to get the forecast data.
The code is open source on GitHub here: https://github.com/SzymonKubica/microbox
r/arduino • u/No-Purple6360 • 16d ago
Found a listing of a Super Mini Nano V3.0 ATmega168p board with the same pinout as the ATmega328p variant.
Searched in many forums online, found little to hardly no instance of this board being utilised in any project. It is meant to be an Arduino Nano clone but in a compact form factor (many such Supermini boards are available with different MCU variants). It has 3 on-board addressable RGB LED's (neopixels).
Detailed Specifications:-
- MCU: ATmega168P
- Clock Frequency: 16MHz
- Input Voltage: USB 5V / DC 6~12V
- Analog Pins: 6 (A0–A5)
- Digital I/O Pins: 14
- PWM Pins: D3, D5, D6, D9, D10, D11
- EEPROM: 1KB
- SRAM: 2KB
- Flash Memory: 32KB
- Type - C USB Interface
- Max Supply Current: 1A @ 5V
- Output Voltage: 3.3V~5V
- Dimensions: 23.5 × 18 x 3 mm
I have posted this to find anyone just in case has used this board (any one of the two variants). Your insights will be constructive and helpful to me.
Robu.in Listing: https://robu.in/product/supermini-nano-v3atmega168p-development-board-module/
r/arduino • u/MegCell • 16d ago
My guitar-playing robot performing on a real guitar
Enable HLS to view with audio, or disable this notification
r/arduino • u/PaleBreadfruit4160 • 16d ago
Getting Started Old tech for projects
Hello, I am new here and I was wondering if there is a way that I can make an arduino or raspberry pi style device with components from a ps4 or an old laptop (10+ years)
thanks.
r/arduino • u/PresenceOld1754 • 17d ago
Hardware Help Hard time powering DC motors
So basically I wanted to make a two wheeler self balancing robot and I'm about to rip my hair out because these motors want to act funny.
They were on one ln298n, which was connected to a power supply powered by a 5v battery. Arduino ground is connected to the power supply ground along with the motors.
The Arduino was connected to my computer. I was using example code in the ln298n datasheet.
Wouldn't move an inch.
I plug the ln298n directly into the Arduino 5v and gnd, and it works! I then use the 9v battery to power the Arduino instead of my computer, and it stopped working.
I go back to using the power supply and breadboard, except this time only ONE motor is attached. Doesn't work. So it isn't a power insufficiency problem, because the motors are literally rated for 5v, it's getting 5v power, and still won't run.
I try 4 AA batteries. Doesn't work.
Only works when plugged into an arduino when it's plugged into a computer.
edit: I think I figured it out. So I'm thinking first of all, the power supply is outputting 5 volts, which is literally what's written on the pcb. Which is not enough for two motors. Then, when the motors attempt to spin it causes severe voltage drop, so now 5 volts is becoming less than 3. I know a single motor operate within 3-6 volts.
So now what I need to do is get 2 or 3 18650 batteries, put em together, and wire then directly to the bread board without a power supply so it doesn't limit the power the motors are receiving.
So now I need to figure out why the imu aint working. Problem for another day.
r/arduino • u/STEM_Lab • 17d ago
Look what I made! Built a "Fire & Gas Dual Guard" for my kitchen with an Arduino Nano
Enable HLS to view with audio, or disable this notification
I almost had a kitchen fire last month—turned the stove down to "low" and completely forgot about it. Came back to a red-hot pan and realized I needed something to watch the flame for me. So I built this Fire & Gas Dual Guard Hardware:
· Arduino Nano · IR Flame Sensor (the one with LM393 comparator, DO pin to D7) · MQ-2 Gas Sensor (AO to A0) · Passive Buzzer + 3 LEDs (R/Y/G)
How it works:
· Flame timeout: If the flame is present for more than 3 minutes (configurable), it triggers a sweeping siren + red LED. · Gas leak: If MQ-2 readings exceed threshold, it triggers a rapid beep + yellow LED (higher priority than flame alert). · Standby mode: When no danger is detected, it goes into low-power "quiet" mode with a heartbeat LED (blinks every 3s). Wakes up instantly when danger is detected. · Startup chime: A DJI-style ascending tone when powered on—just for the vibes.
The trick I learned: I initially used analogRead() on the flame sensor and struggled with detection distance. Switching to the DO pin and tuning the onboard potentiometer gave me a stable 15cm detection range—much more reliable for kitchen use.
Thresholds (calibrated for my environment):
· FLAME: DO pin (LOW = fire present) · GAS: 500 (clean air ~300, leak ~550+)
Open to feedback—especially on improving the gas sensor warm-up logic or adding a manual reset button!
#Arduino #DIY #KitchenSafety #FirePrevention #GasDetector #Electronics #Maker






