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
1
vote
2answers
203 views

How do I pause a loop just once?

I´m trying to make a pause in a loop, but just for the first time it loops. The next loops i would like the program to NOT do the pause. Just once time, each time a button is pressed. Does anybody ...
1
vote
1answer
35 views

Help On Creating Derived classes in Headers

Here's a small problem I encountered while I was trying to make this small header file Devices.h: Is it possible to use templates with abstract classes ? If yes, how and how can I use that abstract ...
1
vote
0answers
24 views

TRT-25 and Arduino Uno

I am reaching out for help on a project I am working on. We are trying to integrate a reaction torque sensor and I am having a hard time deciding how to go about it. Previously I assumed that like my ...
2
votes
1answer
45 views

Can't read data from registers using I2C

I am trying to read data from the registers 6, 7, 8 and 9 of the STC3100 (Data Sheet) using an arduino uno. I followed this tutorial: https://howtomechatronics.com/tutorials/arduino/how-i2c-...
2
votes
0answers
68 views

Parsing read SD file into 2 variables

Recently I started some tests controlling water heater with temperature sensor data as described in detail here So far I've been testing a small dataset to control water temperature that is quite easy ...
1
vote
0answers
31 views

please help me when compile this code it says 'sendATcommand' was not declared in this scope [closed]

int8_t answer; int onModulePin= 2; int counter; char aux_str[150]; char aux; char frame[200]; char latitude[15]; char longitude[15]; char altitude[6]; char date[16]; char time[7]; char ...
1
vote
0answers
27 views

Motors not working with a motor Shield

Got a Duratech motor shield today, and I'm wondering why my motors do not run. Appreciate any help. The code I am using is the Adafruit sample code, Motorparty. The servos work however the motors do ...
1
vote
0answers
27 views

Error 1,603,0 when http post request using arduino and sim900a by Json format

I want to send HTTP post requests to a server in JSON Format using a SIM900 module. But the code is not posting the data and have an error.Can someone help me to solved the error 1,603,0 since I ...
0
votes
2answers
34 views

Is defining a function improves speed rather computing average for each analog input separately

My Arduino controller reads data coming from four different sensors. After the data is read, I individually compute four input average values. I understood that I am having the same lines of code ...
0
votes
1answer
41 views

Doesn't stay in sub menu

So hello everyone. I'm creating simple menu with few sub menus,on my lcd screen. But i have run into small problem, i can't stay in my sub menu. When i press select button, it goes into submenu ...
1
vote
0answers
45 views

All AT commands return Fail

I'm trying to send data from sensor to ThingSpeak, but the AT commands always return Fail. They work sometimes and send data. But, most of the time they return fail. My Connections: ESP Arduino Gnd ...
1
vote
1answer
66 views

What component can I use with an Arduino to measure the capacitance of objects? [closed]

What component can I use with an Arduino to measure the capacitance of objects like a glass bottle or a roll of paper?
1
vote
0answers
60 views

Arduino button voltage versus HIGH/LOW state

I'm measuring voltage between button's ground and input pole on the following sketch. When button is on off state, there's 5V there, when it's switched on and led turs on, there's 0. Is this a correct ...
1
vote
1answer
81 views

Making pushbutton behave as a toggle switch with ezButton - do I have to use ledstate with =! operator

I'm using ezbutton to make a pushbutton act like a toggle switch, first press doing permanent on, second press doing permanent off. I'm just trying to understand the basic coding. This project is just ...
2
votes
0answers
101 views

SIM808 Doesn't detect SMS if sent while offline

I'm running UNV SIM808 Shield with Arduino Uno using DFRobot_SIM808. The shield has no issues detecting incoming SMS while powered on. I just found out if the shield is off while sending the SMS, it ...
1
vote
0answers
40 views

AJ-SR04M Screw Purpose

I've got 3 AJ-SR04M sensors working on an Arduino MKR Wifi 1010, but I was curious what the purpose of this screw on the sensor boards is. It seems to somehow impact the accuracy/performance, but I ...
1
vote
0answers
43 views

getting the error “expected unqualified-id before 'if' ” [closed]

I'm new to programming and cant seem to understand Whats going on but here is my code https://pastebin.com/W55B7RAk #include <Servo.h> // servo library #include <IRremote.h> // ir library ...
1
vote
0answers
25 views

