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
0 votes
0 answers
44 views

Why is the chracters on lcd glitching? [closed]

I have made a program that allows you to type anything from keyboard and display it on the 16x2 lcd screen but when I type the it displays some glitchy characters instead of the text I typed. It ...
Riz's user avatar
  • 1
-1 votes
1 answer
31 views

How to output two PWM signals, one of 50% duty cycle, the other 25% duty cycle, from an Arduino Uno?

I need to output two PWM signals, one of 50% duty cycle, the other 25% duty cycle, from an Arduino. Feed both signals into the 2 channels of a PicoScope and measure: a) the time difference between the ...
Regan Corban's user avatar
0 votes
0 answers
37 views

Error trying to upload sketch

I have just worked through the first three example sketches on the Arduino IDE using my Arduino Uno R3. I am now getting the following error messages and do not know what has gone wrong or how to fix ...
Ruben Du Plessis's user avatar
0 votes
0 answers
27 views

avrdude: ser_open(): can't set com-state for "\\.\COM9"

I have to make a program for a school project, but the Arduino won't work. The Program is right. I know that I use the right connection, so what is the problem? When I upload it, it says: exit status ...
kojonus's user avatar
0 votes
0 answers
36 views

problem with leds not glowing while interfacing with ultrasonic sensor [closed]

I tried using different Leds for different range of obstacle distance detected by ultrasonic sensor it didn't work code: int trigPin =5; int echoPin =6; int ledr =3; int ledg =4; int ledy =7; int ...
Sneha Katole's user avatar
-1 votes
0 answers
28 views

Is it possible to get 1 ultrasonic sensor and 1 lidar lite v3 sensor to work on one Arduino? [closed]

I've been struggling. I want to know how 2 different sensors work together and I have no idea what code I should try. Should I use a multiplexer? here's my code #include <Wire.h> #include <...
anr mrgd's user avatar
0 votes
0 answers
44 views

How to communicate with nodemcu from anywhere?

I have nodemcu v3 with esp8266. I have uploaded the below code for turn off and on home appliances and make the react expo app and use axios and making http request to nodemcu ip for on off the ...
Shubham Nagar's user avatar
-1 votes
0 answers
22 views

How do you connect (or enable the A0, analog input, in my case a sound sensor) with a CNC shield? [closed]

How do you connect (or enable the A0, analog input, in my case a sound sensor) with a CNC shield? Without the CNC shield v3, I could not read the input as I have doing with Arduino without the shield ...
William Olders's user avatar
0 votes
0 answers
17 views

Arduino Uno Carrier board not responding [duplicate]

I have a Arduino uno and Whenever I try to upload code it gives me this error Sketch uses 5804 bytes (17%) of program storage space. Maximum is 32256 bytes. Global variables use 238 bytes (11%) of ...
Divyansh undley's user avatar
0 votes
1 answer
46 views

GPS module Serial.begin value

I've disassembled a drone and found a GPS module. I want to use it. I haven't found any information about the architecture and the Serial.begin value I have to use. Could I break it if I tryieda ...
drMAIN's user avatar
  • 1
-2 votes
0 answers
31 views

How to power a microcontroller with solar power? [closed]

I want to power 4 microcontrollers (Uno, Mega, ESP8266 and ESP32) but I do not know the recommended specification required for them. What I read tells me that I should plug in XX volt (DC power source)...
Marifin -'s user avatar
0 votes
0 answers
46 views

Arduino IDE 2.2.1 stuck in blank and does not let me write or load any code, no board is detected either

I am new at programing with Arduino have done some basic stuffs with it. Today, when I tried to open Arduino IDE again to do a new project I found out that it wouldn't let me write any code on it. It ...
George1234's user avatar
0 votes
1 answer
58 views

Unable to get keypad key in while loop [closed]

I'm a beginner into Arduino so I have a little problem where I'm trying to do a countdown on LCD using while loop but I'm also trying to get a key input inside that same while loop. Problem is that ...
DevChips's user avatar
0 votes
1 answer
18 views

