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, macOS and Linux.

Filter by
Sorted by
Tagged with
-1
votes
1answer
600 views

Problems connecting Adafruit Feather M0 to network

I'm trying to connect my Adafruit Feather M0 board to an existing WiFi network. Whenever I use the "ConnectWithWPA" example sketch, I receive "Attempting to connect to WPA SSID: "MyNetwork" " in the ...
-1
votes
1answer
550 views

Unable to open arduino on raspberry pi3

Exception in thread "main" java.lang.ExceptionInInitializerError at processing.app.Preferences.save(Preferences.java:735) at processing.app.Preferences.init(Preferences.java:249) ...
-1
votes
1answer
58 views

Automatic irrigation project

While interfacing with lcd in project i m having problem that in control loop my if statement is running properly but else condition is not. Means once relay is on it is always on it is not closing ...
-1
votes
2answers
220 views

SocketIO Arduino TCP Port ISSUE

Initially I was sending sensor data to NodeJS using socketIO and this worked perfectly. I had to add a function to control an RGB LED using this. This also works but I'm unable to perform these two ...
-1
votes
1answer
513 views

Issues with analog microphone readings

I'm having issues with sampling audio with a microphone and NodeMCU v3. I realize this is the Arduino section so if NodeMCU running the Arduino IDE is not meant for this forum, let me know. The ...
-1
votes
3answers
160 views

Scan multiple ESP8266 [closed]

I am working on wifi based LED project which involves various ESP to be connected to router. Basically grouping of ESP has to be done. The android app sends HTTP command to IP address which is given ...
-1
votes
2answers
100 views

Do I use an Arduino or an ARM based Launchpad board for my commercial project? [closed]

I want to use a board for an Industrial Project, which is based on temperature sensing, sharing and data storage. Which board do I use? Will it be reliable for a long span of time? Will it be ...
-1
votes
1answer
678 views

Unable to analogWrite to MOSFET properly (IRLB3034)

I've got a 5 meter LED strip connected to a breadboard as such 12V Supply (+) -> (+) on breadboard rail (-) -> ground on breadboard rail Arduino (Wemos D1, all pins w/ PWM) pin7 -> gate(1st ...
-1
votes
1answer
1k views

Advanced Line Follower robot

I know about line follower mainly the grid solving robots i know the basics actually. Actually they have to trace the path of the grid in an arena and then reach back to starting point in a shortest ...
-1
votes
2answers
1k views

SD Library writing char in a file

I'm trying to write into a file using this code from the example of the library: String dataString = ""; int sensor = 0; dataString += String(sensor); dataString += ","; sensor +=1; File dataFile = ...
-1
votes
1answer
331 views

esp8266 ip address issues

I have android studio app and arduino codes they are connected to each other using esp8266 but it works only on one network when I use another network it doesn't recognise it's ip address instead it ...
-1
votes
1answer
401 views

5 minute timer output time remaining

I am trying to create a timer that outputs the time remaining in minutes. I am using an Adafruit Circuit Playground Express. For example, if the timer is 5 minutes, then every minute it should output ...
-1
votes
5answers
3k views

No Response to AT commands

I'm unable to communicate with my nodemcu ESP8266 module using the AT commands. The module does not return 'ready' on the serial monitor and entering AT commands has no effect at all. I am able to ...
-2
votes
2answers
92 views

Arduino IDE programming help [closed]

I am trying to write a program to control a stepper, and incorporate a selector switch and a rheostat. The object is to make the stepper oscillate, and to be able to control the speed with the ...
-2
votes
4answers
3k views

My Arduino code will not compile, when I can't see anything wrong with it

It keeps on giving me the error: Error compiling for board Arduino/Genuino Mega or Mega 2560. Other sketches work fine, but this one will not compile, even though I have all the libraries. Here is ...
-2
votes
2answers
1k views

getting error while trying to compile code for soil moisture sensor

