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

ESP8266 Connection with WPA2-PEAP Enterprise Network

I am trying to connect my nodemcu 12E module to WPA2-entrprise network but not able to connect. I had gone through the Espressif Forum and GitHub but still not able to resolve my problem. here is ...
0
votes
1answer
309 views

Replying with a html page in HTTP Web Server using esp01 and ArduinoIDE

Now there are many ways to reply with a webpage content to a user who is accessing the web server, But Keeping in mind to use as less space as possible, I was trying something new, Since i didnt got ...
0
votes
1answer
49 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
122 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
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
0answers
19 views

To update GPS after every 30seconds using NeoGPS and NeoSWSerial Libray

I am using Adafruit Ulitimate Breakout GPS module and NeoGPS and NeoSWSerial Library. Now I want the GPS to update in 30seconds once (1time in 30seconds).After it is updated I want to check the ...
0
votes
0answers
35 views

MQ7.h: No such file or directory

Using ESP32 I'm making air pollution quality meter. For that I need MQ7.h library which is of version 1.0.4 MQUnified sensor library, which supports all sensors. I am using MQ7 carbon monoxide sensor....
-1
votes
0answers
16 views

MQ7.h: No such file or directory even MQunified senor library is installed [duplicate]

include include include include include include include include include "MQ7.h" define SCREEN_WIDTH 128 // OLED display width, in pixels define SCREEN_HEIGHT 64 // OLED display ...
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
717 views

ESP8266 stuck in flash mode?

I have the setup described here: https://learn.adafruit.com/esp8266-temperature-slash-humidity-webserver/wiring I currently have the reset pin set to float and the GPIO0 pin grounded, which should ...
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 ...
1
vote
1answer
20 views

Comparing a text string to text output (DHT22)

Lately I've received a DHT22 sensor. I've started to create a small temperature and humidity monitor station. One of the things I noticed was if you pulled out the sensor while in use, it displayed "...
0
votes
0answers
22 views

Atmega328pb type casting errors

I've created a custom pcb with a Atmega328pb cpu. It's said to be binary compatible with Atmega32p, thus i flash it with my already functioning sketches that i've developed using an arduino. The ...
0
votes
0answers
15 views

Arduino not starting after 1.8.10 update

First off sorry if this is the wrong place. Yesterday I updated the Arduino IDE to 1.8.10 and I was able to program a couple of hours. Powering up my laptop today though the IDE is active, I can't ...
2
votes
0answers
47 views

Why does Arduino IDE take so long to open?

I have Arduino IDE, version 1.8.10 (Windows 10 x64, 8GB RAM, i5-7200 @2.5GHz) on a network drive mapped to D:, on a 100Mbit wired network and fast file server. If I navigate to the network shared ...
1
vote
2answers
3k views

Why does my Arduino IDE hang/crash so often?

I've traditionally used a text editor with avr-gcc and makefiles for working with Arduino boards. I'm now trying to develop projects for the wider Arduino user-base, so I am trying to use the Arduino ...
-1
votes
2answers
35 views

Multiple Loops to control on and off LEDs

I'm new here. I have tried to write a simple code to turn LED's and light them up in specific pattern and being able to switch it off while in loop. So far I've managed to either get them constantly ...
0
votes
0answers
17 views

viewing serial 1 and serial 2 data of ESP32 [closed]

I am working on a simple code to print in all the three serial ports in ESP32. But so far I am unable to find a way to find out a way to see the output of the Serial1 and Serial2. I am trying to use ...
0
votes
0answers
42 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
0answers
20 views

Java exception - jmdns errors when using arduino command line [duplicate]

I see tons of similar issues with these error messages relating to the java exceptions for JMDNS... What is the cause of these exceptions? Issue is also seen here: https://github.com/arduino/Arduino/...
0
votes
0answers
16 views

Upload sketch in multiple arduinos

How do I upload sketches in multiple arduinos from one supervisor Arduino using UART , cd4051 for Rx and TX separately and reset pin low
1
vote
1answer
57 views

Using Serial.begin() twice

I'm training kids programming Arduino. We're gonna use Serial for debugging purposes, so we started with a simple HelloWorld program. I let them try various stuff, including changing the speed. Now, ...
0
votes
1answer
25 views

Sparkfun Pro-Micro stuck on uploading

I have read multiple posts on how to reset the sparkfun pro-micro when it gets stuck during upload, and this seems to work to get it back to a state where I can upload new code again - However, I am ...
0
votes
1answer
23 views