Esp8266 Not showing in Arp table of router [closed]

So I'm working on my senior project which is a smart irrigation system based on an esp8266 NodeMCU. Everything is fine but I can't bind the IP of the esp8266 on my router's ARP table since it is not ...
-1
votes
4answers
39 views

Slow USB reading operation

I got an Arduino UNO today, and I am just writing a basic blink program. I have 3 LEDS on the arduino. Those LEDS are connected to Pin 1, 2, and 3. Now I can control those LED by writing octal values ...
2
votes
0answers
52 views

How to let Stepper motor spin constantly?

When i run the code on the Arduino the Stepper only does a small turn every cycle. How can i make that constantly turning? #include <Servo.h> Servo myservo; // create servo object to control ...
1
vote
1answer
189 views

Is it possible to compile and upload code witout the IDE?

I just got started with Arduino, and found out that I need the IDE to compile and upload codes, which works perfectly fine. This is my code: # pragma GCC optimize ("Ofast") char i = 0 ; ...
-1
votes
1answer
46 views

Blink onboard light by reading value from USB

I am interested in building a basic CPU usage monitor with arduino UNO. I have a Ruby code, which blinks keyboard lights based on the CPU usage, disk IO and net usage. So for example, when the CPU ...
3
votes
3answers
159 views

Endurance of Arduino UNO during 24/7 operations and mild power fluctuations

I am designing an automation system for my research project and planning on using Arduino Uno to do the same. The program is to execute simple instructions based on few input parameters and does not ...
1
vote
0answers
39 views

Enter a three digits number using push button connected to Arduino [closed]

I have the code given by my tutor and I need to change the code to be able enter a three digits number with the push button of switch module. Here is the code which can only enter one individual ...
1
vote
1answer
23 views

I keep getting the 'expected unqualified-id before if' error message when trying to run my program [closed]

