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
3
votes
1answer
59 views

Help solving “collect2.exe: error: ld returned 1 exit status” error in code

I just got an Elegoo UNO starter kit the other day and have been working my way through the little tutorials on all the parts it came with. I am using VSCode with Platform.io plugin and (after getting ...
2
votes
1answer
30 views

Set control register to low in ds3231 rtc

I have been using ds3231 rtc module for keep tracking and make alarm along with backup battery. when I used it for first time it worked fine. but now it doesn't keep track my time when the power lose ...
2
votes
2answers
37 views

Not output on serial monitor, sending string on serial.print

I get two 10-bit values from analog pins. These two values in a string, ";" combine with. for ex: 515; 510 I am sending it to another arduino via Serial.print. I cannot display this string ...
0
votes
1answer
34 views

Arduino waits until button release to activate

I'm fairly new to arduino, and on my own I'm trying to move a servo to the left and right using 2 buttons. I've got it working for the most part, however when I hold the button down nothing happens, ...
0
votes
2answers
42 views

Arduino TFMini Lidar sensors and speaker

I have this code for the TFMini Lidar sensors and Speaker. I Need help figuring why I'm using this calculation in my code and why if I removed it the lidar will not give me any measurement? (see below ...
0
votes
1answer
64 views

How to read a specific amount of data via serial?

I'm trying to send data via serial from my Arduino nano to my ESP. Its an integer from 1 to 4 digits so something like 0, 13, 1234, 123, ... Every thing works fine but when the data comes too fast it ...
1
vote
0answers
28 views

Custom PS4 joystick with arduino

I am acquiring a Logitech G29 for my PS4 and I want to have an external handbreak. The handbrake only needs an input when active, so no "pressure level" or something like that required, only ...
1
vote
2answers
47 views

How to make my LCD screen brighter

I'm trying to make my LCD screen brighter, can someone can help? These are the code and the connections: //LCD #include <LiquidCrystal.h> int Contrast=75; LiquidCrystal lcd(12, 11, 5, 4, 3, 2); ...
2
votes
0answers
40 views

Two LED Patterns Task Controlled by GUI

I am very new to Arduino and coding/programing. I set a task for myself to make a simple circuit of 5 LEDs controlled by pins 2, 4, 8, 11, 12. I want to be able to make two different pattern for the ...
0
votes
1answer
33 views

'Serial1' was not declared in this scope for automatic plant watering

#include <LiquidCrystal.h> #include <SoftwareSerial.h> int in1 = 2; int in2 = 3; LiquidCrystal lcd(14,15,16,17,18,19); int led = 13; int flag = 0; int motorpin = 11; int sensorpin = 7; ...
0
votes
3answers
140 views

How to use the pushbutton without using if, else

I want to let the led blink for 3 seconds then 2 seconds then one second using the button one time and without using if/else void setup() { // put your setup code here, to run once: pinMode(...
2
votes
1answer
84 views

Arduino “Maximum Power point tracker” (MPPT) Problem

I need an IV curve for a solar panel. As far I know, solar-panel and Diode IV curve pretty much the same. Here, I am using diodes(6A10-1) as a solar-panel. Where each Diode voltage drops 0.6volt. I ...
1
vote
1answer
76 views

Real Time clock module error-DS3231

This is not a code error I have been using DS3231 RTC module with battery. When I bought this module It worked perfectly now when I get it to use, The time is running perfectly. when I set the current ...
0
votes
1answer
26 views

Is there a way to send a String via a Webserver Textbox without the use of the SD card?

Since my last post, I've been trying to do some extra things with my Stranger Things Wall Project. I connected a LCD Screen (16x2) that will take any text being processed to the wall and show what is ...
2
votes
2answers
178 views

ESP-01 + UNO won't detect gateway

Apparently, this combination of hardware won't accept anything other than WiFiEsp.h together with SoftwareSerial.h (if anyone knows something better/newer than these two, please let me know). Thing is:...
0
votes
1answer
30 views

Problem with L293D controlled motors using IR pilot remote

I have a problem with my line follower: My robot has 4 wheels with DC motors connected to L293D shield (Arduino Uno). The robot is a line follower controlled by IR pilot with an IR receiver, it has 4 ...
1
vote
0answers
28 views

How to combine a RFID attendance system and proximity sensor alarm system

I am currently working on my final year project that involves a basic rfid attendance system and a proximity alarm system. The project intends to prevent ManOverboard situations by warning people who ...
1
vote
1answer
58 views

Error reading file

What should be done to solve it? I have edited the board.txt file and none of my codes are getting verified it shows this error: "Error reading file (C:\Program Files (x86)\Arduino\hardware\...
2
votes
0answers
102 views

How do I split an incoming char? [duplicate]

I am sending a list of joystick positions via the serial connection to the arduino in the following format 515;520 Which would be parsed as: x=515 y=520 How would I split these values up, and convert ...
2
votes
0answers
44 views

Why doesn't LCD 16x2 work with fingerprint sensor code?

When I separate fingerprint code and LCD code it works fine. sensor read 6 templates which I already stored 6 fingers ID. When I combine the code it read 0 templates. #include <Adafruit_Fingerprint....
1
vote
1answer
113 views

Memory usage in AnalogBinLogger of SdFat library

The AnalogBinLogger.ino file of SdFat library says the following: Each 512 byte data block in the file has a four byte header followed by up to 508 bytes of data. (508 values in 8-bit mode or 254 ...
3
votes
1answer
2k views

Fingerprint sensor code won't work correctly with LCD 16x2

I am doing a fingerprint sensor that works with a 16x2 LCD. The code works correctly for the fingerprint sensor, but when I enter LCD code, the LCD works but the fingerprint stops working. I am using ...
1
vote
1answer
91 views

How to use tinygps.h library to measure distance? using NEO6mv2

any reference site for the format code for tinygps.h to measure distance? or any codes for tinygps.h for measuring distance i'm just a beginner in learning arduino thank you
1
vote
0answers
40 views

Arduino Uno Port access denied error, and probably other issues

I am trying to write a script to measure the voltage in an Arduino pin, convert that to a corresponding temperature measurement, end export the serial data to a csv file. I know there is probably a ...
1
vote
1answer
36 views

How to increase the frequency of data transmission of SIM900A GSM Module connected to Arduino Uno?

I have a SIM900A GSM Module hooked onto an Arduino Uno board. The Arduino is connected to a MPU6050 Accelerometer which is constantly monitoring data at 1 second interval. I am trying to transmit the ...
1
vote
1answer
236 views

How to calculate the RZERO value in MQ135 sensor, I have already burned it for 24 hours?

I've already burned it for 24 hours and it is now giving the constant value of 932.36,pls tell me how to calculate the RZERO value.
0
votes
0answers
27 views

Set acceleration for stepper motor with no ending

I have a problem. I am using a stepper motor with 2 buttons. In my code I am trying to rotate the stepper motor clockwise while holding button1 and counter-clockwise while holding button2. To do that, ...
1
vote
1answer
91 views

Random characters transmitted from ESP8266 to Arduino

Below is the code for getting a value from Firebase and sending the received data to arduino for performing necessary action. The code here here sends a string "o" to arduino once //uploaded to ...
1
vote
2answers
77 views

Running an Arduino without the computer

I am having trouble getting my Arduino uno to run my code when I disconnect it from my computer. I have a 9V battery to power it and it is turning on, however, it is not doing anything at all. What ...
0
votes
1answer
22 views

Stepper motor driver not working properly

I have a problem. I am following this guide about controlling a NEMA 17 stepper motor: https://www.makerguides.com/a4988-stepper-motor-driver-arduino-tutorial/ I uploaded the code to my arduino uno ...
1
vote
1answer
25 views

AMIS30543 | DataSheet Understanding CIRCULAR TRANSLATOR TABLE

I was reading the data sheet of AMIS-30543 stepper motor and I didn't understand fully what does this Circular Translator Table means, I have a couple of doubts What does Circular Translator table ...
6
votes
2answers
353 views

Why sensor acts erratically?

I am trying to connect an ADXL355 digital sensor to an Arduino. The wiring and the code I think are OK because the system returns the correct values sometimes and partly correct answers mostly. The ...
1
vote
1answer
79 views

Programming ESP8266 to avoid random exceptions?

Below is the code that I have done on Lolin Wemos D1 R2 and mini it works fine but it throws exceptions every time, I tried understanding my problem by reading this: NodeMCU 1.0 - Exception 9 `Fatal ...
0
votes
0answers
27 views

Uploading to standalone atmega using UNO as ISP

I am following this procedure to upload a sketch to a standalone atmega328p, without using a bootloader, with an Arduino UNO as ISP. It is my understanding that I first have to "burn the ...
1
vote
1answer
135 views

How to dynamically set pinMode and dynamically write value to pins in Arduino using arrays?

I am trying to create a library called "LED" for LED Sequencer in Arduino IDE,where the user has to configure the LED pins using an array and pass it to LED constructor in program and then will be ...
3
votes
2answers
59 views

'Servo_Pointer' was not declared in this scope

I can't seem to find the error I made; can anyone help me? The error message: 'Servo_Pointer' was not declared in this scope I get the error at the end of the code with the line: Servo_Pointer.write(...
0
votes
1answer
48 views

Rc switch library display received values only one times using serial monitor

I use Rc switch library to transmit and receive data. It works fine. The part that sends the data is as follows : #include <Arduino.h> #include <RCSwitch.h> RCSwitch transmitter = ...
2
votes
1answer
32 views

Cant make the second 74HC595 to start counting

I'm doing my first project with Arduino, however I got in a block and cannot figure out what I am doing wrong. This project is 'simple'. It's that Stranger Thing's Wall. However, I want to use the ...
1
vote
1answer
21 views

Joy-IT RS232 Shield and RS232 voltage levels

First of all, sorry if this is a dumb question, but I'm pretty new to the whole Serial RS232 concepts. I do have an Arduino Board that, from what I read about, is not able to communicate via RS232 ...
2
votes
0answers
40 views

Sim800L-v2.0-network-problem

I am having trouble to get Sim800L-v2.0 to work. I believe that I am supplying the necessary amount of current (5.0V, 2.1A máx power source, using solid copper wires - circuit photo). The Net LED ...
3
votes
0answers
122 views

I want to save the value of the scanned barcode on an SD Card (in a text file may do)

serial monitor output #include <usbhid.h> #include <usbhub.h> #include <hiduniversal.h> #include <hidboot.h> #include <Wire.h> #include <SPI.h> #include <SD.h&...
1
vote
1answer
555 views

HLK-RM04 wifi shield factory reset?

I have this HLK-RM04: It came with no catalogue or manual all threads about it are in Chinese after when I found the configuration webpage and changing it to client it wont connect and it stopped ...
1
vote
3answers
67 views

How does electricity flow in an arduino?

:) I know this is probably a really stupid question but I need help. I’m new to arduino and can’t figure out how to arrange my circuits. I have no idea what ground does, where the energy comes from, ...
2
votes
3answers
50 views

Count specific range of output as 1 single output

The LDR sensor gives a range of values to show whether a LED is OFF/ON, let's say above LDR range 400, the led is ON. When a LED is ON, after reading the sensor values it shows above LDR range 800, ...
1
vote
0answers
44 views

NodeMCU unable to communicate with MFRC522 RFID reader even though the nodeMCU is successfully connected to a mobile hotspot

I am replicating a project that will read the RFID card or tag data, store that into a mysql database and display the data via PHP. I am using NodeMCU, RC522 RFID reader and Ardunio IDE to do that. ...
2
votes
2answers
48 views

How can we know the status of the DC Motor whether it is ON or OFF

A DC motor is operated using an L298n driver and Arduino UNO. How can I get to know whether the Motor is ON or OFF? Using a code in Arduino.
1
vote
1answer
607 views

ESP8266-01 is not working and it's hot

it has been so long since I tried to connect the esp8266 through Arduino Uno and get it to work my goal is to send data from the Arduino Uno to web site, I have tried everything and a lot of codes but ...
1
vote
1answer
39 views

SIM800L and DTH22

I am very new to arduino. I am build a model that will require SIM800L and DTH22. I want to know if I can power both from my arduino. DTH22 has a wide range of input voltage but I doubt of SIM800L. It ...
3
votes
0answers
57 views

SPI register read returns 0x00 or 0xff

I am trying to interface a Arduino Uno with an ASM330LHH using SPI. Whenever I try to read any register, I either get 0xff or 0x00 on the serial monitor The code I am using: #include <SPI.h> #...
2
votes
1answer
38 views

TFMini Sensors with Arduino

I have three TFMini sensors I need all of them to detect. I only got one to work , pins 4,5 . My info in coding is basic . I really appreciate your help . Thanks in advance. I think the problem is ...