Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [arduino-uno]

The Arduino Uno is the most common of the Arduino boards. It is based on the ATmega328P microcontroller.

Filter by
Sorted by
Tagged with
0 votes
0 answers
21 views

How to tell if Uno R3 mega16u2 is dead after voltage regulator blew up (and removed) - still draws ~250mA via USB, polyfuse is hot

When powered there is a slight smell of burning electronics. The polyfuse gets hot. Part U1 (NCP117ST50T3G or compatible, visibly damaged) has already been removed from the board. It doesn't enumerate ...
Johannes's user avatar
0 votes
1 answer
36 views

Software debouncing a button when released

I'm having some trouble with software debouncing on Arduino UNO. There is a condition in my code where an unwanted debounce registers as a button push. I'm using an interrupt for my button press, ...
Boyfinn's user avatar
  • 123
1 vote
1 answer
39 views

Error: void value not ignored as it ought to be done = radio.read(&Irms, sizeof(float));

Good morning everyone, I had this sketch that worked now when loading the program gives me an error: #include <Wire.h> #include <SPI.h> #include <nRF24L01.h> #include <RF24.h> ...
ksalva's user avatar
  • 11
-2 votes
1 answer
91 views

Is it possible to power an Arduino and a bulb from the same source without a risk [closed]

Can I power the arduino and a bulb from the same power souce while controlling the bulb by a relay driven by arduino? the bulb is using 6W, if important. Did I connect the ground wire and the positive ...
playmobox's user avatar
-1 votes
1 answer
54 views

LED ring with different effects cycling

I need help for my little project. I don't know Arduino so I used ChatGPT to write me the code. After few hours of testing I almost got what I need. The scheme is the following: LED ring, push button ...
Niki's user avatar
  • 1
0 votes
0 answers
110 views

Adjusting brightness of 1-digit 7-segment indicator with 74HC595

The goal of the project is to display numbers from 0 to 9 using seven segment indicator, 74HC595 and pushing remote control buttons. It is assumed that brightness of the numbers that are displayed ...
Artur Krush's user avatar
1 vote
1 answer
92 views

Need help with programing the LCD for my project

I am trying to make a digital dice for my project in school. I am having troubles with the programming, I don't really know how to write code and I am not a programmer. I took inspiration from a post ...
Urban's user avatar
  • 19
-2 votes
0 answers
14 views

How do I relate the time when echo pin goes high with the time stamp in serial monitor

I am using two ultrasonic sensors which are placed x distance apart. I am generating sound from trig pin at the same time, how do i measure time(in secs) when the echo detects the signals. I don't ...
Dheeraj T's user avatar
-1 votes
0 answers
33 views

Heart Rate Monitor using Arduino, ESP8266 and ECG AD8232

I've just purchased an Arduino kit and I would like to implement this project: https://iotdesignpro.com/projects/iot-heart-rate-monitor-project-using-arduino-and-esp8266 The only mismatch is that I ...
Claire Buckley's user avatar
-1 votes
0 answers
65 views

Arduino Button false triggers

I'm wondering what the issue might be with the button, as I've already tried to pull it down with a resistor to ground. I tried adding a diode as well, which seemed to work temporarily, but after some ...
hardtofind's user avatar
-1 votes
0 answers
53 views

Is there anything wrong with this code?

My servo won't rotate towards the glass bin. The product is supposed to work like the one found in the Instructables project Automatic Waste Sorting Machine. #include <Servo.h> Servo Pipe_Servo;...
Chinchy Ruiz's user avatar
-1 votes
1 answer
75 views

How to use ESP12F analog pin to read battery voltage?

I'm using an ESP12F microcontroller powered by a 3.7V battery. What I want is to get actual information about the battery's state of charge. So to know when the battery needs to recharge. To achieve ...
stanimirsp's user avatar
0 votes
0 answers
67 views

74HC595 and seven segment indicator disconnection

