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.
0
votes
0answers
19 views
Protocol options for data exchange between Arduino and ESP8266
I have a device built with an Arduino uno:
Arduino software installed on an Arduino uno
can be controlled via serial commands
can be controlled via physical buttons and sensors
on any button/sensor ...
0
votes
1answer
27 views
Arduino IDE not handling library code correctly?
The author of the PinChangeInt library and the EnableInterrupt library states at github:
When the PinChangeInt was in a .h and .cpp file, the Arduino IDE tried
to compile it twice. I have a ...
0
votes
1answer
32 views
How can i read serial data into a string until a certain character is recieved?
This is not a duplicate of my other question. This question deals with reading specific data within a serial stream. The other question deals with reading and adding data into a manageable data ...
1
vote
1answer
35 views
Including libraries from header files sometimes doesn't work
I, once again have difficulties including libraries from code files other than my .ino file.
I have several .cpp and .h files in my project to keep it sorted and clean.
However one of my header ...
1
vote
1answer
23 views
Cannot upload sketch to Atmega328p TQFP soldered on PCB
After creating a working prototype with DIP Atmega328 chip/ arduino uno I recently got PCBs assembled with SMD components and Atmega328p TQFP soldered onto them, but now I'm having a hard time trying ...
0
votes
1answer
23 views
How would i capture and split serial data?
How would i capture the following serial data, and split it into parts?
<Alarm,MPos:0.000,0.000,0.000,WPos:0.000,0.000,0.000>
the parts i need from this is
Alarm - This is a state. i.e Alarm, ...
1
vote
1answer
27 views
Atmega88 + arduino Bootloader + FTDI adapter
I burned the arduino bootloader within a atmega88, in order to program it directly from the serial port. But I can't download my code from the arduino IDE...
But I get the famous : 'avrdude ...
0
votes
0answers
22 views
NodeMCU build ESP8266
Anybody have a build of the NodeMCU firmware with the g8b SH1106 driver enabled? I can't find one anywhere and can't get the firmware to compile myself. (I know this isn't Arduino related per say but ...
0
votes
1answer
27 views
How to change the topic_name string to PROGMEM?
I'm trying to save SRAM on my Arduino pro mini by going through some libraries. I've noticed that to use my Arduino as a ROS node the library stores the topic name and message type as constants.
...
0
votes
0answers
108 views
ESP8266 problem as Web server
I asked a previous question about esp8266 that made a lot of things clear for me that esp8266 is very powerful and can be independently used as the webserver now, I have used the following ...
0
votes
2answers
38 views
How do pins on an arduino mega 2560 work?
I got a copy of Arduino from a local retailer here (it's a local copy and I'm pretty confused with how the pins actually work).
I know basic electronics so far, there should be two pins for every ...
1
vote
1answer
17 views
Reading RFID tags with Arduino IDE, not using Arduino
I am completely new to this technology, but I'm hoping to build a fairly simple program through the Arduino IDE that takes the serial numbers of RFID cards read through my ID-20LA Innovations RFID ...
0
votes
1answer
36 views
Passing class member function as argument
could someone please help me a bit.
I need to pass a class member function to server.on, unfortunately i get na error.
error: no matching function for call to 'ESP8266WebServer::on
I have done some ...
0
votes
1answer
34 views
Arduino User Input
Is it possible to accept input from an end user via terminal, or some other application?
I want to create a prototype for a friend, but he'd need to enter his wireless network and password to ...
0
votes
1answer
39 views
Interrupt variable not getting called while executing another part
volatile byte _incomingFlag = 0;
void onIncoming () {
_incomingFlag = 1;
Serial.println(F("You got an interrupt"));
mySerial.println("ATH0");
}
void setup () {
/* First Start the ...
1
vote
2answers
34 views
Arrays and Functions
How can I return a char array from a function?
char c[] = getFloat(val, valid);
char getFloat(float val, bool valid){
if(valid){
char stringFloat[16];
dtostrf(val, 10, 8, ...
0
votes
0answers
16 views
Can't program Atmega644p over ISP
I am using the Arbotix-M (Atmega644p). I am trying to program it using an ISP from Pololu. Until yesterday, everything seemed to be working okay and we were able to upload to it without problems. ...
1
vote
3answers
88 views
Are static variables in a function bad?
For my code I use a couple of static variables.
But when I search the internet, they seem "evil".
For example: I have a function which will be executed every loop (5ms looptime).
to increase the ...
0
votes
1answer
44 views
Arduino IDE on Fedora
I'm using Fedora_21_MATE.img on a Raspberry Pi. Installing the Arduino IDE 1.0.6 using these commands, taken from Arduino On Pi. Those instructions are for Raspbian, I assume, so changing for Fedora, ...
1
vote
2answers
95 views
How much numerical precision can the ESP8266 achieve?
Background: I am trying to port this solar tracker code by Gabriel Miller to run on the ESP8266. Now I'm not a particularly great coder, but I'd like to give it an honest try.
As of recently, the ...
0
votes
1answer
21 views
Bluetooth not transmitting refreshed sensor values
I have a 9 DOF sensor attached to a BLE chip and Arduino Uno. I want to send the position measurements (i.e. x, y and z coordinates) from the sensor to my iPhone app (Bluefruit LE). The code below ...
2
votes
1answer
31 views
Prevent hardware and library examples from showing in the Sketchbook menu
I have various subdirectories in {SKETCHBOOK}/hardware/ and {SKETCHBOOK}/libraries/ that contain an examples/ subdirectory. These examples are showing up in File | Sketchbook | hardware and File | ...
0
votes
1answer
39 views
the arduino software is looking for spi.h in a example code
I'm having a problem in compiling the example ScanNetwork codes in arduino it brings up an error that states "SPI.h: No such file or directory." Now I added an SPI folder in the libraries but after ...
0
votes
1answer
58 views
TinyGPS (Plus) Library
Is there a particular function in the library TinyGPS or TinyGPS Plus which outputs the raw NMEA sentences? I couldn't find anything about it on the website guide of the library.
1
vote
2answers
41 views
Empty char variable
How do I empty all the values inside a variable char array[256];?
I tried a for loop assigning an empty value at each iteration, but it doesn't compile.
0
votes
4answers
171 views
deprecated conversion from string constant to 'char*'
What does this error means?
I can't solve it in any way.
warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
0
votes
1answer
29 views
SD Library writing char in a file
I'm trying to write into a file using this code from the example of the library:
String dataString = "";
int sensor = 0;
dataString += String(sensor);
dataString += ",";
sensor +=1;
File dataFile = ...
0
votes
2answers
61 views
Number of elements in an array char
What kind of function can I use to know how many elements are in an array char?
sizeof() gives the number of 'spaces' available so it doesn't work for me.
0
votes
1answer
75 views
Converting float to String
How can I convert a float value into a String object without implementing any library?
I'd like to avoid using char array.
2
votes
0answers
83 views
How to program for two Arduinos with different code but share one same .h? [duplicate]
I am now programming for two Arduinos. One is used as Tx and the other is Rx. Of course they are programmed by different codes, but they share some same .h files I programmed(let's say 'share.h'), ...
1
vote
5answers
105 views
How to program for two Arduinos with different code but share one same .h?
I am now programming for two Arduinos. One is used as Tx and the other is Rx. Of course they are programmed by different codes, but they share some same .h files I programmed(let's say 'share.h'), ...
0
votes
2answers
112 views
Reading Arduino from Java is way too slow
I am trying to write a simple Java program to display the analog input fed to an Arduino board upon a stimulus from a user on some physical sensors.
If I use the Arduino program itself and look at ...
0
votes
1answer
73 views
How to transfer data from arduino to android via bluetooth? [closed]
I am having arduino uno board connected with bluetooth HC-05 module. I needed to transfer the data from arduino to android mobile via bluetooth.
Is it possible to transfer the data from arduino to ...
0
votes
1answer
58 views
What changes I have to take care while coding from Atmel Studio instead of Arduino IDE?
-Are there any changes in Bootloader?
-Why is the coding different for same chip in different softwares?
-How to upload the program from Atmel Studio?
0
votes
1answer
51 views
Arduino sketch behaves differently depending on version of Arduino IDE
I am assisting some friends on an Arduino Uno project, and we've noticed that when using some earlier versions of the Arduino IDE (In this case 1.0.5), the sketch behaves as desired. However, when ...
0
votes
1answer
40 views
Error in code saying “expected primary expression before ”<“ token” and other errors
I am Creating a laptop controlled robot using an arduino nano using the instructbles. I have tried running the code but it is throwing back lots off error and the main one is "expected primary ...
0
votes
1answer
177 views
Cannot convert 'String' to 'uint8_t {aka unsigned char}' in initialization
Hey all I am trying to convert a string into a uint8_t with the following code:
String data = "#255101987";
String tmp1 = data.substring(1, 3);
uint8_t first = (String)tmp1;
I am getting the ...
0
votes
1answer
89 views
Sketch Upload to LinkIt ONE Timeout
I've just bought a new LinkIt ONE IoT prototyping board, and I'm having trouble getting started with it.
I'm working on a mac. I've installed the LinkIt ONE SDK onto my Arduino IDE as specified in ...
1
vote
1answer
614 views
ESP8266 wifi module sending data via jQuery
Hey all I have the ESP8266 module and I have already set it up and it's working good. However, when I run this HTML page code here:
<html>
<head>
<title>ESP8266 LED ...
0
votes
0answers
50 views
I am running 1.6.5, but the folder says 1.6.3?
I just downloaded the latest version of the Arduino software (1.6.5). However, when I look into the Application Support folder under Library (I have a mac), I find that I have a folder named 1.6.3:
...
1
vote
0answers
10 views
Arduino IDE Board Manager: Unable to install Due on 1.6.5 [duplicate]
I have an Arduino Due I'd like to start using. I've been using Unos, Megas etc no problem. The newer IDEs have removed the Due support. I've been trying to install Due support through the Board ...
1
vote
0answers
798 views
Manual Arduino Due Installation
Not sure if this is the right place to post this.
I have an Arduino Due I'd like to start using. I've been using Unos, Megas etc no problem. The newer IDEs have removed the Due support. I've been ...
0
votes
0answers
36 views
Linear equation solver Arduino Calculator, printing wrong answer
I wrote a code in C to solve equations, but I don't know why some equations that I input into this calculator, give me wrong values, the algorithm is correct because I execute it in C and give me the ...
0
votes
2answers
754 views
Problems uploading sketch to Arduino Due
Windows 7 here. I just bought an Arduino Due and downloaded the Arduino IDE. I wrote a simple "blink LED" program (see below) and am trying to flash it to the Due.
When I connected the Due to my ...
0
votes
1answer
32 views
Arduino IDE / Teensy 3 on Ipad
Does anyone know a good IDE for Ipad to write Arduino code and compile it for teensy 3 ?
Answers with different alternatives would be appreciated
0
votes
2answers
60 views
Is there such a thing as an “Always” loop?
I seem to remember somewhere somebody making an "Always" loop between Setup() and Loop().
But I can't find any documentation on it. Does such a thing exist, or am I imagining it?
0
votes
1answer
61 views
Serial.println Sensor Value and text in one line
How do I put the sensor value and text on the one line in the serial monitor.
I just want Pot Value 30 to show in the serial console. What am I doing wrong?
Serial.println("POT value ...
0
votes
1answer
25 views
IDE to program Arduino Uno especially internal interrupt vectors
I am trying to program this Arduino Uno's Timer1 module to use its Input Capture pin to record the times of edges and store / transmit them during the Input Capture Interupt Service Routine, but I ...
0
votes
0answers
96 views
Arduino Uno R3 L(yellow) led stays on and error on upload
So I recently got an Arduino Uno R3. Installed the IDE and drivers under Windows 8.1 and everything seemed to work fine and received the 'Done uploading' message when goofing around with the Blink ...
1
vote
1answer
279 views
How shiftOut function works internally? (explanation on source code)
I were examining shiftOut() function code in wiring_shift.c and I didn't quite understand what is going in digitalWrite function. I see !!(val & (1 << i)) is taking the bit value from val ...