Skip to main content

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
0 answers
337 views

display.begin(); function breaks working code

I've been setting up a system using an Arduino Uno board that reads from both an Adafruit MPU6050 6-way gyroscope and accelerometer and an Adafruit NAU7802 connected to a load sensor. I have code for ...
HannahPlaysCello's user avatar
1 vote
2 answers
97 views

I'm planning on using 2 arduino boards for my project. Should I use 2 voltage regulators for project or use 1 for both?

For context, my first board would contain a motor circuit with an L298N motor driver while my second contains a controlled heating system that uses 2 relays with PTC heating elements, DHT11 sensor, ...
Kid's user avatar
  • 21
1 vote
2 answers
69 views

converting comma delimited Serial message to 7 Unsigned Long variables

Working on a project where I get an input where its a comma delimited string like: "255,10000000,42949672950254,12,22". and then the numbers (no commas), would be split into 6 Long ...
The Oracle's user avatar
1 vote
2 answers
456 views

How do I turn on 3 LEDs in a repetitive sequence where all three LEDs would then turn OFF when the push button used is released?

Basically, how do I modify my code listed below to turn ON each of the three LEDs one at a time in a repetitive sequence while keeping the push-button pressed? Red (3 sec), Yellow (1 sec), and Green (...
Mars's user avatar
  • 39
3 votes
1 answer
112 views

Arduino Uno Gravitech Rev 3.0 with avrdude CLI (Mac OS) - Is my script correct?

I am dealing with an Arduino Nano board rev 3.0 from Gravitech. There is a program inside that I'd like to download to a HEX file. Thus I can upload it to other Arduino Nano boards. I'm a newbie with ...
DavidM31's user avatar
3 votes
1 answer
410 views

How do I use a transmitter and receiver to send string messages conditionally to a receiver?

I'm working on a project to build a plant monitor that works from the outside with Arduino that picks up light and water values from it's environment then uses a nRF24L01 with an antenna and I've come ...
Mario Ronci's user avatar
1 vote
1 answer
543 views

How to drive two Stepper motors and use an Ultrasonic sensor together?

I am working on an autonomous robot using two 4-pin stepper motors, HC-SR04 ultrasonic sensor, 2 L298N motor drivers (one for each motor), and an Arduino Uno. My problem is that when I use the stepper ...
Renier Jr.'s user avatar
1 vote
0 answers
127 views

Arduino Uno not interfacing with GSM SIM900A Module

I am using an Arduino Uno with a SIM900A module. I want to send a simple SMS but it is not working, as it either has no response in Serial monitor or there are reversed question marks. I have attached ...
Mike Oxmall's user avatar
1 vote
1 answer
837 views

Arduino UNO stuck at 'uploading' with base sketch, nothing wired

This question has been asked before and I have carefully read the other questions, but the solutions have not worked in my case, and the details are not the same as mine. Description The Arduino Uno ...
Gabriel H's user avatar
-1 votes
1 answer
194 views

Arduino-project with color sensor and rgb-led

I want to use a color sensor for my Arduino project with Arduino Uno to detect the colors red, green, blue, orange, yellow purple of leaves of paper and then light my RGB led in those colors. I have ...
user90576's user avatar
1 vote
0 answers
44 views

Problem when running Servo library with thread (Protothreads)

When running two threads, one for blinking led once every second, one for sweeping the servo 180 degrees. The servo just vibrates. When I tested adding a serial printout in the run servo for loops for ...
jst_swe's user avatar
  • 11
1 vote
3 answers
165 views

are 4AA batteries (6V) power my arduino

I'm actually new to using arduino , and trying to make a simple car, using two dc motors, a l298n and an arduino, the problem is that a 9v battery doesn't seem enough to just power the l298n and one ...
Marouane Rakine's user avatar
1 vote
0 answers
60 views

Buzzer keeps buzzing even though the sensor doesn't detect anything

through the code that I've listed below, the idea was to have a sensor that detects objects in different ranges, if they're quite close, a light strip will turn on yellow with no buzzer. If they're ...
vanHellsing's user avatar
1 vote
0 answers
70 views

GPS module NEO M8M not responding with Atmega 328P

I designed PCb for relay Switching using gps signal for that i am using atmaga 328P-AU and Neo 6M but after connecting gps module its not showing long, lat. i also checked power supply in module pin ...
Jay Vadoliya's user avatar
1 vote
1 answer
530 views

What are the Vs and Vss pins on an L293D chip for?

I made a simple test circuit to help me understand the L293D H-bridge that comes with the Arduino starter kit. Digital output pins of the Arduino are wired to the input pins on the H-bridge. Arduino ...
Jack M's user avatar
  • 123
0 votes
2 answers
39 views

I want to have separate Keypad passcodes to light up an RGB and run a DC Motor in one code. 6113 for RGB and 4613 for the DC Motor

#include <Keypad.h> const int ROW_NUM = 4; //four rows const int COLUMN_NUM = 3; //three columns const int PIN_RED = 2; const int PIN_GREEN = 3; const int PIN_BLUE = 4; const int MOTOR_PIN1 = ...
Aled Zurc's user avatar
4 votes
2 answers
236 views

Arduino resets or stuck during run, only when DC motors are connected

I'm using an arduino connected to 2 DC motors through L298N. the arduino is powered by a 9V battery, and the L298N is powered by 4 AA batteries. there's also a switch that starts the movement. I've ...
young marx's user avatar
0 votes
0 answers
116 views

Arduino RS485 do I need MAX485?

I'm trying to connect sesnor that use RS485 (I'm almost sure that's modbus). The sensor has RX/TX and +/- wires. Do I still need a component between the RX/TX pin from the Arduino UNO and the sensor ...
Dafik's user avatar
  • 9
3 votes
1 answer
320 views

Arduino uno weird behavior on a simple counter program

So I just got my first Arduino Uno board and the output on the serial monitor doesn't make sense to me. For this code int counter = 0; void setup() { Serial.begin(9600); } void loop() { counter+...
GotYaLoot's user avatar
1 vote
1 answer
39 views

How can I observe the "voltage dips" the starter kit talks about in Project 5?

Project 5 of the Arduino Starter Kit book (page 63) involves wiring up a potentiometer to control a servomotor (see diagram). The book also recommends wiring up decoupling capacitors as shown in the ...
Jack M's user avatar
  • 123
1 vote
1 answer
408 views

RFID card read loop seems to stop

I successfully programmed an RFID card reader to switch lights on and off if any rfid card is presented. I have tested this and it works, with the lights continually switching on and off if any rfid ...
Christine's user avatar
1 vote
1 answer
60 views

Program work when used Delay() but same program doesn't work with millis()

I'm running a dc motor using esp32 and mosfet by taking readings of IR. Program works fine when used delay() but same program doesn't work when uploaded using millis(). //This uses fixed delay() // ...
Akash Patil's user avatar
1 vote
1 answer
249 views

How to make the built-in LED blink with a frequency of 5 Hz using interrupts

The task is: after five clicks on OK, the built-in LED starts flashing with a frequency of 5Hz using an interrupt. After the eighth click on OK, the flashing (and glowing) should stop.Why is flashing ...
Good York's user avatar
1 vote
1 answer
71 views

Why Did I Have To Program Duemilanove Bootloader?

As a volunteer for Public Invention, I have developed an Atmega328 based design in which I thought I was largely duplicating the Arduino UNO. Unlike the UNO, I did choose a CH340 USB to UART chip as ...
Forrest Erickson's user avatar
1 vote
1 answer
232 views

ARDUINO DC Motor Control over IR Sensor INPUT

I'm working on a school project where I'm building a small convyeor belt using an ARDUINO, DC motor and IR sensor for moving object detection so my color sensor can read color value. I'm using single ...
Sunny Gavali's user avatar
1 vote
0 answers
189 views

OEM Arduino UNO not seen by COM port

Arduino UNO R3 My error code: avrdude: ser_open(): can't set com-state for "\.\COM3" An error occurred while uploading the sketch This has been mentioned several times before here in the ...
StanB's user avatar
  • 9
1 vote
1 answer
64 views

timing changes once DC motors are connected to power

I'm using an arduino uno with two DC motors. I'm also using the built in LED to tell me when the motors should be on as a debug tool. The code is a simple while loop that turns both the motors and the ...
young marx's user avatar
0 votes
1 answer
307 views

Why NEC IR remote control decoder does not work

I need to recognize a signal from an IR remote, not to use a library for working with IR remotes/receivers. How can when the button is clicked to display its name. I have PIC12F615 microcontroller ...
Good York's user avatar
1 vote
1 answer
92 views

Arduino Readings Update Correctly on Windows but not Linux

I have written a simple script to get angle measurements from a magnetic sensor. The script works very well on Windows. However, when compiling the script on a Linux VirtualBox (Ubuntu 20.04), the ...
Vuro H's user avatar
  • 11
-1 votes
1 answer
58 views

It is required to turn on the LED if the distance to the object is less than or equal to 200 centimeters. Find the error in the code

int trigPin = 10; const int echoPin = 8; int led = 7; const int distance = 200; void setup() { pinMode(trigPin, OUTPUT); pinMode(echoPin, INPUT); pinMode(led, OUTPUT); } void loop() { ...
user90289's user avatar
1 vote
1 answer
138 views

How can when the button is clicked to display its name

I need to recognize a signal from an IR remote, not to use a library for working with IR remotes/receivers. How can when the button is clicked to display its name. I have PIC12F615 microcontroller ...
Good York's user avatar
-3 votes
1 answer
188 views

SIM7600 MQTT CONNECTION TO shiftr.io broker

I am trying to use SIM7600 MQTT command to publish and subscribe to shiftr.io broker. I have not been able to get pass stage of connecting to broker. I use this AT+CMQTTCONNECT=0,"tcp://instance....
avong's user avatar
  • 5
1 vote
2 answers
201 views

interface pcf7991at to arduino

I wanted to try to interface the pcf7991at with arduino, I assembled the pcb containing the pcf7991at following the diagram shown in the datasheet. I saw that a frequency of 125khz must go on the CLK ...
Gastone Krankenwagen's user avatar
1 vote
1 answer
44 views

Help with program upload problem

I'm going to upload some code to my LeArm using an Arduino board. I connected the RX and TX pins of the LeArm to the Arduino, but I got an error message when I tried to upload the code. I'm not sure ...
CharNgai's user avatar
-1 votes
1 answer
148 views

Why is my Arduino is getting power from the 5V pin?

I have an Arduino that is controlling two 6V DC motors through a L298N motor driver. The motor driver is being powered (from its Vin pin) by a 7.4V external source. I then have the 5V pin from the ...
Johnathon Bulman's user avatar
1 vote
2 answers
88 views

Program to Multiply Numbers Won't Actually Multiply Them

I am trying to write a program which takes in a number of pairs to be multiplied, then prints out the result of each multiplication. Instead of doing this, the program just prints out the number of ...
JG98's user avatar
  • 21
1 vote
1 answer
74 views

Transmitting voice via VLC

The project I'm working on: Short-Range Coded Visible Light Communication System. Visible Light Communication (VLC) systems use light to transfer data between transmitter and receiver over short-range ...
Hussain's user avatar
  • 21
2 votes
1 answer
320 views

Unexpected Behaviour w/ Arduino Uno Calculation

I have a really simple snippet of code wherein the same calculation outputs different values depending on how I do the calculation. The platform that I am running this code on is an Arduino Uno - with ...
Archit K's user avatar
0 votes
0 answers
42 views

channels on logic level shifter outputs high

so I have a logic level shifter which is TXS0108E ,I use it to shift the eps32 ouput volatge to 5v to be used with motor driver ,when I test it with multimeter , all the channels on the B side outputs ...
kamal MKA's user avatar
1 vote
0 answers
89 views

A4988 Jitter on stepper motor, some of the time

Hardware: Arduino Uno Rev3 A4988 Driver Nema 8 Stepper Setup: I've adjusted the VRef of the driver based on the formula VRef = Imot * 8 * Rsen. With the values of Imot = .5 (max = .6), Rsen = .068. ...
Michael's user avatar
  • 111
1 vote
1 answer
699 views

Problem with using PubSubClient, the "callback" function doesn't seem to work correctly

I have a program that communicate between a esp8266 and a atmega328 using Serial, the esp8266 will connect to a MQTT server running on local network, and publish/subscribe to some topics. In the ...
J. C. Stark's user avatar
0 votes
1 answer
451 views

Why does the interrupt not work after pressing the button

Implement interrupt processing when the button is pressed, and the very start on the rising edge, the interrupt pin and to which the button is connected 11. Why does the interrupt not work after ...
Good York's user avatar
1 vote
2 answers
157 views

What's Memory Allocation technique in Arduino

I am currently working on an assignment for my embedded systems course, and my professor has asked us to determine the memory allocation technique employed in Arduino. Specifically, I need to identify ...
Noran Hany's user avatar
2 votes
1 answer
701 views

How to connect a NRF24L01 to a Wemos D1 R2

I have troubles to connect a NRF24L01 transceiver to a Wemos D1 R2 board. I succeeded on an Arduino Uno. Does anyone know the pinout? I used (same as with Uno): D13 - SCK D12 - MI D11 - MO D8 and D9 ...
FredV's user avatar
  • 21
2 votes
1 answer
223 views

How do I make the Arduino print on my Mac's Arduino IDE through Bluetooth?

This is a basic question, but I really have tried my best to find a solution on the internet to no avail. I have a fairly normal setup. HC05 module connected to an Arduino. The HC05 is also connected ...
iceninja21's user avatar
2 votes
1 answer
145 views

What type of pin header is this?

Most of the Arduino uno boards have black female pin header. when i bought a ardiuno uno the digital pins 0 to 7 are made of silver pins. What type of pin header is that? How to use these kind of pin ...
Alwin Varghese's user avatar
1 vote
0 answers
128 views

LIS3DH not working with arduino

I am new to LIS3DH and tried to interface it with Arduino Uno. I have made the circuit as follows- LIS3DH : Arduino Uno SCL : SCL (GPIO18) SDA : SDA (GPIO19) 3.3v : 3....
ABD's user avatar
  • 111
2 votes
1 answer
631 views

Reading/writing Ntag215 with RC522

I ordered Ntag215 from Aliexpress. The tags are identified just fine, yet I have issues writing/reading to them because of failed authentication. I am using Arduino Uno + RFID-RC522 module. This is my ...
void_hello_world's user avatar
0 votes
1 answer
450 views

Incorrect IP address when using Ethernet library with Arduino Uno and WizNet 5500 ethernet module

I'm trying to get an ethernet module with the W5500 chipset to connect to my network on an Arduino Uno, but whatever I do, I always get an incorrect IP address. The module is connected as default SPI, ...
Deekay's user avatar
  • 117
1 vote
1 answer
301 views

Incorrect data received on serial communication

I have two Arduino UNO connected with two wires, and ground, that exchange informations through serial data. The communication is working with INT, but I am having troubles to receive correct ...
BruceWawe's user avatar