The goal of the project is to display numbers from 0 to 9 using seven segment indicator, 74HC595 and pushing remote control buttons. IR-receiver is connected right, the command codes can be output in ...
Artur Krush's user avatar
0 votes
1 answer
27 views

DC motors not working in collision avoidance program [closed]

I am fairly new to Arduino so please forgive any silly mistakes. I'm trying to make an object avoiding car. I have a DK Electronics motor shield with DC motors in M1 and M2 places and a 9V battery ...
Gen's user avatar
  • 11
-1 votes
1 answer
16 views

HC-05 bluetooth not working

i connect HC-05 to L293d Driver shield ( vcc to + / Gnd to - / rxd to 1 / txd to 0) but the HC-05 keep flashing red and blue light what does that mean?
rawo's user avatar
  • 1
0 votes
1 answer
46 views

TinyGPS Returning Garbage [closed]

EDIT: I switched to TinyGPS++ using the included example, and it's working. Thanks all. Someone more used to StackExchange, please let me know if I should delete this. I have a Neo 6M GPS module. I ...
Jeff's user avatar
  • 101
-1 votes
0 answers
46 views

MP3 player buttons not working

I wanted to create an MP3 player using DFPlayer but because DFPlayer was not available in my area I bought FN-M16P to create the player. The buttons are not working. I used this code when I tried to ...
Yasir Hameed's user avatar
0 votes
1 answer
59 views

Keypad library isn't working or I am wrong somewhere [closed]

I am using PICSimLab to simulate a keypad. The configuration of the keypad is as shown in the picture: and the code is: #include <LiquidCrystal.h> #include <Key.h> #include <Keypad.h&...
ElectronicsBeginner's user avatar
-1 votes
0 answers
40 views

Error connection to ESP8266 NodeMCU ESP 12-e

I'm having a problem getting the Arduino IDE to connect to this board: I added the URL for the board manager in preferences: Added the board in the board manager: Selected the proper comport (COM4) ...
Jason Crosby's user avatar
-1 votes
0 answers
48 views

IMU (MPU-9256) is not working with ESP32 and Arduino Mega

I have been trying to get roll, pitch and yaw data from my MPU-9265 IMU. After trying multiple libraries and changing hardware like wires and ESP32s I was not even able to get a raw readings from my ...
Ajay Adit J 's user avatar
-1 votes
1 answer
61 views

1602 16×2 LCD display is not lighting up for my Automatic watering system project

I'm working on a project to create an automatic watering system using an Arduino Uno R3 board, a 16x2 LCD display, a water pump, and a soil moisture sensor. However, I've hit a roadblock and could ...
Not_Lucky000's user avatar
-1 votes
1 answer
58 views

How to power 2 MG996R towerpro servo

I am a beginner and tried powering MG996R Tower Pro (180 deg Metal Gear) Servo from Arduino UNO and ended up hibernating the host PC. I want to power 2 such motors (in parallel configuration) for lets ...
Aditya Jain's user avatar
1 vote
1 answer
62 views

Emulating Arduino Uno with QEMU: interrupts do not work

So I wrote this code for Arduino Uno: // file qemu.ino void setup() { Serial.begin(9600); } void loop() { Serial.println(millis()); } And then compiled and uploaded it to the real ...
lch361's user avatar
  • 11
0 votes
1 answer
48 views

IR sketch keeps getting the same code: 4294967295

#include <Wire.h> #include <LiquidCrystal_I2C.h> #include <IRremote.h> // Khai báo địa chỉ I2C của màn hình LCD LiquidCrystal_I2C lcd(0x27,16, 2); // Khai báo chân analog A0 (cảm ...
user97498's user avatar
3 votes
1 answer
70 views

I can't upload my sketch to Arduino Uno using avrdude

I have already spent a couple of days by trying to upload a sketch onto my Arduino Uno R3 board and now it's time to give up, so I'm trying to ask some more experienced developers. My hardware and ...
Alexander Perechnev's user avatar
0 votes
2 answers
117 views

