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.

learn more… | top users | synonyms

0
votes
0answers
4 views

Using CLion as Arduino IDE — Cannot find Libraries

I'm having a problem using CLion as Arduino IDE when integrating 3rd-party libraries: Here is the CMakeList.txt cmake_minimum_required(VERSION 2.8.4) set(CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/...
1
vote
1answer
54 views

It seems like the math of arduino is off

This is my first project where I use Arduino. Until today everything went good with the Arduino Pro Mini (3.3v). But as of today I got a bit of a weird problem. I am using a MPU gy-521 (doesn't ...
0
votes
0answers
24 views

C code example for ESP8266 [on hold]

I have an Arduino Uno and I just bought the ESP8266 with the intention of sending email alerts from the Arduino when a sensor is triggered. I am trying to figure out how to initialise, use and test ...
0
votes
1answer
11 views

Digispark / DigiKeyboard change keyboard layout

I'm trying to use the Digispark as a Rubber Ducky but the Digispark is only usable with the US laylout. German keyboard layout is QWERTZ. Some keys can be changed, like y and z, but if there are [ or ]...
0
votes
3answers
26 views

Scan multiple ESP8266 [on hold]

I am working on wifi based LED project which involves various ESP to be connected to router. Basically grouping of ESP has to be done. The android app sends HTTP command to IP address which is given ...
-4
votes
0answers
22 views

lcd is not displaying anything

#include <Wire.h> #include <LiquidCrystal.h> #define sensor1 x = 9 #define sensor2 y = 8 #define colx 8 int sensor1,sensor2; LiquidCrystal lcd(7, 6, 5, 4, 3, 2); void setup() { ...
-4
votes
0answers
29 views

Determining the speed of an object passing through two infrared sensors [on hold]

This is my first Arduino project. I want to calculate the speed of an object passing through two infrared sensors and display it on a LCD screen. My approach is that when an object passes through the ...
0
votes
0answers
24 views

Connection ESP8266 to ESP8266 Client Server can't Connect, Help me?

I have a project to connecting dual esp8266 using client server method, my expectation the server can get command from user from web request, and the request will be forward to client from server to ...
1
vote
2answers
54 views

Same code in setup() and loop() give different results

As the answers to this question and this one state, setup() and loop() are identical in the way they execute code (apart from the obvious looping function of loop()). However. I get different ...
0
votes
1answer
18 views

4 IR sensors on Arduino pro micro. 2 are working other aren't

#include <Keyboard.h> int IRpin = 5; int IRpin2 = 6; int IRpin3 = 8; int IRpin4 = 9; int led = 13; void setup() { Serial.begin(9600); //start the serial port Keyboard.begin(); pinMode(...
1
vote
0answers
15 views

Can I get my RGBW Neopixel strip to loop perfectly by adjusting rainbowFade2White function in strandtest?

I have been working on adjusting the code for the strandtest RGB and strandtest RGBW to get exactly what I want, which in this case is for the LED strip to transition from one color to another nicely (...
0
votes
1answer
42 views

Why are some letters reserved?

I wrote a function that takes characters and noticed that the Arduino Compiler treated some characters like system-reserved, and other like functions, and a few just like characters. Lowercase doesn't ...
-4
votes
0answers
40 views

4 IR sensors on Arduino pro micro [closed]

I connected 4 IR infrared sensors to Pro micro and only 2 of them are working. The other 2 are sending random values. There is no problem in my code. What could be any other problem?
0
votes
1answer
47 views

USB Communication like serial RS232 with an Attiny

Basically I want to use an Attiny running an Arduino boot loader as an usb device. I'm not sure how to even start or what phrases to search for. So here's what I ultimately wish to do. Load a ...
0
votes
0answers
28 views

Forcing Arduino IDE documentation (help) to open in browser in offline mode

Even though the help files (e.g., reference) are installed as local files when the IDE is installed, these file still attempt to access the net. For example, loading an arbitrary page makes calls to ...
0
votes
1answer
26 views

Arduino IDE in conflict with pyserial for use of serial port in OSX Yosemite

I'm trying to communicate with an Arduino Uno via pyserial using a code that I wrote for Ubuntu. However, when I try to use the same code in OSX Yosemite after identifying the serial port for the case ...
0
votes
2answers
26 views

Arduino IDE crash when I connect Blend Micro

I recently bought Blend Micro and I am setting up Arduino IDE to start using it, but after installing the required libraries and the Blend Micro drivers, the IDE suddenly crashes without any visible ...
-1
votes
1answer
39 views

Multiple client server over wifi

Trying to setup a server on Arduino to support multiple clients, I am able to support one but I don't want to flush that client to make another connection. #include <ESP8266WiFi.h> const char* ...
1
vote
1answer
28 views

not able to tick the checkbox of page generated by client object

I have green LED attached on Digital pin 2 which is by default set to LOW, and I am trying to turn it on and off from a checkbox added on web page as shown in the code below, but I think something ...
1
vote
2answers
22 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 ...
3
votes
1answer
32 views

Arduino Pro Mini RESET button suddenly stopped working

I am powering my Pro Mini(3.3V version) using an external battery (~6.5V 700mA) . I used to connect it to the RAW and GND pins on my pro mini and everything ran fine. Today when I powered up my ...
1
vote
1answer
22 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
votes
1answer
29 views

Arduino Pro Mini automatically resetting

I have an Arduino Pro Mini 3.3v in a robot. The problem is, the Mini would automatically randomly overwrite the uploaded sketch with the default blink sketch... And this is becoming quite a problem. ...
4
votes
1answer
38 views

delete the memory or re-upload a program

At the moment I am following the instructions of this project https://github.com/JoernL/LimiTTer. Besides the peripheral parts like a Bluetooth module and an NFC module, the central unit is an Arduino ...
1
vote
1answer
21 views

Making two arduinos/mkr1000 communicate

I am trying to create a project in my free time just for a bit of fun - which consists of two mkr1000 (one acting as a webserver connected to one laptop, and the other acting as a web client ...
1
vote
2answers
45 views

Problems reading I2C sensor when using a Xbee module

I'm developing a project where I can control a RC boat with GPS and a magnetometer. How ever, I was developing everything connected to my computer and worked pretty well. When I was going to make some ...
0
votes
1answer
27 views

code for line following robot not working perfectly

I have made a line following robot using 2 IR sensor. My line following robot was working successfully with this code. #define LS 2 // left sensor #define RS 3 // right sensor /*-------...
3
votes
1answer
37 views

How to display an entire incoming string from the serial monitor in arduino ide?

this is my first question in this forum. I need to receive a string from the Arduino serial monitor and display it when the communication is over. I have a similar problem like the one discussed in ...
0
votes
1answer
33 views

how to send Arduino Yun Post Request to localhost?

I've been trying to send data from my Arduino Yun to a local server using XAMPP. My code is shown below, in the serial monitor of arduino yun it shows connected and prints the data string but in the ...
3
votes
2answers
81 views

How to connect an arduino Micro to MPU-6050

So I'm trying to connect my arduino micro to the MPU 6050. I was using this tutorial https://diyhacking.com/arduino-mpu-6050-imu-sensor-tutorial/ This tutorial worked with my arduino Uno but not ...
0
votes
1answer
67 views

Arduino ESP8266 Webserver

What I would like to do is control my garden lights using the ESP8266. For this I use the Arduino approach from here. This works great, I use bootstrap and jquery even :D all is well! Switching ...
-2
votes
2answers
53 views

Do I use an Arduino or an ARM based Launchpad board for my commercial project? [closed]

I want to use a board for an Industrial Project, which is based on temperature sensing, sharing and data storage. Which board do I use? Will it be reliable for a long span of time? Will it be ...
1
vote
2answers
35 views

Which interrupts are enabled when programming an ATTiny85 with Arduino IDE?

I have programmed a tiny85 using the Arduino IDE. I am using the pulseIn() function. Wrapping it in noInterrupts()/interrupts(); appears to make the function more consistent. This would imply that ...
0
votes
0answers
34 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 ...
-1
votes
1answer
52 views

SoftwareSerial data not available

Second time I'm asking the same question with no solution, let me elaborate in other way for clarity. I wrote an Arduino program which uses two serial ports, one is hardware serial port and other is ...
2
votes
0answers
42 views

Read string from DigiUSB

I wrote simple code for my Digispark (Attiny85 with Micronucleus bootloader) in Arduino IDE: #include <DigiUSB.h> String inst; void setup() { DigiUSB.begin(); pinMode(1, OUTPUT); } void ...
2
votes
2answers
60 views

Native function name w/o parens — expected behavior?

I wrote a sketch that used the millis() function in several places. I got odd behavior because I inadvertently used the plain millis in one line, without the parens. It evaluated to zero when running. ...
1
vote
1answer
192 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 ...
0
votes
1answer
33 views

Arduino IDE - Start Serial Monitor once upload is complete

When using the Arduino IDE on Windows (10) is there a way to get it to start the serial monitor automatically when the upload to the board completes? I know this is a long shot, but pressing those ...
-1
votes
1answer
23 views

Replacing stock String.cpp with smaller version

Hey all I am wondering if it's possible to modify the WString.cpp file to only include the commands that I need for my project since that file is so large. I am using a Digispark arduino that is ...
-3
votes
2answers
46 views

getting error while trying to compile code for soil moisture sensor

I think the below logic should work but its throwing error void setup() { Serial.begin(9600); } void loop() { int soil_moisture = analogRead(A0); // read from analog pin A3 // int soil_moisture ...
1
vote
2answers
64 views

Temperature on two 7-segments displays

I'm new to the arduino board and my teacher gave us a project with little to no teaching about the language the board uses, or how to effectively program with it. I'm trying to read temperature from a ...
1
vote
2answers
128 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 ...
0
votes
1answer
46 views

Update firmware Arduino

I got error "stk500_getsync() not in sync resp=0x00" when I tried to update Arduino Pro Mini by FTDI Basic Breakout 5V/3.3V - Micro USB. Maybe someone have instructions how resolve this issue. I use ...
0
votes
0answers
50 views

Arduino UNO and ESP-12E serial connection

I just bought an ESP-12E module and I don't have a usb to serial adaptor. How I can connect ESP-12E via ARDUINO UNO to PC. I want to use Arduino IDE to upload code to ESP via ARDUINO UNO. Here is the ...
-1
votes
2answers
40 views

keypad storing problem any idea store more than 11 numbers like phone number

#include <SoftwareSerial.h> #include <LiquidCrystal.h> SoftwareSerial mySerial(6,5); int table[]={0,0,0}; #include <Keypad.h> #include <Wire.h> LiquidCrystal lcd(...
-1
votes
1answer
73 views

ESP8266 Upload hex file Arduino IDE

I am using ESP12E Wifi module, using library based on Arduino. Is there any way I can upload hex file of the project to esp8266 using Arduino or any tool? I need to send hex file instead of code to my ...
0
votes
2answers
60 views

How do I program a non-Atmel chip with the Arduino IDE?

I have been working with Ardiono and esp8266 to develop a IOT project. Everything is going perfect. Now I want to make use of a new chip i.e. the High-Flying SIP120 WiFi chip. But I dont know how to ...
0
votes
1answer
39 views

Storing Long numbers in arduino like phone numbers…How?

I am using 20 x 4 LCD And 3 x4 keypad I want to enter and store 3 inputs in different variables the code I am using can store 3 inputs and display it right in serial monitor example I type 5 digits ...
0
votes
1answer
96 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 ...