r/ArduinoHelp • u/hackjunior • May 14 '24
r/ArduinoHelp • u/WassimSarghini • Apr 26 '24
I need advice regarding the next project
I am new to Arduino and Robotics (One day experience) and i have just made my first project which is blinking an led "https://electronicmindset.netlify.app/how-to-make-an-led-blink-with-arduino-uno"
However, I think it's kind of boring and I want to make another project that is fascinating.
Do uou have any idea .Note: I have ulrasonic sensor , servo and some led's plus 16*2 lcd display .
r/ArduinoHelp • u/Unknown_zektor • Apr 22 '24
Help on auto door
I want the motors to move when the sensor detects something but when the sensor detects something again then it will stop the motors. I’m having trouble with that.
r/ArduinoHelp • u/Better_Off_Broken • Apr 12 '24
Have no clue what I am doing
Hello!
Just got myself an arduino board and pir sensor and am trying to get a motor to turn only when the sensor is triggered. I have followed as many YouTube video as I can find, and tried applying similar ways but no one is really doing the same thing as me. I have never done and circuit work or coding, hoping someone can show/tell me where I have gone wrong.
Thanks!
r/ArduinoHelp • u/Wide_Price7320 • Mar 25 '24
help
so im making want to have the tempreture read off my 7 seg display but i just wont work the wireing is corect the sensor works but my display is cyceling between random letters
#include <DHT.h>
#include <SevSeg.h>
#define DHTPIN 9
#define DHTTYPE DHT11
SevSeg sevseg;
DHT dht(DHTPIN, DHTTYPE);
void setup() {
byte numDigits = 4;
byte digitPins[] = {1, 12, 11, 10};
byte segmentPins[] = {2, 3, 4, 5, 6, 7, 8, 0}; =
bool resistorsOnSegments = false;
byte hardwareConfig = COMMON_ANODE;
bool updateWithDelays = false;
bool leadingZeros = false;
sevseg.begin(hardwareConfig, numDigits, digitPins, segmentPins, resistorsOnSegments, updateWithDelays, leadingZeros);
sevseg.setBrightness(10);
dht.begin();
}
void loop() {
float temperature = dht.readTemperature();
if (!isnan(temperature)) {
sevseg.setNumber(temperature, 1);
} else {
sevseg.setChars("Err ");
}
sevseg.refreshDisplay();
delay(1000);
}


EDIT
the diagram is for a arduino uno but im using a arduino nano and the exsact same pins exsept pin d13 i moved it to RX0
r/ArduinoHelp • u/knight-bus • Jan 18 '24
What board is this? How do I upload to it? Details in Comment.
r/ArduinoHelp • u/AyaAscend • Dec 20 '23
Help with a project: How to detect a specific obejct's proximity?
I have this project I'm making which will activate when a specific key object is near the system
I just need a way to detect this specific object, but I feel like having a camera is too overkill since I want to detect a single thing. Is there a way to do this? I'm sorry if this is too obvious, I'm quite new to this whole arduino thing haha
If you want to know the specifics of my project: When the arduino detects that the key object is nearby (the object in question being a wristband), it will activate a robot. I intend on making a real life version of the Security Puppet from Five Nights at Freddy's 6 and, in the game, it detects a green wristband and activates. How can I do that? Is there a component or sensor that does this sorta thing?
Thank you for your time
r/ArduinoHelp • u/wwwhatisthisss • Dec 10 '23
Arduino Multiple Rounds Help

