Questions tagged [arduino-uno]
The Arduino Uno is the most common of the Arduino boards. It is based on the ATmega328P microcontroller.
7,843
questions
0
votes
1
answer
15
views
NRF24L01 debugging help
I have been trying to get the NRF24L01 to transmit the "hello World", Though the devices are talking to each other they are reading scrambled data. I have looked everywhere for support but ...
0
votes
2
answers
46
views
breadboards and accurate voltage measurments
I am trying to setup a thermistor(PT1000) to work with arduino. For that I used voltage divider and 5V pin as the voltage source. I was getting very unstable results so I removed the thermistor and ...
0
votes
1
answer
30
views
SIM800L not responding to AT commands
I am using SIM800L module the module. I am new to GSM modules, so I've searched for the basic to use the GSM with the Arduino. this is my code.
#include <SoftwareSerial.h>
SoftwareSerial ...
0
votes
0
answers
51
views
Counting the number of RISING edges using Interrupt is not accurate at all
I'm trying to find The RPM of a fan, so I removed one blade from the fan and put an IR sensor in front of it, so when the fan complete a spin the sensor will return a pulse, Here is the code I'm using:...
0
votes
0
answers
22
views
Bosch sensor PST-F 1 analog read always 0
I am using this sensor Bosch Pressure Sensor Combined PST-F 1 in combination with a arduino uno.
The data sheet for the sensor : Data Sheet
I have it connected like this
The code i am using is the
...
-1
votes
0
answers
19
views
NFC PN532 RC522 Ntag
Hello I am making a product using NFC.
I have to select NFC reader chip, but I don't know what I select. I know that RC522 and PN532. I am going to use NTAG 213 which uses ISO 14443 A type and NFC ...
-2
votes
0
answers
22
views
connecting arduino hm-10 shield [closed]
HM-10 shield to work or rather to be able to put it in master state but so far nothing has worked. A normal HM-10 is easier but due to negligent I bought the shield version instead. I would appreciate ...
-2
votes
1
answer
31
views
My Atlas Scientific sensors measurement give zero values at first reading
I am still continuing my hydroponic nutrient monitoring project. In short, I made a hydroponic nutrient monitoring system with I2C connection, and decided to do serial communication with Raspberry Pi ...
-2
votes
0
answers
43
views
16x2 LCD display showing a line down centre of screen and nothing else
I picked up my Arduino for the first time in a while and decided to mess around for a bit. However, when I try to make a simple 'hello world!' program, the LCD screen either doesn't display anything, ...
-1
votes
1
answer
48
views
What are these 18 extra ports on the adafruit-gfx 2.8"
I recently got the Adafruit gfx 2.8" display, which works fine.
It's quite obvious that it requires almost all of the pins on the UNO. However, I don't understand what are the 18 avaliable "...
1
vote
3
answers
142
views
How to do multiple serial.read()
first of all im new here and im really sorry if there's some mistakes when im making this question. So im trying to make a program to calculate using serial read, and im going to input a lot of values....
1
vote
1
answer
35
views
Apparently the photoresistors don't pass the input at the leds
I am making a school project where i need to create a parking loot in tinkercad. Me and my mate tried to use a bunch of photoresistor that worked as a sensor. No light = car = red led; light = no car =...
0
votes
1
answer
32
views
Help with Arduino sleep and watchdog timer interrupt
I want to use Arduino's sleep and wakeup functionality but have hit a roadblock and can't seem to get past it. As I am just prototyping for a final system, I cannot use the LowPower library to ...
-1
votes
0
answers
20
views
Validate data entry in arduino
I have the following code:
#include <Servo.h>
Servo myservo;
char x;
void setup(){
Serial.begin(9600);
myservo.attach(7);
Serial.println("enter a letter: ");
Serial.println(&...
-1
votes
0
answers
27
views
How to reset a main loop, by clicking on specific button on keypad?
How I can reset loop, and couple of variables by clicking some button on keypad? What I want to do is: whenever user click on 'C' button, the loop should be reseted, just like we hit the red button on ...
-3
votes
1
answer
38
views
i download a file that has ino but when i extract it is gone [closed]
so when I download a file for my ESP8266 the the file to open it in Arduino. file is not there for it is there a fix
and this the github: https://github.com/SpacehuhnTech/esp8266_deauther/tree/v3
0
votes
1
answer
32
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
33
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 ...
-2
votes
1
answer
27
views
Powering LEDs with Arduino uno 5v
I'm working on the sound reactive led lamp as my first project and have slightly different materials to start with. First I'd like to simply learn to power the LED strip.
from https://www.youtube.com/...
-1
votes
1
answer
46
views
Can't get input from 4x4 keyboard
I'd like to make some basic calculator. Currently, I'm struggling with inputs. I wanted to get from user some numerical input, then, I'd like to have an information, which type of calculation he is ...
1
vote
1
answer
47
views
Connecting various devices to Arduino
I need to connect the following devices to an Arduino UNO board. The problem is that I run out of pins to be able to connect them all. Is there any way to do it?
ultrasonic sensor
yellow led
green ...
1
vote
0
answers
40
views
Unable To Upload Source Code on Arduino UNO(Windows 11)
I was trying to upload the source code of a project to the Arduino UNO and this is the error that I keep on receiving.
After I closed and reopened it again, the Port option is gray. I tried everything ...
-1
votes
1
answer
25
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.
...
0
votes
0
answers
23
views
Arduino Ethernet Shield Disconnects after a few Seconds
I am using a fairly simple code using Arduino UNO and Ethernet Shield W5100. The task is to connect the shield with the server and if it gets connected read the reading from the sensor (Rotary Encoder ...
1
vote
0
answers
25
views
HOW convert momentary button to touch sensor TTP223?
I am trying to convert
this project https://maker.pro/arduino/projects/simple-fm-radio-receiver-with-arduino-uno-and-rda5807m
to 3 touch sensors TTP223.
But so far my new code don't work.
Please can ...
0
votes
0
answers
49
views
Why does the water sensor chip get very hot?
I have a water sensor like that in the image, but when I connect it to 5 V and put it partially in a cup of water, I can read the input value in my Serial, but the black chip in it gets very hot. I ...
1
vote
0
answers
23
views
Transfer a single pulse from Tektronix function generator to Arduino UNO
I have set up a single pulse (width of ~400 ms) using the burst feature on the Tektronix AFG3102 function generator and I want to transfer this signal to the digital pin of Arduino UNO. Essentially I ...
-1
votes
0
answers
42
views
Designing a Flight Controller using an Arduino Nano IOT 33, GPS, Barometer and other Quadcopter components
I am designing and creating a Quadcopter Flight Controller and would like to know other peoples thoughts on the design.
I am planning to use an Arduino Nano IOT 33. This Arduino has an onboard IMU ...
0
votes
1
answer
38
views
Why the led is always on in proteus?
I am simulating a circuit with arduino, which determine if there is current at input, then turn the led on at the output. The problem is the light is always on even when the button is open at the ...
-1
votes
0
answers
29
views
Please i want to switch between two modes in my Arduino project.That's switching between a keypad lock mode and a RFID mode below is my to codes [duplicate]
First code
#include <SPI.h>
#include <Wire.h>
#include <Keypad.h>
#include <LiquidCrystal_I2C.h>
#include<EEPROM.h>
#define greenled 7
#define redled 6
...
-1
votes
0
answers
32
views
line tracking robot with line tracking sensor
I have created line tracking robot with Arduino uno, line tracking sensor and l298n.
all working good, but i have a problem. I want to stop the motor when the sensor detects all color white but it's ...
0
votes
0
answers
27
views
How to control dc motor with mpu6050?
So, I am trying to control a Dc motor with a cytron motor driver and using an mpu6050 to control the speed and direction of the motor, I have written the code but it isn't working.
#include <...
-1
votes
1
answer
37
views
Finding position using mpu6050
I am trying to find the distance travelled by the sensor in each direction. I tried to convert acceleration into velocity but the accleration value also changes when i rotate the sensor
Is there a way ...
-2
votes
1
answer
30
views
how to save float with 3 decimal places [duplicate]
i am transmitting sensor data from my atmega328p to my esp8266. The Sensordata has 3 decimal places. The esp8266 sends this data to my pc and there I see only two digits. This is because the data is ...
1
vote
1
answer
36
views
Arduino compiler shows different value of sram memory
I have this code that shows the available sram memory
int freeRam()
{
extern int __heap_start, *__brkval;
int v;
return (int) &v - (__brkval == 0 ? (int) &__heap_start : (int) ...
0
votes
1
answer
43
views
Getting more Hz while working with 3 serial ports (IMU sensors)
im doing a university project where we use 2 IMU sensors and a SD card reader to save the data from sensors.
As you will probably see from the code, we specify the sensor port we listen to, save data ...
0
votes
0
answers
28
views
Detecting peak frequency in a microphone's output signal
I'm using a simple electrode microphone with an Arduino UNO board with the aim of detecting peak frequencies in the output signal overtime. I set the sampling rate to 1 MHz, but i can't pick up a peak ...
4
votes
2
answers
52
views
I2C sensors not working when I connect to LCD 20X04
I am making a hydroponic nutrient monitoring system using Arduino Uno, Atlas Scientific EC sensor, pH sensor, and RTD (temperature) sensor in I2C mode. I also want to use LCD 20x04 to display the ...
1
vote
0
answers
33
views
I2C and logic shifter troubleshooting
I'm attempting to use a SparkFun bidirectional level shifter (Link here) to connect up a 3.3v wii nunchuk to a 5v Arduino Uno circuit. For now all I'm trying to do is write the position of the ...
1
vote
1
answer
55
views
Why does my delay get inaccurate after one minute ? It makes my servo vibrate
I have a fancy setup to cool my beer at a controlled temperature (you can find details and a photo here if you want). The input of my system is a temperature, the output is a servo position.
Long ...
1
vote
1
answer
102
views
Can't manage my calculator to work
Yesterday, I've got myself an arduino uno. Since I'm pretty newbie in it, I'd like to ask here for a hint, because I can't manage to make my "calculator" working. I don't have much ...
1
vote
1
answer
42
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 ...
0
votes
0
answers
19
views
14-Step Step Motor RPM Calculations are not the right RPM Readings
I am in a after-school group at my school, and it is based off of STEM. We are currently working on a hoverboard-like project powered by 4 ATV batteries, And it includes magnets inside of a 14-step ...
1
vote
0
answers
33
views
Nema 17 stepper motor speed problem
This code is quoted from here. May I know how to increase the speed of the NEMA 17 stepper motor further? I tried to increase the step speed to 2000rpm but it does not even work. It only works for ...
0
votes
1
answer
49
views
How do I keep one function continued until a variable is completed?
The code's purpose is to change from one led to another if the LDR detects a certain level of light for a given time. Currently, since I cannot wait 5 minutes to complete one circuit, each LED should ...
1
vote
0
answers
30
views
LED brightness variations
I'm using two different types of code and noticing that in the first set up the last LED is dimmer than the rest. Then in the second set up, the first LED is brighter than the rest. I would like to ...
-1
votes
1
answer
46
views
Can I change the text on the LCD by rotating the potentiometer?
I am working on a project on my Arduino Uno in which I want to change the text on the LCD every time the potentiometer has been rotated. In order to do this, I have stored the angle values into an int,...
4
votes
1
answer
304
views
How arduino PORTB pins are addressed if I want to access them with pointer?
So Let say I want to access Digital Pin 13. Thats port B pin. Is there an memory address associated with this pin 13 of Arduino Uno r3?
How Port B pins are addressed with corresponding pin numbers ...
-2
votes
1
answer
85
views
Arduino Code is slow when running two task
I want pin 11 to give a square wave of once 3 sec
and want pin 12 to act as a switch to glow pin 13 Built in led..
connected pin 12 to GND with 10k resistor
If i fed the switch code alone it is ...
-2
votes
1
answer
28
views
Which Arduino board would be sufficient for the following simulink project?
I'm trying to run a Fuzzy Logic MPPT Algorithm in Arduino UNO, here's the Simulink File
However when I try to upload the code, I get the following error
Is this project possible with UNO, if yes, ...