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

Copy the upper 3 bits from one PORT to another

I am stuck in this assignment and I don't really know how to begin. I would appreciate any help or guidance to the following problem:
0
votes
1answer
46 views

how to do Arduino to esp8266 communication

I am trying to do Arduino to ESP8266 communication, but I am not able to send data to esp8266. However I can receive data from esp8266. Here if my Arduino code: #include <SoftwareSerial.h> ...
1
vote
2answers
33 views

SD card example freezes at line SD.begin() what should I do?

I have a 16GB SD card which is formated with FAT32. I'm trying to run the example codes presented for SD in Arduino. The SD card is inserted in the data logging shield and the CS pin in this shield is ...
0
votes
1answer
51 views

I'm having problem with my pushbutton's input and ifs conditions statement. huhu :((

I am working with a program for a microwave. It has 3 settings: Drying, Roasting and, Drying&Roasting. After you pressed a button out of the 3 choices you still have to press another button(...
-1
votes
2answers
60 views

I would like to know the status of a switch

I have got a Sim808 and an Arduino UNO and would like it to send me a SMS Only when the switch changes from on off or on to off. But only when the switch changes. I am a beginner at this and would ...
3
votes
3answers
2k views

How do I extract code from an arduino? [duplicate]

I updated and uploaded some code on another computer that got wiped and didn't send the new code to my current computer, the updated code is still on the board but I don't have access to it. How do I ...
3
votes
4answers
1k views

What do these pins mean? Where should I plug them in?

I am trying to collect data from the arduino into a SD card for the first time, so I bought the adapter at my local electronics/arduino shop. However, I could not find an explanation as to what each ...
2
votes
1answer
67 views

char buffer to String in Arduino UNO

String getAPIData() { char res_buffer[450]; int numdata = inet.httpGET("myserver.com", 80, "/call.php?id=1&q=1&code=1001", res_buffer, 450); String result = String(res_buffer); Serial....
0
votes
0answers
44 views

Serial data printing slowly

I have connected an arduino serial port to my PC and monitoring the output in realterm. I am trying to print: CR 11.98,123,3520,01CRLF But it is resulting with some delay. First CR 1 Is printed. ...
0
votes
0answers
49 views

about required memory size in ATmega32 to execute a certain program

If I want to add two numbers and print the output on LCD char answer[8]; float a=5.1,b=3.2,c; c=a+b; dtostrf(c,8,3,answer);//convert float to ASCII to print it on LCD for(i=0;i<8;i++) ...
0
votes
0answers
21 views

Arduino UNO Restarts when HTTP API called with 500 Bytes response

String get_data() { String resData =""; char msgs[450]; numdata=inet.httpGET("myserver.com", 80, "/call.php?id=1&q=1&code=1001", msgs, 450); resData = parseMessage(msgs,numdata); ...
0
votes
0answers
35 views

How to implement server.on() without any libraries?

I was trying to setup a web server with Arduino and ESP32, without using the ESP32 libraries. Currently I'm able to display a webpage(a form with single submit button) from the server, with only using ...
-2
votes
1answer
29 views

Can an arduino Uno control led, sound and smoke?

I'm pretty new to this and I've not seen anyone answer this question yet - so I figured I would ask. I have a vape mod that is set up to expel smoke with a trigger. I want to merge this trigger to ...
0
votes
0answers
15 views

How to extend gsm buffer?

Haii All, I am using gsm SIM900A module with arduino uno. I am trying to send some data from that to server. When i am writing some commands for that, let's say i have written 3 commands before. But ...
0
votes
0answers
27 views

Is it possible to write URLs to RFID tags with the RC522? If so, how?

I've been trying to research to answer this question for a long time, but could not figure out the answer. I know how to code like bytes of information, but not URLs. More specifically, when you code ...
0
votes
0answers
34 views

Arduino error in code Stack smashing protect failure!

I get the error when I compiled my code below. I am making an application to read temperature on board ttgo esp32 oled lora stack smashing protect failure! abort() was called at PC 0x400da3e8 on ...
0
votes
0answers
39 views

Arduino Uno + Sim808 GPS dont work with GSM

I am trying to get GPS data and pass it through GSM (Http Get Request). The GPS codes part works fine alone, also HTTPRequest part lonely. But when i use them together , the module don't get GPS data ...
1
vote
1answer
48 views

NRF24L01+ changing configuration after startListening

I have been trying to get two Arduino UNO talk to each other via NRF24L01's with TMRH20's NRF24 library. I tried many tutorials and examples and none of them worked. Most of them prints some error ...
0
votes
0answers
44 views

speed motor test with IR sensor and PID algorithm

I'm trying to control motor speed (RPM) using an IR sensor , All I've done is to control it without PID algorithm . and it works . can someone help me with implantation with PID . I'm using Arduino ...
0
votes
0answers
29 views

LowPower.idle isn't waiting

I am trying to have my Arduino wait in a low power idle state given by the LowPower library made by rocketscream on an Uno. However, when I try to have it wait for 8 seconds, it seems to not pause at ...
-1
votes
2answers
49 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
vote
2answers
68 views

Number of digits setting for serial printing the sensor output value

I am getting fan motor rpm as 3200. But if I get the data as 50, I should get the value like 0050. How can I do this? I can do it like checking the value for single digit(0-9), double digit (10-99), ...
0
votes
2answers
35 views

“expected primary-expression before '.' token” in debug code

I'm making some code for school, and is adding debug code to it. When compiling, I get the error as written in the title. This is the code in question: #define DEBUG 1 #ifdef DEBUG #define Serial....
0
votes
0answers
15 views

How to Calculate RGB Color Values from the Lux datas in TCS34725 with Arduino) [duplicate]

I am using the following program #include <Wire.h> // TCS34725 I2C address is 0x29(41) #define Addr 0x29 void setup() { // Initialise I2C communication as MASTER Wire.begin(); // ...
0
votes
0answers
16 views

Arduino Uno (clone) uploading gives error: programmer is not responding [duplicate]

I have a problem while uploading a any sketch on arduino uno (clone). The following error occurs. Please suggest me the solution on this, I have tried the solutions as suggested to the related error ...
1
vote
1answer
33 views

Arduino UNO Low-Power Consumption (Multiple Ultra-Sonic Sensors)

I've read post that it's possible to connect multiple Ultra-Sonic Sensors to one Arduino. But I have a few questions: If I use Arduino Uno, what is the maximum number of Ultra Sonic Sensors that I ...
0
votes
1answer
29 views

Arduino Video Feed (Building Zumo Robot)

I'm building a Zumo robot with my daughter, but I have very limited experience and knowledge with programming and electronics. Pictures of the equipment I have are in this link and the last picture ...
0
votes
2answers
72 views

How to calculate illuminance from the output of a TCS34725 color sensor?

I am using Arduino UNO with the sensor with the following programm. #include <Wire.h> // TCS34725 I2C address is 0x29(41) #define Addr 0x29 void setup() { // Initialise I2C communication as ...
0
votes
1answer
23 views

Communication between three NodeMCUs such that one in in AP mode, second one in AP+STA mode and the third NodeMCU in STA mode

I am able to establish a connection between first and second NodeMCU, but unable to do so for the third nodeMCU. I used the IP address to establish connection. Should I assign a different IP to each ...
0
votes
0answers
18 views

How to transmit data from a sensor using SIM800L?

I am using soil sensor with Arduino UNO. I wish to transmit data coming from sensor to a server using sim800l. I am unable to find any help on this. please guide me.
0
votes
1answer
35 views

Everything is ready for project . I have one doubt! I am using transmitter + Arduino *Uno*..and receiver + arduino *nano* will it work?

Everything is ready for project except hardware! I have one doubt! I am planning to use transmitter of Arduino Uno and receiver of Arduino Nano. Will it work? Both Uno and Nano obey for same ...
0
votes
1answer
42 views

LCD displays bad character while counting rotation

I have been practicing RPM and rotation counter in arduino using infrared optocoupler. I try to implement number of rotation for drill machine but whenever drill starts to rotate, LCD prints bad ...
0
votes
1answer
61 views

Soft wdt reset error on NodeMCU (ESP8266)

I am getting error on Serial monitor Soft WDT reset. I decoded the error code also and found the following stacktrace. I am using SIM808 module and DFRobot_sim808 as the library. 0x4010030d: ...
0
votes
1answer
39 views

What does (byte*)variable_name mean in C++?

Gentlemen, I am a novice C++ programmer, When I was trying to learn how to use EEPROM with Arduino, I came across this statement i2c_eeprom_write_page(0x57, 0, (byte *)somedata, sizeof(somedata)...
0
votes
1answer
39 views

Missing bytes sended through serial from C# app

I am trying to store values sended by C# app in EEPROM via Arduino UNO. Here is a C# code that reads bytes from file (I'm 100% sure that there are, and always will be 256 bytes) and sends the buffer ...
0
votes
3answers
57 views

Arduino Uno not working after Short-circuit

While wiring up my new Arduino Uno R3, I accidentally shorted the 5V pin and the GND pin (for less than a sec). It was powered by a 12V 500mAh power supply through the Arduino DC power jack. . The ON, ...
0
votes
1answer
84 views

Using Arduino fix_fft or arduinoFFT library to filter some specific sound?

I would like to know if there is a way to filter some specific sound using FFT on arduino. For instance, there is wind sound frequency in my analysis and I want to take it off. I searched for that a ...
2
votes
0answers
30 views

qMenuSystem using DigoleSerial library doesn’t work on my I2C Monochrome OLED

Just like the title says I’m trying to make qMenuSystem to work with my oled display. Here is what I know so far about my display : - It's a Monochrome OLED 128x64 (Blue) Display - It's connecting ...
0
votes
1answer
57 views

How do I convert this program to assembly from c++

I am trying to implement a program in assembly code for an Arduino UNO. A potentiometer is used on an ADC pin for variable time (t). LED1 flashes for t seconds, then stays on for t seconds, then goes ...
0
votes
1answer
42 views

Why doesn't data return when I use Sim808 http request

Why is it that when i use this code for http request on DFRobot_sim808 , I get 'fetch over' message, that means that no data is being returned? char strings: char http_cmd[] = " HTTP/1.0\r\n" ...
0
votes
4answers
101 views

Can I do something like this to simplify the code for arduino?

Can I simplify the code in arduino where it doesn't promote any error. Example: Int led =13; Blink = digitalWrite(led, HiGH); delay(1000); digitalWrite(led, LOW); ...
0
votes
0answers
55 views

ESP8266 do not 'reset' when I connected D0-RST for deepSleep

I connected like this status(D0 ~ RST) on my ESP8266 NODEMCU board for making deepSleep & wakeup automatically. after I set like this, ESP.deepSleep(5e6); // 5second for entering deepSleep mode ...
0
votes
1answer
25 views

qMenuSystem Oled I2C can't make it work

I'm trying to make the qMenuSystem to work with my I2C Monochrome OLED display but without any luck. To summarize all here's what's with it : - the qMenuSystem is using a library called : ...
0
votes
0answers
27 views

Problem in fetching http get request after put float number

I have this codes that works correctly! #include <DFRobot_sim808.h> #include <SoftwareSerial.h> #define PIN_TX 7 #define PIN_RX 8 SoftwareSerial mySerial(PIN_TX,PIN_RX); ...
0
votes
0answers
27 views

How to make watchdog and automatically reset on esp8266

When my system is confronting at logical & hardwaretical problem, I want to make system know It has some problem and reset automatically because my esp8266(nodeMCU) is on the place where people ...
0
votes
0answers
57 views

Problem sending IR signal on Arduino Leonardo/Uno (IRRemote library)

I am trying to use my Arduino Leonardo (or Uno!) as a remote with the IRRemote library. The current setup picks up and decodes a signal perfectly, but fails to retransmit it. I have tested the ...
0
votes
1answer
28 views

Sim808 module HTTP Bad request

I have an Arduino UNO and sim808 EVB-V3.02.4. I want to send a GET request to my url but I always receive 400 Http bad request error. #include <DFRobot_sim808.h> #include <SoftwareSerial.h&...
0
votes
0answers
29 views

Can the following materials be used to power up an attendance based sensor?

arduino uno, esp8266, rfid module rc522, sd card module, real time clock module, buzzer, led light and battery holder. I was planning to build a sensor that monitors attendance with the use of and ...
-1
votes
2answers
26 views

pulseIn only returning 0

I'm new to arduino and I've searched through a lot of posts but can't find anything to fix the issue. I'm trying to send a signal through some medium (water in this example) using a pizoelectric ...
2
votes
1answer
65 views

Run light sequence function continuously in if statement

My goal - run light sequence function on momentary button press (button 2) continuously until another of the 3 momentary buttons are pressed. /* switch * * Each time the input pin goes ...