2022 Developer Survey is open! Take 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
1 vote
1 answer
55 views

Why the unsigned long is overflowing?

I want to convert hour to seconds but unsigned long is overflowing, here's the code: #include <Wire.h> #include <DS3231.h> RTClib myRTC; unsigned long seconds; char timestr[9]; void ...
user avatar
-1 votes
1 answer
92 views

What is the simplest way to emulate the original gameboy's cpu using Arduino?

My initial question assumes it is possible to emulate the original GameBoy system using an Arduino board. Additional information in non-technical terms: I am looking to create an Arduino based device ...
user avatar
1 vote
0 answers
15 views

reading data from server arduino and gsm900a

I am facing a problem in reading data from thingspeak server after each AT command, I get the right response from the gsm However, after AT+HTTPPARA = "URL","thingspeak.com/channels/...
user avatar
1 vote
1 answer
85 views

how to detect when a transmitter is turned off?

Using the nrf24l01 wireless module I want to control a led with the sketch below. The transmitter automatically sends data at intervals of one second continuously and when the receiver counter reaches ...
user avatar
  • 51
0 votes
1 answer
43 views

Arduino, generating smaller frequency than 31Hz

I'm controlling a car instrument panel with Arduino using the tone() function, however with Arduino Uno's minimum 31Hz frequency I can only set the speedometer at ~12mph or more. I'd like to be able ...
user avatar
  • 3
3 votes
2 answers
236 views

Adafruit MPU-6050 and adafruit I2C Multiplexer

