r/arduino • u/Federal-Influence102 • 16d ago
r/arduino • u/Whebneen • 16d ago
School Project How can I control 6 servos via the gamepad option in the Bluetooth controler app?
To give further context, I have a school proyect where I had to build a mechanical arm (as seen above), using 6 servos and an Arduino UNO, and have it move objects. The hardware and code work works perfectly:
#include <Wire.h>
#include <Adafruit_PWMServoDriver.h>
#include <SoftwareSerial.h>
// Bluetooth pins(RX, TX)
SoftwareSerial BT(0, 1);
Adafruit_PWMServoDriver pca = Adafruit_PWMServoDriver();
#define SERVOMIN 150
#define SERVOMAX 600
const int servo1 = 0;
const int servo2 = 1;
const int servo3 = 2;
const int servo4 = 3;
const int servo5 = 4;
const int servo6 = 5;
void setup() {
Serial.begin(9600);
BT.begin(9600);
Serial.println("Control of 6 servos via Bluetooth ready");
pca.begin();
pca.setOscillatorFrequency(27000000);
pca.setPWMFreq(50);
delay(10);
// security position of the 6 servos (90 degrees)
moverServo(servo1, 90);
moverServo(servo2, 90);
moverServo(servo3, 90);
moverServo(servo4, 90);
moverServo(servo5, 180);
moverServo(servo6, 90);
}
void moverServo(int canal, int angulo) {
angulo = constrain(angle, 0, 180);
int pulso = map(angle, 0, 180, SERVOMIN, SERVOMAX);
pca.setPWM(canal, 0, pulse);
}
void loop() {
if (BT.available() > 0) {
String comand = BT.readStringUntil('\n');
comand.trim();
if (comand.length() == 0) return;
Serial.print("Comand received: ");
Serial.println(comand);
if (comand.startsWith("S1:") || comand.startsWith("s1:")) {
int angle = comand.substring(3).toInt();
moveServo(servo1, angle);
BT.println("OK Servo 1 -> " + String(angle));
}
else if (comand.startsWith("S2:") || comand.startsWith("s2:")) {
int angle = comand.substring(3).toInt();
moveServo(servo2, angle);
BT.println("OK Servo 2 -> " + String(angle));
}
else if (comand.startsWith("S3:") || comand.startsWith("s3:")) {
int angulo = comando.substring(3).toInt();
moveServo(servo3, angle);
BT.println("OK Servo 3 -> " + String(angle));
}
else if (comand.startsWith("S4:") || comand.startsWith("s4:")) {
int angle = comand.substring(3).toInt();
moveServo(servo4, angle);
BT.println("OK Servo 4 -> " + String(angle));
}
else if (comand.startsWith("S5:") || comand.startsWith("s5:")) {
int angle = comand.substring(3).toInt();
moveServo(servo5, angle);
BT.println("OK Servo 5 -> " + String(angle));
}
else if (comand.startsWith("S6:") || comand.startsWith("s6:")) {
int angle = comand.substring(3).toInt();
moveServo(servo6, angle);
BT.println("OK Servo 6 -> " + String(angle));
}
else {
BT.println("Comand not recognized. Use S1:angle to S6:angle");
}
}
}
To give further context
S1: direction the machine is facing
S2: The motor that is directly above the platform in the picture
S3: the "elbow" of the machine
S4: the direction the claw is facing
S5: spins wrist of the claw
S6: grip of the claw
As previously mentioned, the code works and can read the angles by an input in the terminal part of the app, however, our teacher said it needed to be in the gamepad since "it is more precise and allows for more movement". How can I make that switch from Terminal -> Gamepad?
r/arduino • u/tea_drinking_fox • 16d ago
Software Help Is there a way to edit a Google Calendar with a arduino ?
So I‘ve had the idea the use an arduino to at a button on my household Machines like the dishwasher that sends me a reminder to clear them out later. My plan so far would have been to connect the arduino to the internet with a module and then use the arduino to automatically add a task to my google calender when a button is pressed. The problem so far has been that I only found Tutorials that use a read only link for the calender to display something.
Is it possible to add task to a google calender with a arduino or is there another way to use the arduino to send messages to my phone (iOS) that is simpler ?
r/arduino • u/Rayzwave • 16d ago
Started using Breadboard again
Hi Everyone, I have started using breadboard again after many years which I’m very surprised about.
Why?
I think it’s the ease in which I can test my project without using a soldering iron and I can sit in the lounge keeping my wife company while I’m doing it. I’ve even bought some new breadboard this week and started using it in my new idea.
r/arduino • u/Dmy1703 • 16d ago
Look what I made! (Sharing an earlier build video to document the progression of this setup. The initial goal here was purely gameplay feel and immersion: while playing, I realized that certain mechanical actions don't necessarily have to depend on thumbstick clicks and could be offloaded to natural body movement. At
Sharing an earlier build video to document the progression of this setup. The initial goal here was purely gameplay feel and immersion: while playing, I realized that certain mechanical actions don't necessarily have to depend on thumbstick clicks and could be offloaded to natural body movement.
At the time of this test, I was still using a standard ESP32 dev board with the MPU6050 sensors wired up (working toward cutting down cabling in later revisions). The cable plugged into the main ESP32 is strictly for power: motion packets were already streaming wirelessly over ESP-NOW directly to an ESP32 Mini receiver emulating a USB-HID gamepad to handle sprinting (L3).
Following up on earlier continuous running tests, here I started testing sharp impulse triggers—such as quick chest expansion or a light foot tap. This allowed me to test different mechanics for the same in-game action while tuning thresholds to prevent ghost inputs during idle motion. While the primary focus was gameplay responsiveness, removing inputs from the hands naturally shows promising potential for modular physical accessibility as the project evolves.
The video shows the early bench wiring on the bottom and live gameplay in Resident Evil on top. I am very open to feedback across the board—sensor calibration, ESP32 architecture, ergonomics, gameplay responsiveness, accessibility ideas, immersion, or oversights in the prototype. Would love to hear your thoughts!
r/arduino • u/ProfDrPaNDa • 16d ago
Hardware Help Which arduino?
I’m a complete beginner in this field.
I have an idea for a CAN bus keypad for cars that I’d like to implement. Which Arduino would be a good choice for this—or are there other microcontrollers that would be suitable?
The requirements are: CAN bus, 5V operation, 8 RGB LEDs, and 8 buttons.
Thanks for any advice!
r/arduino • u/Ill-Temperature7333 • 16d ago
Esp32e bare chip start
Hi friends i purchased esp32e bare chip with metal on it.
I want to know how to upload code using esp8266 lua v3 board which has 340serial chip
I want minimum resistor and wiring to run this
I pullup en with 10k
3.3 volt suppy give it rx to rx of and tx to tx of both controllers 0 pull down to upload but still not working esp32 dev chose in arduinodroid
i have disabled on-board chip of esp8266
code uploading successful but after pull up io0 and reset not booting
r/arduino • u/Neither_Finish6900 • 16d ago
⚡ A new control interface for my HP 6642A power supply ⚡
The HP 6642A (0-20 V / 0-10 A) is a great bench supply, but it can only be remote-controlled over GPIB, and real USB-GPIB adapters are expensive. So I built my own adapter from a cheap Arduino Uno and wrote a web-based control panel for it.
🔧 How I built the adapter:
• Desoldered a 24-pin GPIB (IEEE-488) plug from the board with a soldering iron and desoldering pump, then cleaned the pins
• Tinned the plug pins and 17 wires, then soldered one wire directly to each signal pin: 8 data lines (DIO1-8), 3 handshake lines (DAV, NRFD, NDAC), 5 control lines (EOI, IFC, SRQ, ATN, REN) and ground (pins 18-24 joined together)
• Plugged the other wire ends straight into the Arduino headers: DIO1-6 → A0-A5, DIO7-8 → D4-D5, EOI → D12, DAV → D11, NRFD → D10, NDAC → D9, IFC → D8, SRQ → D3, ATN → D2, REN → D6, GND → GND
• Secured everything in place with hot glue
• No resistors or other parts needed, just wires
• Flashed the open-source AR488 firmware with a custom pin layout matching my wiring. The Arduino now acts as a USB-GPIB adapter
💻 The control app is web-based, so the control panel runs in any browser on Windows, macOS or Linux:
✅ Live voltage, current and power readout with CV/CC mode
✅ Set voltage and current limit, with step buttons and saved presets
✅ Live chart with min/max/average, energy (Wh) and charge (Ah)
✅ Record data to CSV files, with a built-in viewer
✅ Automatic sequences: voltage steps, ramps, sweeps and loops
✅ Software protection: auto-off on over-current, over-power or over-voltage, a timer, and end-of-charge detection for batteries
✅ Event log, and it keeps recording even with the browser closed
r/arduino • u/Pale-Performance7991 • 16d ago
Line follower robot
Hey, i’m a beginner here
I've seen some really impressive robots that can follow a line at high speeds, even through sharp turns, without losing track of it.
I'd love to build something similar, but I'm not sure where to start when it comes to choosing the right components. I'm considering using an ESP32, an 8-channel IR sensor array, and a PID controller based on my research so far.
For those who have experience building competitive line follower robots:
What sensors and motors would you recommend?
Is an ESP32 a good choice for this type of robot?
What makes the biggest difference when it comes to speed and accuracy, especially in sharp turns?
r/arduino • u/Virtual_Actuary3586 • 16d ago
Hardware Help Beginner help needed.
I just wanted to start by saying I don't know much about Arduinos or electronic setups yet, but I'm pretty comfortable with soldering and can usually figure out the software side of things! I currently have a cosplay project and wanted to set up a custom sound box. My idea is that when I open a mask that has an articulated jaw, it releases a Mini Micro Limit Switch 3 Pins KW11-3Z07 and sends a singular signal to a DY-SV5W Voice Playback Module so the audio plays once. When I press the jaw back together, it won't do anything; it will just wait to be opened again. Is this configuration feasible? What specific components or modifications would be required, or would I need to restart the project from scratch? Please let me know. Additionally, I intend to power the setup using a standard power bank.
r/arduino • u/Anthonbird • 16d ago
Hardware Help BTS7960 Motor Driver Receiving No Output on 2 Driver Modules
I had ordered a BTS7960 Motor Driver Module, wired it together and got no output voltage over the two screw terminals M+/M-. Attached is a google doc outlining all information including wiring, tables with respective voltages, pictures of oscilloscope readings, and the code sent to the board. I had bought two modules and they both produce the same results, so I'm hoping this isn't just a case of (2) defective boards. Any ideas of further information needed please let me know!
Doc link:
https://docs.google.com/document/d/1kAHlKpH9gPwZxCSvj3vQ1RMLyPD30AZHtIQe0zHeLjs/edit?usp=sharing
Edit : Information here as requested
Wiring Schematic:

Arduino Code :
int RPWM = 3;
int LPWM = 5;
int L_EN = 7;
int R_EN = 8;
void setup() {
// put your setup code here, to run once:
pinMode(RPWM, OUTPUT);
pinMode(LPWM, OUTPUT);
pinMode(L_EN, OUTPUT);
pinMode(R_EN, OUTPUT);
digitalWrite(L_EN, HIGH);
digitalWrite(R_EN, HIGH);
}
void loop() {
analogWrite(RPWM, 200);
analogWrite(LPWM, 0);
}
BTS7960 Module Schematic and Pins for next page :

| Voltage (Relative to Arduino Ground) |
|---|
| RPWM (Pin 1) |
| LPWM (Pin 2) |
| R_EN (Pin 3) |
| L_EN (Pin 4) |
| VCC (Pin 7) |
| Ground (Pin 8) |

The following readings are of the RPWM side of the module,
Oscilloscope Reading of Pin 7 (VS) to Pin 1 (GND) :


Picture of Screw Terminals for Output:

| Voltage |
|---|
| B-(gnd) to B+ |
| B- (gnd) to M+ |
| B+(gnd) to M+ |
| B+(gnd) to M- |
| M+ to M-(gnd) |
Links to documentation:
https://www.infineon.com/assets/row/public/documents/10/57/infineon-bts7960-ds-en.pdf
https://www.handsontec.com/dataspecs/module/BTS7960%20Motor%20Driver.pdf
r/arduino • u/Nudelwalker • 17d ago
Why is it so hard to get Teensy 4.1 in Europe?
i need one for a project and also the 8mb PSRAM chip for it and its so crazy hard to find any supplier for that.
is teensy dead?
r/arduino • u/Juustege • 16d ago
Trying to make a Web-Based Home-Lab
Hey guys,
I've been working on a little side project called Electronic Makers. The idea is to build some kind of web-based home lab for electronics, where you can learn and experiment without having to install 5 different tools or buy all the hardware first.
It currently has a virtual breadboard, signal experiments (PWM, UART, I2C etc.), a PCB editor and even a virtual ESP32 environment where you can play around with GPIO, LEDs, buttons, WiFi and MQTT.
The idea is to connect all these things instead of having separate tools for everything. Start with a simple circuit, understand whats happening, write some firmware and eventually design your own PCB.
Still lots of things to improve and I'm not trying to replace real hardware. Thats obviously a different experience.
Would be really interested to hear what you guys think. Especially from people who actually build electronics regularly.
What features would make something like this useful for you? And what am I missing?
Here is the current version:
https://electronicmakers.com/studio/circuit
r/arduino • u/Proper-Marionberry41 • 16d ago
Hardware Help DIY stream deck – USB HID buttons, volume mixer + Windows Hello fingerprint on one cable?
Hi! I'm building my first DIY stream deck and would love some advice before I commit to a setup
I already have ordered and plan to use this component: Guition JC4827W543 – ESP32-S3 (8MB PSRAM / 4MB flash), 4.3" 480x272 IPS, capacitive touch.
link: https://a.aliexpress.com/_EJbSl1M
Basically a ESP32 with touchscreen. I wanted to wire up and use led displays with buttons but the prices together came even more than buying a seprate streamdeck (love new European import!)
What I want the deck to do:
- Touchscreen buttons that act as a USB HID keyboard (macros, media keys, app shortcuts) on Windows
- An on-screen volume mixer for individual apps
- Turn on my pc from the deck
- Have a focus timer with possible reward system
- Windows Hello fingerprint login
- All of it in one 3D-printed tilted case with a single cable to the PC
What I was planning:
I wanted to use 1 wire that splits into 2 wires and just put in in the casing of my stream deck but I have not found good parts that would work.
So my 2 questions are:
- Do you think I'll be able to add all of the 1.-4. functionalities into this esp32?
- Do you have any idea how to wire in a fingerprint sensor that would work on windows / recommend me the right parts?
P.S. I'm really sorry if this is not the right community to ask, but i couldn't find any better related communities.
r/arduino • u/CommandShot1398 • 17d ago
How can I make sure an IR break beam sensor is actually working?
Hello everyone.
I have a custom-made IR break beam sensor (PyController Nosepoke v2.3), which is on a board connected to another board with an RJ45 cable. Now, I need to make sure that the sensor is working in a manner that it can actually emit and receive light.
For receiving, I think it's easy: if the receiver is broken, I guess we'll get floating values.
As for the emitter, it's not that easy. It can be broken, or it can be blocked.
PS: I mean making sure it works without supervision, so we can detect failure in a long-running session with no human intervention.
What do you think? My initial idea was to do a periodic check in which I put an electrical switch on the emitter pin, which disconnects the power so no light would travel, and the changes in the receiver would tell me if the emitter is actually emitting or not.
r/arduino • u/No-Hair-176 • 17d ago
Looking for practical advice: DIY 2-tank auto-watering and fertigation system (beginner friendly, no heavy coding)
Hey everyone!
I'm planning to build a budget-friendly automated watering and fertigation system from scratch, and I need some real-world advice from people who have actually built one: what hardware and platform should I use?
My setup uses two tanks:
- Tank 1: Main fresh water reservoir.
- Tank 2: Mixing tank (automatically fills from Tank 1, doses liquid nutrients by exact ml, mixes the solution, measures pH/EC, and pumps out the final mix to water the plants).
My main problem: I am not a programmer and I really don't want to write C++ code from scratch. What are people actually using in practice that works reliably without needing a computer science degree?
Also, if you've built something similar: what budget-friendly pumps and pH sensors can actually survive for more than a single season without failing?
Appreciate any real recommendations, practical tips, or links to working projects!
r/arduino • u/TreatOtherwise1293 • 17d ago
Look what I made! Hello I am back! And I updated my Timer program!
I am KSHY! A 13 year old boy who makes circuts, and I just made version 2 of my clock device, which is named AltoKit. (its a play on the word"Altoids"). Anyway I want to share it with you guys!
As you can see I added a button, but thats not all, I also tweaked the code a tad bit like adding a cool splash screen, take a look!
GITHUB: https://gist.github.com/swaykd7113-cmd/6e3ca34aaeaa911dcb818feaa6aba880
r/arduino • u/Hyper_Cats • 16d ago
Hardware Help Battery Snap leads are too short
Arduino noobie here - I was going through the starter kit projects using the Uno R3, and I was hoping to use a battery for one of the projects. I've been using my computer to power the Arduino, but when I pulled up the battery snap, the leads seemed pretty short - too short to use on the Arduino. Was there something I was missing here?
r/arduino • u/Business-Step-4891Ya • 16d ago
Esp32 Cam With FTDI FT232RL Error
Hello i'm trying to make Arduino project with ESP32 Cam. I follow instruction, my wiring is right here:
GND FTDI -> GND ESP32
VCC 5V FTDI -> 5Vin Arduino
TX FTDI -> UOR
RX FTDI -> UOT
GPIO0 -> GND
Main problem is esp32 won't comunicate at all. I check my FTDI TX/RX work normally with RealTerm. I check everything like Voltage, impedance and everything normal. But even I press reset button my ESP32 wong respon. Can someone help me?
r/arduino • u/Granap • 17d ago
Hardware Help How are you supposed to mount things on a servo ? Screws ? Glue ? Thread ?
Servos always provide little plastic parts with tiny holes.
There are 2 big screws to attach the body, a small screw to attach the little plastic part on the top gear ... but how are you supposed to fix the little plastic part to the arm of your robot?
https://componentsexplorer.com/wp-content/images/ful-datasheet-servo.jpg
A screw of a tiny diameter (my screws are all too big) ? Glue (but you can't tinker and remove it then...) ? A metal thread (this seems very weak)
I can't find any video explaining all the ways to mount things, it's far from obvious!
r/arduino • u/Sweet-Independent438 • 17d ago
An Arduino Site For Beginners?
So I started learning Arduino in my first semester of college. I remember making so many different circuits using arduino. I used to follow Paul Mchworter and also a few channels here and there and I used to have the time of my life.
As I will be free for majority of the remaining year, I was thinking of building something for the community. Like a site for beginners, where there would be list of circuits in a progressive manner, with illustration (pin images), codes etc. So that beginners can learn Arduino and different components that come with it in the kit. And apart from small circuits, make some bigger isolated projects.
I used to follow Youtube videos, college manuals, had a couple of Arduino related books which had projects etc. I could compile all of it in a nice interface.
This is not some paid project or something. Just something that might be useful to new people, so please do not filter this post thinking that.
Do you think something like this is useful or is building one a good idea?
r/arduino • u/danielps94 • 17d ago
Interactive Traffic Light with Ultrasonic Sensor
Arduino traffic light project that triggers the signal either by detecting presence via an ultrasonic sensor or by using a push-button, built with an Arduino Uno R3. Depending on the engagement this post receives, I will share the program code.