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
4answers
68 views

How to round up millis() when divided into minutes?

unsigned long milliseconds=millis(); // if at time of reading the above milliseconds = 599999 ie 1 millisecond short of 600000 ie 10 minutes unsigned long minutes = (milliseconds/1000)/60; // this ...
0
votes
1answer
161 views

Sending to Arduino UNO multiple values from Python code

I'm starting to learn how to work with Arduino, particularly communication between a Python code running on a PC and an Arduino Uno. So I decided to start with what I thought to be a easy task. ...
0
votes
2answers
1k 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
165 views

AT command not send but blue LED stays on

I am new to working with Arduino Uno and ESP8266. Firstly I connected an ESP8266 to an Arduino Uno like so: TX to TX, RX to RX, GND to GND, VCC to 3.3V, CH_PD to 3.3V and adding RESET to GND on ...
0
votes
1answer
58 views

I use Bluetooth to control LED,but LED can not turn off

I use android to send the data to Arduino. when i send 0x02, LED turn on, and the breathing LED code are work. But when i send 0x03, it can not turn off the LED. i use UNO R3 the bluetooth is HC06 ...
0
votes
1answer
167 views

Nodemcu stops sending the messages to the API

Here is my code which sends some data to the firebase cloud functions. The code works well and the nodemcu sends the data to the cloud for about half an hour and then stops sending the messages. #...
0
votes
3answers
848 views

Voice recognition without module, is it possible? [closed]

I'm trying to figure out how to process a voice signal for simple purposes. Wherever I look people using or suggesting recognition modules for Arduino. What I'm wondering: is this possible to make a ...
0
votes
1answer
657 views

Problem with load cell and ADS1262

I'm using PROTOCENTRAL ADS1262 32-BIT PRECISION ADC BREAKOUT BOARD to read the voltage in simple a load cell. The connections follows the instructions on its library But I cannot make it work, the ...
0
votes
3answers
191 views

Using Multiple identical sensors - Beginner [closed]

I'm trying to make an interactive installation where I have 6 pressure pads that each control an Air Fan. The pressure sensors ideally will be on chairs. I would like the changes in pressure to ...
0
votes
2answers
3k views

Transfer 10-bit via Arduino-to-Arduino SPI protocol

The task I need to accomplish is as follows: I have an analog/digital converter that sends out a 10-bit signal. This signal needs to be transferred to an Arduino Uno using the SPI protocol. Because ...
0
votes
1answer
67 views

Using Arduino and Motor Shield

I am a beginner in Arduino.I want to connect 2 motors to Arduino. Do I require a motor shield?And if yes please tell why? Also can i use an amplifier to increase the voltage for the motors? And one ...
0
votes
2answers
134 views

How can I add two different programs of bldc motor and servo motor in one so that they work in parallel?

This is for the servo motor: #include <Servo.h> //Servo library Servo servo_test; //initialize a servo object for the connected servo int angle = 0; void setup() { servo_test.attach(9); } ...
0
votes
2answers
4k views

How to control 12v water pump by arduino?

I have arduino uno and I've bought 12 Volt/350 GPH Seaflo Electric Bilge Pump, how to control it directly from arduino?
0
votes
2answers
137 views

Isolating IR receiver from disruption?

I'm using a simple IR receiver connected to the Arduino through A0 analog pin. The problem is that I want to stabilize the output of IR receiver when it's not receiving an IR signal from a specific IR ...
0
votes
2answers
1k views

Is my TFT screen defective?

I bought the standard 1.77" TFT screen months ago and It has never worked. I follow the wiring diagram shown for Uno on the guide on the Arduino website and the best result I have ever got is it ...
0
votes
1answer
507 views

Controlling 5V PWM Fan with Potentiometer

Alright so I wanted to make myself a Deskfan using Arduino and a potentiometer. The reason for using arduino is that I want to display the current temperatur and the fan speed either through rpm or ...
-1
votes
2answers
2k views

Emergency! INO file disappeared on computer. Still on Arduino!

For some reason, my Arduino program has disappeared from my computer, and it was a really long, complex program. It is currently still on my arduino, and I HAVE to get it back. Please, someone help me....
-1
votes
4answers
2k views

I need help programming my arduino in assembly [closed]

