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.
-1
votes
1answer
18 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
17 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
30 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
21 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
24 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
28 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
24 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
26 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
85 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
30 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
24 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
32 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
25 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
38 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
21 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
50 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
33 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
22 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
50 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
vote
2answers
53 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
41 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
79 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
25 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
23 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
40 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 ...
-4
votes
0answers
48 views
SOAP Web Service arduino
I work in a IoT prototype using Arduino and I want to perform a web service embebbed in Arduino.
Which is the best way to perfom this?
Thanks!.
-3
votes
2answers
71 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
60 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
25 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
22 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 ...
0
votes
0answers
22 views
How to randomise a string?
I have a String key = "JcIcLzjbT0". I want randomise and shuffle it. How to achieve that?
0
votes
1answer
57 views
How to split a string into substring Arduino
I'm about identify myself stupid, howcome I couldn' t figure out how to split a string into substring using arduino, even after 10 days of searching. The number is fact... So, As Mr.Arduino.cc says: ...
2
votes
0answers
78 views
Arduino zero Error: unable to find CMSIS-DAP device
I am uploading a test sketch(Blink) to my new Zero(with Wifi101 shield) and when I press Upload in the IDE, the Console says the following:
Arduino: 1.6.10 (Linux), Board: "Arduino/Genuino Zero (...
0
votes
1answer
23 views
Is there any way to prevent Arduino CLI from closing each time?
I prefer writing code in Vim, so I'd like to get a workflow going with the Arduino CLI. I used to use ino, but I didn't like the restructuring of the project, which meant anyone who downloaded the ...
0
votes
0answers
76 views
Arduino error: Bad File Descriptor
So I just downloaded Arduino IDE on my Linux laptop. I also have an Arduino mega 2560. With nothing connected to it, I tried to upload the blink sketch to test if it is working. However, I get this ...
0
votes
0answers
20 views
Arduino 1.6.X on NetBSD/FreeBSD
I run arduino-mk 1.0.1 and would like to know if someone has had any luck getting 1.6.X working on NetBSD/FreeBSD. If I understand correctly, its core is java, and I can run most java programs. Are ...
0
votes
1answer
30 views
Powering Down Ardunio mkr1000
The mkr1000 is still pretty new and I'm having a hard time getting good information on it. I'm using the Arduino IDE but don't find any functions to sleep the mkr1000. Most libraries I encounter are ...
0
votes
3answers
63 views
why can't the atmel attiny family delay over a minute?
I have some really simple code and tested on an 8MHz ATTINY85 and ATTINY2313. It's basically a blocking blink:
int relayPin = 7;
long offPeriod = 1 * 60 * 1000;
long onPeriod = 1 * 60 * 1000;
void ...
0
votes
0answers
23 views
ATtiny85 / TLC5940 / leds not fading correctly
I have some simple code that should be working, but I can't quite see what is wrong with it.
I have an ATtiny85 working with a tlc5940, and testing is fine, I can choose LED 1-16, and pick a ...
0
votes
1answer
81 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
1answer
43 views
IDE 1.6.10 on LinuxMint 17.3 Cinnamon
When compiling I get the error
'as: unknown option »-mmcu=avr5« exit status 1'
I succeeded now using your piece of advise. Thank you so much.
3
votes
1answer
50 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 ...
0
votes
1answer
48 views
IDE will not open in Windows 10
I have loaded the Arduino IDE on Windows 10 32-bit on a 64-bit machine. This is my kids' laptop so they don't have admin privileges but, I installed it with admin privileges.
I have restarted the ...
0
votes
1answer
45 views
Cannot upload sketch to Arduino Nano
I've been using Arduino UNO for quite sometime and brought a new Arduino Nano. When I connected it to my computer, the power usb lit up and the blink sketch started running ( as expected of course).
...
1
vote
1answer
103 views
Parse HTTP Request Arduino
I am sending a HTTP Request to my WiFi module http://192.168.4.1/STA/ID=HelloWorld/Pass=Testin123
How can I parse above string in Arduino. First I need to check for STA, if it exists, continue to ...
1
vote
0answers
44 views
ESP8266 stuck in flash mode?
I have the setup described here: https://learn.adafruit.com/esp8266-temperature-slash-humidity-webserver/wiring
I currently have the reset pin set to float and the GPIO0 pin grounded, which should ...
0
votes
0answers
17 views
Reconnect to Serial Monitor
I have a project for which I have to work with a Teensy 3.2.
For the project I have to disconnect the Teensy from my pc running Arduino 1.6.7 (Win 10, 64 bit).
Within its runtime, the Teensy ...
0
votes
0answers
37 views
Cannot access “tools>Serial port” on Kali Linux
I just got my Arduino UNO delivered and I wanted to see if it's working properly or not.
I tried following this page to create a simple program and the program compiled successfully.
But when I ...
0
votes
1answer
38 views
Problem Atmel Studio 7 with uploading
I have a problem with the interworking between Atmel Studio 7 and Arduino IDE 1.6.10.
I recently upgraded from IDE1.0 to 1.6.10 can no longer upload my code to the arduino. Everything works ...