L298n driver with Arduino with 2 motors won't work

I connected the 12v power supply with 9v battery. The problem is that when i run 1 motor at time from any side (out 1, 2 out 3, 4) it works perfectly, but when I try to run both of them, only one will ...
nitu sahay's user avatar
0 votes
0 answers
56 views

Error downloading arduino:avr:1.8.6 in Arduino IDE with Network Proxy

With Arduino IDE v2.2.1, I've connected Arduino UNO board and it automatically tries download the avr board - however it repeatedly throws errors while downloading the boards. As the PC that I'm ...
Giri's user avatar
  • 101
0 votes
0 answers
20 views

2 independent PWM signals with an ability to change frequency on Arduino UNO R3

I tried to generate 2 independent PWM signals with their inverted signals on Arduino UNO R3. I can change the frequency for just one PWM signal, but the frequency of the second signal is constant at ...
Aya's user avatar
  • 1
1 vote
1 answer
88 views

DHT20 and Oled display not working together

I am trying to get my DHT20 and Oled (Both from the Arduino Sensor Kit) to work at the same time. I am able to get them working separately with their respective test codes but when I try to combine ...
Darren D'Arcy's user avatar
1 vote
1 answer
58 views

Fluctuate output produce by LM35 temperature using Arduino and LINX LabVIEW

