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
1answer
26 views

Define a string with single quotation marks?

This is kind of a short question. All I want to know is, if I can define a string using single quotation marks ('), instead of the regular ones("). I want to use it in a function like this: print('...
0
votes
2answers
15 views

I can send AT Commands, but cannot upload sketch to ESP8266 via Generic ESP Module

I can send AT commands to the ESP8266 - 01 but I am not able to upload the sketch. I have connected TX-RX of module to TX-RX of Arduino, GND to GND, CH_PD, RST and VCC to 3.3V. Here is the code I'm ...
0
votes
2answers
31 views

Make Arduino Executable File

On a Pi, to execute a C++ code, you'll need a Makefile. Is there an equivalent with the Arduino? Where I have some valid C++ files to upload without the IDE's help, but instead with an executable?
1
vote
0answers
19 views

Pattern detection in sensor data

I'm using a heart rate sensor along with an Arduino for a project of mine. I have to determine whether the heartbeat is following a particular pattern (eg: when when heartbeat regularizes a lot after ...
2
votes
2answers
75 views

How to on/off light dimmer using another pin?

In recent project, I'm working with light dimmer. Let me explain with example of fan. In switch board, we have a fan switch which can able to ON/OFF our fan & FAN REGULATOR which vary speed of ...
0
votes
0answers
23 views

UNO/ProMicro ShiftOut doesn't work

I have a bizarre error. The shiftOut library/code stopped working. It doesn't work. There is no clock signal nor a data signal. Checked via an oscilloscope (DSO138 - I know it's cheap but it's the ...
0
votes
1answer
42 views

Controlling a button

I'm going to write a sketch that would light up the first LED (D1) of the training shield at the beginning, then move the LED light to the left or to the right whenever you press the S1 or S2 buttons, ...
1
vote
2answers
42 views

Not getting proper readings on Arduino from MAP Sensor

In recent project, I have to take reading from MAP sensor. So basically, we used analog pin for this. But in my case, I don't get proper result which actually I want. When I'm taking readings through ...
0
votes
2answers
26 views

SocketIO Arduino TCP Port ISSUE

Initially I was sending sensor data to NodeJS using socketIO and this worked perfectly. I had to add a function to control an RGB LED using this. This also works but I'm unable to perform these two ...
0
votes
1answer
35 views

String use in arduino IDE (this question for understanding) [duplicate]

I'm using arduino several month now, And i don't understand when i can use the arduino object of String. I'll explain, I read a lot and the it's look like that this object is a good way to read/write ...
0
votes
0answers
19 views

Is There an Arduino Simulator Like Circuits.io That is Better? [duplicate]

Circuit.io simulator timing is around 8 times slower than in real life, i was wondering if there was a website or software better than circuits.io?
-1
votes
2answers
48 views

How to setup OpenCV with Arduino?

My question is how to do it (set it up), not if I can do it or with what Arduino. I've previously setup OpenCV with Visual Studio 2015. It was a tough one, but I made it through. Now I want to set it ...
0
votes
1answer
20 views

Issues w/Analog Microphone Readings

Having issues with sampling audio with a microphone and NodeMCU v3. I realize this is the Arduino section so if NodeMCU running the Arduino IDE is not meant for this forum, let me know. The problem: ...
0
votes
3answers
42 views

Find the time between HIGH state & LOW state of push button(switch)

I want to find the timing between HIGH state and LOW state of push button. For that, I made a program. You can see my program below. In my program, I made logic like that when switch is pressed then ...
1
vote
1answer
31 views

Why does static member std::map reset ESP8266 when outside the .ino file?

Here's an example of a class which crashes the ESP8266-03 causing it to reset: Test.hpp file: #include <map> class Test { public: int data() const; Test(int x); ~Test(); ...
1
vote
1answer
21 views

Unspecified running error while programing WeMos D1 in wireless mode

I've tried to program WeMos D1 directly by wireless connection. I've test my D1 so it had no problem. after setting SSID and Password I've programed it for wireless using. It ran well. as I want to ...
0
votes
1answer
32 views

Vary the length of square waveform

Here in figure, we can see two waveforms. Below one is waveform of raw RPM signal. I want to find square waveform which based on that LOW INTERVAL of RPM signal and length must vary according our ...
1
vote
1answer
43 views

pulseIn() function not working

I want to find the length of upper one signal (purple one). So for that, i used pulseIn() function for that. But i just get 0 as a result in serial monitor. int pulsepin = 8; int value = 0; void ...
0
votes
1answer
27 views

How do I order the gcc compiler to generate -S flag in Arduino IDE

How can I set the Arduido IDE to generate the -S flag to gcc to see the machine code in Arduino? (the sketches)
0
votes
2answers
50 views

bridge messes up serial.print

EDIT I am using an Genuino Uno & Yun Shield I am a complete arduino noob I am creating something where I need a process to execute a command on my yun shield but when I use Bridge.begin(); It ...
0
votes
0answers
33 views

Character won't show up on LCD display

When tried to hookup an LCD to arduino mega using the following 2 sketches. Even though no characters show up on display. #include "U8glib.h" U8GLIB_ST7920_128X64_4X u8g(10); // setup u8g object, ...
0
votes
1answer
26 views

Arduino - Windows can't find the drivers

I bought an Arduino UNO R3 Yesterday. It's a Chinese clone. But it has the Atmega328p and MEGA16U2 both. I've installed the IDE fully. But it can't find the ports. The Tools > Ports option is greyd ...
0
votes
1answer
30 views

Controlling a Servo Motor through a Computer

My project goal is to control a servo motor via Arduino UNO Bluetooth. When the Arduino sends certain messages to the computer, I want the computer to turn the servo motor in a certain direction. ...
0
votes
2answers
34 views

Use Raspberry and Arduino IDE to programm ESP8266

I currently use Arduino IDE to generate binaries for ESP8266. Afterwards I copy the binaries with SFTP to my Raspberry Pi and flash the binaries using esptool.py. These are lots of steps I need to do ...
1
vote
2answers
212 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 ...
1
vote
1answer
32 views

Arduino IDE on Linux - directory not found

I have Ubuntu 14.04 installed on a chromebook through crouton. I'm trying to install the Arduino IDE. I figured out that I needed the 64-bit version of the IDE and downloaded it. Then, I started ...
1
vote
1answer
62 views

How do I deal with this Arduino IDE installation error?

I am using Linux Fedora 20 (yes I am going to upgrade it, definitely, soon) and I have installed arduino-1.8.0, but I get this message ... Your copy of the IDE is installed in a subfolder of your ...
0
votes
2answers
43 views

While doesn't the loop terminate?

I have a have project of Up Down counter using Arduino with seven segments, in which when I continuously press the push button, the counter moves upward from 0 to 99. When I release the push button, ...
0
votes
1answer
47 views

Feather32u4 device not accepting address 5, error -71

I'm using a Feather 32u4 bluetooth device connected to a AM2302 temperature sensor via I/O pin to my Linux PC via USB Everything was working fine, uploading the code to the micro via Artuino IDE and ...
0
votes
1answer
29 views

Arduino IDE automatic tools

I know that the Arduino IDE does some simple tasks automatically: for example it creates function prototypes, but this function sometimes fails. Does that IDE run other hidden "pre-precompiler" tasks?...
0
votes
3answers
29 views

IDE does not create prototypes

I'm running Arduino IDE 1.6.10 on Mac OS X 10.12.1. I read on the Arduino official sote that the IDE should create function prototypes for me, and it always did. But now I'm writing a 1500 lines ...
0
votes
1answer
75 views

Arduino-ESP8266 socket

I am programming an ESP8266 module via Arduino IDE. I basically have to use it as a server that can light up a led when a client sends a request. This is okay but I have to implement it with a NONCE ...
0
votes
1answer
117 views

Can i power Esp8266-Nodemcu with a solarpanel + usb-powerbank?

I was asking myself wether it's possible to power my nodemcu board (version 3) with a usb powerbank, like a smartphone, but the powerbank should then be recharged by a solar panel. So this is ...
1
vote
1answer
84 views

ESP8266 Nodemcu create custom PWM with 1.25us resolution

I am trying to control some SMD LEDs WS2812B with the ESP8266-Nodemcu. I am using Arduino environment for coding. Actually I am trying to accomplish a PWM that is precisely able to: Go High for ...
0
votes
1answer
18 views

How to interpret accelerometer data to get decimals from -255 to 255

I'm using gy-521 module and I'm wondering how can i get useful readings from it so that i could work with the data that I'm receiving. I want for AcX and AcY variable values to be from -255 to 255. ...
1
vote
1answer
42 views

millis() vs creating a “long” variable

I think my issue is not fully understanding how the millis() function works; I am wondering the difference between simply creating a variable such as long fake_millis ++ ; vs using millis()?
3
votes
3answers
250 views

Why do I get a compiler error when I'm pretty sure I have such method?

Code (I've omitted much of the code, and left just the outline and code probably relating to the error.) SelfDrivingCar.ino #include "JKMain.h" void setup() { JKMain::setup(); } void loop() { ...
0
votes
2answers
53 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 ...
3
votes
2answers
50 views

How does an 8bit MCU make use of data-types over 8bits?

how does an 8bit MCU handle 16bit output? How does an 8bit MCU store values higher than 8bits? I am using an attiny, on an adafruit trinket. and other 8bit MCUs. http://www.atmel.com/devices/attiny85....
-1
votes
1answer
22 views

Previous and updated releases of Arduino IDE are not be able to start on Win 8.1 x64

I have tried to install many versions of IDE, but non of them has started successfully. There is just the logo of the program shows up and then nothing happens. My laptop: Toshiba Satellite C50-A630 ...
0
votes
0answers
18 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
82 views

It seems like the math of arduino is off

[SOLVED] By changing the offset for the incoming data into int16_t type there won't be any rounding errors and the values I'm getting are all back to zero in the sensor its base position This is my ...
-1
votes
1answer
287 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 ]...
-1
votes
3answers
45 views

Scan multiple ESP8266 [closed]

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 ...
-5
votes
1answer
36 views

No display on LCD

#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() { ...
0
votes
1answer
187 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
61 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
23 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
24 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
44 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 ...