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
0answers
15 views

Getting weird output for following object detection code using interrupts on HUZZAH ESP8266 and motor controller L293D along with 3 HCSR04 sensors

I am trying to implement a bot which can sense obstacle in front, left or right and post detection send interrupts. Which in turn will perform the appropriate motor function to avoid these obsticles. ...
0
votes
2answers
50 views

Stuck in a loop using IR Receiver

I am new to Arduino Programming and I have bought an Arduino UNO , Ultrasonic Sensor (HC-SR04), A Piezo Buzzer, IR Receiver (VS1838B) and a RGB LED.... I wrote a program to Calculate Distance form ...
0
votes
2answers
62 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
53 views

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

How can I save my output continuously to EEPROM? Or is this even possible? Please help me out. void setup() { Serial.begin(9600); } void loop() { static unsigned long count = 0; static float ...
0
votes
1answer
38 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
1answer
59 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
40 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
55 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
vote
0answers
38 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
35 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
34 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
22 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
1answer
28 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 ...
0
votes
1answer
134 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
29 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
62 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
168 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
24 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 ...
0
votes
1answer
34 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 ...
-1
votes
2answers
67 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 ...
-1
votes
1answer
30 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
50 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
90 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
34 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
25 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
56 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 ...
0
votes
1answer
37 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
42 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
19 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
14 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
38 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
38 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
38 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
1answer
41 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
39 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
31 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
37 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
36 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 ...
-1
votes
1answer
50 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
26 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 ...
0
votes
1answer
26 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,...
0
votes
1answer
46 views

How to get keyboard input to arduino from the computer its plugged in to?

I have an arduino uno connected to my laptop. and i need to get keypress info from the laptop's keyboard with only the arduino sketch and without any program running on the laptop. Is there a specific ...
0
votes
0answers
52 views

SIM900 module not reading Sim Card

I am using GPRS Shield for Arduino Uno with SIM900 module on it. I am able to communicate with the module just fine (using AT commands), but whenever I try to use a command which involves sim card (...
0
votes
1answer
39 views

Arduino UNO R3 + SIM800L / NodeMCU via Hadware Serial. Possible?

I'm using Arduino UNO R3 with NodeMCU and SIM800L module. I have to connect these two devices to UNO and make a serial communication between them: UNO<>SIM800L and UNO<>NodeMCU. Can I use GPIO0 ...
1
vote
3answers
168 views

reading micro SD card directly from PC

Is it possible to read a microSD card (on a breakout) through the USB port on the arduino? or perhaps another USB port I could attach to the breakout? Basically, I would like to read data off the ...
0
votes
0answers
36 views

error 33 = got packets out of order

my code was working and the connection with database was fine , until I don't know what happen every time I run my code it show this error , can please someone tell me what error 33 = got packets out ...
0
votes
0answers
19 views

error 33 = got packets out of order arduino [duplicate]

my code was working and the connection with database was fine , until I don't know what happen every time I run my code it show this error , can please someone tell me what error 33 = got packets out ...
1
vote
1answer
241 views

ESP32-Cam No Response and Unable to Program - Timed out waiting for packet header

I recently purchased an ESP32-CAM but have had no luck in programming the board or getting any response whatsoever. I first tried to program it using the an FTDI programmer and the Arduino IDE (...
0
votes
0answers
31 views

How to merge temperature sensor DHT22, RTC DS3231 and button [duplicate]

I am currently working on the fan function, which would be able to switch every minute for 10 seconds with RTC DS3231, at the same time I would like to incorporate a temperature sensor DHT22 and ...

1 3 4 5 6 7 139