We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [arduino-ide]

This is for questions about the official IDE. The open-source IDE makes it easy to write code and upload it to any Arduino board. It runs on Windows, Mac OS X, and Linux.

Filter by
Sorted by
Tagged with
0
votes
1answer
27 views

How to set current position for the DC motor to zero + store current positions in an array and run it?

I would like to know how to set the current position for the DC motors to zero and store the current position in an array. after that I would like it to loop in the array to run all steps that was ...
0
votes
1answer
36 views

millis() function works with inline code and gives output but when creating own library it doesn't works

I am creating library for GPS to use in my project. I am using Adafruit GPS and its library to create my own library in which I am using millis() function to display the GPS Location after 1 minute (...
0
votes
0answers
16 views

Bluetooth toggle between two master device (Using UART)

we are currently using a BLE Tiny Circuit broad with UART codes. Is it possible to allow two master to connect to the circuit board and the circuit board will be able to transmit data to both ...
1
vote
1answer
13 views

I can't receive string that I have sent through nrf correctly

I'm using arduino uno and nrf24l01. to monitor sensor data. But this is the message that master receives: ⸮ this is my slave code. void monitoring() { delay(10); radio.stopListening(); ...
0
votes
0answers
28 views

Bad Data : Arduino Mega & NodeMCU Serial Communication

Currently I am working on an Arduino project. The project required to establish communication between Arduino Mega and NodeMCU ESP8266. Here are some details about the project: NodeMCU Rx Pin is ...
0
votes
1answer
35 views

Is it possible to connect from esp8266 module over HTTPS protocol?

Before I will implementing some server application for Arduino client I should know: Is it possible to connect from esp8266 module to end-point over HTTPS protocol? Any links of tutorials are ...
0
votes
1answer
38 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
0answers
10 views

nodemcu nack error bh1750

I am trying to run a simple example of bh1750 on my nodemcu, code is #include <Wire.h> #include <BH1750.h> */ BH1750 lightMeter(0x23); void setup(){ Serial.begin(9600); Wire.begin(...
0
votes
1answer
17 views

Temperature and Humidity Sensor TinyShield (No device found on com5)

Hi i have recently started working on a Temperature and Humidity Sensor TinyShield (ASD2511-R-T) and faced the issue as shown in the image below: No device found on com5. I have followed the tutorial ...
1
vote
1answer
37 views

Having trouble figuring out CTC on Timer 1 with ATTiny85

I'm using Timer1 on the Attiny85 clocked at 1MHz to toggle an LED every 1 second. However, I'm having some issues regarding prescaler and OSC value selection. I'm using this formula, which I found in ...
-4
votes
0answers
29 views

What is the problem here? 😭 Please help [duplicate]

//INCLUDED LIBRARIES #include <GPRS_Shield_Arduino.h> #include <SoftwareSerial.h> #include <Wire.h> //SERIAL PIN ASSIGNMENT, BAUDRATE, PHONE NUMBER, MESSAGE #define PIN_TX 2 #...
-1
votes
0answers
19 views

Calling segment map from EEPROM to other sketch

I have written a sketch in Arduino IDE which flashes a segment map that is meant to light up a 14-segment alphanumeric display to EEPROM. Now, I am trying to figure out how to include this segment map ...
-1
votes
1answer
38 views

Taking data from main 120V 50/60Hz power

How can I take data from my house main power and reconstruct it signal? I used an transformer and an inverter amplifier to low voltage to 5 volts and read it with A0 analog pin, but I got a very ...
0
votes
0answers
10 views

How can I install Arduino Create agent(Web Editor) on a windows PC without admin rights?

I like the GUI and facility Arduino Web Editor provides and would like to use it on PCs which do not provide any installation rights for the Web Editor's agent. Can I install the Web Editor agent ...
5
votes
2answers
52 views

Arduino IDE won't use selected port

I'm trying to program an ATtiny85, using an AVRISP mkII programmer (this one: https://www.amazon.de/dp/B00IYNAXUC/ref=cm_sw_r_sms_c_api_i_VXOWDb3H3N5ND) with the Arduino IDE (version 1.8.10 on Ubuntu ...
1
vote
0answers
20 views

Use Arduino Libraries in PlatformIO?

I'd like to use Arduino libraries installed in C:\Users\Username\Documents\Arduino\libraries in a PlatformIO project. Is it possible? if so, how?
0
votes
1answer
29 views

Arduino - manually ceate objects (e.g. WiFi library)

By default, if i include the WiFi library, the object WiFi will be registered globally. How can i disable this behavior without changing the library file itself? (removing the definition "extern ...") ...
-1
votes
2answers
55 views

Arduino connectiond problems

I have problem with connecting an Arduino UNO to my computer, an HP EliteBook 830 G5. I bought the Arduino from here: Arduino UNO. It arrived with original Atmel ATMega328P micro controller and ...
-3
votes
1answer
74 views

IDE / Plugin / Compiler / Language: Which combination is closest to best-practice embedded development in C or C++? [closed]

Currently I'm pretty far out to sea with a combination of Visual Studio Code, the Platform.io extension, while writing new code in C++ using avr-gcc. I'm hoping for a combination that would offer the ...
0
votes
0answers
65 views

Nick Gammon Atmega bootload uploader, Why 5v is required instead of 3.3v?

I am trying to upload boot-loader to AtMega328p SMD chip. I want it to work with internal 8Mhz clock and 3.3v as VCC. By referring Nick Gammon's forum I have wired the connection but given VCC as 3.3v ...
0
votes
0answers
39 views

Nothing prints in the serial monitor in Arduino - Ide

Sir, I used Arduino-Uno as programmer and Arduino-Mega 2560 as target and uploaded the below code, I was not able to view the Serial. println lines in the serial monitor, Can you please help. Thanks. ...
0
votes
0answers
18 views

Cannot connect with online arduino editor but I can with Arduino IDE to an Arduino Nano

As the title says I have a Nano with CH340G and 168 that connects properly to Arduino IDE but not to Arduino online editor, it does not detect the board "Error uploading, check if the board is ...
0
votes
3answers
43 views

Incompatible types in assignment of 'uint8_t {aka unsigned char}' to 'uint8_t [1] {aka unsigned char [1]}'

I'm trying to send custom data. But it doesn't seem to work. I can't find a way to parse my string to a unit8_t. I tried to follow other people's solutions but they don't seem to work for me. // ...
0
votes
0answers
99 views

Arduino-Controlled LED Matrix issues

I am making a 20 x 15 LED matrix, and am having some super annoying problems. I was hoping you all could help me find some answers. It is very important to note that I am following BitLuni's video ...
0
votes
0answers
25 views

Is there a Sensor capable of meausring circumference of an object that is compatible with Arduino? [duplicate]

I have been working on a project that requires the use of a sensor that can measure an object's circumference and then return that data. However, I do not know which sensor would be able to do what ...
0
votes
0answers
15 views

HX711 with 10kg load cell on arduino uno

can anyone please help me, i am working on weight sensor i.e., hx711 with 10kg load cell on arduino.It is showing some weight in serial monitor when no weight is also placed and ...
0
votes
2answers
31 views

I am making a rubber band gun but i cant seem to get the button to work with my code to turn the servo?

#include <Servo.h> const int buttonPin = 3; int buttonState = 0; Servo myservo; void setup() { myservo.attach(2); pinMode(buttonPin, INPUT); } void loop() { buttonState = ...
0
votes
1answer
34 views

How to merge two GPS coordinates without losing decimals

I want to take the GPS coordinates like 42.1234 per 22.1234 and merge them as a string, with a separator character: 42.1234 x 22.1234 But using this code: gps_string = (String)gps.location.lat()+' ...
0
votes
1answer
50 views

Using a class inside of another class [closed]

I have a seemingly simple problem that seems to be popular, but after searching several forums I still have not found the answer: How do you use a class inside of another class? I have simplified my ...
0
votes
1answer
26 views

Error reading file

What should be done to solve it? I have edited the board.txt file and none of my codes are getting verified it shows this error: "Error reading file (C:\Program Files (x86)\Arduino\hardware\...
0
votes
2answers
85 views

Yet another basic and silly question about C++ strings

I made a sketch like this: void setup() { // put your setup code here, to run once: Serial.begin(9600); char str1[64] = "test with spaces"; char str2[32] = "test with spaces"; Serial....
0
votes
2answers
40 views

ESP-01 + UNO won't detect gateway

Apparently, this combination of hardware won't accept anything other than WiFiEsp.h together with SoftwareSerial.h (if anyone knows something better/newer than these two, please let me know). Thing is:...
0
votes
0answers
30 views

WDT Reset with PubSubClient library for esp8266

I am using ESP8266 with arduino and PubSubClient library. With this library on esp8266, i can see esp8266 is resetting due to Watchdog reset. After google search get to know this is known issue. I was ...
0
votes
1answer
31 views

test for wrong wifi password?

maybe this is a dumb question, but is there a way to test for wrong wifi password, I know you can do WL_CONNECT to check if the password works, but is there a command for checking if the password is ...
0
votes
0answers
23 views

Can't get display to show on TinyScreen and TinyDuino

I should preface this by saying i am completely new to this. so i downloaded arduino and all the neccesary drivers. i tried out the blink example and it worked. then i tried to run this code. #define ...
-1
votes
3answers
74 views

Unused lines of code causing program to crash

I have a project which essentially involves WiFi, a web server, and an LED. I'm using the Inbuilt LED on my ESP8266 for testing at the moment. I am using the Arduino IDE for programming. I had a ...
0
votes
0answers
21 views

How can I inline parameters during build time from an external file? [duplicate]

I have a small sketch that I'd like to redistribute. It contains a password that I don't want to pass on. Is there a way to have for example an external properties file or an env param that will allow ...
0
votes
1answer
43 views

Brownout detector triggered

I'm running a pretty basic setup. When I run a small program just doing some serial.println, it works fine, when I try to do operations that needs more power, the brownout detector gets triggered. I'm ...
0
votes
0answers
29 views

Error Compiling any coding in Arduino IDE

I was using the example code of "Blink", and when I try to compile it, it pop out an error as below. I tried to: uninstall and installed back the Arduino IDE installed different versions of Arduino ...
0
votes
1answer
29 views

ESP32 access point code not compiling

I'm trying to use the ESP32 board to control an LED, buzzer, and motor (ABA) through an access point. I got some code from this page: https://lastminuteengineers.com/creating-esp32-web-server-arduino-...
0
votes
0answers
23 views

Trouble GETing over HTTPS on the ESP32

I am having some trouble doing a GET request over HTTPS on the ESP32. I am using the BasicHttpsClinet example from the ArduenoIDE. Here is the code. /** BasicHTTPSClient.ino Created on: 14.10....
0
votes
1answer
44 views

Arduino wont start up and it wasnt succesfully booted in any time it was downloaded

I know the title sounds stupid but I never found a question like mine so I wanted to be specific because I downloaded the Arduino IDE to start my first project and I never managed to boot it because ...
0
votes
1answer
60 views

RtcUtility.h: No such file or directory

I have a problem with remaining headers. Can't seem to find the first header "RtcUtility.h". Anyone how to fix? I've provided a picture for you to see. Error Messages: Arduino: 1.8.10 (Windows 7), ...
0
votes
0answers
33 views

Arduino 1.8.9 Won't Load

I recently upgraded my windows10 from version 1803 to 1903. I had to do a clean install to accomplish it though, but my question is, I downloaded Adriano IDE 1.8.9 and installed it but it won't launch....
0
votes
1answer
35 views

Where is tcp.h?

This is for an esp8266 project that uses EasyAsyncTCP. In EasyAsyncTCP.cpp they #include "lwip/tcp.h". But I can't figure out where that file is. I've found a tcp.h in the following directories on ...
0
votes
1answer
84 views

How to get current Date [closed]

How to get Current date, month and year. I have used RTC, NTPClient, but it didn't work. This gives default output of 1970. What can I do for fixing it. time_t now = time(nullptr); struct tm* newtime ...
0
votes
0answers
84 views

FatalError('Invalid head of packet (0x%s)' % hexify(b)) while uploading on ESP8266

I have this error while uploading my code to ESP8266 despite the fact that the code runs without errors. I have the git version of installation for the board. ERROR: File"C:/../../AppData/Local/...
1
vote
1answer
74 views

#include <ESP8266WiFi.h> Error with WiFiClientSecureBearSSL.h

I am new to the Arduino world and it seems that this simple problem is keeping me at the start line. I use the Generic ESP8266 Module as Board In my sketch I just write: #include < ESP8266WiFi.h &...
0
votes
0answers
35 views

how to get text box values from webserver of esp32 and print them in to serial monitor by using <webserver.h> library

Actually I'm trying to get the values from esp32 server webpage. Suppose there is a web page containing some text box fields, user has to enter some details in it and this details I want to be print ...
0
votes
0answers
38 views

I need help with attaching codes in arduino [duplicate]

I'm in a project and I need to put multiple grove sensors in arduino and I've done with the others, but when I put the code of MQ3 sensor all the sensors stop showing in the serial monitor. I'm going ...