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
29 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 (...
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
157 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
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 ...
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 ...
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
599 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
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
39 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 ...
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 ...
-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
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(...
-1
votes
1answer
257 views

NodeMCU Ping working on one but not another

Update 2: Have tested by pinging various devices on different subnets / vlans and did a pcap on the wifi AP I can see the icmp requests going through for each request except for ones on the 4.x subnet,...
-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 ...
12
votes
4answers
48k views

Program an ATMega328P and use it without Arduino board

I'd like to use an ATMega328P for my project, I hope to do it without the Arduino board. I know with the Arduino IDE and an Arduino board I can program the microcontroller. However, would it be ...
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 ...
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 ...
3
votes
3answers
24k views

Only 2 decimal places in printed float

There was a similar thread before but it didn't solve my problem. I had an issue with sending GPS data, which is float, and I couldn't receive the float with the same amount of significant figures as ...
0
votes
2answers
65 views

How can I rewrite Arduino Code using SPI library into C++?

The issue is that I have code using an Arduino library and need to convert it into C++ so I can use it with a raspberry pi on ROS (Robot operating system). Does anyone know the best way to change it ...
0
votes
1answer
183 views

How do I order the gcc compiler to generate -S flag in Arduino IDE

How can I set the Arduido IDE to generate the -S flag to gcc to see the machine code in Arduino? (the sketches)
1
vote
1answer
317 views

How do I make Arduino IDE use a specific version of GCC in Debian?

Using Raspbian Stretch. I installed gcc-4.9 with specified version. Then I installed arduino (2.1.0.5) which in turn pulled gcc 4.6. When I try to compile Marlin in it, it says Marlin requires C++...
0
votes
1answer
117 views

Arduino IDE can't program my Arduino Pro Micro

I have a lot of Arduino Pro Micros that I can't program through the Arduino IDE. I'm on Windows. I'm using the SparkFun Pro Micro board information downloaded from SparkFun's website. I've tried ...
-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 ...
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
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
55 views

Is changing values in boards.txt and choosing Burn Bootloader enough to write fuses?

I am using Arduino IDE to program ATtiny84A connected to an Arduino Uno and Programmer set to Arduino as ISP. I would like to modify low and high fuse bits for ATtiny84A. As far I do not understand ...
-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 ...
2
votes
1answer
122 views

Weird Arduino Code Problem

I'm currently getting started with Arduino, so I do not have very much knowledge. In this project I have a receiver and a transmitter with 2 buttons. So, I'd like to switch something to on, when I ...
0
votes
1answer
3k views

Arduino IDE: Board nodemcuv2 (platform esp8266, package esp8266) is unknown

I am receiving this error after reinstalling Arduino IDE (everything was working fine [same components, same code]): Board nodemcuv2 (platform esp8266, package esp8266) is unknown I have recently ...
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
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
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
3answers
44 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. // ...
2
votes
2answers
2k 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> ...
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 ...
-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
1answer
36 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
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
2answers
184 views

Include in different file make different compiling error

I'm have problem compiling a code. ardutest.ino: #include "mylib.h" #include <SD.h> void setup() { } void loop() { fn(); } mylib.h: #ifndef mylib_h #define mylib_h #include "Arduino.h" ...
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 ...