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.
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
votes
0answers
32 views
Arduino running two different programs
I have written a library to control a robot I have created. I have used this library with many different robots many different times and it has worked perfectly. Today I uploaded a program to the ...
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
13 views
433M modules w. soldered 34.6cm antenna, first test
I'm doing a first tx/rx on a pair of modules, and some hams have alluded that they 'autoadjust' - since I've soldered halfwave antennas onto the modules, what's the optimal range for first tests? And ...
0
votes
1answer
25 views
how to get an unofficial WiFi Shield to work?
I just bought these two WiFi Shields -> http://www.ebay.de/itm/262525969091?_trksid=p2060353.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT
As they arrived I put one of them onto my Arduino Uno R3 and ...
0
votes
1answer
11 views
Debugging my created Library - Error - request for member … which is of non-class type
This seems to be a very common error, I am struggling to understand what exactly the solution to this is. I am attaching everything, library files, code, and errors. If you have a moment, I need ...
0
votes
1answer
33 views
Creating a Library Help with errors
I am attempting to create a library out of an existing code to use inside of another code. To clarify, I have one code, I need to add the functionality of another code to. Instead of plopping the ...
0
votes
0answers
29 views
Standard GSM Library with TinySine GSM Shield (SIM 900)
Is that possible to use the Standard GSM Library with TinySine GSM shield without any modification ?
-1
votes
1answer
18 views
where to get Arduino WIFO101 library that supports WiFi.beginAP() on board MKR1000
The sketch example from page "Wifi.beginAP()" causes compiler error because the return values are not defined for -WL_AP_LISTENING or -WL_CONNECT_FAILED.
Board: Arduino MKR1000 WiFi
Compiler: ...
-1
votes
0answers
32 views
need tutorial for Arduino class Adafruit_VS1053 API for Adafruit Music Maker codec shield
I cannot find a guide, tutorial or example code for operation of the Music Maker shield. I'm using Arduino IDE to compile and download to target Arduino, which is on Music Maker shield.
Specifically ...
2
votes
2answers
56 views
producing sine wave variable in amplitude and frequency
How to produce a sine wave with variable frequency and variable amplitude?
I found a library to produce variable frequency called sinwave but not produce variable amplitude (I want -2V to 2V amplitude)...
0
votes
0answers
25 views
Trouble uploading code due to 'lack of storage'(?)
I've recently bought a Arduino Uno (so I'm a beginner with electronics :$) but I have trouble uploading any code using IDE. It keeps saying there's no storage and that it can't find the library. Does ...
0
votes
1answer
19 views
Perform function after a period of time
I am working on a project that I am supplying with voltage an LED through a digital pin (26) and I want the LED to be switched off after 4 seconds.
I am using Arduino Mega2560 and I am programming it ...
0
votes
1answer
23 views
most effective ( progsize/speed ) SD card usage
I am making a project with several modules and libraries involved. I just tested the SD lib example, and got a binary at ~14KB - way too much. I'd like the SD bits to go below 8KB, since it's just ...
0
votes
1answer
35 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
48 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
31 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
39 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
69 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
53 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
64 views
Programming Arduino With Python [duplicate]
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
92 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
69 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
117 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
26 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
137 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
56 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
70 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
63 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
75 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
53 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
60 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
2answers
912 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
31 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
20 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
45 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
107 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 ...
3
votes
0answers
54 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
214 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
83 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
517 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
27 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
114 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? ...
3
votes
3answers
467 views
Are there any detail examples of Si4463
Recently, I bought two Si4463 chips, but I don't know how to use them. It seems complex. I'd like to know if there are any examples of an Si4463 used with an Arduino?
1
vote
3answers
59 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
102 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
22 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
103 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 ...