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
30 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 ...
1
vote
0answers
24 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 ...
1
vote
2answers
54 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. ...
0
votes
1answer
48 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
0answers
14 views

Using arduino IDE on the particle Photon

I know this question has been asked a bit before, but thought it was worth an up. The conclusion of this question was that a year ago, F2 cores were not developed yet. However, Adafruit has today ...
-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
24 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
46 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
116 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
37 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
30 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
33 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(...
0
votes
1answer
32 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
50 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
36 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
61 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 ...
0
votes
1answer
20 views

digispark usb issue

Hey all first installed the drivers for the x64 and got this: Notice it did not install the first one - USBSER. However, i am able to upload code in the Arduino IDE so I went ahead and uploaded the ...
0
votes
1answer
28 views

Using Atmel Studio with Arduino Starter Kit (Uno MCU)

Can someone tell me if it's possible AND safe to use Atmel Studio with Arduino Starter Kit? I'm a newbie to firmware in general and I don't want to "brick" my Arduino Uno Microcontroller. I don't ...
0
votes
1answer
27 views

Arduino Debounce Sketch

I want to use 4 Push Buttons and 4 leds in my project. What do I need to change in my sketch for multiple input push buttons and multiple outputs of leds? So my sketch is only for one push button and ...
-1
votes
1answer
34 views

The Arduino Sketch does not save in Arduino folder location

I have just installed Arduino on Mac OS. The Arduino folder is created under Documents. But whenever I save the sketch it gets stored in some ghost location and gives an error, the same name already ...
0
votes
0answers
22 views

Esp8266 gpio pins problem

I programmed my esp8266-01 in arduino ide. I uploaded that code: void setup() { pinMode(2,OUTPUT); } void loop() { digitalWrite(2,HIGH); delay(500); digitalWrite(2,LOW); delay(...
3
votes
1answer
44 views

How do I use ATTiny pin 5 (RESET) as a digital output?

I am using an Arduino Uno as ISP (Using the standard ArduinoISP sketch) to program an ATTiny13A through the Arduino IDE. (I also have a USBtinyISP 2.0 and a USBASP 2.0, but can't reliably get either ...
1
vote
1answer
34 views

Arduino Text Scrolling on 16x02 I2c on NodeMcu (ESP8266-12)

I have managed to get my 1602 I2C LCD working on a NodeMCU devkit. I can display text parsed from the web but I am not sure how to set it to autroscroll if message is greater than 16 characters. I ...
1
vote
1answer
28 views

How does Arduino IDE for OSX work without drivers?

My Arduino IDE works right out of the box without me having to install any USB to UART drivers. I know the Atmega16U2 on the UNO is acting as UART bridge, but this means that OSX recognizes it on a ...
1
vote
1answer
30 views

I already have a button on my Arduino board, but I don't know what pin number should I use in my code?

I'm attaching a picture of my board which has the push button I want to use, but I cannot because I don't know what pin number should I write in my code. my code: int switchPin = Button; int ledPin =...
2
votes
1answer
25 views

Referencing local libraries from higher dir levels

How can I include libraries not contained in any direct subdirectories of a sketch, using the Arduino IDE? I want my project structure to look like this: Project └> MCUa └> MCUa.ino └> ...
1
vote
2answers
23 views

Function only taking the first 4 elements of a character array

I'm writing a function for my arduino program that takes a character array of any size and will mark all the characters that aren't in the alphabet by changing their value to '1'. I have a switch ...
1
vote
1answer
28 views

How do I see underlying code and definitions inside Arduino IDE on MacOS X El Capitan

I'm a newbie to Arduino so please excuse the easy question and guide me to the appropriate sources or forums. I just bought an Arduino Uno Starter Kit that comes with the "Arduino Projects Book" by ...
0
votes
1answer
95 views

From Wiring to pure C

I'm using the Teensy 2.0 (atmega32u4) and decided to switch from Arduino IDE with Wiring to pure C. I think it's much more useful to master programming microcontrollers on that level. Wiring seems to ...
1
vote
1answer
34 views

Code Optimisation [closed]

I have tried fading the RGB Led with different colour format and sequence. Working of Code :- When value of number is 1, the Red LED fades gradually and glow up with the delay interval of 10ms with ...
1
vote
1answer
26 views

Interrupt and delay problems on Attiny 85

I wrote this code and uploaded it to attiny85: int hours = 2; int minutes = 4; static int MINUTES_COUNT_BIT = 5; static int HOURS_COUNT_BIT = 3; #define button 2 void setup() { pinMode(3,...
0
votes
2answers
48 views

NodeMCU esp8266 on Arduino IDE doesn't detect Wifi

I am using a NodeMCU 1.0 v3 and I am trying the example sketch (wifiscan) but it just doesn't pick up any AP in the house. My phone and laptops etc are able to pick up the APs though. Other sketches ...
0
votes
1answer
32 views

Able to make continous music loop in Arduino and control the volume of the music with light sensor reading?

I'm new to Arduino and am planning on making a simple program in Arduino that will play and loop a sound file on the computer whilst controlling the loudness of the music based on reading from a light ...
-3
votes
1answer
47 views

Unable to analogWrite to MOSFET properly (IRLB3034)

I've got a 5 meter LED strip connected to a breadboard as such 12V Supply (+) -> (+) on breadboard rail (-) -> ground on breadboard rail Arduino (Wemos D1, all pins w/ PWM) pin7 -> gate(1st ...
2
votes
1answer
29 views

How do I program my Arduino Yun Shield when I keep getting this AVRDUDE error message?

Error message avrdude: AVR device initialized and ready to accept instructions avrdude: Device signature = 0x1e950f avrdude: Expected signature for ATmega32U4 is 1E 95 87 Double check chip, or use ...
3
votes
2answers
54 views

Pinball - “All Lanes Lit” Bonus score is not behaving as expected

I'm trying to build a (very basic) pinball machine with an Arduino Uno. This part of the code will detect when a ball passes 3 lanes. When a lane is passed, it will activate the lane(laneState), ...
-3
votes
2answers
40 views

Errors in code, LM35 temperature logging to web server

trying to experiment with Wemos D1 and LM35. Need to have temperature reading on the ESP IP. Found the following project to be exactly matching my requirements but I am having certain errors in it. ...
0
votes
2answers
24 views

Arduino box stops working: Reading RFID tag and sending data over network

This is a simple Arduino program which reads RFID tag and sends the data over a network (lora). The program works fine in as i run it, the arduino reads RFID and sends it over the network (lora) ...
0
votes
2answers
51 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
2answers
77 views

cheap ATtiny programmer on Debian

I've recently purchased a no-brand 1€ ATtiny programmer off eBay, and with the ridiculous price obviously came no documentation nor support from the seller. At first I thought that using it with ...
2
votes
1answer
47 views

Crosspack instead of Arduino IDE, how to include Arduino.h

I quit using the Arduino IDE, instead I am now using Crosspack via the command line on my Mac. It is working totally fine. I use "make" to compile it, "make flash" to upload it to the Arduino. This ...
0
votes
0answers
98 views

Exception 29 ESP12E Arduino

I am getting exception 29 every time I make request to HTTP using GET function. I am requesting HTTP every 20-30ms but using Millis I am only reading request at 100ms in order to avoid any overflow or ...
0
votes
1answer
28 views

Trying to Serial.write RAW code properly

I have a SIM800L Module connected to my arduino Nano. I want to open a TCP connection from the sim800l module to my own server and send a text string. The connection is working however I am not able ...
0
votes
1answer
33 views

Arduino code won't upload with Ethernet Shield attached

Been playing with my Arduino Boards for a while. i have an Arduino NANO UNO and a Duemilanove 328. I've been able to program both of them no problem for weeks. Any example project I try will ...
0
votes
1answer
51 views

Serial ports(in 1.0.5 & Port in 1.6.11) is greyed out under tools

I am running a linux distro on my pc(Ubuntu 16.04). I have installed Arduino IDE(version 1.0.5 since it's the only one available on the store) from the Ubuntu Software Center and also using the .ZIP ...
-3
votes
2answers
72 views

Arduino IDE programming help [closed]

I am trying to write a program to control a stepper, and incorporate a selector switch and a rheostat. The object is to make the stepper oscillate, and to be able to control the speed with the ...
0
votes
0answers
67 views

Wifi networking with ESP8266 (NODEMCU version)

I am doing some experiments with nodemcu 12 (which has built in esp8266). There most of the tutorials I found by internet describe how to connect to home wifi connection using it. But when I power ...
0
votes
0answers
29 views

How to create and write a file on SD card using arduino

I'm trying to write an arduino program which will write and read data from the SD card using different methods apart from Void setup() and void loop(), but the initialization of SD card I have done in ...
0
votes
1answer
24 views

Arduino Nano stuck on uploading

I recently bought an Arduino Nano ( a clone actually), I installed the CH340G drivers for it and got it working perfectly fine... Played around with it for a while and then kept it aside... Now after ...