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
86
votes
20answers
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++...
77
votes
9answers
176k 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 ...
4
votes
1answer
635 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 ...
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
32k 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 ...
3
votes
2answers
36k 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
526 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; ...
1
vote
3answers
44k 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....
9
votes
4answers
54k 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 ...
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
959 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'), ...
5
votes
2answers
7k views

avrdude ser_open() can't set com-state

When trying to upload the blink sketch to my (unofficial) Arduino Uno, I get the following error: avrdude ser_open() can't set com-state for "\\.\COM3" I have programmed this Arduino before using ...
5
votes
3answers
8k views

ESP8266 Analog read interferes with wifi?

Short version: I have a program that connects my ESP8266 to WIFI so I can control a relay connected to it over the internet or a button. I also have a sensor for my door. This software works ...
3
votes
1answer
125 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 ...
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 ...
2
votes
3answers
3k 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
2answers
2k 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 ...
1
vote
2answers
392 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
1answer
567 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 ...
0
votes
1answer
85 views

String and heap confusion

I hope you all well. Recently after view unknown crashes I decided it can be related with me messing with "heap" After reading few sources on heaps and how it works it kind of confusing. Some ...
0
votes
1answer
256 views

SD Card Read/Write Arduino Mega Fail

I have an Arduino Mega 2560 where I have used a MicroSD Card Module to Read/Write Data on the Micro SD Card. I have tried using the Example in the Arduino IDE but the data is not being written or read ...
0
votes
2answers
203 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
728 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 ...
-1
votes
1answer
433 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>"; ...
14
votes
5answers
62k views

deprecated conversion from string constant to 'char*'

What does this error means? I can't solve it in any way. warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
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 ...
11
votes
4answers
21k 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
21k 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
12k 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
508 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
1answer
760 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, ...
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 ...
9
votes
2answers
4k 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
8k 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 ...
6
votes
3answers
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
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
2answers
441 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
563 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
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
1answer
838 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
1k 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 ...
1
vote
1answer
5k 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
42 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 ...