Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
30 views

Print Byte Array in Serial monitor screen of Arduino IDE

I need to print mentioned below byte array on the serial monitor screen of Arduino IDE char b[]= {'0x7E', '0x00', '0x1C','0x90', '0x00', '0x13', '0XA2', '0x00', '0x41', '0x58', '0x1C', '0xCB', '0xFF',...
0
votes
0answers
13 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 ...
0
votes
0answers
12 views

I want to connect my NodeMcu v3 to gsm

I have a problem with connecting my NodeMcu to gsm. I have bought GSM module but I have sim code on card which I can't and that is the problem because I've found some libraries but there are no ...
0
votes
1answer
26 views

RFID RC522 reads the previous tag serial with different tag

I hope someone can help me. I'm using a Mega with RC522, and this happens: I use a tag, it reads the right serial (e.g. AA:BB:CC:DD). Then I use a second tag and sometimes it gives me the correct ...
0
votes
1answer
36 views

'inet_addr_to_ipaddr' was not declared in this scope

I am using ESP32 Ping from this page: https://github.com/pbecchi/ESP32_ping It works fine on ESP32, no compiler error. Because something wrong on my PC, I did fresh install Windows 10 and Arduino ...
1
vote
0answers
90 views

integer corruption

I use a sensor to measure the temperature. This is returned as float. I feed this float using typecasting (int) to a blink function. This works fine. But the next is step is using this same unchanged ...
0
votes
0answers
16 views

No matching function for call to 'TembooChoreo::TembooChoreo()'? TembooChoreo SendSMSChoreo; Error Help

Arduino: 1.8.8 (Windows 10), Board: "Arduino/Genuino Uno" C:\Users\user\Documents\Arduino\intruderAlarmTest\intruderAlarmTest.ino: In function 'void loop()': intruderAlarmTest:46:18: error: no ...
0
votes
1answer
28 views

Error code board and boards.txt? Formatting error? cannot verify alarm.txt or any

Arduino: 1.8.8 (Windows 10), Board: "Arduino/Genuino Uno" Error reading file (E:\arduino\arduino-1.8.8\hardware\arduino\avr**\boards.txt:0**): Invalid line format, should be 'key=value' Error ...
0
votes
1answer
45 views

Split up Arduino code into multiple files using Arduino IDE

I am working on a very long code that requires multiple functions defined. I want to split the code into two files as main code ("Feeder_Control" in the screenshot) and functions ("connections" in the ...
0
votes
1answer
44 views

About Wemos D1 WiFi [on hold]

I bought the Wemos D1 WiFi and I am wondering how to operate this. So, inside the Arduino IDE, I downloaded ESP8266 boards, I see WeMos D1 mini, WeMos D1 R1, and WeMos mini Pro/Lite. Why in the world ...
0
votes
0answers
72 views

JPEG/PNG issues with ESP8266 + Spiffy

I am using a Huzzah ESP2866 with Arduino IDE. I am trying to upload images using html + Spiffy, however the broken image logo keeps appearing. The text works fine. I am using code from here: The ...
-1
votes
0answers
23 views

Can I control the speed and direction of 4 brushed dc motors with arduino uno and shield? [duplicate]

I want to use the arduino uno and the Adafruit Motor Shield v2. I'm looking for the cleanest set-up to control 4 DC brushed motors. I want to make all the motors spin CW at the same speed ...
0
votes
1answer
29 views

Can I control 4 DC Brushless motors with arduino uno and Adafruit motor shield? [duplicate]

I need to control 4 DC brushless motors. I have no experience with arduino or coding. After some research the cleanest setup seems to be using the Adafruit motor shield, however the motors I'm using ...
0
votes
0answers
33 views

ESP12F module not working as an access point

I have an ESP12F WiFi module and I need it to work in access point mode. I burned the example code to it using Arduino IDE and it worked at first. I could connect to the WiFi provided by it using my ...
0
votes
1answer
32 views

Question on how “f” value is calculated in converting Morse Code to laser audio from this tutorial

I am working on this tutorial, https://www.hackster.io/SURYATEJA/morse-code-communication-using-laser-module-both-ea1b01 and the author created a "Send" and "Receive" code for encoding and decoding ...
0
votes
1answer
33 views

strcat char concatenation trouble

Still don't understand about char concatenation. void setup() { testCounter(3); } void loop() { // put your main code here, to run repeatedly: } char testCounter(int countx){ char a[10]; ...
2
votes
1answer
28 views

How to upload Arduino C code to mBot?

I am trying to program mBot using Arduino IDE. I am connected to the mBot using USB on COM7, I am able to upload a code created in mBlock 3.4.11 fine, using "Arduino Mode" as the editing mode. I would ...
0
votes
1answer
44 views

Arduino Uno: avrdude: stk500_recv(): programmer is not responding

I have an original Arduino Uno board purchased directly from the official arduino website. I have used it successfully with IDE v1.8.5 on my Windows 10 laptop for various projects in the last 6 months....
0
votes
0answers
27 views

NodeMCU with digital sound sensor - Can't find examples or good documentation

I'm very new to this world, and trying to hack one of my first projects have proven hard without solid documentation or examples to copy like I usually do. I've got a https://www.gearbest.com/...
0
votes
3answers
55 views

How to connect multiple I2C devices?

I am trying connecting I2C OLED SSD1306 and I2C INA219 on ESP32 but without success. First try: #include <WiFi.h> #include <Wire.h> #include <Adafruit_GFX.h> #include <...
0
votes
2answers
31 views

Accessing multiplexed I2C and UART pins of STM32F103 in arduino IDE

I want to access both of the multiplexed I2C and UART pins in the same program. I am programming in Arduino IDE.Can anyone please tell me how to access same pins for different functionalities?
0
votes
0answers
18 views

Checking/accessing Serial prevents clean upload of sketch via bluetooth?

I'm deploying some DIY home automation devices, built around a 3.3v pro mini, a HC-10 module, and a relay board. The arduino is able to be programmed over the bluetooth module, so once it's in the ...
0
votes
0answers
44 views

problem data I2C to sensor GY955/BNO055 (China)

I want to ask, I have a problem when running the Arduino sensor, I can't output data, but it's detecting that the sensor address has been paired. Like I2C has a problem or locks it. Last night it ...
0
votes
2answers
25 views

Software serial conflict with WiFi on ESP8266

I'm trying to use an ESP8266 (Wemos D1 mini) to read from a 19.2K serial port and report the results over WiFi. Programming is via Arduino IDE. The code to read the port works just fine if WiFi is not ...
0
votes
0answers
28 views

Installing ESP 32 in Arduino IDE

What to do if in Arduino IDE boards manager, installation is stuck at "Downloading tools (3/3). Downloaded 38,190kb of 125,719kb." when installing ESP32 on Arduino IDE? I have not connected the ESP32 ...
2
votes
3answers
77 views

Value of uninitialized EEPROM in ESP8266?

In my limited testing it appears that the EEPROM in the Wemos D1 is not initialized to 255 like the specs say is the case for AtMega based Arduinos. In fact, the values look to be more-or-less random. ...
0
votes
2answers
96 views

Invalid conversion from 'const char' to 'uint8_t*' [closed]

I am just a newbie, don't know how to solve this issue void loop() { UdpSend("Test", "192.168.0.240", 4210); } void UdpSend(const char* message, uint8_t * ipaddress, int port){ Serial....
0
votes
0answers
40 views

Check for correct board in code [duplicate]

I am using a lot of different boards(uno, teensy, nano, esp8266, esp32) with the Arduino IDE. Quite often I forget to change it, which causes problems and sometimes even bricked devices. Is it ...
-1
votes
0answers
20 views

ESP-01 shows fatal exception or gibberish when AT commands are given

I'm using esp-01 for an home automation project. After a lot of trouble I was able to flash the AT firmware. Still, when I type AT commands in the serial monitor, I get the following errors fatal ...
0
votes
1answer
48 views

String and heap confusion

I hope you all well. Recently after view unknown crashes I decided it can be related with me messing with "heap" After reading few sources on heaps and how it works it kind of confusing. Some ...
1
vote
0answers
42 views

HTTPS POST method fails in esp32

I was trying to connect with server but, I was unable to post the data. I have added the SSL key to connect with server that is happening but HTTPS POST is not. I tried the same method with http, I am ...
0
votes
1answer
36 views

Taking String Input from NodeMCU Webpage and Printing it on Serial Monitor

I've started working with NodeMCU recently. I've very little knowledge about this device and how a website works. I'm trying to take a long string input from a website hosted by NodeMCU, store it on a ...
1
vote
1answer
167 views

Equivalent of millis() in Atmel studio

This code It works in atmel studio.But this millis function is starting to run 31-34 miliseconds behind of arduino millis fuction.Why?I am adding picture. Picture: https://imageshack.com/a/img922/...
1
vote
1answer
76 views

Get ESP32 Chip ID into a string variable (Arduino/C++ newbie here)

It's just a few days since I started using Arduino IDE ( programming an ESP32 ). As I learn, I am trying to write some snippets. I wanted to store the Chip ID of ESP32 into a variable (preferably ...
0
votes
1answer
56 views

Converting hexadecimal string to floating point value

I am reading data from an energy meter over modbus protocol and I am getting hex values from there. I want to convert that hex string to floating point value. For example - 0x416f0000 denotes a value ...
0
votes
1answer
28 views

Setting Fuse Bits From Arduino IDE?

I've come to understand fuse bits in the last few weeks. I'm working on a bitbanging project on an Arduino Pro Micro, and the signals I'm working with are around 30uS each. For this reason, I think I'...
0
votes
2answers
40 views

threshold voltage level and blinking problem

I am using arduino pro mini 3.3 V,8 Mhz.vcc of the this arduino is coming from AC-DC converter with regulator 3.3 volt.I am listening analog data from voltage divider approximately 250 milivolts. I ...
2
votes
3answers
151 views

Control I2C relay board from two Arduino Uno

how can I make multi master Arduino device to work with single I2C device? As both the master device are 20 m away from Slave device, I am using the I2C relay board to connect with 2 Arduino boards ...
0
votes
3answers
41 views

Defining array in switch case

I’m completely new to arduino, so be polite. I’m trying to program my esp32 to drive neopixels as seven segment display. So I take a digit and pass it to switch case and in switch case I mention which ...
0
votes
2answers
29 views

how to compile arduino sketch from termnial without using arduino ide

I want to know how can I compile and upload the arduino sketch from my terminal instead of using Arduino IDE. I want to use a different IDE for writing code.
-1
votes
1answer
24 views

Can I operate an arduino that has a file uploaded on it, without having the file myself?

I've been a massive idiot and accidentally deleted the sketch I need for a project at university, and I didn't create any backups. The sketch is already uploaded into the arduino, which operates using ...
0
votes
1answer
111 views

SD Card Read/Write Arduino Mega Fail

I have an Arduino Mega 2560 where I have used a MicroSD Card Module to Read/Write Data on the Micro SD Card. I have tried using the Example in the Arduino IDE but the data is not being written or read ...
0
votes
1answer
71 views

Why do I get “ stray '#' in program ” error?

I am making an Arduino program with SIM800L module and would like to check credit status of the SIM card. When I manually enter the command: AT+CUSD=1,"*123#" into Serial Monitor, it works fine. But ...
4
votes
2answers
301 views

How are errors (not related to syntax) managed in arduino and in the AVR architecture in general?

I was just curious about how the AVR architecture manages errors that would cause a regular desktop program to crash. I'm talking about logical errors for example math problems that are undefined. ...
0
votes
1answer
46 views

How can I concatenate these two values as a string?

I've tried all the supposed solutions for the exact error, pasted into google, that I could find on every forum including this one and no matter the alleged solution I will either get the error about ...
0
votes
2answers
63 views

could not convert 'digitalWrite(8u, 1u)' from 'void' to 'bool'

I am trying to make some LED lights to turn on when i flick a switch on my RC crontroller. I will connect the signal wire from RC controller to pin 8. The plan is: if i flick the swich, the LED's (pin ...
0
votes
1answer
53 views

Fail programing a Sonoff Dual with Arduino IDE

1) I have a Sonoff Dual, which I wish to upload a Sketch. 2) Other Sonoff basic devices programed the same way, with succes. But when uploading the sketch the ( even the generic Blink sketch ) - I ...
0
votes
0answers
18 views

TinyGPS++ isn't being updated or SoftwareSerial isn't reading

I'm trying to read the GPS data on an Arduino Uno from a Neo-6M module and print it on a LCD display. However, no variable is being changed by the read function. This could either be because of an ...
0
votes
0answers
17 views

Arduino Ethernet shield not connecting

Im trying to connect my Arduino Mega 2560 to my ethernet shield generic HanRun HR911105A, however im having some troubles, im runing the ethernet example that comes with arduino IDE. I give arduino ...
0
votes
1answer
91 views

How to use a precompiled library in a project with Arduino-IDE

I'm discovering the Arduino development and after quite some googling, I can't find an answer to the following question. I'd like to distribute some code as mylib.h + precompiled mylib.o (this will ...