All Questions
Tagged with arduino-uno programming
567
questions
0
votes
0
answers
15
views
RAK7243C LoRaWAN gateway not connecting with Atmega+RFM95 LoRa module in ABP mode
I am using a RAK7243C in AS923 region, which is able to connect with The Things Network (TTN) cloud. However it’s not showing any live data coming from my node. Can someone please help? Below are the ...
0
votes
2
answers
87
views
How much readable text can fit inside an ATTINY85? Feasibility of scrolling a booklet on a 0.91-inch OLED display
I'm a total beginner, so I've been talking with Chatgpt regarding the capabilities of the Attiny85 microcontroller. But the AI would hallucinate a lot and give only partially right answers (because it ...
3
votes
1
answer
296
views
Problem when coding 4x4 keypad's key detection (without library)
Part of my current assignment involves reading the input from a 4x4 keypad connected to an Arduino UNO. While this may be done easily using <Keypad.h>, the project is being done with Tinkercad's ...
1
vote
2
answers
105
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 (...
3
votes
1
answer
104
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 ...
1
vote
1
answer
148
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 ...
-1
votes
1
answer
45
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 ...
1
vote
1
answer
157
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 ...
1
vote
1
answer
28
views
Help with program upload problem!
I'm gonna 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 ...
-3
votes
1
answer
135
views
Using internal voltage reference for sensor
i am using 3.7~4.2V lithium battery. I am using internal voltage reference to read constant battery voltage as we know that the battery voltage level depletes overtime. The problem is that my sensor (...
-1
votes
1
answer
84
views
RGB LED randomized colors and LDR fading at the same time
Im trying too make an RGB LED that keeps changing color's randomly, and makes the brightness fade at the same time with an LDR, yet I keep getting an error that says too many arguments to functions.
...
-2
votes
1
answer
86
views
Arduino code giving error while compiling [closed]
I am a beginner, and I'm trying to make code to control a servo using two ultrasonic sensors.
I've tried to make the code, but when I tried to compile it using my simulation app, it gives this error:
...
3
votes
1
answer
112
views
Detecting an approximate angle/location of a light source using phototransistors
Note: [I am approximately two weeks into learning Arduino and hence have little experience with utilizing Phototransistors.]
My plan revolves around placing four identical Phototransisors which are ...
-1
votes
1
answer
101
views
4x3 keypad not providing any output and the output it does provide is incorrect
I am trying to figure out how to use a 4x3 keypad and just want to receive the key numbers I select on the serial monitor. The problem I am getting is that some of the keys I type don't give me any ...
1
vote
1
answer
204
views
Run encoder code simultaneously with other code in Arduino
volatile unsigned int temp, counter = 0;
int county=0;
void setup()
{
Serial.begin(9600);
pinMode(2, INPUT_PULLUP);
pinMode(3, INPUT_PULLUP);
attachInterrupt(0, ai0, RISING);
...
0
votes
2
answers
1k
views
The same button with one click and double click [closed]
i hope to get some help with my code.
I am trying to distinguish between a single press and a quick double press of the button with debouncing.
I am making some silly mistake in my code and i can't ...
1
vote
1
answer
1k
views
How do I control the speed of a 2-wire fan with an Arduino and only a potentiometer?
I am trying to vary the speed of a 2-wire fan by using a Arduino Uno and only a potentiometer.
Initially, I assumed that I could go about doing so by using a code that I used for dimming an LED. When ...
0
votes
1
answer
157
views
L LED keeps staying on
I am trying to get the Arduino to reboot my PC when it is off.
Using the front panel header on the PC, I connected the power switch and PLED directly to the Arduino Uno as the header only outputs 5 V.
...
1
vote
1
answer
259
views
Round to first significant digit
I want to round a decimal number (x), but I need to do it differently depending on how it is. If it has integer significant digits, we round to the nearest integer, and if not, we round to the first ...
1
vote
0
answers
164
views
FastLED changing colour at holding state
Basically make a code to guide users through a box breathing exercise (breath in for 4 seconds, hold for 4, release for 4, hold again for 4, repeat) to help relax them.
Right now my code is running ...
-1
votes
1
answer
47
views
Externally powering Arduino while reading voltage off it via USB
I have an Arduino UNO R3 where I’ve set Pin 13 to “HIGH” (as shown here) and I’ve connected an LED to Pin 13 and GND which glows brightly using a USB attached to my MacBook Air providing (I think) 5V.
...
1
vote
1
answer
58
views
What is my code lacking that the servo rotates non-stoppingly? Servo should rotate 180 when distance is <= 50 and 0 when this condition is not true
My code represents a water level sensor, and the components are the Arduino Uno, a breadboard, an ultrasonic servo and two LEDS in which one is red and the other is green.
The condition that I don't ...
3
votes
1
answer
481
views
How do I run 4 LEDs sequentially based off of a push button input?
I am trying to create a program that runs 4 LEDs sequentially while also being able to do other things with different inputs and outputs. Because of this, I am using the millis function and not the ...
0
votes
1
answer
1k
views
7-Segment Display w/ Potentiometer
(Backstory) So, I took an computer engineering class in high school (grade 11 level), where I learned a bit about breadboarding as well as arduinos (I would like to stress a bit). It has been 5 years, ...
1
vote
1
answer
144
views
Stepper motor with microstep driver
In my project I have to control a stepper motor using arduino and microstep driver, can I control the motor so that it can move 90 degrees then stop for like a second and then move again and repeat ...
1
vote
1
answer
71
views
Morse encoder code not working as expected on Arduino UNO [closed]
I'll start saying that I don't have much experience working with Arduino and programming in C. I have an Elegoo Arduino UNO clone.
Recently I was trying to build a morse encode which converts a text ...
2
votes
0
answers
86
views
My port is grayed out?
Hello I have a question on why my port is grayed out when I go to upload?
I’ve watched so many YouTube videos on what’s the problem and have been trying to do everything but just nothing seems to work!...
-1
votes
1
answer
54
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*" ...
1
vote
0
answers
87
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
votes
1
answer
154
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 ...
3
votes
1
answer
1k
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
1
answer
347
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
votes
2
answers
100
views
Why won't this work as a delay?
I'll start off by saying I'm very very new to coding, so please bare with me.
I'm doing an assignment where the task is to create a traffic light system, but blocking delays aren't allowed. I have ...
1
vote
1
answer
386
views
Can I get the hex file from an Arduino without the .ino code [duplicate]
I have a CNC router table that came into my local makerspace. The board looks like it has some standard parts, but also has some parts I don't recognize. At the heart of it is an Arduino Uno. I would ...
2
votes
1
answer
3k
views
Arduino parsing of a string using sscanf
Hello I am new to Arduino and C programming.
I wanted to parse string using sscanf fuction
This is my Program
String hith;
int field1,field2;
float field3;
int F1=0,F2=0;
float F3=0;
int h1,h3;
float ...
2
votes
3
answers
179
views
I develop an earthquake detector but when it detects a movement, the alarm doesn't stop from ringing
This is the code that I used. Actually, I use to code: for Arduino sofware and processing IDE software.
Arduino Source Code/Program:
#include<LiquidCrystal.h> // lcd Header
LiquidCrystal lcd(7,6,...
1
vote
0
answers
54
views
Program an lcd display with 12 pins
I have a screen just like this (is the datasheet). My question is,
Can I use it to an Arduino board?
1
vote
0
answers
35
views
Can't transfer information from esp8266 to arduino
I have esp8266. Which I am trying to set up to be a self-contained access point and server (tcp).
ESP8266 is connected to ports 2,3 of Arduino Uno. On Arduino, I want to process all information coming ...
3
votes
1
answer
183
views
How can I pause serial transfer and then un-pause it?
So I am running a USB (UART) connection from my Arduino UNO (using the serialtransfer.h library) to my pc (using the pyserial transfer library).
This how the INTENDED cycle of code goes:
I receive the ...
1
vote
0
answers
175
views
How to name the temperature sensors instead of printing address using ds2482-100 and ds18b20 sensor- Help
I am using 10 ds18b20 Temperature sensors using with "DS2482-100" I2C board and Arduino
so when I am getting the output like this:- "ROM = 28 46 04 1F 0D 00 00 74 96014B467FFF0A100A 25....
1
vote
1
answer
70
views
How to send a message to my phone that my Arduino system is on when turning on my Arduino
i have installed a GSM shield on the Arduino to create security alarm system using PIR SENSOR when ever there motion I will receive a call to my phone.
but i want to add also a line of code which can ...
1
vote
0
answers
289
views
Servo motor won't work for a specific code
I have written a code with interrupts to control the servo but my servos are not working. One is meant to work with interrupt but the other one has to simply move but it is also not working. Even the ...
2
votes
1
answer
252
views
What is the difference when an arduino has been unplugged vs when a serial port connection was closed?
Using python code for a serial port connection to an arduino, it sends a value to the arduino, which then starts printing values to serial. The python code will print the value on the first or second ...
2
votes
1
answer
102
views
Arduino buzzer code sequence not triggering
I have a problem with my arduino buzzer:
the code should be doing the following:
I have a security system where in order to open the door you have to enter a 4 digit code from the remote. If the code ...
1
vote
0
answers
101
views
Error in program that measures distance from a ultrasonic sensor
I am trying to use an ultrasonic sensor in conjuncture with different devices like a proximity sensor and a solenoid and alarm.
This is how the project is supposed to work:
A container is placed on a ...
1
vote
1
answer
433
views
Minimal example of Task Scheduler Blink?
Scheduler_example00_Blink is ~300 lines. For just an Arduino Uno, what is a minimal example?
It's hard to know what belongs and what doesn't. This example has six different approaches, and I'm just ...
1
vote
0
answers
47
views
Problem using sequential loop
So I have created this project to have an LED blinking at a constant speed whenever the program is running. The first LED (green) will blink faster and faster the closer an object gets to the sensor. ...
1
vote
0
answers
718
views
converting int or float into bytes array in arduino
I am trying to send data from one arduino to another over ethernet using udp protocol.
In arduino writing data over udp is like this
UDP.write(buffer, size);
where buffer is an array to send as a ...
0
votes
1
answer
1k
views
Why do I need to use latin-1 instead of utf-8 when using python with arduino?
When reading and writing with a python serial port connection to arduino, if I don't use latin-1 ('ISO-8859-1'), the results are not as expected. Like if I have
int outP = 5;
//...
int outV = Serial....
2
votes
1
answer
114
views
Any advice on how to repeat the song 6 times instead of infinitely?
//Here is my code so far
int speakerPin = 9;
int length = 28;
char notes[] = "GGAGcB GGAGdc GGxecBA yyecdc";
int beats[] = { 2, 2, 8, 8, 8, 16, 1, 2, 2, 8, 8,8, 16, 1, 2,2,8,8,8,8,16, 1,...