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
29 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 ...
user avatar
  • 11
1 vote
0 answers
26 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 ...
user avatar
  • 11
0 votes
1 answer
40 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 ...
user avatar
  • 11
-2 votes
1 answer
35 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 ...
user avatar
  • 1
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) ...
user avatar
  • 129
-1 votes
1 answer
55 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 ...
user avatar
0 votes
0 answers
44 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 ...
user avatar
4 votes
2 answers
62 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 ...
user avatar
1 vote
0 answers
35 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 ...
user avatar
1 vote
1 answer
57 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 ...
user avatar
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 ...
user avatar
1 vote
1 answer
43 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 ...
user avatar
1 vote
0 answers
39 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 ...
user avatar
0 votes
1 answer
50 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 ...
user avatar
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 ...
user avatar
  • 19
-1 votes
1 answer
47 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,...
user avatar
  • 1
4 votes
1 answer
318 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 ...
user avatar
  • 145
-2 votes
1 answer
87 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 ...
user avatar
  • 21
-3 votes
1 answer
30 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, ...
user avatar
0 votes
1 answer
38 views

Do I need to use resisters and ICes for specific sensors.What if I dont use it,Will it impact my arduino board some how like making it useless &faulty

So I was reading about Simple AutomaticLight Controller using LDR. or with the help of LDRSenso. But I have LM393 Photoresistor (LDR) Sensor I like to know are they same thing or somewhat different. ...
user avatar
  • 145
1 vote
1 answer
46 views

Playing a sound file with Arduino Uno Wifi