Capturing frequency using a photodiode

I've just bought the following photodiode (here) and I am trying to make a simple Arduino circuit/code so that the photodiode is able to record an LED blinking at an arbitrary refresh rate (frequency)....
wisdom's user avatar
  • 99
1 vote
0 answers
36 views

Driving stepper to follow sequential positions

I was exploring the stepper motor library AccelStepper and using it because of it's easy interface to control multiple stepper motors simultaneously. Recently I got a problem. I needed a stepper motor ...
winner's user avatar
  • 11
1 vote
0 answers
85 views

Issue with multiple RC522s connected to Arduino Uno

THIS IS NOT A DUPLICATE QUESTION. My main problem is that whenever I attach the third RC522, the whole system becomes unstable. When I attach the fourth, suddenly one or two of the modules stop ...
Arman Asgharpoor's user avatar
0 votes
1 answer
49 views

How to connect TFT screen (ST7735S) to Arduino?

I'm learning to work with Arduino and I decided to work with a TFT display (driver ST7735S, I connect to Arduino Uno), but I encountered a problem in the form that my contacts are labeled differently ...
Prog's user avatar
  • 111
0 votes
1 answer
69 views

How to make a stepper motor's speed follow a sine wave

I'm trying to have the rotational speed of a stepper follow that of a sine wave with a period of x seconds. So it starts at a speed of 0 at 0°, picks up and peaks at 90°, slows back down to 0 at 180°, ...
Dezcat's user avatar
  • 11
1 vote
1 answer
57 views

Bad symbols in the serial monitor when connected via USB 3.0

I tested DHT11 + Arduino Uno with a very basic example sketch. The Arduino board was connected to USB 3.0 and sometimes I saw incorrect symbols in the serial monitor, e. g. "Humidit?: _7%" ...
Mik's user avatar
  • 149
0 votes
1 answer
31 views

Arduino Uno/Nano + ML

I couldn't find any clear answers elsewhere, hence I'm asking here. I have a TensorFlow/TensorFlow Lite model which I have already trained on some sensor data. Now, how can I utilize this model on my ...
S.A's user avatar
  • 11
0 votes
2 answers
65 views

Translating analogWrite() into PWM duty cycle formula

We can use the function analogWrite(int x) for digital pins which support PWM because any microcontroller has a built in PWM generator.For given x and for Arduino Uno which is the formula to calculate ...
Root Groves's user avatar
1 vote
1 answer
46 views

What prescaler to use for finer control?

I'm using a UNO to generate a 10 kHz PWM signal. I need finer duty cycle variation. The prescalers supported are 1, 8, 32, and 64. void setup() { pinMode(3,OUTPUT); TCCR2A = bit (WGM20) | bit (...
Pranav Pillai's user avatar
-1 votes
2 answers
240 views

I need a 10KHZ PWM signal from pin 3 and 11 using timer 2

The op of pin 11 should be inverse of pin 3. I used digitalreadfast and digitalwritefast and used simple if else. But the delay is high as 10us. What should i do? I found this code in forum but its ...
Pranav Pillai's user avatar
0 votes
0 answers
41 views

Controlling dynamixel servo from Arduino-Mega

I was trying to control a dynamixel servo from Arduino Mega. The protocol for the communication is half duplex, and I successfully sent data to the servo motor and got it actuated/turned the LED on ...
Lawliet's user avatar
  • 183
0 votes
2 answers
101 views

Why does my Arduino show weird characters with my code?

When I had the code run just the LCD it worked perfectly fine, but when I added an HC-SR04 without changing the text it showed weird characters. All I had the code do with the HC-SR04 was print it in ...
zachlikestech's user avatar
1 vote
1 answer
59 views

Can't get serial port's attention once sketch is running

This sketch is supposed to listen for a single character sent to the serial port, as a means of starting and stopping data collection (which in this example is mocked by printing some register values)....
Bryan Hanson's user avatar
0 votes
1 answer
39 views