I am new to using an Arduino and I am trying to program my it to implement a flashing pattern with two LEDs. When one LED is off, the other must be on. The program needs to be done in assembly. I have a ...
-1
votes
2answers
63 views

this code is not printing anything on the serial moniter. the code is in setup() [closed]

Serial.println("CLEARDATA"); //clears up any data left from previous projects Serial.println("LABEL,time,load reading(gm),microwave output,CO sensor,sound data,magnetic sensor "); //always write LABEL,...
-1
votes
2answers
233 views

Do I need a transistor if my relay has an optocoupler? [closed]

I'm looking to use this relay with my arduino. It has an optocoupler and correct me if I'm wrong but this should prevent any back EMF from affecting my arduino. Do I still need to use a transistor?
-1
votes
3answers
9k views

Can I use string and int in Serial.println together?

I just yesterday started programming on Arduino, and I have a little problem. I want to print "#S|SKAITYMAS|[1]#" in one line, except instead of "1" I would like to use an int value. However, this ...
-1
votes
2answers
791 views

Arduino not in sync unique error

When I try uploading to my Arduino/Genuino UNO I get the following not in sync error with "unique" resp(resp=0X54) or (resp=0X81) please solve ... I have to submit my project tommorow...... error ...
-1
votes
2answers
51 views

Do comments occupy space in compiled C++ sketch? Arduino / NodeMCU

I tend to leave old code around as comments until I am sure that my current version is stable. Just the way I like working. I am concerned that I may be unnecessarily bloating up my sketches. Do ...
-1
votes
2answers
126 views

Powering Uno with 9v battery makes it “freak out”

I encountered an odd problem with my Uno, it works completely fine through USB on the PC or when powered by a power bank, but as soon as I connect it on a 9v battery it just freaks out. I have a relay ...
-1
votes
2answers
3k views

How to calculate step delay? [closed]

I'm struggling with get suitable step delay while driving a stepper motor. How to calculate exact step delay for 1.8deg/step stepper motor? Give some example calculation.
-1
votes
1answer
898 views

There is an error stating that "exit status 1 expected unqualified-id before 'if'. This project is used to turn on/off LED and magnetic door

* / #define CUSTOM_SETTINGS #define INCLUDE_KEYPAD_SHIELD /* Include 1Sheeld library. */ #include <OneSheeld.h> /* Define an iterator. */ int iterations = 0; /* A name for the LockPin on pin ...
-1
votes
3answers
878 views

memory game arduino

so I have a project which is to make a simple memory game using Arduino where the LEDs have to blink in a certain pattern and the player has to imitate the same pattern but unfortunately I'm having so ...
-1
votes
1answer
46 views

Can I connect 220V AC supply to Node MCU (or any arduino)pin D1 and D3 while node MCDU is power off?

Can I connect 220V AC supply to node MCU pin D1 and D3 while node MCDU is power off?
-1
votes
3answers
3k views

Arduino Voice recognition

Is it possible to use only arduino to do voice recognition? or maybe with esp32 no internet. I found speech recognition chip but that's not what i want I got esp32 esp8266 and arduino board. I would ...
-1
votes
1answer
226 views

Arduino - use print(.., DEC) to save into variable

I am using: Serial.print(rawCodes[i - 1], DEC); to print into serial monitor, but how can I save (rawCodes[i - 1], DEC) to save into variable?
-1
votes
1answer
34 views

Error in code (define a function)

I try to use this code, but it shows that I need to define again the last void turn_mer (int direction) function. How can I fix this? #include <Servo.h> //create servo object to control a servo....
-1
votes
2answers
165 views

Fade out lightbulb 220V [closed]

I am trying to make a lightbulb fade to dark and back to light, for which I found the following tutorial online: http://bildr.org/2012/03/rfp30n06le-arduino/ Unfortunately, the tutorial makes use of a ...
-1
votes
2answers
193 views

How to identify RGBW LED pins? [closed]

I have a RGBW LED but I don't know how to identify the negative and the colors pins. I tried different combinations with an Arduino Uno but it never produce light. I never used it so I am not sure ...
-1
votes
3answers
1k views

Blink 2 LEDs one at a time every x seconds

