Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [arduino-uno]

The Arduino Uno is the most common of the Arduino boards. It is based on the ATmega328P microcontroller.

0
votes
1answer
19 views

Using TFT with hardware SPI and speaker with tone()

I want to make a device with a TFT screen and a speaker that uses the builtin tone() function. However, according to the documentation, using tone() interferes with PWM on pins 3 and 11. On the ...
0
votes
0answers
81 views

Arduino burned vacuum cleaner

I'm a newbie in programming and electronics. So far, i get better lol, after all i don't get my Vacuum Cleaner to work, it allways going to burn the board, Could someone just please take a look at my ...
0
votes
1answer
13 views

Feed values to an array using keypad interfaced with Arduino Uno

I am trying to input keypad values to an array. The code compiles without any error. When running the code, the code proceeds into the for loop and prints 'm' on the lcd, but doesn't execute "...
1
vote
1answer
47 views

Arduino Power Consumption

I am pairing an Arduino Uno along with both a HC-05 bluetooth module and a sensor circuit. Show below is the circuit conditions as well as the circuit. As far as powering up the system, I am ...
0
votes
1answer
31 views

FreeRTOS Timer Use

I use Timer1 on an UNO to generate a 38KHZ signal for IR communications. It all works as expected. BUT, I need to convert the code to run as a task under FreeRTOS, and can't seem to find any details ...
0
votes
1answer
38 views

Getting individual outputs from 4 load cells

This is my first time using an Arduino, and I want to connect 4 load cells to one Arduino board and then get 4 separate outputs for each load cell on a computer. What would I need to accomplish this ...
0
votes
0answers
22 views

Unable to send serial data received over RS485 on ethernet

I have connected multiple Arduinos using Max485. I am trying to send data received over RS485 to ethernet using Ethernet Shield. I have modified rolling master solution provided by Nick Gammon. Now ...
-2
votes
2answers
62 views

How to make Built in LED blink systematically?

I am trying to make my built in LED on my arduino blink every 1 second while recording my data and putting it in the EEPROM, but I am not sure how to do that. I am supposed to print data to the EEPROM ...
0
votes
0answers
17 views

How to generate 8Nos. 40KHZ burst signal using arduino uno [duplicate]

#include <LiquidCrystal.h> #define burst 18 #define measure 19 unsigned long starttime=0; LiquidCrystal lcd(2,3,4,5,6,7); float time=0,distance=0; void setup() { lcd.begin(16,2); pinMode(...
0
votes
1answer
24 views

problem related to arduino

first of all, I am not very good at English. if I have done a mistake during describe the problem apologize me. I want to combine both ultrasonic sensor code and mpu6050 sensor. can anyone tell me how ...
0
votes
1answer
26 views

Look for Master and Slave code with error for a Arduino Mege

I am building a a-10c Sim. So I need lots of input and outputs. Each Arduino has 54 digital i/o and 16 analog inputs in each. As I need more I just add another arduino mega 2560. I want to thank in ...
0
votes
1answer
31 views

Ultrasonic sensor showing weird reading

When i run a test code in Newping library for ultrasonic sensor SR04 then in works properly but when i run the actual code for obstacle avoiding robot then it shows 0 cm everytime. This means that ...
0
votes
1answer
13 views

How To Stop Linear Actuator?

I wrote a code but the motor does not stop, it keeps moving can anyone send to a code that can I stop the motor after my code that shows bellow? const int forwards = 7; const int backwards = 6;//...
0
votes
1answer
53 views

Is there something wrong in my sketch?

I've been working on a project that need two sensors(mq2 and mpu6050), I got each sketches from the internet and I managed to work the mq2 but for the mpu6050, I'm still not sure if its working. The ...
2
votes
1answer
76 views

LED intensity on digital pins [duplicate]

