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
5answers
24k views

Uploading a simple sketch takes forever

I am trying to upload this simple sketch into my arduino with a shield I made. It takes forever (note I have the right COM port on) int sensorValue = 0; void setup(){ Serial.begin(9600); ...
0
votes
1answer
270 views

OLED (I2C) and Micro SD card module not working together in Arduino

I am trying to write some data to SD card and read it back to serial monitor as well as display it to the OLED. Both the sd card and oled work separately but they seem to be interfering with each ...
0
votes
0answers
14 views

Is it possible using a hc-05 bluetooth module as master and pair it to a hc-06 module?

I have configured a hc-05 bluetooth module as master and a hc-06 module as slave an since the LED on the hc-05 is blinking in a 2s delay they should be paired but no matter what I do I can't send data ...
0
votes
1answer
86 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 ...
0
votes
1answer
26 views

SPI communications with an Yost Labs IMU [duplicate]

I am pairing an Arduino UNO with a Yost Labs 3-Space Sensor Nano, the user manual for said sensor can be found here and the user manual for the sensor family here (kinda confusing, Yost Lab's ...
0
votes
1answer
25 views

Powering Arduino and L293D with the same Power Supply

I am relatively new to Arduino and plan to power an Arduino and an L293D Motor Driver with the same 9V power supply as in the diagram below. I tried to simulate this with Tinkercad, but it seems like ...
0
votes
2answers
80 views

Running loop for a specific time period

I currently have a loop that runs without a time condition: unsigned long previousMillis = 0; // will store last time LED was updated int WET=4;//wet line int DRY=5;//dry line int Inhale=1000;...
4
votes
3answers
27k views

How do I run a loop for a specific amount of time?

I currently have a for loop that loops 300 times and then moves on. Instead, I'd like that loop to run for a specific number of minutes, instead. Here's the current loop, for reference. for(int i = ...
0
votes
1answer
534 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 ...
0
votes
1answer
65 views

SPI Slave Programming for Arduino

In my application Arduino Due is configured as master and instead of the actual slave device I am making use of Arduino Uno as Slave.I will share the Master code which I have worked out. Can Anyone ...
1
vote
1answer
38 views

Global variable changes its value when loop starts again

I have a problem with the global variable calibrationValue. It is initially set with the correct value and is also displayed correctly in the output. As soon as the loop function is restarted, the ...
0
votes
1answer
82 views

How to supply more than 500mA while powered by USB

I'm about to build myself a new BrewPi and I have some Arduino power/USB questions. Something smiliar to a combination of these projects: https://imgur.com/a/Nval6 https://www.homebrewtalk.com/...
3
votes
3answers
11k views

Using interrrupts with RC522

I have a project using the RC522 RFID module with my Arduino Uno board and miguelbalboa's rfid library. The example code and every other code I find on the internet work pooling the device in order to ...
0
votes
1answer
368 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 ...
0
votes
1answer
32 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 ...
0
votes
1answer
337 views

How to Set the Control Register on the DS3231 RTC module for Arduino UNO R3?

I am using the DS3231 RTC connected to an Arduino UNO R3 for a project. I won’t go into detail, but I need to save power, therefore I am using the DS3231 Alarm Interrupt to wake the Arduino from sleep....
0
votes
1answer
56 views

How do I generate a graph from Arduino sensor data?

I used a DHT 11 sensor with an Arduino Uno to measure temperature and humidity. I used the following code to print the temperature and relative humidity in Serial Monitor. dht DHT; #define DHT11_PIN ...
0
votes
0answers
51 views

SPI communications with an IMU

I am pairing an Arduino UNO with a Yost Labs 3-Space Sensor Nano, the user manual for said sensor can be found here: 1. This is my code, pretty straight forward (although this is my first time working ...
0
votes
0answers
26 views

I2C LCD displaying gibberish

I have connected a I2C LCD with my NodeMCU v3. My pin configuration is as follows: Node MCU ---> I2C LCD GND GND 3V VIN SDA D2 SCL D1 I have been testing a ...
0
votes
0answers
18 views

Problem with interfacing Cirus OS1 oxygen sensor with Arduio Uno

I am trying to interface Arduino UNO with Cirus OS1 oxygen sensor but not able to get the expected output. The expected voltage output of OS1 sensor is 9-13mV and the oxygen % is expected to be in the ...
0
votes
3answers
2k views

Interfacing Figaro KE25 Oxygen Gas Sensor with Arduino Uno

I have been trying to interface the Figaro KE25 2 lead fuel cell type oxygen gas sensor with Arduino Uno. I am not getting the required output on the Serial Monitor for regular air (Oxygen ...
0
votes
0answers
30 views

I am using an accelerometer as an input and a stepper motor as an output and it will have these weird delays after about 30 sec

I have a stepper motor (kysan 1124090) turning CW and CCW based on the y direction of my accelerometer(MU6090). I am using an Arduino uno. It works great but after about 30 seconds there will be these ...
0
votes
2answers
84 views

How to make Serial.read() return an integer instead of an ascii value?

I want Serial.read() to return an integer instead of an ASCII value. For example, in the below code if I input 2, I want the output as 2 instead of 50 void setup(){ Serial.begin(); } void loop(){ ...
1
vote
1answer
37 views

Using Arduino to control a high voltage DC device

I am an amateur hobby electronics enthusiast , and given the situation , I too am trying to make a contactless hand Sanitizing system like everyone else. My project requires a 36V DC solenoid valve to ...
1
vote
1answer
2k views

Are there any alternatives to Tinkercad Circuits that is PC application based instead of web app based?

I have been using Tinkercad's Circuits web application to create my Arduino circuits and apply my Arduino code (c++) for testing. Despite the amazing product they have and the fact it's free, I find ...
0
votes
1answer
380 views

BASCOM-AVR stk500_2_ReceiveMessage(): timeout: -1

Arduino Uno R3 Windows 10 Bascom AVR The ON is alright. The LED flickers now and then. The RX and TX flickers when I press the program button on Bascom but then disappears almost immediately. ...
0
votes
0answers
33 views

Using sim900a GSM module, sending data to xampp Database

I am using a soil moisture sensor, dht11, and a relay module. To send data to xampp (database) sever I used the sim900a GPRS module and wrote a PHP code as well. But it doesn't connect and pass data ...
0
votes
0answers
32 views

Calculating the Distance between a Special Object and Center

I just want to detect a small object specified in the system and show the distance between it and the object. If I need to explain briefly; I want to detect a small object that I put on the foot of a ...
0
votes
1answer
28 views

Writing and Reading data from RTC module EEPROM_Arduino

i have took below code from https://lastminuteengineers.com/ds1307-rtc-arduino-tutorial/. i am not understand what these codes are doing. please help me to understand. Wire.write((int)(eeaddress >&...
0
votes
1answer
50 views

Arduino Connect Long Wires/Cables

i am completely new to hardware programming and micro controllers and i am unable to figure out what search-engine search-term to use to find the answer i am looking for. the project i am working on a ...
-2
votes
0answers
40 views

DS3231 RTC Corruption

I've been trying to fix my ds3231. The issue was that it was spitting out random numbers for the time and data. I was told on Reddit that this most likely means that the repositories are corrupt and ...
0
votes
0answers
29 views

Programming Arduino Nano through Arduino UNO

I am trying to Program arduino Nano using ICSP but the problem is uploaded program only works as longs as Nano is connected to UNO. Here is what i am trying. Upload arduinoISP program in UNO. Make ...
0
votes
1answer
209 views

Reading a monochromatic bitmap with Arduino for plotting

Complete newbie here. I am following this thread: How to read bitmap image on Arduino Specifically the third reply from : frarugi87 in my attempt to plot a monochromatic bitmap image with a plotter ...
0
votes
0answers
23 views

Arduino sleep mode problem while sending data with gsm module

i am trying to send gps data via sim800l gsm module. Working fine without the power down code but when i add the power down code it stops working (not sending the gps data. code execution stops in ...
0
votes
0answers
26 views

Is there something wrong with my code or my Arduino is malfunctioning

A 12v motor is connected to a 5v relay and a HC-SRO4 is connected to an Arduino. Sometimes the relay clicks so the motor is on for less than 170 seconds which is the delay time but sometimes the motor ...
-1
votes
1answer
541 views

Circuit diagram for running bipolar stepper motor using LDR

I am new to Arduino, some how I have put this code together to run stepper motor using LDR(kind of solar tracker program) I searched on net and tried using servo motor circuit to run stepper motor, ...
0
votes
1answer
225 views

HTTP Post data from Arduino uno using WiFi

Please help me to post data from arduino uno to a webpage using wifi(ESP-01) module. I try with AT commands it didn't give the response from my webpage #include <SoftwareSerial.h> #include <...
0
votes
1answer
44 views

Recommendations For High Capacity Microcontrollers

For a new project I'm working on, I'm turning an old Casio Personal Mini into a Speak & Spell (with possibly other functions). However, the speech library I plan on using is Talkie, and it takes ...
0
votes
0answers
17 views

2 devices on arduino uno [duplicate]

Might be a stupid question (not too experienced), but when I upload two different pieces of code intended for two different devices connected to the arduino, does it overwrite the first upload and if ...
0
votes
0answers
25 views

ds3231 rtc module weekly alarm

I have a ds3231 and Arduino UNO and I need to get an interrupt from ds3231 once a week for example every Fridays. I've searched a lot in the internet and forums but did not find any library or code ...
0
votes
2answers
46 views

I'm trying to use a E18-D80NK but the output is always 1

i'm trying to use a E18-D80NK sensor with arduino but the output is always at 1, i really don't understand why This is my code : int irPin2 = 8;// define pint 2 for sensor void setup() { Serial....
0
votes
2answers
85 views

Ethernet Shield Not Working With TFT Screen

I'm trying to stack up Arduino UNO, Ethernet Shield and Waveshare 2.8" TFT Shield. Since I'm new to this I'm mostly doing basic stuff. I successfully manage to get ethernet shield and TFT shield to ...
0
votes
1answer
30 views

Storing IR Sensor value not working

This is my first time working on Arduino for my project and I ran into an issue. I'm trying to make a very simple Vending Machine. Coin or any obstacle passes in front of the IR sensor and based on ...
0
votes
1answer
33 views

Joining several PIR sensors

I wish to use some PIR (HC-SR501) sensors and give some response if at least one of them detects human movements. For simplicity I wish to use only one input pin in an Arduino UNO. My idea is to ...
0
votes
1answer
69 views

Change From One State Machine To Another

I have a project where I need to state from leds turning on and off to another one that will have all the leds turned on and send data and I was wondering how should I do that, this the code I have: #...
0
votes
2answers
39 views

External Button Interrupt (Digital Pin 3) of Arduino not working

I am trying to execute external button interrupt with Arduino and 16*2 alphanumeric LCD. What I am trying to do is when I press the button then the screen should switch between different options. When ...
6
votes
4answers
30k views

What purpose does the yellow and green LEDs have on the Arduino?

I have wired up a small project with a shift register (see below), but depending on how I put the 74HC595 IC (8-bit shift register with 3-state output register), the green and yellow LEDs of the ...
0
votes
0answers
29 views

Arduino glitches and makes 240 < 7 and -240 > 7

I'm experimenting with the joystick and the MAX7219 module (8x8 LED display) and i made this program: #include "LedControl.h" LedControl lc=LedControl(11,13,10,1); int Xo = 36; int Yo = 34;...
0
votes
0answers
21 views

Make WiFi Router Using Arduino board

void switch_led() { bool SwitchReading = digitalRead(SWITCH); if (SwitchReading == HIGH) { Serial.println("Now pressed...."); state = state + 1; if (state % 2 != 0) { digitalWrite(LED, ...
0
votes
1answer
42 views

Connect two SD cards to one Arduino board and copy from one to another

I'm trying to connect 2 SD cards to an Arduino Uno board. My first question is: Is it possible to connect two SD cards to one Arduino simultaneously? The second question is: If it is possible to ...