Newbie here - literally opened my Arduino about 3 hours ago. I have been able to code 2 LEDs to blink randomly, but what I want to do is have one of the two blink every 10 seconds. My current code: ...
-1
votes
1answer
98 views

Arduino char showing as 2 characters

I'm writing the character 1 from a node.js XBee using the code sp.write("1"); to my Arduino's XBee. Then on my Arduino's XBee I read it like this (inside a loop): if (XBee.available()) { do { ...
-1
votes
2answers
97 views

Performing 32-bit arithmetic on embedded device

I am at the moment working with an Arduino Uno, and am struggling to understand how I perform 32-bit arithmetic using it. The expression I have to calculate is this: √(2 n/a) in which n is an ...
-1
votes
2answers
462 views

What would be the code for using Arduino UNO to alert by sound or LED when it detects a certain position through GPS?

I am in grade 6. I have a very nice pet dog in my house but it often enters Mom's kitchen to spoil all the foods. So I am thinking of a device to attach with him which can locate its position. But I ...
-1
votes
1answer
109 views

Arduino error when compiling

When this code is uploaded I get an "Error Compiling". Any help is very much appreciated. #include <MeetAndroid.h> #define supplyVolts 6 #define motorVolts 5 #define baudRate 57600 // If you ...
-1
votes
2answers
2k views

I would like to retrieve data from a MySQL database using PHP using HTTP requests, on my Arduino

Please help me find a way to do it. I have looked at the following for sending data Arduino to MySql But can't seem to find visa-versa.
-1
votes
2answers
3k views

Read all Digital input in arduino once time and sent theme to serial

i need to read all Read all Digital input in arduino once time; example: Serial.write(digitalRead(0),digitalRead(1),...,digitalRead(13)); to receive state of all digital pin in one times from my app ...
-1
votes
1answer
40 views

Part identification [closed]

This may be a dumb question but i would like to know what this part is. Anyone who knows?
-1
votes
2answers
66 views

This code gives the wrong output. Why? [closed]

void setup() { int calc(9,2); Serial.begin(9600); } void loop() {} int calc(int val1, int val2) { Serial.print(val1 + val2); } It's not syntax error, i am getting output as 1, i should get ...
-1
votes
2answers
262 views

Arduino yes! and after? [closed]

I am new to electronics and am currently working with an Arduino UNO. I know the basics of PCB manufacturing (Besides, I'm fiddling with mine, very basic of course) Anytime I'm curious about how to ...
-1
votes
1answer
834 views

Enable and disable individual interrupts

I am working on timer interrupts and external interrupts. for external interrupts I understood the functions like attachInterrupt. detachinterrupt for individual interrupts ,noInterrupts() and ...
-1
votes
3answers
26 views

Number of cycle depending on the number and type of statements

I did this little experiment to count the number of cycles per second in two different configurations: 1-The variable a is initialized at zero and incremented by one each cycle of the loop. -The ...
-1
votes
2answers
62 views

How to print not enough credits if the credits is not sufficient

The problem of my code is in the serial monitor it print the not enough credits even i did not pressed the button. The output that i want is it must be print not enough credits when i pressed the ...
-1
votes
2answers
328 views

How to calculate battery usage of my arduino project? [closed]

I want to measure power consumption and calculate the mAH value to know how much time would my battery can run the circuit. I only got a multimeter and DC power supply.(Im not sure if this is enough ...
-1
votes
1answer
581 views

DHT11 Reading Too High Values

When I run the program, there are no syntax errors or anything. All it does is give me values for the temperature in the hundreds. I don't know if there is a way to turn these abstract and unexpected ...
-1
votes
2answers
163 views

Fluctuating voltage coming out of arduino uno 3.3 output pin [closed]

Problem with my arduino is when I check voltage of 3.3 volt pin using multimeter , voltage varries a lot from 1.5v upto 5v. Due to which esp8266 wifi module connected to this 3.3v pin gets very hot. ...
-1
votes
3answers
659 views

How do I use 4 inputs on the Arduino as a binary decoder?

How do I use 4 input lines as a binary decoder? I would like to read the 4 inputs (16 variations) and based on that choose one of 16 output behaviors? I need to be able to set my “Ten Moon Phase ...

1
130 131
132
133 134
145