Questions tagged [arduino-uno]
The Arduino Uno is the most common of the Arduino boards. It is based on the ATmega328P microcontroller.
8,142 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
-1
votes
0
answers
78
views
enum class not in scope but auto works
I'm writing a program to display leds that sequentially light up in one direction until the last led at which point the process reverses. I'm using an OOP approch for practice. Below is my code in its ...
1
vote
0
answers
51
views
Why LoRa Ai Thinker 433Mhz doesn't go in Receive mode after we send ACK? [closed]
So basically I created a simple Receiver and Transmitter using Two Lora Ai Thinker 433Mhz (Sx1278). I am using Esp8266 with one Lora (as transmitter). It sends packet when we press button. On Receiver ...
0
votes
0
answers
57
views
Arduino R4 Minima, trigger function being bypassed?
I am running a trigger function in a while loop in setup that takes in 3 analog inputs, checks if they are within a certain range, then outputs true if they are, false if none of them are.
The code I ...
-1
votes
1
answer
99
views
Difference between using GND and digital LOW for 7-segment display pin
I am using this 4-digit 7-segment display.
So my circuit is basically 220 ohm resistors for all the segments (display pins 6 through 16 on the bottom each go through a resistor before going to a ...
0
votes
2
answers
134
views
I need more free memory on my Arduino. What can I do if I don't want to use float? [closed]
I realize that using float results in loading all or at least parts of the floating point library, which consumes a significant amount of memory.
How can I avoid using float?
-1
votes
1
answer
76
views
How do I change what variable I am changing based on a separate number?
I am trying to change thing2 if I input 0, and thing3 if I input 1. I don't want to just have if/else to determine if I should be changing thing2 or thing3 because I want this to be more dynamic than ...
0
votes
1
answer
52
views
Replace bootloader in ATTiny88
There are other threads about replacing the bootloader on Arduino boards, but the ATTiny88 seems to be rather a different beast. Instead of creating a serial port and sending the compiled code to the ...
0
votes
1
answer
95
views
Stepper motor not moving
this is my second Arduino project and I am trying to figure out why my stepper motor is not moving. I was able to get a basic 28byj-48 stepper motor to work using stepper.h and some sample code.
Now I ...
1
vote
1
answer
56
views
When I run my for loop the serial monitor is giving very strange results
This is unfinished code for driving a 4 digit 7 segment display. When I run my data function that should output the data to send to the shift register, I get a very weird output.
0 00111111
1 00111111
...
1
vote
1
answer
75
views
Connect ESP32-CAM to L293D
Disclaimer: I'm a programmer, not an electronics expert. I built this car using an Arduino Uno, and now I want to add a camera to it. I’ve tried researching online, but I couldn’t find much ...
-1
votes
1
answer
131
views
MFRC522 RFID RC522 Only Works Sometimes – Unreliable Detection Issue
Problem Overview
I’m using an MFRC522 RFID module with an Arduino Uno, and it only detects RFID tags sometimes. The behavior is inconsistent—sometimes it reads the card instantly, and other times, it ...
1
vote
1
answer
63
views
Using ultrasonic sensors and motors. Measuring and moving at the same time
How to measure distance while controling motors?
I am using an Arduino UNO.
#include <Wire.h>
int motor12pin1 = 2;
int motor12pin2 = 3;
int motor34pin1 = 4;
int motor34pin2 = 5;
int pinJacina12 ...
0
votes
0
answers
84
views
How to Connect/configure HC05 (Bluetooth module) to a shield?
I am a newbie to Bluetooth communication in Arduino.
I have 2 Arduino boards (one runs my main sw, second act as slave to operate a remote command coming from the main board) that i want to establish ...
0
votes
1
answer
82
views
`sprintf` of %04d and %03x at the same time on Arduino
I have this code, work fine!
uint32_t id , id2;
char s[64]; // Should be enough
...
id2 = id = CAN.getCanId();
sprintf (s, "%04d : ", id ); // !!! HERE !!!
Serial.print(s);
the ...
0
votes
0
answers
114
views
ESP8266 Not Booting Properly on First Power On – Works After Restart
I'm working on an ESP8266-based water level monitoring system using an ultrasonic sensor and an I2C LCD. The problem I'm facing is that sometimes the ESP8266 does not boot properly when powered on for ...