This is my code: const int Speaker = 11; const int trigPin = 9; const int echoPin = 10; long duration; int distance; void setup() { // put your setup code here, to run once: pinMode(Speaker, ...
3
votes
1answer
247 views

Serial plotter looks different and doesnt print graph

When I open my serial plotter to get the graph for my HC-SR04 sensor it doesn't show anything. My plotter looks different too. I have attached images below as well. Only those numbers on the top-most ...
1
vote
1answer
35 views

Get production count for current minute

I am trying to make a production counter for a machine. I want to display production count of the last minute for each seconds. So, display should update every second and should display real value of ...
1
vote
1answer
165 views

Why my arduino board does not blink properly?

I have two files blink1.cpp typedef unsigned char int8_t; typedef volatile int8_t * volatile port_type; port_type portB = (port_type) 0x25; port_type ddrB = (port_type) 0x24; void delay_500ms() { ...
1
vote
0answers
19 views

Getting garbage values on serial communication between Arduino Uno and ESP8266 NodeMCU

I have created a weather station on ESP8266 NodeMCU which has a web interface with logs. I've connected DHT22 on ESP8266 NodeMCU and a BMP180 on an Arduino Uno. Arduino Uno sends pressure to the ...
1
vote
0answers
15 views

DHT11 Module and I2C LCD coding error on Arduino Uno [closed]

This isn't my first time using an Arduino, but it has been a while, so I've been reviewing using a study kit. It has a DHT11 humidity-temperature sensor module, and an I2C LCD module. The included ...
1
vote
3answers
62 views

Is there any way to create some AI with Arduino?

Is there any way to create some AI with Arduino?. The question is just that. I would like to give some intelligent (explore the house, trigger alarms, etc) to a rover but I dont have so much ...
1
vote
0answers
42 views

Why does the LED state behave differently?

I wanted the sensor to be high when I press the button, but when DigitalRead does low, the LED turns on, when it does high, the LED goes off. Whereas when the digitalRead is high, isn't it supposed to ...
0
votes
1answer
45 views

LED does not blink - Arduino UNO+WiFi R3 ATmega328P+ESP8266 board

As I am learning the Arduino coding, I want to see if my program can turn on the LED light. I have tried all the things, but the code does not start the LED light I have installed on the board. The ...
0
votes
0answers
37 views

How can I connect old door phone to mobile app for audio talking and unlocking door

I'm beginner to Arduino. I need to connect old door phone (like the picture) to mobile app. Whenever it rings, the mobile user can talk with outdoor standing person and unlock the door. The ...
0
votes
1answer
49 views

communication between two arduinos using ENC28J60?

How can i connect and send data between two arduinos using a ENC28J60 ethernet adapters on both of them. Is there any guides or example codes for me to take a look from or any library which i can use ...
0
votes
3answers
52 views

Understanding Arduino input and outputs [closed]

I am a research scholar working on exploring the diffusion kinetics of metallic ions into substrate materials. To do so, I have to process 486 specimen combinations and it has been very difficult and ...
0
votes
2answers
76 views

Electronics Laboratory

I would like to know if someone could explain to me how to create an arduino electronics laboratory with soldering iron etc. with a low budget <3
1
vote
2answers
37 views

Spectrabloom LED light box

I'm looking to make a DIY version of Dan Conrad's Spectrabloom. I've got an Arduinio Uno, a piece of code that uses PWM to randomly fade three 1w LEDs (one red, one blue and one green) and a PicoBuck ...
1
vote
0answers
16 views

How do you count objects (using ultrasonic sensor HCSR04) as 1, after they leave the trigger/echo path?

I found a simple code online that meets my goal to almost 100%, however when I place my hand in front of it, the number continues to count. I am trying to only count "1" when the solid ...
1
vote
1answer
40 views

Converting an int to an unsigned char for display on a Nokia 5110

I've been working on a small project getting some images displayed in a Nokia 5110 screen via an Arduino. I've been getting it working, but one of the issues I have is that I would like to have a list ...
0
votes
2answers
58 views

Ways of communication between two Arduinos?

I have two circuits one having a ultra sound sensor and one other having a relay module. So i'm trying to establish communication between the two to send and recieve data. I just want to know which ...
2
votes
0answers
16 views

Arduino NRF24LO1

I have a problem with transmiter (Arduino uno) and receiver (Arduino nao). When I am trsmiting that I receive that: An this is my code for receiver #include <SPI.h> #include <nRF24L01.h> #...
1
vote
0answers
25 views

Communication between Arduino UNO using an ethernet shield and a RF attenuator

I am relatively new to Arduino and I was wondering if someone could help me with my problem. I have a RF attenuator that can be programmed in various ways. For example if I type http://10.10.10.10/:MN?...
1
vote
0answers
38 views

How to get my Arduino to say specific things

So, I am designing an Arduino with a machine learning model to detect the objects around it. I want the model to make a sound if it 100% detects an object through the speaker that is connected to it. ...
2
votes
0answers
22 views

Issues with Polytone Library?

I'm building a device that uses two ultrasonic sensors to detect objects and provide audio feedback in the form of beeps that get faster the closer an object is. I have two speakers, one for each ...
0
votes
0answers
30 views

HC-05 bluetooth module short range

I have started learning about arduino and just bought a bluetooth module, HC-05. From where i bought, it says it has range of approx.10 meters. I made hc-05 connection with arduino in below described ...
1
vote
1answer
88 views

Digital pins are no longer outputting enough to click a relay

I've been working on a project for awhile now, and I ran into a problem a week ago I couldn't solve. I'm using an Arduino uno R3. My project involves the use of 4 relays triggered by the digital pins. ...
1
vote
1answer
73 views

Programming ATtiny85 with Arduino-IDE and an 8MHz external oscillator

I have a digispark ATtiny85 development board and I am using the Arduino IDE to program it along with the Arduino UNO as my hardware programmer. I have successfully burned the fuses for both the ...
1
vote
2answers
75 views

Arduino UNO with integrated ESP2866 wifi not working correctly

I bought this "knockoff" Arduino UNO with an integrated ESP 2866 wifi module. But I can't make it work. I've followed this tutorial because it's the same product as I have, but I can't make ...
5
votes
1answer
58 views

Scheduler comparison for Arduino Uno

I understand that the official Arduino Scheduler doesn't support Uno, and there are several third-party schedulers to fill the gap, notably, Scheduler, Arduino-Scheduler and TaskScheduler. There are ...