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
-2 votes
0 answers
6 views

Power factor measurement

I want to calculate power factor using the time difference between voltage and current..I am thinking of using Arduino interrupt function to do that..can someone provide me with the code to do this
Essey's user avatar
  • 1
1 vote
1 answer
27 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
-2 votes
2 answers
56 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
44 views

How to use Arduino to control motor position based on force sensor feedback for object grasping? [closed]

I'm working on a robotic gripper using capacitive touch sensors and servo motors to register a force and move the motors based off the force registered. The idea is that it will not keep closing the ...
Stephen_Mcl's user avatar
0 votes
0 answers
19 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
54 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
0 votes
0 answers
40 views

Moving servos with IR sensors

This is what I have so far: The plan: I have two IR sensors I have two servos What I would like to achieve is as follows: Enter IR sensor 1 and leave, servo 1 will turn to 180 Enter and leave IR ...
PeterJoe's user avatar
1 vote
1 answer
54 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
0 answers
17 views

When I upload code I get this error [duplicate]

When I upload code I get this error, how can I fix it? avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x35 avrdude: stk500_recv(): ...
Yug Savaliya's user avatar
0 votes
1 answer
25 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
56 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
1 vote
1 answer
88 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
196 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
  • 139
0 votes
0 answers
21 views

How to integrate two codes like fingerprint scanner and RFID for door lock system [duplicate]

#include <Adafruit_Fingerprint.h> SoftwareSerial mySerial(2, 3); Adafruit_Fingerprint finger = Adafruit_Fingerprint(&mySerial); uint8_t id; void setup() { Serial.begin(9600); while (!...
KingJulien's user avatar
0 votes
1 answer
90 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
70 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
0 votes
0 answers
46 views

AVRDUDE issue with port on Linux [duplicate]

I've seen similar posts like this but I haven't been able to figure out the issue. I am trying to program my Arduino Uno R3 which uses an ATmega328p on Debian linux with AVRDUDE. I am following this ...
tekteky53's user avatar
2 votes
1 answer
64 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
68 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
55 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
41 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
180 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
79 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
0 votes
1 answer
42 views

Why does the ADC report 0 in this sketch?

This sketch always reports 0 for the ADC reading. I think this is going to turn out to be something silly, but I cannot find the source. I've reviewed the sketch ADC lines carefully and they seem ...
Bryan Hanson's user avatar
-1 votes
1 answer
77 views

LED control with a string variable

I would like to control three LEDs with a string variable using an Arduino Mega. I have connected the three LEDs to pins 10, 11 and 12 of the Arduino. If my string equals Red, the red LED should turn ...
learn design's user avatar
1 vote
2 answers
150 views

"Done uploading" but Uno still running old sketch

So, this is my first experience, I bought new original Uno, trying write some code there and it stuck in running only one sketch. Tools->Boards is ok, Tools->Ports is ok. I try created new ...
Сергей Белогуб's user avatar
1 vote
1 answer
112 views

ESP8266 - Where to find pin assignment guide for uploading code?