I think the below logic should work but its throwing error void setup() { Serial.begin(9600); } void loop() { int soil_moisture = analogRead(A0); // read from analog pin A3 // int soil_moisture ...
-2
votes
1answer
193 views

functions not running

I have the following code as part of my efforts to clean this all up into more neatly organised functions. I'm trying to run GetTemperatures and RunSerial as part of the main loop, however neither ...
-2
votes
1answer
626 views

how to multi merge code [closed]

i do have sketch from various people out there who have build nice code to do what i need done BUT not for my application and well they grant us permission to use and or modify their code so this is ...
-2
votes
1answer
228 views

How does one build a door motion sensor project with Arduino Uno board to send alerts to an Android Phone? [closed]

What are the materials I will need for the project? We want the project to work like this: When the door is opened, we get an alert to our Android Phone. What is the circuit structure going to look ...
-2
votes
1answer
81 views

Code for fish auto feeder not working [duplicate]

I've been trying to make this code work, but for some reason, it doesn't work for me, even if I do everything like in the tutorial. So I've tried to do a new code and the outcome was the same. The ...
-2
votes
1answer
44 views

Problem with serial input from android serial usb app

I'm using two (nrf24L01 + Arduino Uno) nodes to communicate with each other. Serial input from node1 will be sent to node2. A special character 'p' when sent to node2, it will reply that it's ...
-2
votes
2answers
419 views

To control the relay switching in nextion using esp32 Microcontroller

I have developed the code to control the relay switching on/off using nextion display and esp32. But whenever I press my dual state button in the nextion display there is some delay and I need to ...
-2
votes
1answer
307 views

Change Token authentication method to MQTT authentication method(username, password, client_id, ssid, passwd)

I have a mq135 sensor abd nodemcu ESP-12E module to calculate air quality and monitor it via Cayenne platform. How can I edit this below code to add and connect my Nodemcu ESP-12E module to cayenne ...
-2
votes
1answer
69 views

Arduino ESP32F-TFT-1.44 Driver

Datasheet https://github.com/espressif/esp-hosted/files/5190376/ESP-32F.pdf The below code is not working. I can see only White screen #include <Adafruit_GFX.h> // Core graphics library #...
-2
votes
1answer
165 views

Keypad Type 11 numbers only? [duplicate]

Can someone give me any idea what condition should i use in input 11 numbers only in the switch case? I only want to type and input 11 numbers only but The problem is it can type more than 11 numbers. ...
-2
votes
1answer
2k views

unable to find string literal operator 'operator“” stylesheet' [duplicate]

I am new to programing in C and I get this error: unable to find string literal operator 'operator"" stylesheet'. I am making a website for NodeMCU 0.9. My code: String message2 = "<!DOCTYPE ...
-2
votes
2answers
267 views

Errors in code, LM35 temperature logging to web server

trying to experiment with Wemos D1 and LM35. Need to have temperature reading on the ESP IP. Found the following project to be exactly matching my requirements but I am having certain errors in it. ...
-2
votes
1answer
670 views

How do I add multiple URLs to the Board Manager?

In the preferences menu I would like to add a second URL to the "Additional Boards Manager URLs:". What's the proper format?
-3
votes
1answer
192 views

Writing your own Arduino flashing tool [closed]

I want to make Arduino flashing tool only for a nano, a simple flashing application which could run on windows taking input as a .hex file. I know how to do this in Linux environment using Makefiles ...
-3
votes
1answer
109 views

What wireless protocols can be used with arduino?

Before you close this saying it's not related to programming. It is related to programming since i'm using it and asking about libraries. What are the common types of communication protocols and their ...
-3
votes
1answer
82 views

Arduino expected ':' before '{' token

I wanted to compile a project yesterday which always worked until now. Probably since an adjustment of the libraries (update) I have not been able to do this anymore. I ask for help. ERRORMESSAGE: ...
-3
votes
2answers
2k views

Arduino micro not recognized

I have an Arduino micro for some time and everything always worked well. Today, when I was uploading a code on this board using Arduino IDE, I accidentally started the Arduino Board update and the ...
-3
votes
1answer
545 views

Oddness with #define and #ifdef in a sketch

I'm putting together a simple sketch to read a few sensors and have come across some odd behaviour associated with #define and #ifdef. Here are some snippets from my code: // Defines //#define DEBUG ...
-3
votes
1answer
59 views

What is PWM actually? [closed]

tcommand=(pwm_value-480.0)/8.22; flapmag=(pwm_value-880)/41.0+10; In this piece of code used in arduino, I don't understand why PWM value is subtracted and divided like this. This is not my code. Any ...
-3
votes
1answer
84 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 ...
-3
votes
1answer
72 views

Spi based pin expander for Arduino

I don't have enough pins on my Esp32 board. I would like to use a pin expander. All the ones I could find online only use i2c. Are there ones available that use SPI? I would like send pwm signals to ...
-3
votes
1answer
311 views

Any limitation on array size in Arduino Mega 2560?

I am writing an Arduino code with 3 arrays. Two of those are double and other one is int. Further first two arrays have nearly 420 elements for each. Now I noticed that with more that 89 elements on ...
-3
votes
2answers
589 views

Conversion of Arrays into Matrix? [closed]

I'm going through problem in Arduino code. I have three Arrays and want to convert them into a matrix. I have tried hard but couldn't solve issue. float lb1[24]={1580,480,1580,1580,580,1950,3125,...
-3
votes
1answer
489 views

Arduino IDE : 'tansig' was not declared in this scope

I am working on a simple NN sketch, everything looks fine and also i have added #include math.h .but when i try to compile it gives an error i-e 'tansig' is not defined in this scope I am trying to ...
-3
votes
1answer
906 views

How to write Arduino code that reads the potValue of a potentiometer? [closed]

How to write Arduino code that reads the potValue of a potentiometer connected to analog input AN1? The value should be a 10-bit integer. Is this correct? // select the input pin for the ...
-4
votes
1answer
8k views

Wiring when burning the bootloader of esp8266 [closed]

I want to burn the bootloader of esp8266. Assume I have esp8266 on esp12 in hand and an USB ISP programmer (or any other programmer like USBTinyISP). I (think I) know how to use the Arduino IDE to ...
-4
votes
1answer
4k views

Advance arduino programming? [closed]

I have worked with basic arduino IDE for making robots and sensor based projects.Now I want to learn some advance arduino programming and try some complex Arduino projects.Can anyone help me with the ...
-4
votes
2answers
707 views

LCD is supplied more than required current [closed]

So, i am trying LCD 16x2 module for the first time and don't how solve this problem. I know the current is more, also I've tried using Resistors, etc. but to no avail. Please suggest a solution. Also ...
-5
votes
1answer
647 views

nRF24L01+ Arduino mpu6050 [closed]

How do I ever understand what the Arduino IDE means when they advise you of any errors? The reason I ask is because I got several errors that don't make sense to me as I see what the error means and ...
-5
votes
1answer
98 views

Trying to make arduino heart beat counter but couldn't understand code

I am trying to make an Arduino heart beat counter . I looked for some code online and found this code on arduino.cc forum but I couldn't understand working of the given code .. specifically these few ...
-5
votes
1answer
136 views

No display on LCD

#include <Wire.h> #include <LiquidCrystal.h> #define sensor1 x = 9 #define sensor2 y = 8 #define colx 8 int sensor1, sensor2; LiquidCrystal lcd(7, 6, 5, 4, 3, 2); void setup() { ...
-9
votes
1answer
486 views

Arduino arrays not working for some reason [closed]

Why does int x[5]; x[0] = 10; is not working. If im doing something wrong i cant figure out what it is.

1
25 26 27 28
29