#include <stdlib.h>
#include <stdio.h>
#ifdef _WIN32
#include <Windows.h>
#else
#include <unistd.h>
#endif
#include "rs232.h"
void wait_ms(int ms) {
#ifdef _WIN32
Sleep(ms);
#else
usleep(ms * 1000);
#endif
}
int read_serial(int cport_nr, char *buf) {
int n = 0;
while (!n) {
n = RS232_PollComport(cport_nr, buf, 255);
int last_n = 1;
while (n && last_n) {
wait_ms(10);
last_n = RS232_PollComport(cport_nr, buf + n, 255 - n);
n += last_n;
}
}
buf[n] = 0;
return n;
}
void write_serial(int cport_nr, char *buf){
RS232_cputs(cport_nr, buf);
}
int main() {
int n = 0,
cport_nr = 15, // COM port number
bdrate = 9600; // Baud rate
char mode[] = {'8', 'N', '1', 0},
buf[256];
if (RS232_OpenComport(cport_nr, bdrate, mode, 0)) {
printf("Can not open comport\n");
return (0);
}
char playagain;
int guess, continueReading, continueReading2, restartGame = 0;
do {
printf("Waiting for MBED...\n");
continueReading = 1, continueReading2 = 1;
// Receive and display messages from mbed
n = read_serial(cport_nr, buf);
printf("MBED: %s\n", (char*)buf);
wait_ms(1000); // Add a delay between messages
while (continueReading) {
scanf("%d", &guess);
sprintf((char*)buf, "%d\n", guess);
write_serial(cport_nr, (char*)buf);//send
// Receive and display messages from mbed
n = read_serial(cport_nr, buf);
printf("MBED: %s\r\n", (char*)buf);
wait_ms(1000); // Add a delay between messages
// Check if the received message indicates that you should stop reading inputs
//comparing input buffer with the message
if (strstr(buf, "Would you like to play again (y or n)?") != NULL)
continueReading = 0;
}
scanf(" %c", &playagain);
sprintf((char*)buf, "%c\n", playagain);
write_serial(cport_nr, (char*)buf);//send
wait_ms(1000); // Add a delay between messages
// Clear the input buffer
while (getchar() != '\n');
while (continueReading2) {
// Receive and display messages from mbed
n = read_serial(cport_nr, buf);
printf("MBED: %s\r\n", (char*)buf);
wait_ms(1000); // Add a delay between messages
// Check if the received message indicates that you should stop reading inputs
//comparing input buffer with the message
if (strstr(buf, "The End.") != NULL)
continueReading2 = 0;
if (playagain == 'y') {
// Receive and display messages from mbed
n = read_serial(cport_nr, buf);
printf("MBED: %s\r\n", (char*)buf);
wait_ms(1000); // Add a delay between messages
}
if (strstr(buf, "Restarting the game...") != NULL)
restartGame = 1; // Set the flag to restart the game
}
} while (playagain == 'y' && restartGame);
RS232_CloseComport(cport_nr); // Close the port
return (0);
}
I changed my code and added a condition for the pc programme to only proceed again after the message restarting the game is sent from the mbed… I don’t understand why it doesn’t let me still enter the guesses and why it doesn’t print waiting for the mbed… it gets stuck there after what is you guess but doesn’t let me insert a guess. At what stage does it get stuck in the pc programme? Is it a matter of clearing the guesses variable? Or the buffer?
r/ArduinoHelp • u/Connor_Adjacent • Nov 24 '23
6v High Torque Servo Won't Function On Motor Shield?

I have only ever been able to get this servo to “somewhat” work when connected to 5v pin on the shield, the ground on the shield, and the signal line attached to whatever pin. But 5v is not enough and 9v is too much. I'm trying a million different ways to power this thing, but I don't understand why I give it an appropriate voltage from X source (while still having the signal line connected of course), and it doesn't want to move at all.
So currently my Arduino is powered via USB. The shield/motor is powered from a 12v 2a power supply, which with a simple voltage divider circuit gets me 6.29V. Multimeter seems to show this works. Also the “Vin Connect” jumper on back was cut to make the screw terminals a dedicated power line for the motor, per Arduino website. I tried this set up without cutting the jumper too, same - no result.
Can anyone help me out? All I want to do is power my arduino with shield, and motor, however that has to happen, and be able to run the "Servo Sweep" example code.
https://docs.arduino.cc/hardware/motor-shield-rev3
https://www.amazon.com/ANNIMOS-Digital-Voltage-Stainless-Waterproof/dp/B07KTSCN4J
r/ArduinoHelp • u/TurtleMans07 • Nov 12 '23
Making a midi controller with a nano
Code verifies fine but everytime I upload it this happens. Do I need a new board or is there something else that's wrong?
r/ArduinoHelp • u/acomputertech2 • Oct 18 '23
Help with seeeduino xiao samd21 unbricking
Hello:
I have an XIAO samd21 i had in a project. It worked one day and the next day it would not work. I plugged the device into windows and it was not detected. I've tried using openocd per a couple of posts I found. (https://forum.seeedstudio.com/t/how-to-unbrick-a-dead-xiao-using-a-xiao-daplink-and-openocd/261800) this is the current one i'm trying. I loaded the DAPLINK onto a XIAO RP2040 and wired it to the samd21 via the xiao expansion board. I tried a similar method with an RPI Zero 2 w and couldn't get that to connect either. I know the samd21 is a 10 dollar board but I'd like to try and fix it anyway for the experience. From what I can tell, I have everything wired correctly.
The pic below is how i have the board wired and the screenshot below that is the error I'm getting.
Should I just assume the samd21 is shot or is there something else I cant try?


