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
3k views

Raspberry Pi with Arduino, Serial connection stops working

This is the hardware set-up at home, Raspberry Pi GPIO -> Logic Level Converter -> Arduino -> Multiple Relays I am running Raspbian and NodeJS on the Pi while the Arduino is loaded with ...
0
votes
1answer
109 views

Sending command through SPI on Arduino UNO

I am assuming the default pin configuration is pin 10(SS), 11(MOSI), 12(MISO), 13(CLK) from a default setup, SPI.begin(). The code compiles OK. Not sure about the int valuex and using the SPI.transfer(...
0
votes
1answer
13 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
1answer
279 views

MIDI keyboard controlled LED strip

My objective is to light a led on a strip corresponding to a keyboard note. I have Arduino Uno with MIDI in module hooked up to a serial port. Piano is hooked with a standart midi cable, Led Strip is ...
0
votes
1answer
13 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
0answers
9 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
20 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
0answers
12 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 ...
3
votes
3answers
9k views

Why is my Adafruit motor shield not spinning my motors?

I'm using the Adafruit Motor Shield v2.3. I'm powering the Arduino with a USB cable and I'm powering the motor shield with a 9 volt battery. I removed the vin pin, and I'm using this tutorial/code to ...
0
votes
1answer
26 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 ...
0
votes
1answer
120 views

DS3231 + button to trigger light

please can someone help me with code, i want to have automatic trigger on specific hour, also i want to have button switch if needed, in my code i can press the button to trigger light relay, but my ...
0
votes
1answer
19 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
2answers
34 views

I have to make an LED with an ultrasonic distance sensor, the idea is to make the LED blink faster when getting closer to at an specific distance

i alread have this code, but i do not know how to make the led blink. CODE: const int ledPin = 6; // The pin of your LED, D06 const int trigPin = 5; // The pin to which the TRIG is connected, D05 ...
-1
votes
0answers
38 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
19 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 ...
1
vote
3answers
522 views

serial data gets spoiled

I use this small program on my Raspberry Pi to recieve a string sent by my arduino. import time import serial ser = serial.Serial('/dev/ttyACM0', 9600) def check_for_command(): bytestoread = ...
0
votes
1answer
287 views

How to use use 2 or more HC-SR04 sensors as one single sensor?

I'm new to Arduino and this is my problem. I need to track an object in a room. For now I have placed 3 sensors on the edges of each axis (x, y, z), where the x axis will the line between the east and ...
0
votes
2answers
255 views

Accelstepper.runToPosition() is working fine. Accelstepper.run() does nothing

I have a complex sketch with Arduino Uno, Bluetooth Serial Com using altSoftSerial, serial com using SoftwareSerial and Serial communication with PC. I want to move one stepper motor and stop it when ...
0
votes
1answer
49 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 ...
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 ...
3
votes
1answer
47 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
12 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
11 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 ...
-1
votes
1answer
321 views

ESP8266 sends data to the website but doesn't return status

I have problem with my esp8266 it connects to my site and sends 89 bytes of data but does return a confirmation status all i get is SEND OK but i don't get any confirmation from my server This is my ...
2
votes
3answers
59 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 ...
-1
votes
1answer
870 views

Avrdude verification error

I use an Arduino UNO with IDE 1.8.5 and for the last few days it doesn't let me upload any code. When I try, it pops up with the following error: avrdude: verification error, first mismatch at byte ...
0
votes
1answer
2k views

How do I get a nonzero output from my HX711 and load cell?

I am trying to set up a load cell using the HX711 amplifier. Whenever I upload my sketch, my serial monitor only will read zeros regardless of load applied to the sensor (no signal appears to be ...
0
votes
1answer
1k views

How to get PPM value from MQ-3?

I tried to build project to detect alcohol with Arduino Uno and an MQ-3 Alcohol sensor. I already have the R0 value, but I faced problem here: I don't know how to convert it to PPM or BAC. I already ...
-1
votes
2answers
82 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
2answers
53 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
456 views

Capturing interrupt on both edges when it's set on RISING or FALLING

I've been trying to capture rising edge of an IR sensor output. This sensor's Vcc connected to Arduino 5V and it has a digital output pin. I've observed the digital output pin on an Oscilloscope. It's ...
0
votes
2answers
381 views

Using an ESP8266 with an Arduino Uno - can't get AT command to work

I am trying to connect an ESP8266 to my Arduino Uno. Connections: RX -> RX TX -> TX CH_PD -> 3.3v (Arduino 5v using voltage regulator) VCC -> 3.3v GND -> GND I am running the RX and ...
0
votes
1answer
640 views

Bluesmirf Mate Silver (RN-42) enter command mode when in HID mode

I am having problems getting the Bluesmirf Mate Silver (RN-42) into command mode once I have switched to HID mode. I have bought a second new Bluesmirf Mate Silver to confirm my issue. I soldered the ...
1
vote
1answer
2k views

How to get response of issued AT command for ES266 on Arduino programatically?

I'm successfully running AT commands via the Serial Monitor. But now I'm issuing AT commands via Arduino code and facing problems getting the correct response. Goal: After issuing AT commands ...
0
votes
1answer
167 views

Problem using Optiga Trust X I2C

Did someone ever used the Infineon Optiga Trust X module with Arduino using any I2C library ? Here is the technical documentation of the Trust X module. I'm trying to get the I2C_STATE register data ...
-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 ...
-2
votes
2answers
10k views

avrdude: ser_open(): can't set com-state for “\\.\COM2”

I have an unofficial Arduino Uno. I've tested these: Testing on USB 2.0 and USB 3.0 Changing Port (COM XX) Updating drivers for the Unknown device to Arduino Uno (COM XX) Resetting ...
0
votes
1answer
60 views

Can I use GSM and Data Logger Shield at the same time on one Arduino?

Me and my classmates are trying to make an arduino base project where we will be using sensors, GSM, and Data logger shield. We want the arduino to store the data collected and at the same time send a ...
-1
votes
1answer
24 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 ...
0
votes
2answers
449 views

How to use? ATmega328P Development Board for Arduino UNO R3 Bootloader Project DIY

How to use? ATmega328P Development Board for Arduino UNO R3 Bootloader Project DIY.
0
votes
1answer
37 views

How to connect MPU6050 to arduino using only digital pins

I am relatively new to Arduino and microchips, but I am good at electronics. I want to connect MPU6050 accelerometer+gyroscope module to Arduino. I searched on the internet and everywhere it is said ...
0
votes
2answers
39 views

Common button on two Arduinos and two computers

We have two computers giving two presentations that need to be triggered in sync. I know how to send the space button via Arduino, but I want to check it will be safe for the computers. If each ...
-1
votes
1answer
39 views

RGB not working properly

My RGB led is not working properly. It should light up red when the ultrasonic sensor detects more than 10 cm and green when it detects less than or equal 10 cm. It is just blinking red and green at ...
0
votes
1answer
32 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
35 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
vote
1answer
109 views

Will this sketch eventually fail because of integer limit issue?

I am a novice in Arduino programming and I'm setting up an Arduino controlled, underwater time-lapse camera to take a picture every 2 hours. It's going in the ocean for a month and I want to be sure ...
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 ...
-1
votes
1answer
41 views

Arduino beginners kit example not working

I bought a beginners kit and can get all but one of the examples to work. I have tried different board layouts and varied the code with no success. When I first run the code the LED is off. When I ...
1
vote
1answer
157 views

Arduino Nano /Uno USB is not getting recognized

I have multiple Unos and Nano and recently due to some bad configuration the USBs are not getting recognised on my Mac Air Laptop. These were working models for almost 1-2 years. I used it to control ...