Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

85
votes
19answers
14k 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++...
72
votes
9answers
157k views

C++ vs. The Arduino Language?

What are the advantages of each language when using the Arduino? I'm thinking this is a good general question, but I'll add a bit about why I'm asking if anyone wants to give me a tip. I'm ...
3
votes
2answers
31k views

“stray '/302' in program error” when compiling

For some weird reason, the following code doesn't compile. I get a "stray '\302' in program" error around volatile unsigned int encoderPos = 0;, and I have no idea what the issue is. I've been trying ...
1
vote
1answer
2k views

Arduino Uno and ESP8266 serial monitor issue

I plugged in the Arduino Uno and the ESP8266 following this schema: When I enter "AT" in the serial monitor, I get an "OK". I can also connect to my wifi using typical ESP8266 commands. What doesn't ...
31
votes
3answers
29k views

Why does starting the serial monitor restart the sketch?

If I upload any sketch that sends serial data, I immediately see the TX/RX LEDs flash once the sketch is uploaded. If I then start the serial monitor, the sketch appears to restart. A bare minimum ...
1
vote
1answer
408 views

Avrdude Verification Error while flashing Arduino Mega code

I'm working with an Arduino Mega 2560 and am getting the following error at compile time: avrdude: verification error, first mismatch in byte 0x0000 0x14! = 0x25 avrdude: verification error; ...
9
votes
4answers
53k views

Arduino compatible's serial port not showing Mac OSX

I bought an Arduino-compatible Freaduino board atmega8 (I selected the board type as Arduino ng or older atmega8). I installed the Arduino IDE on Mac OS X and the FTDI drivers. But my serial port ...
1
vote
3answers
42k views

Arduino Nano v3.0 with ESP8266

I am attempting to connect and use an ESP8266 board with my Arduino nano v3.0 and I am not have much luck. I have read a bunch of tutorials and articles, the most recent is http://elektro-blogger....
0
votes
1answer
1k views

How to configure 2nd Quadrature Decoder IO pins in Arduino IDE

I am working to read two quadrature encoders using a single Arduino DUE, as part of my summer vacations project. According to the following link http://atmel.force.com/support/servlet/fileField?id=...
1
vote
6answers
887 views

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

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'), ...
3
votes
1answer
383 views

Adding a custom board to the Arduino IDE

I would like to know what is the procedure for adding a custom board to the Arduino IDE? My custom board is similar to the Arduino Zero. Instead of using the ATSAMD21G18, my board is based around the ...
3
votes
1answer
122 views

How does if(serial) work, a c++ question