r/ArduinoHelp • u/lesleyhoes • Sep 30 '23
Arduino connected with 4g module
Hi. I really need some help. I have a crowtail-4g sim a7670e module. The module is working perfectly fine when I use a program like putty. Now I am trying to connect it through an Arduino UNO. The Arduino I have Rx pin on the arduino connected with the Tx pin on the module and the Tx pin of the Arduino connected with the Rx pin of the module. I have the ground pin on the module connected with the GND on Arduino. I have the 5V pin of the Arduino connected with the vcc of the module with a potentiometer in between to supply the ideal 4,17V. I have the code as bellow:
‘’’
include <SoftwareSerial.h>
SoftwareSerial mySerial(2, 3);
void setup() { Serial.begin(9600) mySerial.begin(9600); pinMode(2, INPUT); pinMode(3, OUTPUT);
void loop() {
if (Serial.available()) { char inChar = Serial.read(); mySerial.write(inChar); }
if (mySerial.available()) { char inChar = mySerial.read(); Serial.write(inChar); }}
‘’’
I have the baud rate in the seriël monitor on 9600, but when I type in AT-commands like 'AT' I get no response. Does anyone see what I am doing wrong. I have included some pictures of the connections
r/ArduinoHelp • u/FunctionOtherwise465 • Sep 27 '23
noob question
I am new to Arduino and I have a question on the schematic for my 8x8x8 led cube. The schematic shows wires going from a component to "VCC". What is VCC? Is it the 5V pin on the Arduino board? Same for the ground? Thanks
r/ArduinoHelp • u/Azorea7777 • Sep 12 '23
Arduino Uno Beginner - Capacitor
Arduino Uno Beginner - Capacitor
I'm very new to the Arduino Uno and I'm on project 5 of the booklet that came with it. This introduces 100uf capacitors. I was doing well until I read to be careful because it can explode if placed wrong, which stopped me in my tracks because I'm doing this with my young nephew. I bought a multimeter but to help me feel more confident but I'm new to using that as well. Some Questions..
If a 100uf capacitor connected to 5V explodes is it a small poof of something dangerous?
Do I need to discharge it once I'm done with the project? If so how do I do that safely?
Can I store these components in a regular plastic organizer/box or do they have to be in a anti static container of some sort?
Any multimeter tips?
Any recommendations on tweezers/pliers for placing the wires in the breadboard, they always get messed up when I try to put them in.
Any newbie advice would be appreciated (I'm scared lol), thanks!
r/ArduinoHelp • u/niagalacigolliwon • Sep 03 '23
I'm working on a bigger project and I have this issue where my LEDs don't light up. Stripped down the code to the bare minimum yet they still do not light up. Any help? (Link to my LED strip in comments)
r/ArduinoHelp • u/Active-Story-5297 • Aug 12 '23
Why is xiao esp32s3 showing up as deneyap kart G? And how would I fix this?
r/ArduinoHelp • u/Total_Stomach4296 • Aug 11 '23
Decrease voltage without decreasing amperage
Hello Everybody,
I am currently working on a project in which I use a dc motor and a servo. The dc motor works at 9v, so I am using a 9v battery. I want to connect the servo to a battery instead of arduino because it simply draws too much current. I want to use the 9v battery for the servo too. How can I reduce the voltage while keeping the amperage the same? Voltage divider circuit seems to lower amperage and Id prefer to not buy a buck converter. Can I use a motor driver to lower voltage? (I am using an L298N)
Thanks!
r/ArduinoHelp • u/[deleted] • Aug 08 '23
easiest way to create database for photos taken with esp32 cam with arduino uno.
I am a total beginner trying to make a system where esp32 cam will take pictures every minute and save it to a database. Google drive seems to be the best option. But as a beginner, it looks too complicated. And every website has different instructions and codes. I and my 2 friends have 3 days to make this. But our esp32 cam is not even enrolling faces. It does detect faces but does not enroll.
PLEASE HELP!!!!
r/ArduinoHelp • u/Calm_Adhesiveness952 • Jul 31 '23
My motor shield is giving constant power when it shouldn’t
My motor shield i M3 and m4 are giving constant power when they shouldn't my Arduino is not even plugged into my computer to tell it to send power to there. M1 and m2 are not sending any power out of them.
I have a cheap multimeter that can only be used in automatic. I can only get it to show Ohms for m1 and m2
r/ArduinoHelp • u/PhiIswlft • Jun 25 '23
help needed
i have been trying to upload code to my arduino nano for several hours now and every time it just comes up with "executing comand: exit status 1" and the code never copies to my board and its frustrating. if it is needed here is the verbose output. "
/usr/local/bin/arduino-cli compile --fqbn arduino:avr:nano:cpu=atmega328 --build-cache-path /tmp --output-dir /tmp/1965698212/build --build-path /tmp/arduino-build-50166027C3E6EEFA8194B5C141B807D2 /tmp/1965698212/sketch_jun25a
Sketch uses 1898 bytes (6%) of program storage space. Maximum is 30720 bytes.
Global variables use 63 bytes (3%) of dynamic memory, leaving 1985 bytes for local variables. Maximum is 2048 bytes.
Upload started
Programming with: Serial
Flashing with command:C:/Users/vincent dionese/.arduino-create/arduino/avrdude/6.3.0-arduino17/bin/avrdude.exe -CC:/Users/vincent dionese/.arduino-create/arduino/avrdude/6.3.0-arduino17/etc/avrdude.conf -v -patmega328p -carduino -PCOM3 -b115200 -D -Uflash:w:C:/Users/VINCEN~1/AppData/Local/Temp/arduino-create-agent2255268964/sketch_jun25a.hex:i
avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:/Users/vincent dionese/.arduino-create/arduino/avrdude/6.3.0-arduino17/etc/avrdude.conf"
Using Port : COM3
Using Programmer : arduino
Overriding Baud Rate : 115200
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x44
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x44
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x44
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x44
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x44
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x44
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x44
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x44
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x44
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x44
avrdude done. Thank you."
r/ArduinoHelp • u/step-fish • Jun 16 '23
difference between Wire and HWire
Hey guys, can anyone help me understand the difference between Wire & HWire? I'm trying to use i2c HWire to retrieve 11 calibration parameters from a sensor's EEPROM, sensor's i2c address is 0X77 , the parameters are each 1 word (2 bytes, MSB first, then LSB), register addresses for these parameters are 0XAA (MSB), 0XAB (LSB), next parameter 0XAC and up till 0XBE, making them 11 parameters of each 2 bytes. Now i have a problem for getting these values, i tried 2 ways and i failed, first i defined an array to store these values and used a for loop for getting these values, but it doesn't work and i don't know why, maybe if anyone knows can explain please? I'll write the code here:
#include <Wire.h>
TwoWire HWire (2, I2C_FAST_MODE);
#define bmp180_address 0x77;
uint8_t baro_cal=1;
Int16_t C[11];
HWire.begin();
for(baro_cal = 1 ; baro_cal <= 11 ; baro_cal++){
HWire.beginTransmission(bmp180_address);
HWire.write(0XA8 + baro_cal * 2);
HWire.endTransmission();
Hwire.requestFrom(bmp180_address, 2);
C[ baro_cal ] = HWire.read() <<8 | HWire.read();
}
Calibration_parameter_1 = C [1];
Calibration_parameter_2 = C [2];And so on ... But this didn't work, i used serial monitor and serial print to print the calibration values, but it doesn't show the values, the problem is not with serial print, I'm using it to show multiple stuff, everything works but the calibration values are not showing on serial monitor, The other method that i used to get the calibration values is like the code i wrote before, but instead of a "for loop" i used the code that i worte inside of the "for loop" 11 times with register adresses individually, this way in the serial monitor the first parameter shows a value, and the rest are all 0, i tested this with different register addresses and for whatever register is the code run fist, it shows the value, and the rest show zero. I'd appreciate if anyone can help me.
r/ArduinoHelp • u/Tiny_Magazine6707 • Jun 11 '23