So I am currently working on a small project which involves Arduino, LINX LabVIEW and LM35 temperature sensor. I dont know why but sometimes the output graph plots weird fluctuate value (kinda looks ...
Minh's user avatar
  • 11
1 vote
1 answer
33 views

6v High Torque Servo Won't Function On Motor Shield?

I have only ever been able to get this servo to “somewhat” work when connected to 5v pin on the shield, the ground on the shield, and the signal line attached to whatever pin. But 5v is not enough and ...
ConnorC's user avatar
  • 11
-1 votes
0 answers
22 views

Arduino USB PORT PROBLEM [duplicate]

While connecting arduino uno to the system showing unknown usb device. Tried many ways like updating drivers, restarting system, installing ch340 drivers, etc. but no use. Don't understand what the ...
user93423's user avatar
0 votes
1 answer
64 views

Arduino Uno, does a lower Aref voltage work well for measuring current? without increasing ADC integral non-linearity

I want to measure current using a Arduino Uno and use a very low resistance of 0.1Ohm or lower for the shunt resistor to measure the current(to reduce power waste and heat generation), as a result ...
TeD van Loon's user avatar
0 votes
0 answers
26 views

Detecting an approaching car with a microphone?

I am currently trying to detect an approaching car with a microphone. Currently, I am using an Arduino Uno in conjunction with a SparkFun sound detector. I have tried using FFT and am currently trying ...
Jack's user avatar
  • 11
-1 votes
0 answers
33 views

Serial Monitor not reflecting commands (Connecting Arduino and ESP8266 Module CG340G)

I have a Arduno Uno R3 and ESP8266 Module Module CH340G. Currently using a Macbook. With google and youtube, I saw that I can test if my ESP8266 module (via connection through Arduino) is working, I ...
user93355's user avatar
1 vote
0 answers
47 views

Scrolling function for existing Arduino menu using 16x2 LCD [closed]

I am creating a menu system for my project. I have successfully finished my code to configure up to 2 menu items on my 16x2 LCD I2C. I would like to extend it and add up to 5 menu items in the code ...
neospice's user avatar
0 votes
0 answers
23 views

Arduino IDE: Delays in void loop() prevent counting number of switches

How can I count the number of prox switches and at the same time reference this value for conditionals within loop()? The delays make my loop counter stop adding. I need to know the total number of ...
remusconnor's user avatar
2 votes
1 answer
91 views

Why my pushbutton always reads LOW?

This is the code I used in my project void setup() { Serial.begin(9600); pinMode(6,OUTPUT); pinMode(7,OUTPUT); pinMode(8,OUTPUT); pinMode(9,OUTPUT); pinMode(10,OUTPUT); pinMode(11,...
KillerJosh345's user avatar
1 vote
0 answers
26 views

Motor Shield Enable and Input Pins

Hello, I am new to the Arduino UNO board and am trying to make a dc motor run using the MATLAB software. The motor is connected to the motor shield board in a similar way shown in the picture below (...
KnightRider's user avatar
1 vote
0 answers
44 views

How do I control a BLDC with greater precision using bluetooth?

I am building a quadcopter drone and I have 4 BLDC motors that I can control using an HM10 Bluetooth module and the "Dabble" application. My problem is that when I use a virtual joystick in ...
gabe29's user avatar
  • 11
4 votes
3 answers
514 views

How to compile without adding the bootloader?

I'm using a standalone atmega328p with a 16MHz crystal. I'm programming it via avrdude on a raspberry pi, using the SPI and RESET pins. When I compile my program, this is what I see at the end of the ...
php_nub_qq's user avatar
-1 votes
1 answer
48 views

Compilation error: 'Serial' does not name a type [closed]

#include <IRremote.h> IRrecv IR (11); Serial.begin(9600); void setup() { // put your setup code here, to run once: IR.enableIRIn(); } void loop() { // put your main code here, to run ...
maxerex's user avatar
0 votes
0 answers
54 views

Setting flag for sending data through advertisements using hm-10 mlt bt05 and arduino uno

I have succesfully connected to my hm-10 device and started configuring it using AT commands. I would like to know if it is possible to modify the data sent in advertisement and read it on another hm-...
stamley's user avatar
0 votes
1 answer
47 views

ATmega328 drop-in replacement with more flash memory

Is there a ATmega328 drop-in replacement with more flash memory? Needs to be 28 pin DIL to fit the socket. Alternatively, is there a board that has the exact dimensions and pins as an Arduino UNO, but ...
Björn Morén's user avatar
0 votes
0 answers
38 views

Python program can read but not write on serial monitor

I'm trying to write a small python program to communicate with my Arduino board but, somehow, I'm having a little trouble. My goal is to switch on and off a LED by interacting with the desktop program ...
Zay's user avatar
  • 11
2 votes
1 answer
100 views

Get address of a I2C transaction when multiple addresses are registered

I have an application polling 4 ADCs by I2C. The application shall also write on some ADC registers. In order to test it, I'd like to use a single Arduino UNO, enabling it for receiving I2C messages ...
lumaca96's user avatar
2 votes
1 answer
66 views

I would like to know why my four gear motors are rotating at different speeds when connected to 2 L293D motor drivers, controlled by the arduino

Ignore direction of the motors(for now). This is my connection diagram. Any and all improvements to this are welcome. Bottom left motor seems to run at 210-224 rpm Bottom right motor runs at 160-180 ...
Veeraja Veeraesh's user avatar
1 vote
1 answer
111 views

How to handle class initialization when using brace-enclosed initializer lists

I'm working with a custom C++ library, CPSTL, for Arduino, which includes a cpstd::vector class that is designed to work with cpstd::initializer_list, cpstd::initializer_list is supposed to mimic std::...
Cheche Romo's user avatar
0 votes
0 answers
59 views

Waking PC from sleep with Arduino keyboard doesn't work, but a regular keyboard does

I have an Uno R4 Minima that tells an attached Linux PC to sleep/wake using keyboard keys to save power. It works fine to make the computer sleep (using Keyboard.write(238); which Linux interprets as ...
Skylar Ittner's user avatar
1 vote
1 answer
123 views

Sounds are being played at the same time

I'm making a school project that allows plants to 'talk'. As in when the plant is in an un-ideal environment (low or high soil moisture, not ideal temperature or humidity and not enough light). I have ...
I-like-turtles's user avatar
1 vote
0 answers
16 views

Sparkfun canbus shield with LSM6DS33 dual SPI problem

Hello fellow arduino users! I have a question regarding using the Sparkfun Canbus shield in conjunction with the LSM6DS33 sensor on a dual SPI configuration. I have managed to get theese two to ...
Paul Boutsiadis's user avatar
-3 votes
1 answer
90 views

RF24 if statements are not reading properly, even if an "if" value is wrong, it still follows the associated code [closed]

My code is taking values from a remote and transmitting the state of it. Right now the states are just 1 and 0, on or off, and is writing over the serial monitor on the transmitting Arduino. On the ...
Bradbut's user avatar
-1 votes
1 answer
32 views

The code is showing same angles for all three axis in the mpu gyro. can anyone solve it so that it works

#include<avr/io.h> float x, y, z, baf = 0, j, i = 0, k, angle, a, b, c, d; unsigned long current_time = 0; unsigned long previous_time = 0; unsigned long time_interval = 0; float gyro_offset_x = ...
Divy Shah's user avatar
-1 votes
1 answer
111 views

error: expected unqualified-id before 'if' if (send) { but all semicolons are available [closed]

I am getting a compilation error: expected unqualified-id before 'if' . Btu I have check all the semicolons . Please help finding my error. The rest of the message error reads C:\Users\jecalderon\...
Jose Enrique Calderon's user avatar
0 votes
1 answer
148 views

Lora SX1278 stops receiving after a short time

I am working with two Lora ra-02 sx1278 modules and two Arduino Uno. Programming on Arduino IDE 2.1.1 sender receiver The problem is the receiver receives a few packets successfully, but then the ...
Rouhi's user avatar
  • 11
2 votes
3 answers
430 views

Is there a way to increase the number of output pins in Arduino Uno? [duplicate]

I am an amateur. I know about Arduino, but I am still learning. And I was making this Bluetooth rover with a camera, ultrasonic sensor, mecanum wheels, air-soft shooter, and sand sample collector. I ...
Anik Singh's user avatar
3 votes
1 answer
72 views

Arduino Servo with temperature sensor (TMP36)

The essence of the program is to measure the temperature, and if the temperature is higher than 26 degrees, the servo rotates by 45 degrees, and if it's lower, it rotates by 179 degrees. However, a ...
Pain's user avatar
  • 33
0 votes
0 answers
122 views

Arduino Uno RFID-RC522 won't scan any card or tag

So I bought a RFID-RC522 module with a blue tag and a white card, and I searched for tutorials and found this library that I used it. and here is my code : #include <MFRC522.h> #include <SPI....
Mr Code Gamer's user avatar
0 votes
2 answers
46 views

Why is my LED strip value always equal to 255 on my potentiometer?

I'm pretty new to Arduino and this is my first project I'm working on and I'm really struggling with why my code isn't working properly. The LED strip should be able to adjust the colour with one ...
user92341's user avatar
2 votes
1 answer
301 views

Why am I getting wrong compass heading using magnetometer readings?

I have been trying to calculate the compass heading using the magnetometer in an MPU9250 sensor. But the result is not making sense to me. I am completely new in this and do not have much ...
Sayantan Das's user avatar
0 votes
1 answer
54 views

With TIMER1 in CTC mode can't get above ~200khz in arduino UNO runnning @ 16MHZ with no prescaller?

I got the following code, and based on the datasheet the Freq should be clk / 2 * Prescaller * (1 + OCR1A) making it that if I set the OCR1A to 0, I should get something close to 8Mhz, but the maximum ...
Nuno Santos's user avatar
0 votes
0 answers
48 views

Can TFT displays share the same RST?

I am trying to connect up to 5 TFT displays to one Arduino Uno R3 and use a multiplexer to control the output to each display. At the moment I am stuck being able to only write to a single one. Every ...
griegs's user avatar
  • 131

1
2 3 4 5
162