The Arduino documentation says if(Serial) always returns 1, except for the case where Leonardo USB serial connection delays becoming ready. (Leonardo has two USB IDs, and switches between them for ...
1
vote
3answers
2k views

Can I use Visual Studio instead of Arduino IDE?

I think that Visual Studio is a great product! I find the Arduino IDE is limited in its features. For example the Arduino IDE does not have: Code prediction Error highlighting Previews of #define ...
1
vote
1answer
549 views

How to add Ultrasonic Sensor to the board?

I am making an RC car , have combined the Arduino UNO R3 with the AR 293d, and pluged in the HC-SR04 sensor to the SRO4 hole at the left top corner in the below graph. However, besides one sensor I ...
1
vote
2answers
349 views

Why PJ0 and PJ1 are not reporting as PCINT pins

When the sketch shown at end-of-question is compiled and uploaded to an Arduino board, it is supposed to Serial-print a list of available digital pins, showing for each pin whether it supports PWM or ...
1
vote
2answers
1k views

Adding Attiny to Arduino IDE - attiny\variants\platform.txt file missing

I followed this guide to program AtTiny using Arduino as ISP. The problem is that it has some file missing: java.io.FileNotFoundException: C:\...\arduino-1.6.8\hardware\attiny\variants\platform.txt ...
0
votes
1answer
379 views

i586-poky-linux-g++: no such file or directory Error compiling for board Intel® Edison

I'm facing this compilation issue. Arduino: 1.8.4 (Linux), Board: "Intel® Edison" fork/exec /home/jimish/.arduino15/packages/Intel/tools/core2-32-poky-linux/1.6.2+1.0/i686/sysroots/pokysdk/usr/bin/...
0
votes
2answers
167 views

keypad storing problem (void value not ignored as it ought to be) [closed]

I am trying to input 11 numbers only by the use of keypad but the problem is whenever i use this code. It gave me this error. Here's my code. Help please. #include <SoftwareSerial.h> #include &...
0
votes
2answers
571 views

Making three led's blink at different times in Arduino

I have a breadboard connected to an Arduino Uno, 220k resistors connected to an led, of course it has a common ground and a pin connected to 5v. All pins are digital. Now, I want led 1 to turn on ...
0
votes
1answer
440 views

Help in “An error occurred while uploading the sketch”

Trying to test THIS. Got following error: esptool v0.4.13 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de> setting board to nodemcu setting baudrate from 115200 to 9600 setting port ...
0
votes
1answer
61 views

Can I control 4 DC Brushless motors with arduino uno and Adafruit motor shield? [duplicate]

I need to control 4 DC brushless motors. I have no experience with arduino or coding. After some research the cleanest setup seems to be using the Adafruit motor shield, however the motors I'm using ...
-1
votes
1answer
320 views

NodeMCU and expected ';' before wrong ' " '

I am creating a home weather station but the Arduino IDE shows "expected ';' before 'viewport'". It detects wrong quotation marks. My code: String message2 = "<!DOCTYPE html>"; ...
4
votes
1answer
14k views

ESP8266 & websockets

At the moment, I'm using various operating systems and devices like the Raspberry pi to control lights and other stuff over websockets. I use websockets since they added the support on Chrome. I write ...
12
votes
1answer
25k views

Arduino IDE #ifdef

I use my Arduino IDE to either upload my sketch to a Arduino or ATTiny or ATmega328. As you know each device can have a different pinout. Does the Arduino compiler support ifdef, depending on the ...
7
votes
3answers
5k views

Manchester Library Won't Compile for Attiny85

I am creating a wireless sensor using an Attiny85. I want to send the data to an arduino uno, so I purchased the 315mhz rf link kit from spark fun. Since the Attiny85 does not have a TX I decided to ...
16
votes
3answers
18k views

Arduino program only works when run as root

Uploading simple sketches seems to work when I run the Arduino program as root (sudo). I would like to run it as a regular user. Has anyone faced the same problem before and fixed it? Here is what I ...
10
votes
4answers
19k views

ESP8266, Arduino IDE vs Lua?

I'm planning to buy an ESP8266. Do I really need to learn Lua to play with it? I have seen some people using it with the standard Arduino IDE. Do you need a custom firmware to use the Arduino IDE ...
5
votes
1answer
2k views

Basic C++ programming, how to pass constructor argument into class?

I'm having some programming problems. So here's what's happening: In my .ino file, I have a tft variable which holds the connection to a LCD. I want to make a class which can either automatically ...
4
votes
2answers
20k views

How do I change the Console colour of Arduino IDE?

Leading on from the question Can I change font Color and/or Type for IDE 1.5.6r2?, in 1.6.0, or 1.6.11 it does not seem to be possible to change console.color or console.error.color. To be precise, ...
3
votes
1answer
2k views

Arduino IDE on Fedora

I'm using Fedora_21_MATE.img on a Raspberry Pi. Installing the Arduino IDE 1.0.6 using these commands, taken from Arduino On Pi. Those instructions are for Raspbian, I assume, so changing for Fedora, ...
3
votes
1answer
4k views

Arduino with WS2812 using Adafruit NeoPixel library fade in/out different patterns

Hey all I have been trying to figure out a way to random set patterns for my fade in/ out code below: int PIN = 3; int totalLEDs = 11; int ledFadeTime = 5; Adafruit_NeoPixel strip = ...
3
votes
1answer
11k views

Manual Arduino Due Installation

Not sure if this is the right place to post this. I have an Arduino Due I'd like to start using. I've been using Unos, Megas etc no problem. The newer IDEs have removed the Due support. I've been ...
2
votes
2answers
460 views

Unable to create a desired periodic signal with Arduino Mega 2560 and DAC0808

I wrote the code to produce the periodic signal by using arduino and DAC0808 where i turned on and off the respectively pins of PORTA by using a logic in iterative manner and created the periodic ...
1
vote
2answers
1k 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
3answers
6k views

How to get the firmware (hex) file from a .ino file containing the code

I currently have a .ino firmware file that I use in the Arduino IDE to program an ATmega328 micro-controller. I would like to get the file that the Arduino IDE uses to program the micro-controller. ...
0
votes
1answer
5k 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
1answer
696 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, ...
7
votes
2answers
3k views

Why does an `.ino` file have to be in a folder of the same name?

I'm trying to organise a very complicated project and I want to put all the actual code in a folder named src (source), but I want to keep the main .ino file as main.ino (it will also be in src). Then ...
7
votes
5answers
7k 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 ...
7
votes
2answers
4k 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 ...
6
votes
1answer
8k 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
2answers
362 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
1answer
530 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
1answer
977 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
8answers
19k 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
0answers
85 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
1answer
623 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
5k views

pass class internal function as callback

I am trying to pass a class internal function as a callback function within the class. The error behavior is similar to this problem. Whatsoever, I was unable to construct working code based on that ...
1
vote
2answers
491 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
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 ...