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
1answer
43 views

Is it possible to use a slide switch without a resistor?

I understand how pullup and pulldown resistors work with push buttons and I also understand that an analogous idea can be applied to slide switches. Furthermore, I know that some versions of Arduino ...
-1
votes
1answer
34 views

Cannot change pointer for port in main loop

I am testing on an Arduino UNO. I want to use timer1 and interrupts to create various LED patterns. The LEDs may span multiple ports i.e PORTB and PORTD. I want to use a "volatile uint8_t*" ...
2
votes
0answers
40 views

Simulink resets arduino

I am working on servo motors control through serial communication protocol, I am sending data from Simulink to arduino and vice versa, The problem I am getting is that once I open Simulink Servo ...
1
vote
0answers
54 views

What external battery do I need?

For a school project I need to connect an Arduino with an accelerometer gyroscope sensor and 2 mini servo motors. Of course I need a battery for this. However, I don’t know what battery I need for ...
0
votes
1answer
56 views

Capacitive touch on Adafruit Trinket M0 goes unstable when USB cable from laptop is disconnected

Note that to get to this point, I used much of the helpful information from the Post How to use capactive touch on Adafruit board in Arduino mode? I am using a Trinket M0 with the Arduino IDE with the ...
1
vote
1answer
58 views

Why does the send pin influence the receive pin with Arduino Capacitive Sensing Library

I'm trying to figure out how the Arduino Capacitive Sensing Library https://playground.arduino.cc/Main/CapacitiveSensor/ works. It says: When the send pin changes state, it will eventually change the ...
4
votes
1answer
135 views

Arduino Uno freezes for unknown reason during code execution

I am struggeling with a behaviour of my Arduino I do not fully understand. Long story short: When starting the communication over I2C the Arduino freezes. In my opinion during the "Wire.write()&...
1
vote
0answers
30 views

Using L298n motor driver without jumper (Voltage Regulator)

When I am using 9V supply with motor driver and Jumper connected so the red LED was blinking but when I did the same using 9V and 15V supply removing the jumper LED didn't blink. Neither the voltage ...
1
vote
0answers
39 views

1.) How do I delay a servo motor from turning in a loop? 2.) How do I make a servo motor's change in position dependent on temperature?

I'm super new to the c++ programming world (currently taking the class now) and I'm in need of some assistance with some coding that's way beyond my knowledge at the moment. I have to write a code for ...
1
vote
2answers
38 views

I need help producing 2 pwm signals

My project is to use an Arduino to control two solenoid valves with PWM and receive an input signal from a sensor as feedback. The valves direct the flow of water which cause a hydraulic actuator to ...
1
vote
1answer
43 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 ...
-1
votes
1answer
75 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 ...
0
votes
0answers
14 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/...
1
vote
1answer
70 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 ...
0
votes
1answer
34 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 ...
3
votes
2answers
74 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 */ /*...
1
vote
0answers
48 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 ...
1
vote
1answer
119 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, ...
1
vote
0answers
28 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 ...
1
vote
0answers
161 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 ...
0
votes
0answers
72 views

ESP8266 flasher: Failed to connect

Hey guys I wanted to flash my ESP8266 but every time I use the flasher it say: Failed to connect. I'm using an ESP-01 module. I connected it with some wires so VCC -> 3.3V, GND -> GND, TX -> ...
1
vote
0answers
81 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 ...
2
votes
0answers
40 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 ...
1
vote
0answers
48 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 ...
-1
votes
1answer
58 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,...
1
vote
1answer
89 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 ...
0
votes
1answer
120 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 < ...
0
votes
1answer
71 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 ...
3
votes
2answers
238 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 ...
2
votes
0answers
37 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: ...
2
votes
0answers
44 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 ...
0
votes
1answer
41 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 ...
2
votes
1answer
69 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 ...
1
vote
0answers
51 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 ...
1
vote
1answer
46 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 ...
1
vote
2answers
119 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 ...
1
vote
1answer
64 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 ...
0
votes
0answers
42 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 ...
1
vote
0answers
39 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 ...
1
vote
1answer
56 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 ...
3
votes
1answer
63 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 ...
2
votes
0answers
74 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 ...
1
vote
2answers
126 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 ...
0
votes
1answer
54 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 ...
1
vote
0answers
82 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: #...
-1
votes
2answers
103 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 ...
2
votes
1answer
60 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 ...
4
votes
1answer
104 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 ...
2
votes
1answer
102 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 ...
1
vote
3answers
278 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 ...