I have an Arduino Uno Wifi (Rev2) and I want to play a sound file. I found two libraries so far but neither of them work. The TMRpcm library (https://www.arduino.cc/reference/en/libraries/tmrpcm/) ...
user avatar
  • 11
-1 votes
1 answer
32 views

Using Analog Pins for Power

I'd like to power something needing 5V DC using the Arduino Uno analog pins. Specifically, I'm following the "Fun Plug-in Hack for Arduino UNO" section of this Adafruit tutorial. It states: ...
user avatar
  • 99
0 votes
1 answer
57 views

64 led strips and 8 shift registers (connected to 64 sensors) connected to 5V and ground of arduino

I have connected 64 led strips and 8 shift registers (connected to 64 sensors) to 5V and ground of arduino. Voltage received at led strip is 3.1V and at registers is 3.2V. I plan to add an led display ...
user avatar
2 votes
0 answers
58 views

Turn on a relay for a specified amount of time after the press of a momentary switch

This is my first time programming an Arduino. I have a small brushed DC motor that I want to control using a 5V relay, which in turn is connected and controlled by the Arduino. What I would like to do ...
user avatar
0 votes
1 answer
68 views

Integer division

I want to divide two integers and get how often one of them fits into the other completely, so there will always be an integer as an output. In python you do this kind of operation with //.
user avatar
1 vote
0 answers
35 views

Type S Automotive underglow LEDS not responding to program in FastLEDS library

hey y'all first post here so my apologies if I'm a bit of a NEWB, I'm currently trying to control a set of individually addressable 3-pin led strips I got from the type S formula drift LED kit model ...
user avatar
0 votes
0 answers
37 views

subscribing to thingspeak field using MQTT on dragino lg-01

I'm trying to subscribe to a channel field on thingspeak to get the value of it onto my dragino lg-01 before sending it over to my Arduino Uno for action. currently my gateway uses LoRa to receive ...
user avatar
  • 11
0 votes
1 answer
69 views

Problems in running two solenoid together at the same time

I am trying to activate two solenoids (12V/350mA, connected to a 12V/1A adaptor) at the same time using the TIP120 NPN-transistor and 1kohm resistor using the UNO board. Using a simple program, void ...
user avatar
0 votes
1 answer
36 views

Ways to detect if a ball has reached the wall?

I'm building a kind of pin ball machine, and I need to detect when the ball has hit the wall with the sensor attached. The ball will hit the wall with a small impact, not large enough to push a button ...
user avatar
  • 111
1 vote
0 answers
42 views

Error in reading wind speed from esp32

I need your assistance with a problem I am facing. I built a weather station. esp32 board was used in this project. I used a hall sensor with a magnet in the wind speed measuring part (ANEMOMETER). ...
user avatar
0 votes
1 answer
31 views

Can I flash hoodloader2 or HEX files on Arduino Simulators?

I want to make a HID Keyboard out of Arduino UNO, in UNO board the script runs perfectly fine, but the UNO board requires me to flash it every-time I want to put in a new script in it, so can I do the ...
user avatar
1 vote
0 answers
36 views

how to set the arduino due adc automatic trigger

How do I trigger automatic conversion on the ADC on the DUE? If this was the uno, I could just do sbi(ADCSRA,ADATE); sbi(ADCSRA,ADSC); but for the due, I seem to have to use adc_configure_trigger(ADC,...
user avatar
0 votes
1 answer
42 views

Arduino to run and LED strip of up to 100m

I am working on a project to run an RGB strip around a large room and have the colour change driven by an Arduino Uno. I have encountered a number of issues and am looking for clarification. The first ...
user avatar
0 votes
1 answer
110 views

FastLED fill_solid array

I'm having trouble in the fill_solid function with arrays. can you help give color to row3. int row3[]={1,2,3}; uint8_t sizerow3 = sizeof(row3)/sizeof(row3[0]); void solid(){ fill_solid(leds[row3[3]...
user avatar
  • 1
0 votes
2 answers
55 views

Issue understanding timestamp generated using millis() function

I have this code uploaded to an Arduino Uno which is connected to a gyroscope and storing the data on an SD card. The code is from the OEM. The delay() function was set to 500 by default but this was ...
user avatar
  • 1
1 vote
1 answer
82 views

Pan and tilt bracket move to sound, control servo motors using microphone sound sensors

I'm trying to code the pan and tilt bracket to turn based on where I speak, I know how to move the servo motors, but I really need help with the sound sensing. This is the code I've got currently: #...
user avatar
1 vote
1 answer
55 views

Code got stuck after initialization with RFM69

I'm working on RFM69 connected to an Arduino Uno. Currently, I was able to initialize the RFM69 using the a code I modified from the internet. However, my Receiver part always encounters error. It ...
user avatar
1 vote
2 answers
87 views

Controlling multiple solenoid with relay and Arduino and the process stops after few cycles

I am trying to control 2, 12 V solenoid (externally powered, 12V/1A adaptor) using UNO (externally powered using adaptor) by using 2, 5V relay (connected to 5V and Ground of Arduino board). the ...
user avatar
1 vote
0 answers
28 views

Motor rotates well in one direction but runs slower in other with L298N and L293d

I connected 2 motors with an L293Nn driver. When I control it with my joystick, one motor works fine (Out 1 and 2 of driver.) It rotates in one direction and the other very smoothly. The problem ...
user avatar
0 votes
1 answer
53 views

How to expand this code for more than four 74hc165 shift registers? It works well with maximum four 74hc165 shift registers at a time

#define NUMBER_OF_SHIFT_CHIPS 4 #define DATA_WIDTH NUMBER_OF_SHIFT_CHIPS * 8 int LoadPin = 9; int EnablePin = 8; int DataPin = 11; int ClockPin = 12; unsigned long pinValues; unsigned ...
user avatar
2 votes
2 answers
79 views

Toggle button switches through case statements with button debouncing

The overview of my code is that I want a toggle button to be pushed and each button push will move the code to the next case statement. In each case statement, there will be different LED functions. I ...
user avatar
  • 73
2 votes
1 answer
104 views

Can I use Data Logger Shield with Arduino Sensor shield V5.0?

so I did a little research on this but the answer to my particular problem did not exist. I have a data logger shield created by deek robot (deek-robot.com) which seems pretty similar to adafruits ...
user avatar
2 votes
0 answers
46 views

Arduino OLED ssd1315 graphic print questions

I’ve tried to create a system that the rotary sensor as an input and use a 0.96 inch Oled as an output (first pic), try to show the voltage measurements and performance test using a small bar graphic. ...
user avatar
2 votes
2 answers
60 views

Trying to keep my main code running unless an input is LOW for a certain amount of time

I have code that creates a sequential signal with 4 LEDS. It cascades to the right. This works when I hold down the input button. What I need help with is having the code run exactly the same when ...
user avatar
  • 73
1 vote
0 answers
95 views

28BYJ-48 Stepper motor not turning counter-clockwise

I'm new here so I hope I do everything right. Right now, I'm trying to program an IR remote that controls the direction of the 28BYJ-48 stepper motor. When I try to press the down button (The button ...
user avatar
  • 11
0 votes
1 answer
62 views

sim800l ftp error after http request

I am using esp32 CAM by Arduino IDE and send an image file by ftp using SIM800l GSM/GPRS module to a server and every thing is ok . I can perform http request also and read some data from a website ...
user avatar
  • 21
3 votes
1 answer
123 views

Pulsein() function blocks other tasks from running silmultaneously

I am using a zumo bot with a reflectance sensor used to follow a black line. I want to use an arduino to make the zumo bot stop once it gets a certain distance from an obstacle. I have an ultrasonic ...
user avatar
1 vote
0 answers
19 views

How do I use BLE module and RFM69 module together?

I am trying to use an Adafruit BLE module and an RFM69 module on the same Arduino. The higher-level functions in each included library (Adafruit_BLE.h, RFM69.h) both use the SPI.h library to talk to ...
user avatar
0 votes
1 answer
89 views

Wind speed measuring using Hall effect Anemometer

I need your help regarding a problem I am facing while measuring wind speed. In my sketch I get a reading every 20 counts which the magnet goes past the sensor. I need to change it in order to get a ...
user avatar
0 votes
0 answers
25 views

RFM69HCW module failed connection to Arduino Uno

I've been trying to communicate two RFM69HCW (433 MHz) to each other while connecting it to Arduino Uno however, I am not successful. I've already exhausted all the possible ways I can think of but ...
user avatar