I am using an Arduino UNO. On any digital/analog pin, if an LED (with resistor) is connected and we use digitalWrite(pin,HIGH) the LED lights up rather dimly. On the other hand, if we use pinMode(...
1
vote
1answer
55 views

Getting two Arduinos to talk to each other via an optocoupler [closed]

I've setup two Arduinos connected via an optocoupler on a breadboard. One Arduino is a sender and sends pulses to the optocoupler causing the diode to turn on. When this happens the other Arduino ...
0
votes
1answer
26 views

How to retain the on state of the LED and buzzer if the sensor is triggered?

I'm working on a project which is likely an earthquake alarm. The sketch that I got from the internet does not retain the "on" state of the indicators(LED and buzzer)when it is triggered. I want to ...
0
votes
1answer
26 views

Getting incorrect output from ADC over SPI in Arduino Uno

I am trying to read data from an ADC ADCS7476 (datasheet) using SPI on Arduino Uno. I am using the following code to read the data from the ADC and printing it on serial monitor. However, the code is ...
0
votes
2answers
49 views

Make a float using integers [closed]

I want to make a floating point number that has only one decimal point. I have separate integers for both side. Ex: int n1 = 8; int n2 = 2; I want to make 8.2 as float value using separate ...
0
votes
0answers
28 views

Cannot encode any type of data using nanopb on Arduino

I am trying to encode some accelerometer data using nanopb, but this error pops up no matter which data type I try to encode: no match for 'operator=' (operand types are 'pb_callback_t {aka ...
-1
votes
1answer
33 views

ESP 8266 wifi Shield, HTTP GET [closed]

ESP8266Client client; client.connect("192.168.100.100", 5000, "/abc.php"); client.read(); client.stop(); the ESP8266 Client does not have 3rd parameter can anyone provide me example on how to GET"...
-1
votes
1answer
32 views

How to build a wireless pump controller using arduino and esps? [on hold]

I want to have automatic control for my pump, wirelessly. A transmitter unit fitted in the water tank would sense the water level and transmit the data to a receiver unit attached to the pump ...
0
votes
1answer
22 views

Connect Arduino Uno to server using oneM2M platform

I have an Arduino Uno that doesn't have any Wi-Fi. After putting the sensor there, I've found out that it is quiet impossible to connect to localhost for oneM2M platform. Is there any possibility ...
1
vote
1answer
41 views

Anomalous behaviour of ADC, digitalWrite and floating point operations

I'm trying to analyse mic (A0) input, calculate certain spectral lines with Goertzel algorithm to detect a number encoded by DTFM and display it with 8x8 matrix display (max7219 driver). The code ...
0
votes
1answer
30 views

Optocoupler on Tinkercad acting weird

So, maybe it's my understanding that is at fault or maybe it's tinkercad. It's probably the former. But anyway here's my problem I've connected it according to picture https://imgur.com/a/h2HYgUE ...
0
votes
1answer
26 views

How to convert string to byte array on arduino [duplicate]

Well my title pretty much sums it up , how to convert string to byte array? i cant find any usefull code
0
votes
1answer
37 views

Make an Xbox 360 controller with an Arduino Uno

I was thinking of making a custom Xbox 360 controller (racing wheel) with the Arduino Uno plugged into the Xbox. How would I emulate the buttons/triggers on the original controller with the Arduino? ...
1
vote
1answer
33 views

How to remove the sketch for the LCD and retaining the sketch for the MPU6050?

I just got this from the internet and I only want to use the sketch for the MPU6050. Can someone help me to remove the code for the LCD? I'm sorry, I'm just noob when it comes to programming. Here ...
0
votes
1answer
18 views

Resetting I2c Address - MLX90614

I was using my MLX90614 IRTherm sensor flawless and bought two more. I have connected two sensors serial with pull-ups to SDA --> A4 and SCL --> A5. After digging the internet I found out that I ...
-1
votes
1answer
56 views

Best way to start arduinoing? [closed]

I'm a programmer and I have knowledge in cyber security matters. I just wanted to start making my own field tools or random projects (thus needing a variety of things to play with). So I thought to ...
0
votes
1answer
17 views

Running ADC triggered by TIMER1_COMPB

I'm trying to run ADC on channel 0 triggered by TIMER1_COMPB. Everything seem to work ok but basic arithmetics is not working and variables inside ISR and even main loop don't get updated (x == 2 all ...
0
votes
1answer
14 views

Connecting Winsen ZE11-C2H4 Sensor to Arduino

How should I connect the ZE11 Ethylene Sensor to an Arduino Uno? I want to know how to attach the pins of the sensor to the Arduino and which resistor I should use. I'm very unprofessional at working ...
0
votes
1answer
41 views

Random characters generated by LCD during serial.read()

I am using the following codes to print characters on LCD display.... #include <LiquidCrystal.h> const int rs = 8, en = 9, d0 = 4, d1 = 5, d2 = 6, d3 = 7; LiquidCrystal lcd(rs, en, d0, d1, d2, ...
0
votes
0answers
15 views

Print request return from ESP8266 using arduino as bridge

I am trying to achieve something that's probably really simple. I have an ESP8266 module connected to an arduino uno board. The ESP rx and tx are connect to two digital pins in the arduino. I'm also ...
0
votes
1answer
27 views

Reading values with HC-05 and sending commands at the same time working inconsistently

Not good at coding at all, so I'm at a total loss here. But I'm doing a project that involves controlling a larger DC voltage through a mosfet. What I'm doing is I'm using a HC-05 to transmit data ...
0
votes
1answer
33 views

Arduino clone woks only with USB - NOT with external power

I have an Arduino UNO ch430 clone. It works with USB power supply, I can upload a Sketch and it works just fine. With external power supply, doesn't work. What do I mean? No LED lights up, high pins ...
0
votes
0answers
19 views

DC water pump PWM control with ZC-A0591 and Arduino

I have a generic water pump like this one and a ZC-A0591 driver. The pump admits 3-6V and has only ground and input wires. I want to know, how can I control the flow of water using an Arduino r3. I'...
-1
votes
1answer
26 views

how to code LED turning signals on smart car [closed]

this question is regarding how to add turn led signals on arduino powered smart car. I have 4 leds to give turn indications on my smart car(line follower, obstacle avoider, Bluetooth mobile controlled ...
0
votes
1answer
26 views

Can I make the BT module disconnect with a BT module and connect with another in the code?

I am working on a project that requires a connection between two BT modules (HC-05) and a mobile phone. Later on, I encountered a problem: I can't connect two BT modules to one at the same time, So I ...
0
votes
1answer
60 views

HTTP request as bytes

I need to send this line of HTTP request as bytes. What is the correct way? client.write(byte(" <? xml version: '1.0' encoding='utf-8'?><VideoOverlay><normalizedScreenSize><...
0
votes
1answer
26 views

D1 Robot… lights up but nothing

I have the Arduino shield described here, I have run the example code compiled to the device, both v1 and 1.1 example, and it shows nothing whatsoever on the screen. https://www.dfrobot.com/wiki/...
-2
votes
2answers
68 views

How to fix “expected ; before ) token” error? [closed]

I am in the early stages of writing my program, but I have run into a problem. I am fairly new to Arduino so I'm not sure if there is something I am trying to do that doesn't work, but I am getting an ...
0
votes
0answers
36 views

Programming with compiled binary slows down a program to 16:1

I wrote a program to an Uno, which had several non-blocking delays. The program was tested on custom hardware and worked ok. After I fabricated a PCB, I compiled a binary on Arduino IDE and burned ...
0
votes
1answer
19 views

Powering Adafruit motor shield

Making sure not to blow anything up before testing. I have an adafruit motor shield and an arduino Uno. The arduino uno has a power input and I was hoping to use it to power the motor shield, a nema-...
-1
votes
1answer
40 views

From arduino Ethernet shiled to Camera stream

i have a project where i need to send some kind of text to the camera stream , which you can access with writing ip adress in the link bar in the browser and you write the password and the username , ...
0
votes
1answer
24 views

Transmitting Electrodes Signal to Breadboard Wireless [closed]

I have recently made a DIY EEG from schematics and instructions I found online. I wanted to take the electrodes signal and transmit it wirelessly to the breadboard. According to the picture, the 2 ...
0
votes
1answer
44 views

Conflict between SD card shield and accelerometer

I'm trying to get the SD card (Adafruit microshield SD card) and an MPU6050 accelerometer to work at the same time. When I connect the SD card to the Arduino (without the accelerometer), it's ok; When ...
-1
votes
1answer
18 views

Is it possible to simultaneously acquire 2 values from the Arduino? [duplicate]

I am currently making a project using a resistive touch screen and an Arduino Uno. The resistive touch screen outputs an X and Y coordinate pair, which I then want to be able to read and output on an ...
0
votes
0answers
14 views

TinyGPS++ isn't being updated or SoftwareSerial isn't reading

I'm trying to read the GPS data on an Arduino Uno from a Neo-6M module and print it on a LCD display. However, no variable is being changed by the read function. This could either be because of an ...
0
votes
1answer
12 views

Actuating a Hobbywing Skywalker 50A-UBEC ESC with Arduino CNC Shield

I need to control a brushless motor that came connected to this ESC using the Arduino CNC Shield V3.00 and Grbl 0.9j. I connected the ESC's black wire to a GND from the shield and the ESC's white ...