Questions tagged [arduino-uno]
The Arduino Uno is the most common of the Arduino boards. It is based on the ATmega328P microcontroller.
8,147 questions
0
votes
0
answers
40
views
NEMA 17 with A4988 Runs Smoothly During Code Upload but Moves Erratically Afterward
Problem Description:
I'm controlling two NEMA 17 stepper motors with A4988 drivers and an Arduino Uno. I'm experiencing a peculiar issue where one motor runs perfectly smooth during code upload but ...
0
votes
0
answers
38
views
Increase current of IR trasmitter with embedded resistence [closed]
I am new with Arduino. For a personal project I have an Arduino uno that is connected to this IR Trasmitter:
For arduino I have connected the +5V on VCC, GND PIN to IR transmitter GND and the PIN out ...
0
votes
1
answer
40
views
Sketch Upload Fails -USB bus damaged?
My desktop computer abruptly started failing to upload sketches to the Arduino UNO (a smd "Make: Special Edition" board) I've been working with for the last few weeks. The sketch compiles ...
0
votes
1
answer
91
views
Ultrasonic sensor showing random readings
I am using a HC-SR04 ultrasonic sensor to measure the distance using an Arduino Uno. When I run this code which is worked perfectly in the previous, it only shows just random readings in the serial ...
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
2
answers
141
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?
0
votes
1
answer
70
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 ...
1
vote
1
answer
57
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
votes
1
answer
167
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 ...
0
votes
0
answers
95
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
0
answers
127
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 ...
1
vote
1
answer
157
views
Why does the use of serial.readBytes increase program size by 10kb?
If I put this in my arduino program, in main.cpp, I suddenly run out of memory for flash program size:
if(msgSize > 2) {
//sr::sequentialRead(&serialRead, newTram.hash);
uint8_t bytes[...
-1
votes
1
answer
52
views
Interrupt service routine calls with RC receiver
I've written an ISR routine using an Arduino UNO wired to my RC receiver. The receiver gets orders through the gimbals in my transmitter and executes the ISR every time the gimbals are moved.
I was ...
0
votes
1
answer
265
views
Questions about ATMega8A including burning my hex files
I wrote a small blink program for an ATMega8U-DIP I bought recently. The source is this,
#ifndef F_CPU
#define F_CPU 16000000
#endif
#include <avr/io.h>
#include <util/delay.h>
int main(...
-1
votes
2
answers
136
views
50 Hz powerline noise using Arduino and mikroe ECG 2 (ADS1194)
I am trying to take ECG measurements using the Mikroe ECG 2 (ADS1194), connected to an Arduino Uno via an Arduino Uno Click shield.
I am able to measure the ECG, and can read the heartbeats somehow in ...
-1
votes
1
answer
66
views
Running full voltage through Transistors
Hello I am trying to create a fan controller using Arduino. The (Placeholder LED's) fans run at 12V 0.23A DC so I have an external power supply for them. I plan to control the flow of this with NPN ...
1
vote
1
answer
128
views
How to run G code with SoftwareSerial?
I'm trying to build my own CNC machine. Since I need to control a large number of motors at the same time, I want to control it via an Arduino master and several slaves with CNC shields. Now I'm ...
0
votes
1
answer
91
views
Running stepper motors with A4988's, and might have shorted the Uno when checking voltages with multimeter. Is my circuit design faulty?
What Happened
I'm working on a project to run two peristaltic pumps from an Uno. The previous version used DC motors and L298N's, but I am attempting to upgrade it by using stepper motors and A4988's. ...
0
votes
1
answer
454
views
Powering SG90 Servo with 18650 battery
I want to power one SG90 servo with an 18650 3.7v battery. Since the working range for the servo is 4.8v-6v, I used XL6009 boost converter and got a 5.8v output. I have measured it with my multimeter. ...
-1
votes
1
answer
65
views
Arduino connect programatically two wires of external 3.3V device
What is a missing puzzle in here, relay, transistor?
I would like to pull pin of external device to the ground programatically using arduino's digital pin.
0
votes
0
answers
95
views
The control function is not sending out correct values
#include <MIDI.h>
int scale = A4;
int oct = A2;
int potval, octval,octval2=0;
int newnote, prevnote = -1;
int newpotval,prepotval=-1,potval2=0;
int trigr = 7; // Ultrasonic right
int echor = ...
-1
votes
1
answer
181
views
Unable to upload to Arduino Uno after changing port number
I recently changed my port number for the arduino USB from COM8 (what it defaulted with) to COM256 (attempting to see if that will work).
However, whenever I try to upload it gives
'avrdude: ser_open(...
0
votes
2
answers
752
views
Arduino IDE Failing to Compile Any Sketches
OS: Windows 11
Arduino IDE Version: 2.3.2
I recently opened up my Arduino IDE to find that nothing--absolutely nothing--would compile. Whenever I tried, I got the following error message:
Using board '...
1
vote
2
answers
213
views
Can't read SD card
I get errors to open file on SD card. This is the instructions I use https://www.instructables.com/Micro-SD-Card-Tutorial/
/*
SD card read/write
This example shows how to read and write data to ...
2
votes
1
answer
201
views
Which Arduino CMake Toolchain should be used?
I am working on an Arduino UNO board and I want to build my Arduino sketch with CMake.
It looks to me there is no official Arduino toolchain version to go by, and I found at least three available ...