I have 3 adafruit MPUs hooked up to adafruit I2c Multiplexer. All of which is hooked up to a Arduino uno. Attached is also my code. /* Assign a unique ID to this sensor at the same time */ /*...
user avatar
  • 33
1 vote
0 answers
54 views

Where to save time and other values so I can read them after arduino powered down?

I need to save some values (and be able to update them frequently) that will stay there even after powering down the Arduino. (I didn't specifically choose any board yet, but UNO or Mega will be ...
user avatar
  • 305
1 vote
1 answer
449 views

Changing single bit in byte array

So I have a byte-array representing the display attached to my Arduino: byte theDisplay[8] = { B00000000, B00000000, B00000000, B00000000, B00000000, B00000000, B00000000, ...
user avatar
1 vote
0 answers
49 views

Connect ESP8266 with Android Studio App

Hey guys I have ESP8266 and want to remote control a sailboat with it. Till now it works fine but how is it possible to send continuous data between the Arduino/ESP8266 and my smartphone? If you need ...
user avatar
  • 31
1 vote
1 answer
684 views

My PN532 doesn't detect RFID card when connected with ESP32 in I2C mode while it works perectly with Arduino Uno

I have a Elechouse PN532 module (bought here - https://robu.in/product/pn532-nfc-rfid-read-write-module-v3-kit/). When I try to use to it with I2C and connect it to my ESP32 (DOIT ESP32 DEV KIT V1, 30 ...
user avatar
  • 11
1 vote
0 answers
259 views

Expected signature for ATmega328P is 1E 95 0F; I can not burn bootloader on my arduino Uno

well... the problem starts from the time that I accidentally touched the crystal on my arduino and all of a sudden everything messed up; the leds on arduino turned on and off while being touched, and ...
user avatar
  • 11
2 votes
0 answers
58 views

ESP8266 01 doesn't react after baud rate change

Hello guys I have my ESP8266 connected to my Arduino. Then I typed in AT in the serial monitor. It confirmed this command with OK. After that I typed in AT+UART=9600, 8, 1, 0, 0 which gave me the ...
user avatar
  • 31
1 vote
0 answers
75 views

Flash HEX onto an Arduino board

The scenario: I have built a device off an Adafruit nRF52840 and I need a way to deploy firmware updates. I have delivered the device to my end user and will need to periodically send him updates. I ...
user avatar
  • 11
-1 votes
1 answer
65 views

How to light up middle points in a display with 4 digits? [closed]

How to light up the two points that is in the middle? It only lights up when the digB is set to LOW, and it lights up all 3 points that is in the middle. Example code: const int displayPins[] = {2,3,...
user avatar
  • 101
1 vote
1 answer
135 views

Arduino How can I add 30s delay and turn off the led to the following code

const int buttonPin = 2; boolean currentState = LOW; boolean lastState = LOW; boolean stateChange = false; int currentButton = 0; int lastButton = 4; int ledArray[] = {9, 10, 11, 12}; long ...
user avatar
0 votes
1 answer
121 views

Need help in writing a function

I am reading an accelerometer using arduino. Basically i receive positive values and I need to get only first row of negative values. E.g. I receive values > -0.5 , then I start to have values < ...
user avatar
0 votes
1 answer
133 views

What is the command to upload the hex file to Arduino UNO without using any IDE or external GUI tool?

The OS I am using is Windows 10, and I already installed avr-gcc and avr-dude, with a bit of search on the internet I found the commands to convert my C program (written for ATMEGA328-P), to the ...
user avatar
3 votes
2 answers
439 views

MPU6050 Arduino Jeff Rowberg library interrupt Issue

I was trying to get the data from MPU6050 using the Arduino library mentioned here. The following code is an edited version of the sample code given in the library folder which seems to be working ...
user avatar
  • 171
2 votes
0 answers
43 views

Infrared Reciver doesn't work properly after the first signal

i'm trying to play a passive buzzer with an IR reciver My Code #include <IRremote.h> IRrecv irrecv(10); decode_results results; void setup() { // put your setup code here, to run once: ...
user avatar
2 votes
0 answers
46 views

I need help making an arduino control system [closed]

My project is to use an Arduino to control two solenoid valves with pwm and receive an input signal from a sensor as feedback. As can be seen from the picture, the valves direct the flow of water ...
user avatar
0 votes
1 answer
70 views

Mini Arducam module camera shield - 2MP ov2640 interface with Arduino Uno

MINI ARDUCAM MODULE CAMERA SHIELD - 2MP OV2640 Arducam Multi-camera adapter board for Arduino SPI Mini Camera I have the above two components with me along with ARDUINO UNO R3. I want to stream video ...
user avatar
2 votes
1 answer
149 views

How to control multiple servo motors at the same time with protothreading using an I2C PCA9685 PWM board?

I'm trying to use protothreading to control two (and eventually four) servo motors over I2C using a PCA9685 PWM board. To start, I am simply trying to sweep the two motors back and fourth at the same ...
user avatar
  • 31
1 vote
0 answers
72 views

How to control multiple servo motors simultaneously using protothreading?

So I'm trying to control 4 servo motors simultaneously using the Protothreads library by Ben Artin, but I am starting with 2 just to see if it works. I have succeeded in getting two LEDs to blink at ...
user avatar
  • 31
1 vote
1 answer
50 views

Can I use an arduino as an interface to pass files between a device and a PC?

Or maybe you guys can point me towards another direction... You may ask, why not connect the device directly to the PC? Well, the device is designed to recognize only USB sticks, and dump the data ...
user avatar
  • 11
1 vote
2 answers
136 views

How Much mA dropped in ESP8266-01 Work in LiPo Battery if the WIFI function is continuously on

I working on the system where ESP8266-01 should continuously on because I want to get the Wi-Fi function on. In that case ,I can't use the Sleep mode which is given in the Esp8266-01 . So, My Question ...
user avatar
1 vote
1 answer
70 views

How to use this specific arduino shield

I am trying to understand how to wire this Arduino Uno shield properly. My goal/main questions: I have 6 servo motors and I am trying to wire them properly to this shield. Do I need an external ...
user avatar
0 votes
0 answers
46 views

I'm looking for the StreamSend.h library for use in Arduino/ESP8266 serial communications using struct [duplicate]

I've come across an interesting yet old article within StackExchange which has great examples of sending structured variables over serial communications. The library StreamSend.h and it's source code ...
user avatar
  • 11
1 vote
0 answers
42 views

Arduino UPS without reset

I’m trying to figure out how to make arduino UPS (when the power goes down it should not reset the arduino). Or preferably buy something that will do that for me. I found this, but Im not sure of it ...
user avatar
  • 305
1 vote
1 answer
68 views

Can I just use one Arduino in a receiver/transmitter circuit?

I am trying to build a system to control lights remotely, but I am a student and am operating on a tight budget. Is there any way I can have just one Arduino along with a receiver and transmitter (I ...
user avatar
  • 13
3 votes
1 answer
109 views

Timer2 and INT1 in Arduino UNO

In my project Pin 3 of Arduino UNO is as External interrupt (INT1) and at the same time, I have to run Timer2. INT1 dosen't work When Timer2 is run. Timer2 is run just as timer. Is it my mistake or it ...
user avatar
  • 33
2 votes
0 answers
122 views

External Interrupt and Input Capture pin | Arduino MEGA

I have a code for finding the rpm of one system calling here as engine , the engine have a hall sensor output and I have tried the following Code #define SERVO_MIN 2000 #define SERVO_MAX 4000 struct ...
user avatar
  • 171
1 vote
2 answers
179 views

which is the best way to declare Serial while creating Arduino library?

Well, I am trying make a library for HMI display. display and Arduino comminicate with Serial. So I will so many times Serial port. Generally I will use Serial.write commend. if I examine other ...
user avatar
  • 205
0 votes
1 answer
59 views

Parallel I/O - maybe use Machine code function call

I'm a newbie to arduino but been programming lots. I have a project where I would like to output 4 bits to adjacent pins and read 4 bits from another (4) adjacent pins. (Imagine a matrix keyboard ...
user avatar
  • 11
1 vote
0 answers
107 views

Serial monitor constantly reads input with unknown characters

I am trying to read input from the serial monitor on my Arduino UNO using the new Arduino IDE 2.0 and send a specific infrared signal depending on the command. I do this using the following code: #...
user avatar
-1 votes
2 answers
231 views

İs that possible to a function return String OR Int depends on address

Well, I'm trying to use a HMI display and this HMI storing datas in separeta addreses. Such as integers addr. is between 0x80000 to 0x9ffff and also for string's addr is between 0 to 0x1ffff. At this ...
user avatar
  • 205
2 votes
1 answer
69 views

Arduino Hanging Not sure if software or hardware issue [closed]

I am trying to run a very simple program to glow LEDs in a certain fashion, I connected 9 LEDs to the GPIOs or digital pins, 2 To 10, via 220 Ohm resistors; when I am running the program it is hanging ...
user avatar
4 votes
1 answer
120 views

Arduino UNO won't move servo

I have a simple MG996 servo motor and I am trying to make it move with my Arduino Uno. I tried different ways of wiring but nothing seems to work as fully expected. For the wiring I followed this ...
user avatar
2 votes
1 answer
153 views

Using MAX30100 SpO2 value to turn on LED

max30100 i2c sensor gives heartrate and spo2 reading in serial and also can show values in lcd display. I want to show it's indication via LED. If SpO2 value <94 , it will turn on Red led in ...
user avatar
  • 23
1 vote
3 answers
288 views

Arduino UNO voltage supply reduces when I add more sensors

I have an Arduino UNO. When I connect an MQ-9 sensor or an ESP8266MOD WiFi chip, the LCD backlight drops that it doesn't display anything, the red LEDs on the Arduino board dims, and the voltage ...
user avatar
2 votes
2 answers
160 views

Connecting an LCD when Pins A4 and A5 are Occupied

Recently I've been working on an automatic dog feeder dispenser (that dispenses by turning a screw attached to a stepper motor). Currently I have a Nema 17 connected to an L298N stepper driver which ...
user avatar
  • 131
2 votes
0 answers
58 views

Bug in code of Self-Balancing Bot [closed]

1)The values drifts to the extreme every time I run this , I guess this is due to my mistake in the calculation of angles or in the filter that I have applied which I have been trying to but can't ...
user avatar
1 vote
0 answers
43 views

Signal clipping in Arduino Serial Plotter

I would like to understand why did Arduino clipped the input signal as shown in the attached diagram? As far as I know, Arduinos are able to read analogue voltages up to 5v, that is 1023. But for some ...
user avatar
  • 23
1 vote
2 answers
34 views

Cannot enable watchdog timer when using Arduino 8mhz bootloader

I am running my Arduino projects like this: My goal is to have this project run at 8mhz so that (1) battery last longer and (2) so that I am following the specs. I was able to burn a 8mhz bootloader ...
user avatar
  • 878
1 vote
1 answer
227 views

Read bytes from PROGMEM array

Disclaimer: I just started using C++ and I'm a bit of a beginner. Keep that in mind as your answering. So I recently bought my first Arduino. It's a customized one and it has an 8x8 display attached ...
user avatar
1 vote
1 answer
263 views

How can I play sound on Arduino with an SD card?(I have a problem with the sound)

I am working on a "personal assistant" with Arduino and I am having trouble playing sound from an SD card... I am using a shield called "Easy Shield UNO" by Simkeim, and it has an ...
user avatar
1 vote
1 answer
65 views

How do I connect my ESP32 cam to my old modem without using Wi-Fi?

I have an Arduino ESP32 cam that I want to use as a bird cam. I want to use my old Orcon wireless modem to connect with this cam. I will connect with cable from my computer to this modem. As my ...
user avatar
1 vote
2 answers
236 views

How does while(analogRead(A0)) function in this code?

A sine wave is being fed to A0 and I would like to calculate the frequency. If a certain threshold is crossed, start the timer.....count 5 such crossings.....then stop the timer. The code is attached. ...
user avatar
  • 23
0 votes
1 answer
71 views

Multi turn potentiometer are a pain should I use a incremental encoder instead?

I built a robotic arm, the problem is I want to rotate the base more than once in order to complete a job, so I figured out I could use multi turn potentiometer. The problem I am facing is the ...
user avatar
1 vote
0 answers
65 views

the buzzer stops sounding after a few seconds

Sorry, I'm not fluent in English. I beg your help I made an arduino uno project where the buzzer only turns on for 2 seconds after the light turns on. Even though the light is still on I want the ...
user avatar
  • 11
-1 votes
2 answers
87 views

Why won't this work as a delay?

I'll start off by saying I'm very very new to coding, so please bare with me. I'm doing an assignment where the task is to create a traffic light system, but blocking delays aren't allowed. I have ...
user avatar
  • 1

1
3 4
5
6 7
157