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 votes
1 answer
54 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,...
  • 1
4 votes
1 answer
423 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 ...
  • 145
-2 votes
1 answer
94 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 ...
  • 21
-3 votes
1 answer
50 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, ...
0 votes
1 answer
39 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. ...
  • 145
1 vote
1 answer
72 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/) ...
  • 11
-1 votes
1 answer
40 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: ...
  • 99
0 votes
1 answer
65 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 ...
2 votes
0 answers
162 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 ...
0 votes
1 answer
224 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 //.
1 vote
0 answers
45 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 ...
0 votes
0 answers
81 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 ...
  • 11
0 votes
1 answer
91 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 ...
0 votes
1 answer
48 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 ...
  • 111
1 vote
0 answers
49 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). ...
0 votes
1 answer
45 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 ...
1 vote
0 answers
55 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,...
0 votes
1 answer
71 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 ...
0 votes
1 answer
456 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]...
  • 1
0 votes
2 answers
92 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 ...
  • 1
1 vote
1 answer
102 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: #...
1 vote
1 answer
83 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 ...
1 vote
2 answers
104 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 ...
1 vote
0 answers
44 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 ...
0 votes
1 answer
79 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 ...
2 votes
2 answers
122 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 ...
  • 73
2 votes
1 answer
181 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 ...
2 votes
0 answers
93 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. ...
2 votes
2 answers
64 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 ...
  • 73
1 vote
0 answers
232 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 ...
  • 11
0 votes
1 answer
106 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 ...
  • 21
3 votes
1 answer
212 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 ...
1 vote
0 answers
24 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 ...
0 votes
1 answer
219 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 ...
0 votes
0 answers
47 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 ...
0 votes
0 answers
37 views

Arduino's stuck on COM1 and Device Manager Crashing

I just added a few new arduinos, and they are all loading on COM1. Here are some of the strange behaviors: Three arduinos plugged in, and they are all on COM1. I've never seen multiple devices ...
  • 119
1 vote
2 answers
268 views

Can I power up an Arduino Uno via the 5 V pin while USB is connected at the same time?

I want to use Grbl to control a diy CNC machine. I need to communicate with the CNC using Grbl and this is done via the PC's USB port. So the PC's USB port is connected to the Arduino Uno which is ...
0 votes
0 answers
23 views

RFM69HCW connected to Arduino Uno

I have a prototype LoRa Daughter Board that utilizes RFM69HCW transceiver module. I found an interesting blog online that covers everything courtesy of Sparkfun. Here's the link RFM69HCW Tutorial by ...
0 votes
1 answer
47 views

Alternatives to Radio Transceivers

So i am creating a haunt project that needs a way of detecting when an Arduino passes it and makes that Arduino do something. the problem I'm having is that none of the transmitter and receiver that ...
0 votes
1 answer
135 views

How I can populate a buffer from data read from SPI?

I have wired a Macronix MX35LF1GE4AB Flash memory into an arduino Uno using Logic Level Shifters. What I try to do with it is to dump its contents. In order to do so, I am implementing the following ...
-3 votes
2 answers
67 views

I need to run 2 for() loops simultaneously but I cant seem to do it without one executing, then the other after it [closed]

I'm controlling 2 servo motors but would like to adjust their variables separately, specifically their upper and lower values, and their speeds. This code is one that I had found online then ...
  • 11
1 vote
1 answer
320 views

How to convert serialized JSON string back to JSON object?

How to convert JSON String for example {"f0":100,"f1":100,"f2":100} It is what I get from my esp01 side from I2C communication Now I want it to get it back to my Arduino ...
  • 151
-2 votes
1 answer
49 views

High frequency sampling with Arduino

I need to sample signals up to about 200 kHz using the Arduino as a kind of oscilloscope. I have already seen that by itself it is unable to do it, since the sample frequency is about 9.6 kHz. But ...
1 vote
1 answer
302 views

Arduino HX711 load cell lots of drift

I am trying to make this 50kg load cell work with this HX711 chip. I currently have the following connections : Load cell red -> E+ Load cell black -> E- Load cell white -> A- Load cell ...
-2 votes
1 answer
163 views

Using IN1/ IN2 pins for PWM instead of ENA in L298N

So basically i tried providing PWM directly to the IN1/IN2 Of L298n motor driver instead of using ENA pin i got more or less the same result Im using ESP32 with 30000Hz freq for my PWM My question is ...
3 votes
1 answer
693 views

What is the difference between Bluetooth module HC-05 and HC-42 for Arduino?

I am looking for differences between HC-05 and HC-42 Bluetooth modules for Arduino. I could not find an answer by searching google. Both products have 6 pins and accept master and slave but I could ...
  • 41
0 votes
1 answer
83 views

Using ESP8266 to program Arduino by serial comm

Since ESP8266 can self program on wifi, can we use it to program arduino too with the binary sent via wifi? my arduino is connected with reset+RX+TX pins and shared power. Has this been already done?
  • 109
1 vote
1 answer
228 views

Interval timer on Arduino: Doubt about TimerOne library

I want to synchronize a timer interrupt from a button is pressed. I want to read a button state 3 seconds later from the first pulse moment (to identify long pressed button, 3 seconds for this example)...
  • 113
1 vote
1 answer
72 views

Where am I going wrong in modifying Timer0 and the ISR interrupts in this example?

(Arduino) Hello I don't know where I am going wrong here, please advise. In the end I want to step a bipolar motor, HIGH/LOW, using Timer0 with OCR0A and OCR0B interrupts to adjust the motors step ...
1 vote
1 answer
94 views

Connecting Common-Anode Seven Segment Display to Shift Register

I recently wired up the following ill-advised circuit: A common-anode display is wired with its cathodes connected directly to LEDs connected to ground. But the strange thing is that it worked ...
  • 11