I try to upload a script which starts a webserver on the ESP8266 with a simple web GUI where the user can enter his WLAN credentials. /* ===============================================================...
Black's user avatar
  • 109
-1 votes
1 answer
40 views

Arduino Uno error resp=0x27 [duplicate]

I use the Chinese copy of board. My code is right, but when i upload to board, it print me this: avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 1 of 10: not in ...
DenisBaramygin's user avatar
-1 votes
1 answer
43 views

inputs randomly turn on and off [duplicate]

I'm building the dactyl manuform, and I'm writing all of the code myself, but I've ran into a problem here's my code: // the setup routine runs once when you press reset: void setup() { Serial.begin(...
Umikali's user avatar
0 votes
1 answer
27 views

Photoresistor Matrix has the same values

I'm a second-year System Engineer student who needs to make a project for class. I have a 4x4 matrix of photoresistors that goes to an analog digital multiplexer connected to an Arduino Uno. This ...
Iustinian Serban's user avatar
1 vote
0 answers
163 views

I just downloaded the Arduino IDE and it doesn't compile any code

FQBN: arduino:avr:uno Using board 'uno' from platform in folder: C:\Users\Kareem\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6 Using core 'arduino' from platform in folder: C:\Users\...
kareem's user avatar
  • 11
2 votes
3 answers
153 views

Importing content of text file as string into Arduino code

Is there any macro for importing the content of a file (for example html code) located in the sketch folder as a string for the Arduino IDE during compilation time?
Ali.kavari76's user avatar
-1 votes
1 answer
49 views

Equivalent libary of RTCZero for Arduino UNO

I am a beginner to Ardunino UNO This is my first program to light up an LED strip #include <Adafruit_NeoPixel.h> #include <RTCZero.h> #define PIN 6 #define NUMPIXELS 60 ...
suni's user avatar
  • 101
-1 votes
1 answer
59 views

How to output two PWM signals, one of 50% duty cycle, the other 25% duty cycle, from an Arduino Uno?

I need to output two PWM signals, one of 50% duty cycle, the other 25% duty cycle, from an Arduino. Feed both signals into the 2 channels of a PicoScope and measure: a) the time difference between the ...
Regan Corban's user avatar
0 votes
1 answer
82 views

GPS module Serial.begin value

I've disassembled a drone and found a GPS module. I want to use it. I haven't found any information about the architecture and the Serial.begin value I have to use. Could I break it if I tried ...
drMAIN's user avatar
  • 1
0 votes
1 answer
72 views

Unable to get keypad key in while loop [closed]

I'm a beginner into Arduino so I have a little problem where I'm trying to do a countdown on LCD using while loop but I'm also trying to get a key input inside that same while loop. Problem is that ...
DevChips's user avatar
-1 votes
1 answer
78 views

L298n driver with Arduino with 2 motors won't work

I connected the 12v power supply with 9v battery. The problem is that when i run 1 motor at time from any side (out 1, 2 out 3, 4) it works perfectly, but when I try to run both of them, only one will ...
nitu sahay's user avatar
1 vote
2 answers
155 views

DHT20 and OLED display not working together

I am trying to get my DHT20 and OLED (both from the Arduino Sensor Kit) to work at the same time. I am able to get them working separately with their respective test codes, but when I try to combine ...
Darren D'Arcy's user avatar
1 vote
1 answer
50 views

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 ...
ConnorC's user avatar
  • 11
0 votes
1 answer
75 views

Arduino Uno, does a lower Aref voltage work well for measuring current? without increasing ADC integral non-linearity

I want to measure current using a Arduino Uno and use a very low resistance of 0.1Ohm or lower for the shunt resistor to measure the current(to reduce power waste and heat generation), as a result ...
TeD van Loon's user avatar
2 votes
1 answer
101 views

Why my pushbutton always reads LOW?

This is the code I used in my project void setup() { Serial.begin(9600); pinMode(6,OUTPUT); pinMode(7,OUTPUT); pinMode(8,OUTPUT); pinMode(9,OUTPUT); pinMode(10,OUTPUT); pinMode(11,...
KillerJosh345's user avatar
1 vote
0 answers
33 views

Motor Shield Enable and Input Pins

Hello, I am new to the Arduino UNO board and am trying to make a dc motor run using the MATLAB software. The motor is connected to the motor shield board in a similar way shown in the picture below (...
KnightRider's user avatar
1 vote
0 answers
59 views

How do I control a BLDC with greater precision using bluetooth?

I am building a quadcopter drone and I have 4 BLDC motors that I can control using an HM10 Bluetooth module and the "Dabble" application. My problem is that when I use a virtual joystick in ...
gabe29's user avatar
  • 11
4 votes
3 answers
541 views

How to compile without adding the bootloader?

I'm using a standalone atmega328p with a 16MHz crystal. I'm programming it via avrdude on a raspberry pi, using the SPI and RESET pins. When I compile my program, this is what I see at the end of the ...
php_nub_qq's user avatar
-1 votes
1 answer
68 views

Compilation error: 'Serial' does not name a type [closed]

#include <IRremote.h> IRrecv IR (11); Serial.begin(9600); void setup() { // put your setup code here, to run once: IR.enableIRIn(); } void loop() { // put your main code here, to run ...
maxerex's user avatar
0 votes
0 answers
75 views

Setting flag for sending data through advertisements using hm-10 mlt bt05 and arduino uno

I have succesfully connected to my hm-10 device and started configuring it using AT commands. I would like to know if it is possible to modify the data sent in advertisement and read it on another hm-...
stamley's user avatar
0 votes
1 answer
60 views

ATmega328 drop-in replacement with more flash memory

Is there a ATmega328 drop-in replacement with more flash memory? Needs to be 28 pin DIL to fit the socket. Alternatively, is there a board that has the exact dimensions and pins as an Arduino UNO, but ...
Björn Morén's user avatar
2 votes
1 answer
118 views

Get address of a I2C transaction when multiple addresses are registered

I have an application polling 4 ADCs by I2C. The application shall also write on some ADC registers. In order to test it, I'd like to use a single Arduino UNO, enabling it for receiving I2C messages ...
lumaca96's user avatar
2 votes
1 answer
73 views

I would like to know why my four gear motors are rotating at different speeds when connected to 2 L293D motor drivers, controlled by the arduino

Ignore direction of the motors(for now). This is my connection diagram. Any and all improvements to this are welcome. Bottom left motor seems to run at 210-224 rpm Bottom right motor runs at 160-180 ...
Veeraja Veeraesh's user avatar
1 vote
1 answer
329 views

How to handle class initialization when using brace-enclosed initializer lists

I'm working with a custom C++ library, CPSTL, for Arduino, which includes a cpstd::vector class that is designed to work with cpstd::initializer_list, cpstd::initializer_list is supposed to mimic std::...
Cheche Romo's user avatar

1
2 3 4 5
162