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
vote
1answer
180 views

What can I do to optimise this code?

I have optimised it as much as I feel I can and want to know what suggestions you have that could make it more efficient etc. Note: I know the array goes on forever :) volatile uint16_t IRCode[]={340,...
2
votes
0answers
26 views

Brushless motor vibration/jitter/noise - arduino uno

I am currently using these motors and driving them off these drivers and an arduino uno, and alternatively trying to make them turn using the setup in step 6 (both with l298n and without) in this ...
1
vote
1answer
73 views

How can I program 2 ultrasonic sensor, one on the servo motor and one attached on the front side of the car?

I want to attach two ultrasonic sensors to an obstacle to avoiding the car. One on the front of the car Second on the servo motor on the car It is an obstacle avoidance Project. I am getting the ...
2
votes
0answers
40 views

Clock Problem when Migrating from Arduino IDE Mighty Core to Atmel Studio

I've been programming an ATMega1284 using the Arduino IDE with the MightyCore package. I'm now trying to migrate to Atmel Studio. Atmel Studio (7.0) will now compile the sketch and all required ...
1
vote
0answers
52 views

Arduino 2 times slower? Broken?

Hello I have been here for a couple hours troubleshooting code and turns out it wasn't even my code that was the problem. My arduino uno is like 2 times slower than what its supposed to be. If I blink ...
0
votes
1answer
81 views

Infrared Low Frequency Transmission

I have some basic code that I will soon expand for my project which is a universal remote for air conditioners. I have all of the codes but the problem is 3 of the codes are below 1khz. (500hz). My ...
0
votes
0answers
134 views

How to add additional include path (e.g. as a flag) to Arduino Compiler?

I have been trying for a while to add an additional include path to Arduino compiler (in VS-Code) to be able to compile my project that has header and source files distributed in different levels of ...
0
votes
1answer
44 views

Wide range of protocols one chip?

Is there some way to do raw radio on a esp32 and change frequencies. If not what would I need to transmit rf, wifi, bluetooth, zigbee etc. There seems to be no tutorials on how to do anything of the ...
0
votes
1answer
266 views

No SPIFFS only OTA in NodeMCU ESP8266

I have a NodeMCU ESP8266 ESP-12E and I tried uploading a file thru the SPIFFS. I am not sure why I see OTA instead of the SPIFFS? Is there a configuration that I missed?
2
votes
0answers
61 views

Communication between two slaves via single SPI bus

I am trying to control both RC522 and lcd st7920 (128x64) via a single SPI bus on the NodeMCU esp8266. I am using Arduino core for my esp8266. Now in this portion of the code, I only want to display ...
1
vote
1answer
76 views

ESP-NOW with esp32 and esp8266

I want to use ESP-NOW with esp32 and esp8266. The esp32 will mostly send data to esp8266.I was not able to find any good tutorial on YouTube to achieve this. The only videos I found was for either ...
1
vote
0answers
193 views

Can't upload sketches or flash Nodemcu 1.0 12E (CP2102) but have drivers and responds to RST on Serial monitor

I've been trying to get my nodemcu working for months and tried countless online references but none worked. I'm using the Arduino IDE to upload sketches and always get the error "Timed out ...
2
votes
1answer
93 views

Set control register to low in ds3231 rtc

I have been using ds3231 rtc module for keep tracking and make alarm along with backup battery. when I used it for first time it worked fine. but now it doesn't keep track my time when the power lose ...
0
votes
2answers
508 views

Is 1MB flash enough for OTA upload in ESP-01?

I'am asking this question, because in my ESP-01 OTA upload always fail. In fact update won't even start. When update was triggered esp wifi led(build in blue) indicates "working" , but after ...
1
vote
1answer
63 views

Error message - Need help

I found this Haptic Headband project on YouTube (link below) and I am trying to verify the code that was given in the instructions with the Arduino IDE. However, I keep getting the message below and ...
0
votes
0answers
135 views

Simple wifi scan networks doesn't work on ESP-01

I can't figure out why, but my very simple wifi scan code doesn't work on two pieces of ESP-01. At first I thought, about bad or burn out MCU, but none of my two ESP-01 and can not find nearby wifi. ...
0
votes
2answers
54 views

Can't understand this codes process

void loop() { if ( Serial.available() > 0 ) { static char input[inputLength]; static uint16_t i; char c = Serial.read(); if ( c != '\n') input[i++] = c; ...
1
vote
0answers
40 views

Error compiling to ESP32 using Arduino: Operand 2 of 'l32r' has out of range value

I was trying to follow this tutorial and ran into a problem compiling on the Arduino IDE with an ESP32 board. https://eloquentarduino.github.io/2019/12/how-to-do-gesture-identification-on-arduino/ I ...
1
vote
1answer
248 views

NodeMcu 1.0 resets automatically after sometime

I want to show some digits in a 3x3 p10 red led pannel where the number will come from the cloud and the number keeps updating. For this I have used esp8266 based Nodemcu. I have used WiFi Manager ...
3
votes
2answers
289 views

Can Arduino Sketch be used for production

There are lot of device support with the help of Boards Manager today and is on going in Arduino IDE. So I am curious to know about can one use those for production purpose. Or it is recommended for ...
1
vote
0answers
25 views

RFMesh (NRF24) for STM32F1

I wanted to know the RFMesh library available for Arduino Uno can be used for STM32F1? Will it work? Or they have seperate set of library for STM32
3
votes
1answer
208 views

ESP8266 always resetting after 65 second of running

I have a simple code where ESP8266 is asking MySQL database about actual state of LED (whether 1 or 0) and when DB has 1 ESP8266 turns LED on... But my problem is after 65-66 seconds of server running ...
1
vote
1answer
201 views

TinyGPS++ Question about gps.encode(ss.read())

I am trying to make an oled gps display, however when looking at multiple examples and other people's code, I am seeing that people are using different methods. I see some code that has gps.encode(ss....
2
votes
2answers
96 views

Smallest microcontroller?

I am looking for a microcontroller that is small (like a attiny10) which is the smallest one I could find. Requirements I need: analogRead on 1 pin, 7 pins for analogWrite to micro leds so in total 10 ...
1
vote
1answer
92 views

My code is not uploading to Arduino Uno, Please help!

I am very new to arduino, so new that it is my first board. I keep running into this error avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 6 of 10: not in sync:...
-3
votes
1answer
78 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 ...
0
votes
1answer
62 views

Infrared sending not working slight misconfiguration?

Edit: Took some advice from below but it still doesn't work. I think it probably blocking code but please tell me how I could fix it to send a the valid infrared signal, NOTE: I wouldn't actually code ...
1
vote
0answers
32 views

Can't send Twilio SMS using Nodemcu esp8266

I am using Twilio for sending SMS in my project. I am measuring temperatures and if the temperature is too high, an SMS is sent. In my code I also have a read and a push to Firebase Realtime Database. ...
0
votes
0answers
239 views

Configure Arduino Portable IDE

I am following this page (among others similar) about creating a portable Arduino IDE. Though the steps are declared as easy... Downloading the v.1.8.13 Windows ZIP file for non admin install, ...
0
votes
0answers
55 views

I can't see any readings from my pulsesensor what can I do?

I have been using NodeMcu board for my project with a pulse sensor, DH11 sensor, and temperature sensor. Everything has worked well in spite of the pulse sensor. It doesn't show any readings that ...
3
votes
2answers
2k views

Convert Hex to Decimal from signed 2's complement

I am reading data from a meter over dlms protocol and I am getting hex values from there. I want to convert that hex string to signed decimal value. For example - ff9d denotes a value of -99 [...
0
votes
3answers
65 views

ATMega328 functions, but will not output to any pins

Problem: ATMega328 Refuses to digitalWrite() to any pins, I can upload and run sketches using the board UNO from the ide on the 328 and can confirm it is working using the serial monitor (see code). I ...
3
votes
2answers
4k views

No programmers available for this board - Programming ESP32 Cam with Ardunio IDE

This is my first time working with ESP32 Cam boards. I have followed the instructions as given in this site https://technoreview85.com/how-to-program-esp-32-cam-using-arduino-uno-board/ However my IDE ...
0
votes
1answer
59 views

How to capture the compilaton output to a text file in Windows?

I am trying to capture the verbose output of the compilation to get it into a text file. I am using the IDE 1.8.12 running on Windows 10. I have tried looking for a right mouse button context menu, ...
1
vote
0answers
49 views

ESP8266 NodeMCU running out of heap

I'm trying to create SMS alarm using Twilio, Firebase and Arduino IDE. Using sensors I am measuring the temperature. If the temperature is higher than a specified value (ESP reads that value from ...
1
vote
1answer
280 views

How to upload a sketch to an atmega328 via FTDI FT232RL UART and Arduino IDE?

I have a sparkfun AVR Pocket Programmer and have burned the bootloader and uploaded programs using "upload using programmer" via USBtinyISP. It works fantastic. I have a sparkfun FTDI Basic (...
1
vote
0answers
45 views

Esp 32 keeps disconnecting from com port

I was trying to upload a blinking coding that was in Arduino IDE but the Arduino IDE can not detect my Esp32 but when i press "EN" i manage to get connection but when i letgo the esp32 ...
1
vote
1answer
107 views

Problem with programming digispark ATtiny85 board with Arduino IDE

I have bought a Digispark ATtiny85 board to learn about that microcontroller. So I tried using internal register names in the code rather than using Arduino in built functions. I can get the board to ...
1
vote
0answers
11 views

which kind of data are store If i terminate the call in sim800?

I'm working in SIM800 for DTMF based project. I want to know which kind of data are stored in the buffer during termination of call in SIM800. How to find if call was disconnected in SIM800? Also ...
0
votes
0answers
141 views

Error compiling for board Arduino Mega or Mega 2560

#include <Servo.h> // Include Servo Library #include <NewPing.h> // Include Newping Library #include<SoftwareSerial.h> #include <dht.h> //Include the DHT library ...
-2
votes
1answer
66 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
77 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 ...
1
vote
2answers
93 views

Is there a way to get about a 10ns Timer resolution from an AVR CPU?

I have an 8Mhz ATM32u4 that is able to read external pulse inputs at 125ns ticks using InputCapture3 (PC7) on its 16-bit timer. Is there a magical way (bitbanging?) to get around 10ns tick resolution ...
1
vote
1answer
59 views

Input Capture with Sleep Enabled on ATM32u4 board only works every second reading in SLEEP mode

In short: I have an Input Capture code and a Power-Saving code combined into one program. Both are adapted from Nick Gammon's examples that work fine independently. When I combined them into one ...
2
votes
1answer
710 views

Need help: Cast from 'char*' to 'uint8_t {aka unsigned char}' loses precision [-fpermissive]

I'm trying to convert the string that I receive from the Websocket to uint8_t that I can copy to the data bytes of CAN protocol frame. I'm using an ESP32 chip and programming it on an Arduino IDE. The ...
1
vote
2answers
48 views

Help me for interfacing Arduino with AMTP32M VOICE IC

i'm trying to get control an Aplus chip aMTP32M (stores audio samples) with Arduino . this amtp32m ic provide CPU SERIAL MODE its come with DATA and CLOCK pin.i try Spi mode with Amtp32m ic but its ...
2
votes
1answer
57 views

FastLED not performing as expected

I'm fairly new to working and programming with arduinos. The project I am working on is a digital clock which uses a string of WS2812 leds to light up the correct numbers. Each digit consists of 7 ...
1
vote
0answers
82 views

Serial Monitor Not Displaying

I am using BMP 280 for an altimeter to measure the altitude. Once all connected and uploaded the BMP280test code from Adafruit, the serial monitor says busy. But still, when I switch the port in tools,...
0
votes
1answer
81 views

Trouble programming custom ATMEGA2560 board

I need some help. I copied the heart of MEGA2560 design into a new project. I have the new PCBs with blank MCUs and now I need to get things programmed. (I have an existing project that runs on a ...
1
vote
0answers
73 views

Unable to allocate memory

I'm trying to send a SMS and read data from Firebase with my NodeMCU Amica V2. The code works fine when I either only send a SMS or only read data from Firebase. However, when I combine this two ...

1 2
3
4 5
29