Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [library]

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
11 views

Problem with SPI when using rf24 NRF24L01 transceiver with LED matrix MD_MAX72xx

I am currently using Arduino Mega to use a LED matrix and a NRF24L01 transceiver. for LED matrix, I use MD_MAX72xx library. While for the transceiver I use the RF24 library. I am already able to ...
0
votes
0answers
10 views

Read SNMP OID values with Arduino

I wish to read SNMP predefined OID values from other devices, can it be done with Arduino? I searched all over the internet for the past 2 weeks about Arduino with SNMP and found a lot of great ...
0
votes
0answers
22 views

How to attach interrupt to RBDlibrary?

I am pretty new to arduino programming. I want to use the library from the Robotdyn dimmer modul with a arduino uno and a encoder with lcd for a menü but if i attach the interrupt for the encoder (on ...
0
votes
1answer
33 views

Higher precision logarithms

I need to produce a log to base 10 with at least 4 decimal places. However, the log10 inbuilt function is giving the output with only two decimal places. What do I do? Is there a different function or ...
0
votes
0answers
17 views

Adafruit Feather nRF52832 as a SPI slave

Like the title says, I am trying to configure the Adafruit Feather nRF52 as a SPI slave, who will receive information from a MSP430 microcontroller. I have found a few code examples that provide ...
0
votes
1answer
44 views

Installing Jan Breuers SCPI Parser

I am trying to install/include Jan Breuer's SCPI parser. I was not able to find any documentation to accomplish this. I copied the contents on of the GIT zip file to my Libraries directory, but when I ...
0
votes
1answer
34 views

Bypass a function error

I have a long code written in Arduino101 that works fine. I use a prepared function (connected to a library) in my code that I have not written it. My input to this function is an array. In 99.9999..% ...
1
vote
0answers
47 views

Millis() is Not Working

I have a sketch that uses two timers using millis() from a library I created to keep time. The timers seem to be working correctly, but when I print the start time of each timer, it is clearly wrong. ...
0
votes
0answers
29 views

Not able to find right library for MPU9250

I am using an Arduino Uno and learning to use the motion sensor. Currently I was not able to find the library which looks simple and would like to get your suggestion. I found this https://github.com/...
0
votes
0answers
33 views

DFPlayer for Writing to SD Card

Can you use the DFPlayer to write to the SD card? Link for DFPlayer: https://www.dfrobot.com/wiki/index.php/DFPlayer_Mini_SKU:DFR0299 Here's the goal of my project. I have a button that, when pressed,...
0
votes
2answers
40 views

Arduino library redeclaration error

This is my first time here and I hope someone can be of help! I'll try to keep it as concise as possible. So I have two sensors/modules, 1 is an LCD screen from elecrow and another is the DS1307. ...
0
votes
1answer
60 views

No matching function call for timer?

I am using the Timer library here with the Adafruit feather m0: https://github.com/JChristensen/Timer https://playground.arduino.cc/code/timer I cannot figure out why I am getting the error: no ...
0
votes
1answer
54 views

SoftPWM update limitations

i'm using arduino to dimmer 9 led strips with different output pins after an FFT audio analysis gives results at 60Hz = 16ms. [FFT is performed by a PC and sent to arduino using a RF24 module] I ...
2
votes
1answer
69 views

I need help with U8GLIB library

I have a project which uses a 128x64 oled display. I have to use the U8GLIB as the available displays change from SSD1306 to SSH1106 depending on when you buy it which that library covers both ...
0
votes
1answer
51 views

exit status 1 - expected primary-expression before '(' token

When I try to compile the following sketch, the compiler returns the error "exit status 1 - expected primary-expression before '(' token", and highlights "midi();" in my code. Here is my sketch: #...
0
votes
1answer
58 views

Where are the implementations of the SdFat BlockDriver methods?

This is most probably more of a C++ question than an Arduino question; but since this is an Arduino library, I am asking here. I am using the SdFat library for my project. The library defines a ...
0
votes
0answers
41 views

Trigger cheap wireless doorbell

I would like to trigger a simple wireless doorbell. The doorbell uses 433Mhz. To read and send signals I am using the FS1000A Set (sender and receiver). I've started by connecting the receiver to the ...
-1
votes
2answers
28 views

Error compiling a sketch to class/library conversion

I'm trying to take a sketch and turn it into a class for a library I'm making, but I'm getting compile issues. This is not a duplicate as suggested. as i explain in the comment and my answer. Thank ...
0
votes
1answer
80 views

'inet_addr_to_ipaddr' was not declared in this scope

I am using ESP32 Ping from this page: https://github.com/pbecchi/ESP32_ping It works fine on ESP32, no compiler error. Because something wrong on my PC, I did fresh install Windows 10 and Arduino ...
0
votes
1answer
24 views

Calling external function from a class function

I'll try to explain my need: I have a generic library I created, called myIOT.h. This class have a pre-configured MQTT and wifi setup. Inside this library there is a mqtt_callback function, for all ...
0
votes
1answer
25 views

How do you remove dependencies from a library?

I'm writing a library for a project i created, but it depends on the Neopixel library from adafruit. I want to remove this dependency and have my library be a stand-alone library. Is there a way to ...
0
votes
0answers
28 views

Passing functions while creating a library [duplicate]

I'm trying to create a library to bind a major part of common code ( starting Wifi, initiate MQTT, OTA and more ). while using same code in a non library sketch, which works as expected, I find a ...
0
votes
0answers
34 views

Parsing multiple jsonObjects with Arduinojson and return a list of values

I am building a table tennis score board which parses json objects with ID and names of players to let the players pick their name inside a menu and later on submit the scores to my server. But I am ...
0
votes
1answer
40 views

New code results in audio noise

I am working on a circuit that can record audio to an SD when a switch is HIGH and stop recording when the switch is LOW. I am using the TMRpcm library. I previously had an issue solved on these two ...
0
votes
0answers
23 views

error while uploading a code

Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Uno" avrdude: can't open input file C:\Users\PETER_~1\AppData\Local\Temp\arduino_build_223764/nyu_probe_activity1_code.ino.hex: No such file or ...
0
votes
1answer
30 views

Trying to save .wav files with new name every loop

I have built a set up with an Arduino UNO hooked up to a switch, so that whenever the switch goes from HIGH to LOW it saves audio to an SD card. I am using the TMRpcm Library. The problem is the ...
0
votes
3answers
112 views

Creating a library for arduino

I found a really nice 24 bit I2C adc which was fairly cheap as well (ADS1219) but as far as I could tell there are no libraries for it so I decided to make my own. I have managed to write functions ...
1
vote
3answers
48 views

Guideline in library creation

According to this example, creation of an Arduino library is quite understandable. But a few things I would like ask (mostly regarding to what to be defined where) when a library is not that simple: ...
0
votes
2answers
56 views

ESP8266 library: 2 requests received instead of 1

I have a strange issue with my sketch using WiFiEsp.h library from https://github.com/bportaluri/WiFiEsp When i send 1 request to my ESP8266 from my browser as http://192.168.0.25 , it seems that my ...
0
votes
1answer
55 views

NRF51822 ± Arduino Uno / ATmegaXXX?

Hello I want to make a simple home automation project and I'd like to use an arduino uno for prototyping and later a atmega for deployment. I need some sort of a mesh communication method. I was ...
0
votes
1answer
43 views

Using timer classes within classes

I am trying to develop a class for a pump that works on a stepper motor, it should be simple but its not working the way I thought it would. Once I move the timer object into the class the code wont ...
0
votes
2answers
88 views

My Ultrasonic sensor is only showing 4cm range?

I am using an ultrasonic sensor SR04 with Arduino Uno and a sample program which I got from the library. However, my output reading is only 4 cm even when there is no object in front of it. I even ...
0
votes
3answers
39 views

Iteed SD card breakout info for Arduino

I got an SD card breakout from an online shop, its the iteed kind without the level shifter, it has the 3.3 / 5 V switch. I cannot find any libraries or write example for it. Has anyone dealt with it ...
1
vote
1answer
172 views

Standard Practice for including custom library in examples folder

I have created my custom library with examples folder in them. The main header file is ABC_Node.h. I am referring the structure of Adafruit libraries for Arduino and in some repos under the examples ...
0
votes
1answer
71 views

Arduino IDE does not display examples folder from my custom library

I have created a custom library for local usage. I call is ABC_node for ESP32 and the structure is as follows: . |-- examples | |-- bnoCalibStorage | | `-- bnoCalibStorage.ino | |-- ...
0
votes
1answer
54 views

Apply patch to library for custom changes in Arduino IDE

I wish to obtain unix epoch timestamps in millisecond precision. I am using an ESP32 along with DS3231 RTC breakout board from adafruit. Apparently the Repository is not maintained often but I see a ...
0
votes
1answer
77 views

Trying to instantiate a DS3231 real time clock within a library

I'm trying to write a library encapsulating things that I do with a DS3231 real time clock. I have managed to compile a sketch using the library, but it apparently blows up when attempting to call ...
0
votes
1answer
30 views

How to Create a reference to an External Print object

Right now I have an object: class Dog { public: Dog(uint8_t I2c, Stream& feedback); void Speak(); private: uint8_t _I2c; Stream& _output; }; Dog::Dog(uint8_t I2c, Stream&...
2
votes
1answer
52 views

Specific values not showing when using a numeric keypad

I have attached a 3x4 keypad to my Arduino Leonardo as an input method. Whenever I press the buttons, the majority of the keys work but specific ones don't. Here's my code, I've set it up to beep a ...
1
vote
2answers
66 views

Why is there no embedded c code in arduino libraries?

When I took a look at how the arduino libraries were coded I expected to see register names like I/O registers(PINx,DDRx,PORTx) and other such registers with values assigned to them but instead I saw ...
1
vote
1answer
148 views

Looking for light-weight Arduino OLED library that supports text and bitmaps

I'm trying to incorporate a screen into my Arduino code which is quite large already. The Adafruit SSD1306 library is overly large and has a lot of unnecessary things in it. I've found the ...
2
votes
2answers
184 views

How to determine the source of constants in libraries?

Preamble: I am trying to figure out how to program and use the timers in the Feather M0 using the Arduino IDE. I have seen a number of examples published, but I'm not one to just blindly copy some ...
1
vote
2answers
426 views

How to write a library that support both HW and SW Serial communication and allow user to chose which one to use?

I'm working on a library for Arduino/ESP8266/Teensy that use serial to send AT commands. I want to make it as customizable as possible, so I avoided to hardcode the serial and I ask for a reference in ...
1
vote
2answers
414 views

How would I include Arduino libraries using AVR-gcc without the IDE?

I am writing my own code for the Arduino Uno. I compile my code with AVR-gcc, and then upload it with AVRdude. I am not using the Arduino software, but I do have it installed and working on my PC. I ...
0
votes
0answers
339 views

Rc-Switch Receiver Code not receiving anything

Hi so I'm Having Problems on my receiver code which uses the RC-switch.h library, The transmitter code is OK and it prints the corresponding values on the serial monitor but the receiver code doesn't ...
0
votes
0answers
36 views

Virtual Wire transmitter code

I'm Having problems on my virtual wire transmitter code. when i press one button the backward button is continuously being pressed even when im not pressing it. Here is the code // TRANSMITTER CODE #...
0
votes
0answers
116 views

Servo.h and ServoTimer2.h difference

So i'm trying to code a servo motor to turn left when a button is pressed and turn right if another button is pressed i already have a code for it on the servo.h library but it has a problem with the ...
1
vote
1answer
866 views

How to install your own library with Arduino IDE 1.8.5?

I'm struggling a bit with Arduino language + its IDE not being 100% real C++. I wrote my own I2C library for a sensor but can't get the IDE's compiler to recognise it. I'm using Ubuntu 18.04. I get ...
1
vote
2answers
87 views

Attach Interrupt with Library

I am trying to make a library for Arduino, which requires an interruption, but the problem is that when I try the attachInterrupt function inside my library, there's a problem about attachInterrupt is ...
0
votes
1answer
52 views

MAX6675 gives a climbing reading

I am using a MAX6675 board and a k-type thermal couple to measure temp. The problem is even when running the example the temp value keeps climbing. MAX6675 test 27.25 C = 27.25 F = 130.10 109.00 C = ...