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

How can I pass a char array as the parameter to a function?

I am creating a menu for adjusting system variables. The menu is made up of pointers like so: char* options4[] = {"hMin1", "hMax1", "refr1", "fSpeed1"}; I want to pass the selected string as the ...
-1
votes
1answer
1k views

Control brightness of 20 watt street LED light using Arduino

I have searched google and I now know that if we change the resistance, we can change the brightness of an LED, but I was wondering how to change resistance by using a micro controller.
1
vote
0answers
493 views

Arduino programming attiny13a

Hello I want to program an Attiny13a with Arduino code. I always have this error when I add repository "no file board.txt" in path. How to successfully configure IDE to able burn on it? I use : Link ...
0
votes
0answers
255 views

Arduino ethernet shield error

As I mention in the title, that when I am trying to upload the code of WebServer to the Ethernet Shield it shows me an error messages. Please if any one can help me to fix it, and here is the ...
19
votes
2answers
18k views

CLion + Arduino

Please, help me to set up Clion + Arduino. Clion has an Arduino plugin which I've installed. Here is some instruction on Github but I'm fully noob about cmake and other things which are talking ...
1
vote
1answer
152 views

Sublime Text 2 with stino, compilation gives “filename … is incorrect” Arduino IDE 1.7.8

I can't compile a simple blink sketch. Error is: [Stino - Start building "t5"...] [ 3%] Creating C:\Users\lov\AppData\Local\Temp\Stino_build\t5\t5.ino.cpp.o... The filename, directory name, or ...
1
vote
1answer
393 views

LCD is not printing strings, only integers with Arduino

As mentioned in the title I'm facing a problem in printing strings in the LCD. It's printing actually weird characters. #include <LiquidCrystal.h> LiquidCrystal lcd(7, 8, 9, 10, 11, 12); void ...
1
vote
2answers
1k views

How to avoid delays in the loop() function?

vI have this functions in my loop() and it publishes temperature reading to Ubidots(an IoT cloud service) using the #include library but it seems it returns a boolean and so the loop is delayed until ...
15
votes
4answers
27k 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 ...
1
vote
2answers
9k views

Arduino declaring class in h and cpp file Undefined Reference

I am trying to compile my project, but unfortunately get errors. I created class and separated implementation and declaration (cpp file and h file) Here they are sensor.h #ifndef SENSOR_H #...
0
votes
1answer
312 views

Irrecvdemo program in or remote library gives fatal error #include<WProgram.h>

Whenever I compile irrecvdemo of or remote library it gives error saying that fatal error saying no file or directory exists #include <WProgram.h> #include <IRremote.h> int RECV_PIN =...
1
vote
0answers
737 views

Arduino Uno sometimes cannot connect to the computer [closed]

Last month, I bought an Arduino Uno R3 board (believed to be a clone). In the first few week, it seem to be working fine. However, in this week, it became very strange. What it basically does, it ...
0
votes
2answers
52 views

Porting my project to multiple Nanos

I'm still fairly new to the Arduino world. I got myself a kit with a clone board couple of months ago and have successfully prototyped the project and got it to the state I want it to be. I now want ...
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. ...
6
votes
3answers
11k 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 ...
0
votes
2answers
3k views

expected ';' before '{' token error

I am trying to figure out what I did wrong in my sketch. In my void loop(), at the very bottom of the sketch, my if/else statement keeps compiling with the above error. Originally, it was an if/else ...
0
votes
1answer
804 views

Gboard 800 (SIM900 + ATmega 328)

Greetings dear reader! I have some trouble storing my IMEI code inside a variable. It always returns an error: "void value not ignored as it ought to be". Since then I tried to write it to the ...
11
votes
2answers
37k views

Difference between /dev/ttyACM0 and /dev/ttyS0 (Arduino IDE ports under Linux)

I use the Arduino IDE to upload sketches to my Arduino Uno. My OS is Linux Ubuntu 14.04 LTS. The Arduino IDE has two ports by default for communication with the Arduino Uno: /dev/ttyACM0 /dev/ttyS0 ...
2
votes
1answer
7k 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 ...
0
votes
2answers
1k views

Simple network protocol to communicate between N slave arduino and 1 central arduino? [closed]

i am looking to communicate text ( 40 char for each message ) between N arduino and a central one ( Communication is one way slaves to Master).I am looking for wire communication with 1 to 5 m ...
0
votes
2answers
3k views

Why can't the new Arduino IDE 1.6.7 compile extern “C”?

Consider: I having a problem in compiling in extern "C" code in the Arduino IDE 1.6.7 which I don't have on version 1.6.5. The error is: error: conflicts with new declaration with 'C' linkage It ...
3
votes
2answers
2k views

Cannot find crtatmega328p

I have just installed the arduino IDE on my gentoo laptop. I then installed the toolchain with the following command: crossdev -s4 avr This does a stage 4 install of the toolchain, with all its ...
1
vote
1answer
435 views

Audio Visualizer (not working properly)

Parts Arduino Uno R3 (Atmega328 - assembled) Adafruit Bicolor LED Square Pixel Matrix with I2C Backpack Electret Microphone Amplifier - MAX4466 with Adjustable Gain Half-size Breadboard ...
1
vote
2answers
2k views