What is the correct folder structure for including local headers in my Arduino project?

I am designing a "project" with 5 Arduino's (each with separate codes), communicating with each other using NRF24. All the 5 codes are different except they share a common header "MyHeader.h". The ...
0
votes
2answers
35 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
18 views

How to connect 2 Fingerprint Sensor to Arduino Mega? Please help

My project was to open the door from inside and outside the room using fingerprint sensors, currently I used separate arduino on 2 different fingerprint sensor. Please help, my arduino detected only 1 ...
0
votes
1answer
24 views

How can I use Methods in digitalWrite(): digitalWrite(int, “methodHere”)?

When creating a piece of code to operate a 7-segment display, I ran into a problem: The seven segment display on TinkerCad (I was using this at the time) requires you to pull down the inputs to turn ...
0
votes
2answers
49 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
1answer
28 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
1answer
29 views

How to prevent counter increment when holding the button

I am a newbie and also a noobie. Kindly assist this poor boy over here. I am looking for a way to increment a variable by one each time a button is pressed. Current approach is the following : void ...
0
votes
0answers
30 views

Grid based maze - robot stops at every square

I need a little bit of help. I'm working on a school project where a robot with 3 ultrasonic sensors needs to go through grid based maze (5x5) and then draw its map. But I got stuck. I'm trying to ...
0
votes
0answers
20 views

DIfferent baud rates of 434 MHZ transceiver

What are the different baud rates that I can set for 434 MHZ Transmitter? (I am using Arduino UNO and RadioHead lib to change the baud rates)
0
votes
0answers
21 views

Micro controller Recommendation for Data Acquisition System?

I am doing a project involving connecting multiple environmental sensors to a MCU in order to collect data during an experiment. I need a minimum of 15 analog differential input channels, with a ...
0
votes
0answers
21 views

To stop the geared DC motor based on the number of rotation

I am doing a small project in which I need to stop rotating the dc geared motor based on its number of rotation (in my case I need only 2 rotation), after two rotation it should stop rotating. I am ...
0
votes
3answers
1k views

Does int array[100] = {0} contruct work on Arduino?

I'm compiling my code in Arduino IDE. I have an array that I want to 0-initialize. I know memset works on Arduino, but I'm used to this way from my desktop C++ programming practice: int array[100] = {...
0
votes
1answer
416 views

UECIDE: linker error with U8g2 library

This sketch: #include <SPI.h> #include <Wire.h> #include <U8g2lib.h> // OLED display. U8G2_SSD1306_128X64_NONAME_1_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE); void setup()...
0
votes
0answers
22 views

Transmitting data using arduino and RF transceiver

can someone tell me where will the transmitted message displayed in Arduino . I tried opening com port 3 but nothing shows up. I had installed the necessary lib(RadioHead) and the code required. I ...
0
votes
1answer
110 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
50 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 (...
2
votes
2answers
5k views

Since double and float represent the same data type (usually), which is preferable?

It looks like on ATMega based boards, float and double are equivalent 32-bit (4-byte) data types. However, on the Arduino Due, doubles are 64-bit (8-byte) where floats are 32-bit (4-byte), same as ...
0
votes
1answer
197 views

bh1750 lightsesor won't work

ok, im having problems with my bh1750, here is all info i got: board: esp32s nodeMCU v. 1.1 Pins: Wiring: (the 2 reds go to pin 21 and 22) code: #include <BH1750.h> #include <Wire.h> ...
0
votes
0answers
39 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 ...
0
votes
1answer
22 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 ...
87
votes
21answers
15k views

What are the other IDEs for Arduino?

The basic Arduino IDE lacks a lot of the sophistication present in other IDEs such as code completion, code collapsing, folder organisation, etc. Are there other IDEs that allow programming in C or C++...
7
votes
1answer
630 views

Accessing a C++ static variable from gcc inline asm

For some reason I want to mix a bit of assembly with C++ (not C). To allow the code to be compilable using the standard Arduino IDE, I don't want to use direct assembly source. I don't want to use a ...
1
vote
1answer
19 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
49 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 ...
1
vote
1answer
45 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 ...
-1
votes
1answer
1k views

'RtcDateTime' does not name a type

I've tested a code that compiles successfully. But after i merged it to another code, here it shown an error says RtcDateTime doesn't name a type. Used library : https://github.com/Makuna/Rtc Some ...
0
votes
0answers
11 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(...