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
-1
votes
2answers
33 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
16 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
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
50 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
24 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
1answer
16 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
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
19 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
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
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
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
87 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
47 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 (...
0
votes
0answers
37 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 ...
1
vote
1answer
17 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
41 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
38 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
96 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
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(...
0
votes
1answer
21 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 ...
1
vote
1answer
44 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 ...
-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
20 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 ...
0
votes
0answers
12 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 ...
5
votes
2answers
57 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 ...
1
vote
0answers
30 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
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
votes
1answer
59 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 ...
-3
votes
1answer
76 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
69 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
42 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
20 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 ...
0
votes
3answers
89 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. // ...
0
votes
0answers
104 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
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 ...
0
votes
0answers
20 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
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
35 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 ...
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
2answers
132 views

Yet another basic and silly question about C++ strings

I made a sketch like this: void setup() { // put your setup code here, to run once: Serial.begin(9600); char str1[64] = "test with spaces"; char str2[32] = "test with spaces"; Serial....
0
votes
2answers
47 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
0answers
37 views

WDT Reset with PubSubClient library for esp8266

I am using ESP8266 with arduino and PubSubClient library. With this library on esp8266, i can see esp8266 is resetting due to Watchdog reset. After google search get to know this is known issue. I was ...
0
votes
1answer
33 views

test for wrong wifi password?

maybe this is a dumb question, but is there a way to test for wrong wifi password, I know you can do WL_CONNECT to check if the password works, but is there a command for checking if the password is ...
0
votes
0answers
28 views

Can't get display to show on TinyScreen and TinyDuino

I should preface this by saying i am completely new to this. so i downloaded arduino and all the neccesary drivers. i tried out the blink example and it worked. then i tried to run this code. #define ...