Questions tagged [arduino-ide]

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, macOS and Linux.

Filter by
Sorted by
Tagged with
-1
votes
1answer
1k views

Advanced Line Follower robot

I know about line follower mainly the grid solving robots i know the basics actually. Actually they have to trace the path of the grid in an arena and then reach back to starting point in a shortest ...
0
votes
1answer
2k views

Esp8266 V12 Wiring

I have tried a Google search and cannot find any place that tells me exactly how to wire the version 12 esp8266 , How should it be wired for normal operation and for flashing ? I am designing a diy ...
1
vote
0answers
282 views

Is my leonardo broken? Is there a way to make it work?

backgrounds I bought arduino leonardo and connect it to Ubuntu 15.04. With arduino IDE 1.0.5(from Ubuntu official repo) running in sudo, the arduino was recognized as /dev/ttyACM0. So I tried to ...
0
votes
1answer
336 views

Arduino: Error: 'PubNub' was not declared in this scope

I'm new to Arduino. When Arduino verifies this sketch https://github.com/MediaTek-Labs/Real-Time-Bicycle-Tracking-Map-using-PubNub throws the following: Build options changed, rebuilding all ...
0
votes
2answers
338 views

How come the console prints error `avrdude: usbdev_open(): did not find any USB device “usb”`?

How come when I try to push a sketch to my Arduino I see this error on the console? The subsequent sketch does not work. avrdude: usbdev_open(): did not find any USB device "usb" I've already ...
13
votes
4answers
59k views

Program an ATMega328P and use it without Arduino board

I'd like to use an ATMega328P for my project, I hope to do it without the Arduino board. I know with the Arduino IDE and an Arduino board I can program the microcontroller. However, would it be ...
1
vote
2answers
148 views

using more than 8 temperature probe of DS18B20 on Arduino

I am trying to use more than 8 temperature DS18b20 on one bus. Is there any problem to make it work?
0
votes
1answer
40k views

error: expected primary-expression before ',' token

I'm gettng an error "error: expected primary-expression before ',' token" in the following line of code - I have initialized an array with 220 ints. What am I doing wrong here? const PROGMEM int ...
0
votes
1answer
346 views

A question about including libraries

I'm a beginner in creating my own libraries so the following might contain some stupid stuff. Anyways, I'm using NRF24L01+ modules for wireless communication and I've been utilizing the magnificent ...
2
votes
2answers
651 views

Why PJ0 and PJ1 are not reporting as PCINT pins

When the sketch shown at end-of-question is compiled and uploaded to an Arduino board, it is supposed to Serial-print a list of available digital pins, showing for each pin whether it supports PWM or ...
2
votes
1answer
82 views

My mega only works on 1.0.1 IDE

My mega usb/serial adapter died some time ago, so I bought an external FTDI programer wich I got working on 1.0.1 IDE. I can load any program to the mega, even complex led matrix driver I wrote myself ...
0
votes
1answer
724 views

how to create a specific buffer when there is no buffer message in the data packet?

So I'm trying to understand a read method. In this method, // Read data from buffer int SoftwareSerial::read() { if (!isListening()) return -1; // Empty buffer? if (_receive_buffer_head == ...
0
votes
2answers
152 views

How to find the deferenced value of a transmit Port Register?

So I am working with the SoftwareSerial library. I'm looking at the write function and I see a *reg value being manipulate. I want to find the value of *reg so I traced the value by stepping into each ...
0
votes
2answers
4k views

Can a ESP8266 and a HC-SR04 be friends?

I have some existing code that I've been using with an Uno and a HC-SR04. In order to make my project less expensive, I'm trying to port everything over to a ESP8266-01. The last hang up I've been ...
1
vote
1answer
8k views

Arduino Pro Micro Analog Pinouts

I have the Arduino Pro Micro and I would like to use all the analog pins that I can on it. It currently looks like it has a total of 9 Analog pins that can be used. A0, A1, A2, A3, A6, A7, A8, A9 ...
1
vote
2answers
153 views

Standalone Arduino

I have an Arduino Uno and I am using arduino 1.0.5 IDE. I followed he procedures for bootloading an atmega328P-PU on a breadboard using an Arduino Uno from the link: https://www.arduino.cc/en/...
0
votes
2answers
12k views

How do I connect Arduino directly to MySQL server using the URL?

I started a project with my Arduino Mega 2560 that gets some values from sensors. I'm using MySQL Connector, https://launchpad.net/mysql-arduino, and this library allows me to connect to a server ...
0
votes
1answer
666 views

Integrating two Arduino Ethernet libraries in one sketch

I am trying to integrate two different Arduino Ethernet libraries, EtherShield and UIPEthernet in one sketch. EtherShield library is used to control LEDs via Android mobile application. While ...
0
votes
1answer
104 views

Why did my program stop working when I eject the serial cable like it did an auto reset?

Arduino Uno based on 328p micro-controller board only works while I am inserting the serial cable between the board and the computer and I can control the speed of my two motors and every thing is ...
0
votes
2answers
112 views

Consulting and inserting a string into an array if it doesn't exist (Arduino IDE) 1

Sorry that I repeat my question, I can't enter to my user... In the project I'm doing, I connect an arduino mega with ethernet and Post some Strings to the server. The arduino mega has a receiver(...
2
votes
1answer
707 views

Adafruit_NeoPixel define pin for different setups

I am looking for a way of defining multiple pins for my RGB strips. Currently the defined variable is set with the pin within it. This works just fine if I only had one RGB strip connected to the ...
2
votes
1answer
596 views

Arduino Command Line Interface - How to change boardsmanager.additional.urls

I am building a Travis CI job to test my Arduino Library and it needs to install external board definitions. Is there a way that I can set the boardsmanager.additional.urls from the command prompt ...
4
votes
2answers
3k 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
2answers
814 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 ...
1
vote
1answer
3k 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 string....
1
vote
1answer
2k 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
2k 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
1k 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
60 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
4k 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 library(...
1
vote
2answers
10k 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
348 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 ...
4
votes
3answers
18k views

Passing class member function as argument

I need to pass a class member function to server.on, unfortunately i get an error. error: no matching function for call to 'ESP8266WebServer::on I have done some searching but could not understand ...
0
votes
1answer
840 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
86 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
137 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, ...
1
vote
0answers
106 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
3k 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 ...
2
votes
1answer
3k 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, ...
2
votes
2answers
5k 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 ...
3
votes
1answer
257 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
76 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 | ...
1
vote
2answers
2k views

the arduino software is looking for spi.h in a example code [closed]

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
1k 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.
2
votes
2answers
5k 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.
18
votes
5answers
74k 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]
-1
votes
2answers
1k 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 = ...
1
vote
3answers
26k 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.
1
vote
1answer
6k 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
86 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'), ...