uint8_t etc as color variable

I am very new to coding and I am attempting to teach myself the best I can. I have no prior knowledge of coding and am filling in the blanks via YouTube and forums alike. One place I keep getting ...
2
votes
1answer
200 views

How can I make Arduino IDE use Atmel's provided toolchain? (Linux/Ubuntu)

I have an Arduino based board using ATmega168PB, but so far only Atmel's provided toolchain supports this microcontroller. I can download the toolchain from Atmel's website, but I am not sure how to ...
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 ...
5
votes
1answer
4k 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 ...
2
votes
1answer
360 views

Arduino Servo Free Rotation

I have a project where I use 22 servos. I attach all 22 of the servos in the setup and in the loop, I use myservo.write() command to make a particular servo move to a particular position. The ...
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 ...
0
votes
1answer
2k views

NTP Client Library. Set sync provider pointing to public class function. Possible?

I am trying to develop a NTP client library for ESP8266/Arduino to make adding NTP sync an easier task. Basically, I've thought about a constructor as NTPClient(String host, int interval); and a ...
2
votes
1answer
425 views

Arduino IDE fails without sudo

I use Arduino IDE 1.6.6 on Ubuntu 15.10. Starting the Arduino IDE without using sudo fails for both: uploading the code to the Arduino Uno starting the serial monitor The group I need to add my ...
1
vote
1answer
130 views

Extra characters remain in Serial

I have spent the whole day trying to deal with this problem connecting Arduinos together using UART (Serial). But the problem is that it always behaves weirdly. For now the problem is that if previous ...
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 ...
0
votes
1answer
305 views

Will Intel Atom Processor laptops support cloned a Arduino with CH340 driver?

I am planning to buy a low cost and low weight laptop with an Atom Processor. I only have cloned Arduinos - will the Arduino drivers and IDE work on laptops which come with Atom Processors?
0
votes
1answer
313 views

Arduino Simple Task - sweeping a buzzer and led, not working as expected

Use of the tone() function will interfere with PWM output on pins 3 and 11 (on boards other than the Mega). UPDATE: IT seems that there is a problem using pin 11 and 13 together but if I use a ...
0
votes
2answers
312 views

Documentation for creating a Board Manager profile for the Arduino IDE

I'd like to write a Board Manager profile for some Arduino boards that I have. So far I've struck out on finding the documentation on the format and contents of the files. Does anybody know where I ...
5
votes
2answers
798 views

One workspace, two IDEs - Possible?

How can I create a workspace & projects so that either the Arduino IDE or the EclipseArduino IDE may be used to develop the project, interchangeably? I have both IDEs installed and working but in ...
2
votes
2answers
6k views

Interrupt on Analog Port - ESP8266 w/ Arduino

I'm trying to implement interrupts in my program. It essentially is constantly reading a photo-resistor and if it exceeds a certain threshold, we should send an update to our database. I'm struggling ...
7
votes
1answer
15k 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 ...
1
vote
2answers
416 views

Is it possible to package a sketch with dependent libraries for cross-platform compatibility?

I have a complex sketch that I spent many weeks working on, which I am backing up frequently because I'm afraid of losing any of my progress. I'm wondering if it's common practice to make a self-...
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 ...
2
votes
1answer
1k views

Mac Arduino IDE Connection to Min Seg (Mega 2560). No tty

I own a Macbook running OS X 10.10.3 (Yosemite) I own a Min Seg. My Min Seg model is built on an Arduino Mega 2560. Problem When I connect the board to the Macbook, using either of the Macbook's ...
0
votes
2answers
20k views

avrdude: verification error, first mismatch at byte 0x0000 : 0x00 != 0x16 using USBasp

I'm having this strange error, which pops up around 90% of the time. I am trying to program my attiny25 using USBasp and the Arduino IDE / library. Sometimes it works, most times it doesn't.. This ...
4
votes
3answers
57k 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
305 views

Arduino Orion Upload - Which Board When Compiling

I'm trying to compile and upload the example code for the arduino robotics starter kit (https://github.com/Makeblock-official/Makeblock-Library and https://raw.githubusercontent.com/Makeblock-official/...
1
vote
2answers
5k views

Where do avrdude parameters get defined in the Arduino IDE?

I am interested in learning how the Arduino IDE handles parameters in order to correctly upload hex files with avrdude. I found this in boards.txt: uno.name=Arduino/Genuino Uno uno.vid.0=0x2341 uno....
0
votes
1answer
1k views

Open the Uart0 Serial Port on Intel Edison

I'll preface this buy saying I am very new to working with Arduino boards or hardware in general. I am attempting to follow a tutorial on instructables http://www.instructables.com/id/PCBot/step4/...
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 ...
1
vote
0answers
33 views

Loop completion and resetting [duplicate]

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

A whole basic game project Arduino

Firstly, I know that I have already posted this. I do not think anyone here is stupid so: The game is: a power source connected to 6 buttons connected to 6 LEDs. you press them all in the randomly ...