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
2
votes
1answer
2k 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
1answer
1k 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 | +---...
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
8answers
20k 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
1k 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 ...
1
vote
1answer
50 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 ...
1
vote
2answers
630 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 ...
1
vote
1answer
504 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
101 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
121 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
2answers
2k 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
3answers
226 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 ...
1
vote
2answers
6k 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
1answer
6k 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
0answers
586 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
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 ...
0
votes
1answer
279 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 ...
0
votes
1answer
1k views

MQTT not working on ESP8266 (Nodemcu 0.9)

I'm trying to use NodeMCU on my ESP8266 (NodeMCU 0.9) but the board keep crashing and I don't understand why. I tested the mqtt broker using command line and it works perfectly, so I can suppose that ...
0
votes
2answers
195 views

Are lambdas a good way to improve readability in this instance?

Disclaimer: The following code hasn't been compiled, and probably won't work in any way. This is just for opinions relating to this Arduino question as I'm still learning and experimenting with ...
0
votes
1answer
456 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
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
3answers
452 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 ...
0
votes
2answers
271 views

Programming other Atmel chips(excluding Atmega 328 and 168)

How can we program any other chips of Atmel using Arduino Nano as a Arduino ISP ? Excluding the Atmega 328 and 168.
0
votes
2answers
134 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
2answers
3k 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 ...
0
votes
2answers
550 views

Arduino box stops working: Reading RFID tag and sending data over network

This is a simple Arduino program which reads RFID tag and sends the data over a network (lora). The program works fine in as i run it, the arduino reads RFID and sends it over the network (lora) ...
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
201 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
263 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
2answers
130 views

Where are the chip configurations stored in IDE 1.6.x? How to modify them?

With the new 1.6.x version of the Arduino IDE, obscurity of adding new chips has gained new level. It now seems you have to add HTTP links to some JSON files in single-line edit field in settings. I ...
0
votes
2answers
1k views

How to add Attiny13 to Attiny board profile in Arduino IDE 1.6?

Several months ago, I asked how to add (or where to get) Attiny13 to the list of boards in the Attiny package available in github: https://github.com/damellis/attiny In post 1.5 IDE, the package is ...
0
votes
2answers
202 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
3k views

How can I update global variable within a loop from outside the loop?

I have this code, but its not working. If I type "ReportFRQ 1" (or 0) it reports back that FrqON variable has changed but the behaviour of the loop doesnt. Basically I am trying to switch parts of the ...
0
votes
2answers
446 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 ...
-1
votes
1answer
125 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 ...
-1
votes
5answers
2k views

No Response to AT commands

I'm unable to communicate with my nodemcu ESP8266 module using the AT commands. The module does not return 'ready' on the serial monitor and entering AT commands has no effect at all. I am able to ...
-4
votes
1answer
5k views

Wiring when burning the bootloader of esp8266 [closed]

I want to burn the bootloader of esp8266. Assume I have esp8266 on esp12 in hand and an USB ISP programmer (or any other programmer like USBTinyISP). I (think I) know how to use the Arduino IDE to ...