Issue with uploading Arduino sketch on Ubuntu 20.04 [duplicate]

I'm encountering an issue while attempting to upload an Arduino sketch on my Ubuntu 20.04 system. Despite ensuring that the correct board is selected and the USB port is recognized properly, I ...
athiyan sankar's user avatar
1 vote
0 answers
207 views

USB Driver for LGT8F328P Arduino clone

Where is the USB driver for LGT8F328P Arduino Nano clone downloaded from for Windows 10 64-bit? When I plug in the LGT8F328P into USB, using IDE 1.8.13, it does not detect it. I think it is because ...
Z.E.'s user avatar
  • 45
0 votes
1 answer
361 views

Incremental Rotary Encoder sends data when shaft is untouched

I'm trying to build an Arduino project that counts pulses sent by an encoder. I've bought an Omron E6B2-CWZ5B-2 2000P/R and face the issue of it sending pulses non-stop, even when I'm not touching it. ...
Do I Care's user avatar
1 vote
2 answers
210 views

Why doesn't this code for an 8x8 LED matrix work properly?

There's an Arduino Uno (Keyestudio KS0078) and a 788BS 8x8 LED matrix. I built the circuit as on the image and ran this program: #define MY_PERIOD 200 int displayColumn = 0; uint32_t tmr1; unsigned ...
Mik's user avatar
  • 149
0 votes
1 answer
384 views

How to connect an Arduino Uno with an ESP-01 to the Arduino IoT cloud?

I have been trying to connect to the Arduino IoT cloud using my Arduino Uno and an ESP-01. The Arduino IoT cloud does not recognize my device as genuine. Hence, I've been trying to create a thing and ...
Saurav Ghimire's user avatar
2 votes
1 answer
160 views

How to change the direction of a stepper motor using the AccelStepper library?

I'm using a Nema 17 stepper motor (200 steps) and a DRV8825 motor driver. This is the configuration I am using: I am using a 9 V power supply. The dirPin is connected to pin 3 on the Arduino board, ...
Michael Junior's user avatar
2 votes
1 answer
99 views

RTC DS1307 module not working

I have a problem with an RTC: it doesn't work correctly. When I try to read date or time, I only see the characters "àààààààà" or or the program is blocked. #include <Wire.h> #include &...
Qmails's user avatar
  • 23
0 votes
2 answers
82 views

I can't get my interrupt to control my project

I'm building a programmable resin pump for my resin printer. The goal is to enable the ability to set a print volume and print time provided by the printer. The pump would then pump at full speed to ...
TheCodeGeek's user avatar
-1 votes
2 answers
76 views

I cannot resolve the errors with attachInterrupt() (error: invalid use of non-static member function) [duplicate]

I have been trying for days to get this code to work, but I cannot find a solution. Can anyone please help me find what I am missing here? My sketch: #include <ControlInterrupt.h> const int ...
TheCodeGeek's user avatar
1 vote
0 answers
98 views

Unable to connect to SHT4x sensor probe through I2C bus

Error trying to execute serialNumber(): ReceK on transmit of address Error trying to execute serialNumber(): Received NACK on transmit of address Error trying to execute measureHighPrecision(): ...
Ajai Arjun's user avatar
-1 votes
1 answer
221 views

Why does an ESP01 WiFi module reset when it's connected to a DC motor/water pump?

When I connect an ESP01 WiFi module and water pump in a parallel circuit to an Arduino Uno's 5 V pin, the ESP01 stops working. The ESP01's built-in LED starts blinking chaotically and the serial ...
stanimirsp's user avatar
0 votes
1 answer
87 views

How does the serial monitor know where a string terminates when we use Serial.print instead of Serial.println?

EDIT: I thought I had to parse the things coming into the program but the speed it is running at makes it indistinguishable to the eye that the word is being printed piecewise. I am trying to create a ...
Aman's user avatar
  • 3

1
2 3 4 5
163