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
1answer
38 views

NRF24L01 +pa +lna modules do not communicate

I am building an rc airplane and I want the controller and the plane to communicate using 2 NRF24L01 +pa +lna modules. I am using an Arduino UNO and a Mega. I hooked them up corresponding to this ...
0
votes
1answer
37 views

Matrix and State Space Arduino Implementation

I wrote an Arduino Matrix class. Then I used this class to implement State Space on Arduino. During tests I stomped upon a problem. After starting the program it stops at some point. I have no idea ...
-3
votes
1answer
56 views

Controlling the color of an RGB LED using a single push buttton [closed]

I'm working on TinkerCAD, I want to design and simulate a circuit in which there are following components. 1. 1 RGB LED 2. 1 Push button 3. 3 Photo-resistors. 4. 1 Arduino board. So the light should ...
0
votes
0answers
34 views

LCD stays blank when it is on and all wiring seems correct

So I have to do this project for school and it involves using a lcd display on tinkercad. I followed the wiring on this tutorial here: https://www.arduino.cc/en/Tutorial/HelloWorld. When I turn it on, ...
0
votes
1answer
35 views

Why does my Arduino/Ledstrip combi not work?

simulate this circuit – Schematic created using CircuitLab I am using an Arduino Uno, and WS2813 led strip (60 leds). It seems like a default schematics (except I did use a 470 uF (...
0
votes
0answers
53 views

i build quadcopter using USB HOST SHIELD + NRF24L01 but the data transmit is wrong

I am building mini Arduino quadcopter project. I am using USB host shield for joystick support and nrf24l01 to transmit the data. Unfortunately, I got wrong data transmitted at the receiver and tried ...
0
votes
1answer
27 views

Is it possible to use Pi's output signal as Arduino's input signal?

I have a relay attached to an Arduino Uno which I want to control using my raspberry pi 3b. And yes I know it can be done by attaching the relay directly to Pi but I cannot do so. Don't ask me why. ...
0
votes
0answers
20 views

Output of mlx90614 to mcufriend tft/lcd, not getting displayed

Newbie here !! Im trying to display the output of my MLX90614 sensor on mcufriend tft display (with arduino UNO). But unable to do so. I can only see the TFT being lit to white color, text -> "Target" ...
0
votes
1answer
27 views

3,6V DC motor spinning with L298N and Arduino

I'm trying to control a re used DC motor from a drill (3,6V) with a L298N and a Arduino. It's powered with a 5V - 60A power supply. I tried to follow this step by step tutorial (https://www.youtube....
2
votes
1answer
47 views

Arduino UARTS Auto addressing slaves

i'm using this serial topology to connect my Act ATmega328p (Arduino) slaves together to a master ESP32. They are in total 10 ATmega328p slaves and one master: With this type of wiring i'm sure that ...
0
votes
2answers
77 views

the use of the Arduino's EEPROM

I want to know the purpose of using the EEPROM because I can't get it, I mean I know that it can store values for a long time, but I just can't get the goal here #include<EEPROM.h> void setup() ...
0
votes
1answer
25 views

Arduino Uno CTC mode interrupt is not tiggering

I am trying to generate LED blink after 4 second using Interrupt but Interrupt is not triggering not even once . Request: if you have arduino uno r3 please check at your end and let me know result. I ...
0
votes
0answers
22 views

Snake head in snake game always diagonal to rest of body

I am trying to create a basic snake game using the arduino UNO along with the MAX72XX module, the LCD module and the analog joystick module. I have made my program using object orientated programming. ...
0
votes
1answer
27 views

USB disconnects when using a capacitor

I'm currently working with some WS2812B LEDs and tried out adding a capacitor to be safe from voltage spikes (was recommended by Adafruit). I noticed that a soon as I connect a capacitor between 5V ...
0
votes
0answers
14 views

LCD1602A displaying blocks

I am having an issue with the LCD1602A and Arduino Uno. I have followed a tutorial on youtube that has got the device working, however the LCD is only displaying white blocks in all 16 segments of the ...
-1
votes
2answers
54 views

Why am I getting erratic Analog.read() readings?

Im trying to make an arduino controlled PWM fan using a potentiometer. Ive connected the circuit as in the diagram below (The transistor is a TIP120 if it's hard to read): Here is my code: int fan = ...
0
votes
0answers
22 views

LED goes off in nodemcu If I turn on other LED

I developed an android app to control a robot using nodemcu. I have added some buttons to on/off or blink some LEDs. It works fine but, if I on the one LED or drive the robot, the other LEDs goes off. ...
0
votes
1answer
38 views

How to calibrate Mpu6050 using library?

I am using i2cdev library Code:(i did not know this code is correct or not) #include <Arduino.h> #include <MPU6050.h> #include <kalman.h> #include <stdint.h> #define ...
0
votes
1answer
34 views

Writing to flash memory fails with Optiboot

I am having some issue writing to flash memory on Arduino Uno. I burned the optiboot bootloader that ships with the IDE 1.8.3 to the chip, then uploaded the test_dospm sketch to write content to ...
0
votes
0answers
29 views

Detecting a finger snap(basically trying to replicate infinity gauntlet)

I am trying to make an infinity gauntlet. So it's obvious it should have a snap feature(which will switch of a light,motor or whatever). But I don't know how to go about sense this snap. I thought of ...
0
votes
0answers
57 views

Arduino serial coming up with weird characters

I am trying to create a basic snake game using the arduino UNO along with the MAX72XX module, the LCD module and the analog joystick module. I am wanting to program my program using object orientated ...
0
votes
1answer
28 views

Bluetooth: sync time from an NTP server via Internet connection shared with Android phone

I saw that it is possible to sync time from an NTP server over WiFi. I have the HC-06 Bluetooth module and an Android phone that can share its Internet connection with Arduino via Bluetooth. Would it ...
1
vote
1answer
61 views

I am trying to read input from 5th PIN of PORT B?

In a nutshell i want to read a PORTB 5th pin without using digitalRead API ( i am trying to learn baremetal using arduino-uno-r3) Just to Learn How internal register works i did not used digitalRead ...
0
votes
0answers
55 views

Convert 1-5V to 4-20mA using Arduino

I am trying to convert 1-5V to 0-20mA which is then used to drive VFD. Actually, I want 1-5V Variable output from Arduino. I am using PWM but its output 0V or 5V depending upon the duty cycle. Is ...
0
votes
0answers
39 views

I connected a bipolar stepper motor with an HC-SRO4 distance sensor but the motor doesn't work

I connected a bipolar stepper motor with an L293D motor driver and a HC-SR04 distance sensor. Here's the code: #include<AFMotor.h> int stepsperrevolution=200; AF_Stepper motor(...
0
votes
0answers
65 views

GSM shield with SIM900 is not logging in network

Hello Adruino friends, I would like to hook up a small project. In need this for resetting my firewall at home because it's doing strange stuff from time to time. I followed the instruction of the ...
0
votes
1answer
34 views

Can I control a stepper motor with a sensor? [closed]

Can I control a bipolar stepper motor with an L293d motor driver shield using HC-SRO4 ultrasonic distance sensor on arduino?
-1
votes
1answer
22 views

How do I use a shift register with ioAbstraction?

I’m trying to combine this use of the shift register. With the ioAbstaction library. But I’m not sure how to read the buttons. The help in the library seems to suggest more pins for writing than the ...
1
vote
1answer
29 views

request for member 'attribute' in 'object', which is of non-class type 'int'

I am trying to create a basic snake game using the arduino UNO along with the MAX72XX module, the LCD module and the analog joystick module. I am wanting to program my program using object orientated ...
-1
votes
1answer
28 views

Bluetooth: read a user provided value and then obtain time from an Android phone

I'm new to Arduino and try to accomplish following 2 things (via Bluetooth module connected to an Android phone): read an integer value provided by user. obtain current time from the phone (the ...
0
votes
0answers
37 views

Why do random characters fill up my Arduino LCD Display?

I am making a water pump system for plants and I am running into trouble with displaying my Temperature and Humidity values. I am using a 20x4 LCD, Arduino board uno, Capacitive soil moisture sensor, ...
0
votes
2answers
47 views

How to modify values inside a file

I am writing a wav file to an SD card on a ESP32 and that requires that every time I append data to the the end of the file I modify the header to set the right size in some fields. I cannot find how ...
0
votes
2answers
43 views

I'm trying to use a E18-D80NK but the output is always 1

i'm trying to use a E18-D80NK sensor with arduino but the output is always at 1, i really don't understand why This is my code : int irPin2 = 8;// define pint 2 for sensor void setup() { Serial....
0
votes
1answer
84 views

Fading LED with different frequencies

I have a potentiometer attached to one analog port of arduino (assume A0) I'm reading the value of that using input_voltage = analogRead (A0); which is a value between 0-1023. So I want to map this ...
-2
votes
1answer
40 views

How to read data from ThingSpeak for esp8266

I am trying to read data from thingspeak for esp8266 but I couldn't do that. There is a link: GET https://api.thingspeak.com/channels/123456/fields/1.json?api_key=***********&results=2 But how can ...
0
votes
0answers
29 views

Reference to variable

An example sketch I found online to post an HTTP request using arduino contains the following code String payload_pattern = "{'id':'MyESP','sensors':[{'id': 'Temperature','data': $temperature$}, {'id'...
0
votes
1answer
77 views

Possibility of clean the code?

Good night! Based on stuff I get a bit here and there, came up with a program for an Arduino Audio Selector with shift registers and some features. Working as expected, only missing connecting the ...
0
votes
1answer
47 views

Arduino communication to Raspberry Pi using HC-05

I'm using two HC-05 modules on two Arduino UNO boards. One of my modules connected successfully to a raspberry pi port. However the other doesn't want to connect, but sometimes it does and then ...
0
votes
2answers
156 views

Is there any way to connect my old phone camera with an arduino?

I have an esp8266 wifi module, arduino uno and an old mobile. I was wondering if there is any way by which i could remove the camera from the mobile and connect it with my arduino in order to view ...
0
votes
1answer
26 views

How can I increase the responsiveness/speed of my stepper motor?

I'm trying to control the positioning of a NEMA17 bipolar stepper motor by turning the knob of a potentiometer, using an EasyDriver board. The control part is solved. My problem is that if I quickly ...
0
votes
0answers
52 views

ESP8266-01 & Arduino Uno Problem

I am having a problem when I want to run code like this on a Arduino Uno with esp8266-01. It's not working. In serial monitor nothing about esp. #include <SoftwareSerial.h> SoftwareSerial ...
0
votes
1answer
28 views

What happens to the board if you connect the +5V pin directly to a digital input configured as input

I have maybe a very stupid question but connecting the +5V pin to a digital input pin programmed as input ( let's say pin2) . Will it destroy the board? Cause after i did this my board doesn't work ...
1
vote
0answers
36 views

Chance light intensity in a pwm pin using LDR using Arduino UNO

I am using proteus and Arduino software to simulate my circuit. What I need to do, is to have an LDR in my Arduino uno. When light intensity increases in my LDR, I need another LED which is connected ...
0
votes
0answers
32 views

nrf24L01 with/without antenna

the function write in nrf24LO1 (without antenna) works perfectly but in nrf24LO1 (with antenna) not works. why?! the code #include <SPI.h> #include <nRF24L01.h> #include <RF24.h> #...
0
votes
0answers
21 views

RFID RC522 Serial Communication converting problem

I am new to the RFID Scene and Serial communication as well. So I am trying to use the RC522 RFID module and I wrote in block 22 - 0x36 which is 6. I want to write a code where I take whatever is in ...
0
votes
0answers
36 views

Slider switch not working as expected [duplicate]

I have a task to make an intelligent traffic light with automatic and manual mode. A slider switch sets which mode is active, but it doen't work for the manual mode. When I slide it to automatic, the ...
0
votes
1answer
61 views

CH340G Uploading problem

I've tried to copy CH340G from other schematics and existing Arduino Uno Clones... Searched online & StackExchange but no good :/ My problem is almost the same as this one Here is my schematic ...
-1
votes
1answer
32 views

what am i doing wrong? unit8_t' was not declared in this scope, error: expected primary-expression before ')' token [closed]

#include <VirtualWire.h> const int sen1 = 9; const int sen2 = 10; const int sen3 = 11; const int sen4 = 12; int key1 = 5, ipin = A1, wpin = A0; void setup() { Serial.begin(9600); vw_setup(...
0
votes
0answers
29 views

combinate two codes [duplicate]

i am trying to put these two codes together someone would be so kind to help me. ""#include const int photores = A0; // Photo resistor input const int pot = A1; // Potentiometer input const int led =...
0
votes
1answer
28 views

guidance on Mikrobus NFC tag and connecting to arduino

I've recently purchased an NFC tag reader from MikroE and ive been a little lost on connecting the reader to my arduino board. I've also been looking online for a library that i could use for this ...