Tagged Questions
A library is a file that can be included into the code to add new instructions by combining many existing instructions and creating one easy to use instruction to call.
0
votes
1answer
28 views
do i need to also connect GND and 3.3v
I am trying to run this code:
https://github.com/miguelbalboa/rfid/blob/master/examples/ReadNUID/ReadNUID.ino
Using an ESP8266 based D1 board and an RFID-RC522.
I am not able to get it to detect the ...
0
votes
0answers
8 views
Sound module WT588D-28P Library Development
I have a WT588d-28p 32M sound module that is currently using a WT588D-16P library.
I do not have the expertise to modifie the 16P library up to a 28P version, but I have accumulated a large amount of ...
0
votes
2answers
20 views
arduino ethernet run php from sd card
I am just interested, but I would like to run a webpage with php on my arduino ethernet. I would like to be able to store my webpage on the sd card as well.
does anyone know of a library that would ...
0
votes
1answer
21 views
Missing Libraries make no sense
I've never much issue importing a library to my master sketchbook location, restarting Arduino, then using the library examples. Today is a different story:
I'm loading RCLib which is part of this ...
0
votes
1answer
29 views
Why does servo library conflict with irremote?
I am building an Arduino Mega robot. I am planning to use IRremote.h library for it. I am using multiple libraries in my code and I do not know which timers are taken. I always get errors when ...
0
votes
0answers
18 views
set up clion for arduino
i would like to configure clion (2016.1.3) to use with arduino plugin (github.com/francoiscampbell/CLionArduinoPlugin), on windows 10.
i have followed this instructable: Setup-JetBrains-Clion-for-...
-1
votes
1answer
49 views
Programming Arduino With Python
Im a beginner working with arduino.
Im little familliar with java syn and its not hard for me to do the work with ide ;but i know python better....is there any Lib that let you program Arduino with ...
4
votes
1answer
58 views
Single #include pulls in all libraries
I am tracking down the memory usage of an Arduino-like project I am working on (not a real Arduino, but has same microcontroller and it uses the Arduino build environment, version 1.6.8). I have some ...
0
votes
0answers
18 views
Same code! After I upload it. It was an error. avrdude: stk500v2_getsync(): timeout (something like that [duplicate]
int buttonPinvoid
setup (){
beginSerial(9600);
pinMode (buttonPin, INPUT);
}
void loop (){
if(digitalRead(buttonPin)==HIGH) serialWrite('H');
else serialwrite('L');
delay(1000);
}
0
votes
1answer
66 views
'serialWrite' was not declared in this scope
Please help me! Once I click the upload button.
I get the following error:
'serialWrite' was not declared in this scope
Here is my code:
int buttonPin
void setup ()
{
beginSerial(9600);
...
1
vote
1answer
115 views
How can I include examples in library?
I have written a library for Arduino, my_library, consisting of my_library.h and my_library.cpp, both included in my_library folder. Actually the library is recognized from IDE Arduino and works fine.
...
0
votes
1answer
18 views
Passing array to library function
I'm trying to pass an array to a library (written in c++) but the error:
undefined reference to `MyLib::arrayTest(int*)'
collect2: error: ld returned 1 exit status
Error compiling.
Is being ...
4
votes
2answers
108 views
Wire.h not found!
Here's the code that's making this error:
#include "Wire.h"
Here's the error:
fatal error: Wire.h: No such file or directory
#include "Wire.h"
^
compilation terminated.
Error ...
1
vote
1answer
42 views
Where can I find magnetic declination lookup table?
Is there a way to get approximate value of magnetic declination from GPS coordinates?
My Arduino-based device has a Magnetometer and a GPS, and uses magnetic declination in calculations. I would like ...
3
votes
1answer
65 views
how do I use interrupt service routines inside libraries and classes?
I'm trying to have a millis() timer run to emulate a hardware timer inside a library, but I'm having issues compiling the code. I want to have the callback (pseudo ISR) be part of the class, and not ...
1
vote
1answer
40 views
Create a library without a class?
I'd like to know if it's possible to create a library for Arduino that does not contain a class, just functions.
I know how to create a library with a class, but I'd like to create a library of ...
0
votes
0answers
19 views
CC3000, How to find Client IP?
I have asked here, Arduino.cc forum, and Adafruit forum this question related to finding client ip using the Adafruit CC3000 Shield. Answer from TisteAndii here: Client IP seems to be on-track, only ...
1
vote
1answer
61 views
MG2639 CELL AND GPS LIBRARIES
I'm using a MG2639 Cell Module with the SMS and GPS functionality.
I have a sketch that sends through SMS the location of the arduino UNO.
This is my code:
#include <SoftwareSerial.h> //to ...
0
votes
2answers
50 views
Debugging with an ATtiny?
I have an ATtiny hooked up to two line scan modules. I'm sending digital signals to the line scan modules then receiving the analog output and storing it in an array. I have an if statement that will ...
0
votes
1answer
48 views
Safe changes in the Arduino Libraries and use them
I changed 2 Arduino Libraries because i have a 9 bit data protocol, now i want use the amended Libraries on my Arduino mega2560.
At first i have set a 9 bit data mode that can i do when i set the ...
0
votes
1answer
350 views
How to connect WIFI sheild ESP-12E-ESP8266-UART-WIFI-Wireless-Shield with arduino
Hi all I have bought this shield from ebay and now I don't know how to use it,
http://www.ebay.in/itm/ESP-12E-ESP8266-UART-WIFI-Wireless-Shield-for-Arduino-UNO-R3-Bouclier-Sans-filfr-/152048233906?
...
1
vote
1answer
21 views
Any way to not explicitly include dependent libraries?
When I am including the Adafruit_BMP280 library, Arduino IDE 1.7.10 complains that it wants all dependent libraries included:
Adafruit_Sensors.h
Wire.h
SPI.h
Isn't it possible to circumvent that? ...
0
votes
2answers
16 views
Using the Logging library, sometimes doesn't exit setup()
This has been a hard problem to diagnose, so I hope I'm giving enough info here. I'm trying to write a program for the Arduino (a lighting controller) using a bit of OO. There are several classes in ...
0
votes
1answer
41 views
Creating a library
I created a simple library for formatting text output on the serial monitor. It has thee functions, one that creates carriage returns, one that sets the number of spaces between characters and the ...
0
votes
1answer
65 views
Where could I find the “Serial.find()” source code?
As written in the title, could you tell me where to find the source code of the function "Serial.find()"?
I haven' t installed the Arduino IDE, so I'm glad if you could me link a web resource, or if ...
1
vote
0answers
32 views
Replacement for #include <pins_arduino.h> on particle photon
I've run into this a couple of times when trying to use libraries written for Arduino on a particle photon. Many have the line:
#include <pins_arduino.h>
which returns the error on the ...
-1
votes
1answer
172 views
Find remote ip address TCP
Found this "Remote IP of TCP Socket" at:
https://e2e.ti.com/support/wireless_connectivity/simplelink_wifi_cc3000/f/851/t/380635
How would this be used; Adafruit CC3000 library, "Utility\socket.h?"
...
0
votes
1answer
56 views
Arduino Mousecontroller library doesn't work
I am working on a project with the Mousecontrol library. This causes me a lot of problems with loading the library. I imported the library but it gives me errors everytime. I think it is a mistake in ...
0
votes
1answer
199 views
Error saying an included library is not
The IDE tells me the included library isn't? I tried restarting the IDE and my computer but it doesn't work. The other libraries work fine it's only with Keyboard that it fails.
My code:
#include &...
0
votes
0answers
24 views
Edited library .cpp isn't changing / compiling
I've made some minor changes to a library (just the .cpp, not .h), and the changes aren't taking effect when compiling. Even outlandish errors have no effect.
I've tried in VS2015 (my normal ...
5
votes
2answers
88 views
Is there a way to replace an Arduino core function without modifying the Arduino code?
(Let's just skip the suggestions that it's wrong idea and interrupts for a while...)
Is there a way to replace the digitalWrite() method (for example) so I can add something more to happen in there? ...
2
votes
3answers
294 views
Are there any detail example of Si4463
Recently I buy two Si4463, but I don't know how to use it.It seemly be complex, whether there are some example of Si4463 by Arduino ?
1
vote
3answers
53 views
Can I prevent the Stepper library from holding the motor?
I'm using the Stepper library to control a single stepper motor. When the Arduino is not running the motor it is holding the motor shaft in place. For my application, this is very wasteful and puts ...
0
votes
1answer
76 views
Arduino OOP and [this] keyword
Lets say I have a sketch called mysketch.ino with these contents:
String globalString = "ThisisGlobal";
void setup(){}
void loop(){}
How can I pass THIS sketch mysketch.ino as an object or its ...
1
vote
1answer
21 views
Do arduino librarys require the arduino to be connected to a computer?
The title pretty much explains my question. If I'm using a library for example one for an accelerometer does the arduino need to be connected to my computer because it's using a library? Or is the ...
1
vote
1answer
70 views
Troubleshooting duplicate libaries (Arduino motor shield and stepper motor)
I have tried a software. It work flawless on the first laptop in a fresh install arduino IDE environment with the libraries I imported.
However when I copy the exact same program over. I get lot of ...
1
vote
2answers
43 views
Convert library from using bitbanging to hardware SPI
I'm using a MCP3008 8ch 10bit ADC to expand the Analog Inputs for the project I'm working on. The only library I can find for it is here the library is ported from Adafruit's Raspberry Pi library here....
4
votes
2answers
111 views
Why does DHT-library (and others) only allow one object instance?
I came across the problem to handle two DHT22 devices.
I use the Adafruit DHT Sensor library.
Since my Arduino sketch works as a "relay" for Serial commands on a host, I tried to wire up and ...
1
vote
2answers
197 views
Can the Arduino Eclipse plugin use the Arduino IDE's libraries?
In Arduino Eclipse (v3, nightly build) I have not been able to load 'foreign' libraries, those written by me or someone else, so they are not among the available choices in the include-library dialogs....
3
votes
3answers
171 views
How to define a SoftwareSerial object inside a class?
I have a header file called Rhino.h with class Rhino. I want to pass RX and TX pin numbers to this object class, and with this, define a SoftwareSerial object to be used inside the Rhino class. The ...
0
votes
1answer
37 views
VirtualWire send function
I am a little confused on how exactly VirtualWire's "send" function works. After looking at the code, the process I gathered is the following.
In the Arduino IDE, call vw_send() with the right ...
1
vote
1answer
63 views
Cannot include .h files back one directory
I am working on a project with multiple arduinos. I want my folder structure to be as follows:
/
libs/
someSharedFile.h
arduino1/
arduino1.ino
arduino2/
arduino2.ino
When I ...
0
votes
1answer
62 views
Using #define and multiple classes
I am using the FastLED library in my program and the basic usage is that the following lines go at the top of the main sketch:
#include <FastLED.h>
#define NUM_LEDS 60
#define DATA_PIN 6
You ...
0
votes
1answer
58 views
Instantiating bounce library inside a class
I am trying to get my head around how to instantiate objects from existing libaries inside a class object. Specifically I am trying to get the bounce2.h debouncer working.
At the moment my code ...
0
votes
1answer
44 views
Understanding the contents of a library in C
So this is a question not just about the #include but most all includes you find while programming in C.
So I understand a library is prewritten code and when you include that library are you able ...
1
vote
1answer
340 views
Can't compile my library because “String does not name a type”
I am writing a small library to move some code out of the arduino sketch and make it reusable. Problem is that it does not compile since "String does not name a type".
This is my code (reduced):
...
0
votes
1answer
92 views
Help with a rather specific implementation of FFT Library?
So, I guess what I'm trying to do here is properly understand the FFT library posted here by Open Music Labs, done in C++. I believe I understand the Fourier transform, but the FFT has some nuance ...
0
votes
2answers
38 views
Are there any constants for default SPI port pins defined?
I'm writing a library which controls a device using SPI bus. For the communication I need to manually toggle the chip select pin. On most Arduinos SS pin is on D10, but there are also other models ...
1
vote
0answers
65 views
Receiving and transmitting messages simultaneously
tldr; I am writing a mesh network software using arduinos. I need to wirelessly receive, process, and transmit data, all simultaneously. I am aware of protothreads library, and the other software ...
0
votes
3answers
112 views
Use only one pin as serial output/input with arduino
I'm looking for a way to use Arduino UNO's as serial outputs or input "individually", I don want to have an RX pin for each TX pin. I know the library SoftwareSerial, but I'm not sure if it is posible ...