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

dashboard creation of firebase data [on hold]

I have connected esp8266 device to firebase . It is working correctly . But now I want to display the analytics of that firebase data for that I want to create dashboard. what will be the ways of ...
1
vote
1answer
333 views

Arduino MKR Zero problem with new UART comunication

I'm currently using an Arduino MKR Zero board and I need to add a new communication because the Serial1 on pins 13 and 14 is already used by another device. I've followed this tutorial from Arduino ...
0
votes
1answer
211 views

Problem “Didn't find PN53x board” Arduino NFC Card Reader

i am using the elechouse PN532 RFID Module with an Wemos D1 mini in the Arduino IDE. I use the ISO1443a_uid example from the elechouse library. All works fine if i plug the USB Cable into the wemos ...
1
vote
1answer
366 views

Sublime as external editor, error on Arduino compile dropdown: “avr-g++ is not recognized…”, from Stino

The error message, generated from Sublime, in its entirety... Compiling KCT_Swimv4l... Creating C:\Users\ken\Documents\Arduino_Build\KCT_Swimv4l\KCT_Swimv4l.ino.cpp.o... '"avr-g++"' is not ...
1
vote
1answer
38 views

How to delegate code compilation to a remote machine?

Sometime I write Arduino code on a slow Windows laptop that I use for controlling hardware projects and 3D printing. My main Windows computer and also my Linux home server are located somewhere else ...
0
votes
1answer
27 views

How to return Char Array Value in Arduino IDE Function?

