People who code: we want your input. Take the Survey

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
2answers
2k views

Use command line to upload program through hex file to Teensy-LC

I want to make a standalone programmer for Teensy-LC in windows 8.1. So basically I have provided the board to a client of mine and now I want to change the program loaded into the Teensy-LC board. ...
0
votes
1answer
7k views

Atmel studio 7 - my own libraries

I like to use AS7 to make my programs. I know c and some c++, but how things work from there I'm green. I would like to know if there is a folder where I can store my own homemade c and h library ...
0
votes
3answers
281 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 ...
0
votes
4answers
324 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
1k views

How would i capture and split serial data?

How would i capture the following serial data, and split it into parts? <Alarm,MPos:0.000,0.000,0.000,WPos:0.000,0.000,0.000> the parts i need from this is Alarm - This is a state. i.e Alarm, ...
9
votes
7answers
10k views

ERROR: Timed out waiting for Arduino 101 - anything I can do?

I just received an Arduino 101 so I did the following in a wave of excitement... Connected the USB cable between it and my Macbook Pro Started the Arduino IDE version 1.6.7 Wrote a little bit of code ...
8
votes
3answers
6k views

Can I use arduino's 3.3 V output directly to esp8266?

I just bought esp8266 and ftdi usb driver, I want to power the esp8266 with Arduino's 3.3 V output, is that possible? I saw some tutorial on youtube in that they are suggesting us to use 3.3v ...
7
votes
1answer
9k views

Can I change font Color and/or Type for IDE 1.5.6r2?

The program becomes harder to read (at least on my particular monitor) after upgrading. Any way to change font Color to darker color and/or Type to thicker stroke (like B in this question editor) ...
4
votes
1answer
2k 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 | +---...
3
votes
2answers
313 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 ...
3
votes
1answer
227 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 ...
3
votes
3answers
876 views

upload.tool not used in custom boards.txt?

I've created a custom board in boards.txt and changed the upload.tool to a nonsense value, and yet when I do an upload the IDE still calls avrdude. For example, In boards.txt I've changed the line... ...
3
votes
2answers
8k views

Exception Handling with the Arduino IDE

I'm using a port of the STL found here and trying to debug with a simple try{...}catch{...} loop. When compiling with the Arduino IDE, I get the error message exception handling disabled, use -...
3
votes
1answer
827 views

How to add the -F switch for avrdude in Arduino IDE

So, before starting to learn with something else, I'll give it one last try. The avrdude is complaining that the device signature doesn't match. Whatever, I don't care. To me, what's written on it is ...
2
votes
8answers
21k views

Getting “avrdude:stk500_recv(): programmer is not responding” while uploading sketch to Arduino Pro Mini

I recently bought an Arduino Pro Mini(3.3V 328p, 8MHz) along with a CP2102 USB to TTL UART convertor. When I try to upload a sketch to the Pro Mini using it, I get a avrdude:stk500_recv(): programmer ...
2
votes
1answer
2k views

Vcc measurement with internal 1.1V reference fails on 3.3V powered Atmega328

I need to monitor a battery plugged to an ATmega running on standalone mode. I use the "ATmega on a breadboard (8 MHz internal clock)" bootloader. More info here When the ATmega is powered with 5V ...
2
votes
1answer
75 views

Arduino Due custom platform for school and library installation

I have made a custom-development hardware for our school, where you can plug in an Arduino Due. It is mainly for driving all kind of motors and reading sensor signals. Therefore I added a custom SAM ...
2
votes
0answers
86 views

How to program for two Arduinos with different code but share one same .h? [duplicate]

