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
23 views

Adafruit motorshield v2.3 not working

I want to connect my adafruit motor shield v2.3 to a touch board from bare conductive so that the motor turns when one of the electrodes is touched. I've tested the touch part and that isn't a ...
0
votes
2answers
25 views

How can I save my float 'ave' on the EEPROM continuously?

How can I save my output continuously EEPROM? Or is this even possible? Please help me out. void setup() { Serial.begin(9600); } void loop() { static unsigned long count=0; static float sum=0; ...
0
votes
1answer
13 views

String to Dynamic Byte array

I'm new in Arduino stuck in String to a dynamic byte array. My String: String Finalval="6D616320747820636E662031352033300D0A"; Dynamic Byte array: byte ft[]={0x6D,0x61,0x63,0x20,0x74,0x78,0x20,...
0
votes
0answers
15 views

Trying to read different gas levels with MQ2 Gas Sensor

I found a link on how to connect MQ-2 Gas Sensor to Arduino Uno. http://electronicsprojectshub.com/how-to-connect-mq2-gas-sensor-to-arduino/ After I bought all the parts and tried it out, the sensor ...
0
votes
1answer
25 views

Continuous servo speed control with Arduino Uno controller and servo shield

It is very simple device, 2 continuous servos FS5113R, rotates continuously in one direction. Here is device original content, which is this servo shield it looks like russian, and here is library, I ...
-1
votes
2answers
48 views

How can I combine this two codes in one program? And use it in javafx application

The first one reads from sensors and displays it, the second code receives an incoming byte to control LEDs. I tried to combine it but i don't know why it doesn't work. Please help me out. I need it ...
-1
votes
0answers
16 views

how can i restrict serial monitor values upto only 10 readings [closed]

i am trying to code for ultrasonic sensor, i could get the values of the distance in serial monitor but i want only 10 serial monitor readings I have tried 'while' loop and 'for' loop but i am not ...
0
votes
1answer
52 views

Once and only once running program [closed]

I am searching for an Arduino program or function or technique, that will only run once at the time of installation. And, even if I reset my board it will not run. Only, if I reinstall it will be run ...
1
vote
0answers
33 views

How do I adjust this?

We're supposed to create a Simon Says game for our final. My professor is telling me I shouldn't need to modify much with what I already have. but I'm so confused because it feels like starting over. ...
1
vote
2answers
31 views

Code help in Arduino ( Serial data)

I Need a help in this code I am trying to assign the serial.write(OutData[i]) to byte data[]. Can anyone help me assign it. Here is my code #define ECHOPIN 11// Pin to receive echo pulse #define ...
0
votes
1answer
24 views

USB to Arduino to bluetooth

I have a piece of equipment that has a USB output, that a flash drive gets inserted into, to collect data as the equipment completes its cycles. I need to make a device that can replace the Flash ...
0
votes
0answers
16 views

press button: servo move - hold X time - move back issue

Besides being a total noob I've been lurking and reading like mad over the last week to understand how to get my servo to move to X position when a button is pushed, have it wait Y time, and return to ...
0
votes
0answers
26 views

Humanoid Robot with 15 servos [closed]

I have made the bot ready but i am facing problem in coding. I don't knoe to code. I want a sample code. I want it to be controlled verbally using bluetooth module.
0
votes
1answer
26 views

Motor shield and Arduino Led not turning on when connected to laptop and Arduino is heating up

I have a problem like that....As I connect my Arduino to the laptop with the usb cable and the motor shield connected, my led won't turn on neither does the led on the Arduino. And the small chip like ...
-1
votes
0answers
49 views

Button presses not that accurate; how to fix this

noob here So I am developing an interactive game that takes its input from 2 push buttons connected to an Arduino. There are 4 levels and in each level, the player has to press the buttons a ...
0
votes
0answers
20 views

How to set text size for 16x16 matrix [closed]

Hello, I have a 16x16 matrix to display a certain number and I can’t seem to set the text size. If you notice the picture it still has room on top and bottom. It does display double digits but there ...
0
votes
1answer
16 views

L298N Dual Motor Controller Enable Pin has power but motors not working

I am trying to get the L298N to work with a simple DC motor. For now, I have simplified the setup and the code to the basics to try to get it to work. I am using the following wiring setup with no ...
0
votes
1answer
20 views

How will I display values from arduino to JTextArea (Java Netbeans)?

I want to display float values in JTextArea but it doesn't show any. It only displays on the systemout. Pls help me out. This is my Java code. import jssc.SerialPort; import jssc.SerialPortException; ...
0
votes
1answer
51 views

How to get the overall average of the data received

I have an arduino uno with two sensors. Voltage and current sensors. I need to get the average value of voltage and current each time the data is received. But i don't know how to add up the current ...
3
votes
1answer
55 views

Useless box wiring and code

just want to give a back story first. So i saw this video on youtube about the useless box, and i thought that it would make a great gift for my 7 year old. So i went out and bought everything that ...
0
votes
0answers
13 views

Power Arduino uno/nano and SIM800L from single 3.7V LiPo battery [closed]

I'm trying to power Arduino Uno/Nano (I have both, but mainly tried on Uno) and SIM800L at the same time with single 1200mAh 3.7V LiPo battery. Is it even possible? The problem is that SIM800L needs ...
0
votes
0answers
12 views

MPU6050 with Arduino I2C Unreliable with Motor Noise

I have an autonomous wall-tracking robot that uses relative angle changes from a I2C-connected MPU6050 module along with ultrasonic 'ping' sensors for motor speed control to acquire and then track a ...
-2
votes
0answers
30 views

data transfer between two arduino uno using wifi module(ESP-01)

I want to transfer data from one Arduino to another Arduino via esp01 I didn't find any proper source?
0
votes
1answer
33 views

Locating a fault in writing a variable

I'm writing this piece of code for Arduino Uno, which takes in input on pin 2 the value of a PIR sensor. In order to debug, in this moment I'm taking the signal on pin 2 from the 5V power supply: int ...
0
votes
2answers
55 views

data classification with arduino

I want to classify my data from 3 sensors with arduino so that every time i enter the specific date or hour, or also it can be a period of time like 10 days ago, it shows me the exact data. In other ...
0
votes
1answer
24 views

Multiple MPU9250 Synced

I am interested in collecting data from 3 MPU9250 via I2C communication protocol. As I've read, I can collect measurements on the same I2C Bus from up to two MPUs. However, how can I collect Synced ...
-1
votes
1answer
25 views

expected initializer before '==' token

first skecth made by myself i tried to create a skecth for a traffic light using one push button to change it`s phase( 1- closed for cars, open for pedestrians 2- wait ...
2
votes
3answers
64 views

Arduino ultrasonic sensor weird output

So I just got into arduino and bought Elegoo's car robot v3 kit and built it, but when I put the robot on "object avoidance" it constantly spins as though there is an object in front of it. I tried ...
0
votes
1answer
33 views

Driving an enable pin low via arduino

I have the following V regulator, that has an enable pin that i'd like to control via an arduino: https://www.pololu.com/product/2582 I tried using a relay (ELEGOO Relay Module 4 Channel DC 5V with ...
0
votes
1answer
21 views

Arduino Nano/Uno and js sketch compiling/uploading from browser

I need to compile generated source code in js runtime then upload it to my device. Compiling: I have found arduino-cli Uploading: There is only avrgirl but it doesn't work in browser. What should ...
0
votes
1answer
37 views

Trying to control DC motor speed with PID

i'm trying to control a DC motor with PID. I have already made a code where i control the motor with an ultrasonic sensor (for distance) but now i need to run the motor at a given RPM (the Output). I ...
-1
votes
0answers
23 views

Switching between Arduino

I am using irf540n to switch on and off 2 arduinos with one Arduino but it's not working. I connected them is by using 2 irf540n connecting each 'source' to common ground.....'drain' to ground of each ...
0
votes
1answer
27 views

Why does the reading on the ESP32 read max, when the reading on UNO read accurately?

I have a 'Capacitive Soil Moisture Sensor' hooked up to my Uno. Very simple code. AnalogRead(MoistureSensorPin); This will return a differing value that I can work with. When applying the same code ...
-1
votes
1answer
37 views

Connect a hundred SIM800L's to Arduino (or any other board)

Is there a way to connect one hundred SIM800L's to Arduino? Essentially I want to be able to communicate with any of them that I want. If Arduino isn't capable of doing this, what do you suggest, so I ...
0
votes
0answers
17 views

Adding time in Serial Monitor

I need help in my Arduino project. I am trying to add the current time in Serial Monitor but i couldnt make it happen... I was also trying to do something like this... Here is my current code right ...
0
votes
0answers
12 views

I'm trying to use a CONZIR CO2 sensor to find CO2 concentration

Hey I’m a beginner Arduino user trying to use a CO2/Humidity/Temperature sensor to read in the atmospheric conditions near the sensor and then control a heating pad and solenoid valve to adjust the ...
0
votes
1answer
26 views

How to know my Arduino core version and its location on my Ubuntu laptop?

Bakground: When compiling a demo project about e-paper, I got this problem ./GxEPD/src/GxIO/GxIO_SPI/GxIO_SPI.h:39:5: error: ‘SPISettings’ does not name a type SPISettings _spi_settings; ^ ...
0
votes
0answers
19 views

how to make keylogger using arduino? [duplicate]

i want to make a phisycal keylogger from an arduino board that means to every computer the arduino is connected to the arduino will capture any keypress on keyboard and save it in sd card module or ...
0
votes
0answers
23 views

How tocode and connect Quectel Bg96 development board to thingspeak?

Recently I have purchased a development board and I wanted to connect some sensors and send value to thingspeak(IOT cloud platform). Can Any one help me code please !!!!
0
votes
1answer
27 views

millis and micros always returns 0 (or other constant)

On an Arduino Uno, I have a sketch akin to this: void setup() { // Generate some PWM signal on Pin 5, using Timer 0. pinMode(5, OUTPUT); TCCR0A = 0b00110011; TCCR0B = 0b00001000; ...
-1
votes
2answers
85 views

12Bit + 12Bit DAC (mcp4725 - with Arduino) [closed]

1. Can a 24-bit converter be built with two 12-bit "mcp4725" modules? 2. How to send "MSB" and "LSB" to two DAc's? 3. Please provide a solution and if so, share it below. 4. Should a circuit in the ...
0
votes
1answer
35 views

sending specific date's data from data logger shield to serial port

I was wondering if it is possible to save lots of data( exp: one year data) in data logger shield and then read them from serial port without ejecting the SD card... this part of my question is fine......
0
votes
1answer
37 views

Trying to measure distance using an ultrasound sensor

I am relatively New to Arduino and need your help. Actually i made a code and the problem is that the ultrasound sensor doesn't work at all. It isn't displaying the distance between the object and and ...
0
votes
1answer
20 views

Compilation Error - Yellow LED blinking as I have installed & connected Arduino UNO board to Windows XP PC

This is the first time when I have installed Arduino IDE (arduino-1.8.10-windows.exe) in my Win. XP SP-3 OS and it seems that the Arduino IDE software installation is successful without any hitch. ...
0
votes
1answer
29 views

I need to change this code to start the section of code when the switch is on and not when the switch is released

I have this section of code. It works fine and how I want it only, it executes when the button is released not when it is pressed. My application needs to execute this code when a switch is on. The ...
-1
votes
2answers
35 views

Multiple Loops to control on and off LEDs

I'm new here. I have tried to write a simple code to turn LED's and light them up in specific pattern and being able to switch it off while in loop. So far I've managed to either get them constantly ...
0
votes
1answer
37 views

Dotstar strip goes nuts when connected to MIDI piano

I've got a Dotstar strip, a piano, and an UNO(w a usb host shield). I can get and properly translate data from the piano to the UNO, so I'm definitely getting the right information to the board. When ...
0
votes
0answers
24 views

Can't log mpu6050 and gps data to sd card at the same time

I am working on a school project, where I have to log GPS and acceleration data to an sd card at the same time, but I cannot get it to work. Logging GPS and acceleration data separately work fine. The ...
-1
votes
0answers
38 views

Recieving data from Electricity meter

I have a 3phase electricity meter; i want to get the output from the meter. It has serial(Rx, Tx, GND, VCC) pins inside. i want to know can i connect these pins directly to Arduino( RX to tx, tx to ...
0
votes
1answer
21 views

how to read arduino board info serial no programmatically

well I am try to make an project with original arduino. but I want to make this project unique. if my codes are copied and loaded another arduino board, my app should not work. how can make unique app,...