Function char* getConnectDetail(int starting){ String data; for(int i=0;i< 1024 ;i++) { if(EEPROM.read(i+starting) != 0){ data += char(EEPROM.read(i+starting)); } } int ...
0
votes
0answers
14 views

Using ESP32-CAM (with ov2640 camera image sensor) to send image via USB

I was trying to obtain image from ESP32-CAM (with ov2640 camera image sensor). I obtained the image through camera web server by connecting the ESP32-CAM and PC to same wifi network. A USB to TTL ...
0
votes
4answers
3k views

Wemos D1R2 - Onewire 2 DS18B20 passing to variable

I'm a beginer, did some tests with Uno and now have a Wemos D1R2 on my hands... I'm building a sort of weather station that will send data to thingspeak.com and log this data there. I managed to ...
-2
votes
0answers
23 views

Sugar Concentration in Beverages [duplicate]

I need to measure the amount of sugar in the wine must and send to an application, is there anything that can perform such a procedure? Note: Today the device used for this manual process is the ...
0
votes
0answers
34 views

My code can't do Cramer's rule [on hold]

I have an arduino project in which I have to submit a polynomial graph analyser by taking measurement of y at certain intervals of x. Using about n intervals of x we can get up to n - 1 degree ...
0
votes
1answer
72 views

Shock sensor is not running in the file

I have faced an issue where the shock sensor is not running in the file. My idea is that when the ultrasonic sensor sense that when it is 4cm, the garage door will open. When the car reverses, the ...
-1
votes
0answers
20 views

My code can't do Cramer's rule (Edited) [duplicate]

I have an arduino project in which I have to submit a polynomial graph analyser by taking measurement of y at certain intervals of x. Using about n intervals of x we can get up to n - 1 degree ...
2
votes
1answer
695 views

Arduino IDE and subfolders

I have a sketch with multiple source files and folders arranged like so. I've divided up the project like this to keep things clean. | \---project | project.ino | types.h | +---...
0
votes
1answer
247 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
262 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
3answers
211 views

What is the best way to connect multiple Arduinos?

In my situation, I have a map divided into multiple parts, each part could have about 20 to 100 Arduinos that they should send information from time to time to the master. How could I do this? ...
0
votes
1answer
17 views

STM32 “Blue Pill” Serial.print freezes Serial Monitor

I am having difficulties when printing any type of variable using the Serial.print(ln) command. The Serial Monitor becomes inactive after printing for approximately 7 - 15 times. I currently have ...
0
votes
2answers
357 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 ...
1
vote
1answer
630 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 ...
-2
votes
0answers
24 views

How to code Arduino so it do specific things when receive specific series of bits through rf receiver [closed]

I wanna code an arduino to do specific function, like giving output at specific pin, lets say pin1, for certain time when it receive a specific series of bits from specific pin, pin2, like 11010110. ...
0
votes
1answer
44 views

Control two stepper motors simulatenously?

I'm using Arduino Mega 2560, A4988 motor driver for 5 stepper motors. There are X1, X2, Y, Z, A axis, and if I control Y and Z at once, it works. But when I just change axis from Y&Z to X1&X2, ...
0
votes
0answers
18 views

About split string

Sorry my English is poor. I use nodemcu to get a json data. By this String alldata = client.readString(); But it turn this: HTTP/1.1 200 OK Server: nginx Date: Sat, 10 Aug 2019 04:53:16 GMT ...
1
vote
2answers
345 views

Do serial ports on Arduino UNO / Leonardo initialize differently?

What are the differences in serial communication between PC <---> Arduino UNO (ATMEGA328p) and PC <---> Arduino Leonardo (ATMEGA32u4)? I am asking because of a problem related to using these ...
-3
votes
0answers
31 views

The error a function-definition is not allowed here before '{' token is annoying

in my code it says void loop() { error a function-definition is not allowed here before '{' token I can't understand what the problem is .
1
vote
1answer
340 views

Multiple libraries were found for “WiFiClient.h” using nodemcu

I am trying to send HTTP requests from nodemcu so I started by uploading the esp8266 library but when I run the following code #include <ESP8266HTTPClient.h> #include <ESP8266WiFi.h> ...
-2
votes
0answers
33 views

Using Arduino to emulate Nintendo GameCube controller [closed]

I'm looking to use an Arduino to emulate specific button presses on a GameCube controller. I know it can be done (look up Smashbox). The library I need, written by NicoHood of Github, can be found ...
0
votes
0answers
46 views

What is the format specifier for string in arduino

I have a string formattedDate. When I am trying to give sprintf(payload,"{\"timestamp\":\"%s\",\"temperature\":%f,\"humidity\":%f}",formattedDate,t,h); Its not printing the date and time.
4
votes
2answers
2k views

Protocol options for data exchange between Arduino and ESP8266

I have a device built with an Arduino uno: Arduino software installed on an Arduino uno can be controlled via serial commands can be controlled via physical buttons and sensors on any button/sensor ...
0
votes
0answers
50 views

input from push button

I have connected three push buttons to node mcu which are working properly, but display of output on COM port is very slow. It works properly when two buttons are connected, but not when three are ...
0
votes
2answers
23 views

My push button code doesn't work properly

I'm using an OLED display connected to a push button. I am trying to get my display to show two different values independently by using the push button to switch between them. Here is a snap of my ...
-1
votes
1answer
43 views

Why is my Arduino code for running a Bluetooth controlled robot with obstacle sensor not working as it should be?

I have created a Bluetooth based smartphone controlled robot (a 4 wheel car) earlier using Arduino and an obstacle avoidance robot. Now, I wanted to combine both of them. So, I combined their ...
1
vote
1answer
47 views

How to send UDP data packet between two access point?

I am new to arduino programming and nodeMcu boards.I have two ESP8266 bards as access points and one board get some data form WiFi stations and resend that data to other access point. but the problem ...
0
votes
1answer
29 views

My device doesn't recognize my Arduino

I'm planing to use the ESP8266 to create a web server as a start. My set up is: Arduino nano- Esp8266- Logic level converter as shown in the diagram. After I connected everything my device doesn’t ...
0
votes
2answers
46 views

flash read err, 1000

I know this question has been asked multiple times but solutions giving there hasn't been working, I've got an esp32 soldered to my own designed PCB board with a UART to USB converter all that is ...
0
votes
0answers
23 views

ESP32 OTAWebUpdater only works on mobile

I'm experiencing something strange. I opened the default ESP32 example "OTAWebUpdater" in the ArduinoIDE and modified just the network part (I created a soft AP instead). The problem is, when I ...
0
votes
0answers
30 views

How to re-send UDP data packet to a esp8266 board? [duplicate]

I have several connected esp8266 boards. Lower level client boards connect to middle level esp8266 board and middle level board connects to the top level Esp8266 board (AP).When a client sends UDP ...
0
votes
0answers
22 views

Adding bootloader to Feather M0 Bluefruit LE

I want to make a custom Feather M0 Bluefruit LE. I know this means that I will have to add a bootloader to the ATSAMD21G18. I have seen that there are many useful articles in relation to adding ...
0
votes
1answer
31 views

global volatile variable not being updated in ISR

Running on atmega168p, I've got an interesting behavior I can't explain. A global volatile var that's called pos over here is not updated as it should. Once I add some code below the assignment, it ...
6
votes
4answers
40k views

Difference between print() and println()

What is the difference between print( ) and println( )? I see none when I run a code.
0
votes
1answer
2k views

SoftwareSerial data not available

Second time I'm asking the same question with no solution, let me elaborate in other way for clarity. I wrote an Arduino program which uses two serial ports, one is hardware serial port and other is ...
0
votes
2answers
29 views

serial port through Rx and Tx want work

my serial connection prints rubbish, but it systematic, so it's not just random as you see on image 1, any help would be appreciated other info: the first image of the serial monitor of COM6 is my ...
1
vote
1answer
18 views

Arduino IDE display DEBUG PORT Serial1 output

How can I display / capture Arduino IDE's Serial1 output? Can I display it using Arduino IDE or using a script in Python? This python script (courtesy of Chad G) works for the Serial: #!/usr/bin/env ...
0
votes
1answer
11 views

NodeMCU what is my esp3286 core version

How do I find out what my esp3286 core version using Arduino IDE?
1
vote
2answers
4k views

Why I'm getting this error: invalid conversion from 'const char*' to 'char' [-fpermissive]?

Why I'm getting this error? invalid conversion from 'const char*' to 'char' [-fpermissive] Here is my simple sketch: const char data = "should"; //I have also tried: //const char* data = "should"; ...
0
votes
0answers
2k views

Arduino master/slave communication using RS485

I am using Arduino Uno as a Master Device and 3 Arduino Unos as slave devices. I am sending data from each slave to master after every 3 seconds continuously, and is going to execute further logic ...
0
votes
1answer
36 views

How can I assign a variable to a function output in Arduino?

I'm trying to assign the output of my function (which adjusts a DAC output) to a variable so I can print and display it in my serial monitor. Here's the code #include <Wire.h> #include <...
0
votes
0answers
38 views

RFduino device required for RFduino hex file

So I have been working trying to measure the velocity of a string attaches using Rfduino microcontroller. I have downloaded all the library(based on https://www.youtube.com/watch?v=K0JiPQnrkHQ) and ...
0
votes
0answers
22 views

src folder in sketch structure and include library from subfolder

My Arduino/PlatformIO libraries folder libraries └── cleaner_robot └── TB6612_Dual ├── tb6612_dual.h └── tb6612_dual.cpp I used this code to innclude it: #include <...
0
votes
4answers
71 views

Arduino IDE monitor multiple USB ports simultaneously

Is it possible to monitor multiple USB ports simultaneously in Arduino IDE while running only ONE instance of the IDE? If not, which solutions come alternatively to mind?
0
votes
1answer
15 views

What is the difference between Tools > Board settings in Arduino IDE? ex: ESP32-Dev v. Huzzah32

I had a recent memory issue where the resolution was to change the Tools > Partition setting. However this setting wasn't available in the Arduino IDE for the boards I was using (Huzzah32 and NodeMCU-...