I am now programming for two Arduinos. One is used as Tx and the other is Rx. Of course they are programmed by different codes, but they share some same .h files I programmed(let's say 'share.h'), ...
2
votes
3answers
300 views

Arduino Debounce Sketch

I want to use 4 Push Buttons and 4 leds in my project. What do I need to change in my sketch for multiple input push buttons and multiple outputs of leds? So my sketch is only for one push button and ...
2
votes
2answers
2k views

Most memory efficient way to program

I currently know 3 ways to do a program. Which one of them is the most memory friendly. Note that the example code is simple (blinking a led) and the final code will be VERY VERY complex. Also, the ...
2
votes
1answer
957 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 ...
2
votes
1answer
3k views

How to transmit string data using the rc-switch library?

I am using the rc-switch library for sending and receiving data. In rcswitch library, there is no method to send string data. I am using below method to send the string message in char buffer. ...
2
votes
2answers
3k views

Installing Arduino IDE on Linux

I downloaded arduino-1.8.4-linux32.tar.xz and ran install.sh as outlined (the very sketchy instructions) in https://www.arduino.cc/en/Guide/Linux This seemed to work OK, so I removed 354M of what I ...
1
vote
0answers
760 views

Set EEPROM to initial values when flashing ESP8266

I have a variable uint8_t a_ram which needs to be initialized from the EEPROM variable a_eeprom when the ESP boots up. Whenever a_ram changes, the new value has to be stored to the EEPROM (a_eeprom), ...
1
vote
1answer
144 views

Programming custom Arduino Mega with Arduino Uno

I'm making a custom board with AtMega2560-16AU as MCU and CH340G as bootloader (schematic can be seen in the picture). I have printed the custom PCB and soldered everything in place now I want to ...
1
vote
1answer
2k views

Can the Arduino (Nano) bootloader be updated via itself and the Arduino IDE or is an ISP required?

I ran into the following error with a recent Arduino IDE version (1.8.9) when trying to upload to an "Arduino Nano" clone (ATmega328P): avrdude: stk500_recv(): programmer is not responding avrdude: ...
1
vote
1answer
5k views

What is the use of reserved pins and SDD2, SDD3 pins of the NodeMCU?

How to use the reserved pins on the NODEMCU? What is their use? Also what is the use of SDD pins? Thanks.
1
vote
1answer
64 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 ...
1
vote
1answer
318 views

Uploading Error: no programmer has been specified

Whenever I upload a code I get this error: avrdude: no programmer has been specified on the command line or the config file Specify a programmer using the -c option and try again I am able ...
1
vote
2answers
7k views

Problems uploading sketch to Arduino Due

Windows 7 here. I just bought an Arduino Due and downloaded the Arduino IDE. I wrote a simple "blink LED" program (see below) and am trying to flash it to the Due. When I connected the Due to my ...
1
vote
2answers
509 views

Compiling sketch vi command line

Since I don't like the text editor of the Arduino IDE, I decided to write a python script that I can invoke from my text editor to compile and upload my source. I program the popular esp8266 chip. So ...
1
vote
1answer
487 views

Capturing avrdude command in IDE

With verbose upload selected the IDE provides the executed avrdude command at the top of the log. I am interested in copy pasting that avrdude command. However at the end of the upload the command is ...
1
vote
1answer
128 views

Arduino IDE, Underlying Code and Libraries

I'm trying to better understand what is going on behind the Arduino IDE. First off I am no expert in C or writing firmware to boards but do have experience in real development. I see currently the ...
1
vote
1answer
535 views

Sublime Text Compilation Issue

I've tried searching for this issue but came up empty. Due to the desire to use a better IDE, I installed Sublime Text 3 and Stino. I have installed the Stino package and now have the Arduino menu ...
1
vote
1answer
2k views

Including libraries from header files sometimes doesn't work

I, once again have difficulties including libraries from code files other than my .ino file. I have several .cpp and .h files in my project to keep it sorted and clean. However one of my header ...
1
vote
3answers
581 views

Not able to get response from esp using Arduino uno

I am new to Arduino & ESP modules, here am trying to communicate with ESP-01 via Arduino UNO. I have gone through multiple websites for initial setup. But when i upload my code to UNO, ESP is not ...
1
vote
1answer
7k views

How to reduce serial speed on Arduino bootloader (optiboot) and on the IDE?

I'm debugging a couple of RS232-to-TTL converter boards that I'm trying to use to program my Arduinos and one thing I would like to try would be to reduce the upload serial speed from 115200 to 19200. ...
1
vote
1answer
4k views

How to use ESP8266 Pin D3 / GPIO 0 and D8 / GPIO 15 properly

I am using WeMos D1 Mini Pro to control multiple relays. I found out that during start up the relay connected to pin D3 and D8 would switch between on and off a couple times in a very short interval. ...
1
vote
3answers
892 views

How can I use my Arduino sketches on my Raspberry Pi IDE?

I have installed the Arduino IDE 2:1.0.5 on my Raspberry Pi3 under Raspbian and am using a cobbler breakout which provides a nice breadboard. On that breadboard I have installed an Arduino Nano to do ...
0
votes
2answers
338 views

How come the console prints error `avrdude: usbdev_open(): did not find any USB device “usb”`?

How come when I try to push a sketch to my Arduino I see this error on the console? The subsequent sketch does not work. avrdude: usbdev_open(): did not find any USB device "usb" I've already ...
0
votes
1answer
2k views

Esp8266 V12 Wiring

I have tried a Google search and cannot find any place that tells me exactly how to wire the version 12 esp8266 , How should it be wired for normal operation and for flashing ? I am designing a diy ...
0
votes
1answer
488 views

Arduino IDE says fcould not convert 'pinMode(buttons[((inti)], 0u)' from 'void' to 'bool'. How do I fix

Alright, so this code is for a game that is a power source connected to 6 buttons at ports 1, 2, 9, 11, 12, and 13. These are consequently supposed to light up 6 LEDs, each connected to 1. If you ...
0
votes
1answer
293 views

How to compile and upload the specific (.cpp + .h) code?

I have a specific arduino code (no .ino files) https://github.com/justintconroy/MdbBillValidator , which can't be opened by arduino IDE. How can I make & upload this code? I have an arduino 2560 ...
0
votes
1answer
81 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
2answers
149 views

How to find the deferenced value of a transmit Port Register?

So I am working with the SoftwareSerial library. I'm looking at the write function and I see a *reg value being manipulate. I want to find the value of *reg so I traced the value by stepping into each ...
0
votes
1answer
199 views

RGB LED color control with a single value

Apps like Photoshop have a single slider to select color: . I'd like to achieve the same using variable resistance knob as a slider to control color of RGB LED. Can anyone put me on the right track ...
0
votes
3answers
901 views

ESP8266 not responding after random intervals of time

4th Update: I bought an ESP32 (the successor to ESP8266) and am getting the same problem. I used the same code except used the Wifi.h library instead, also removed the ESP8266WiFiGratuitous.h code. I ...
0
votes
1answer
223 views

What changes I have to take care while coding from Atmel Studio instead of Arduino IDE?

-Are there any changes in Bootloader? -Why is the coding different for same chip in different softwares? -How to upload the program from Atmel Studio?
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
2answers
4k views

Arduino not working / not uploading [duplicate]

Could anybody please help me with my problem? My Arduino doesn't work correctly. I was between a project, and suddenly it started acting weird. First, it started taking about 4 minutes to compile and ...