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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
59 views

How to efficiently manage external libraries?

I know that it is possible to download a library on github manually, or automatically with a similar script to this one using arduino-cli: ARDUINO_LIBRARIES=("Keypad") GITHUB_LIBRARIES=(&...
0 votes
1 answer
29 views

Problem installing RPLidar library

I'm trying to add the RPLidar library. I've already checked this solution, but it's not working for me, I get this error : Error: 13 INTERNAL: Library install failed: extracting archive: Not a ...
2 votes
1 answer
70 views

How to change the direction of a stepper motor using the AccelStepper library?

I'm using a Nema 17 stepper motor (200 steps) and a DRV8825 motor driver. This is the configuration I am using: I am using a 9 V power supply. The dirPin is connected to pin 3 on the Arduino board, ...
1 vote
1 answer
40 views

Why 0 devices, but not 1?

I have found a sketch in Wokwi where a MAX7219 LED matrix is used. The sketch subject is to display 0 using <LedControl.h>. I don't understand why it's nessesary to send 0 unlike 1 in fourth ...
3 votes
2 answers
1k views

Using the Broadcom AFBR-S50 with Arduino

I'm trying to interface with a Broadcom AFBR-S50MV85G ToF sensor over SPI using an Arduino, which is complicated by the fact that the provided library and reference application is written for Cortex ...
10 votes
1 answer
12k views

Emulating 1-wire device(s)

What I want to do is make a ATTiny IC become a slave on the 1-wire bus, with its own S/N and command list for its specific functions. What I want to know is if I can use the one wire library from ...
7 votes
4 answers
21k 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 ...
1 vote
1 answer
722 views

Impossible to install the esp_camera library

I cannot install the esp_camera library. When I try to add the .zip, I get "does not contain a valid library. Everything about this ESP-32 Cam seems to rely on that library, and I can't find a ...
1 vote
1 answer
98 views

Get 3-inch e-Paper working on a Nano

Please help! I purchased a 3-inch e-Paper Display from Waveshare, which appeared to suit my project well. The exemplary little code to show an image was easy to set up and to demonstrate functionality:...
3 votes
2 answers
2k views

is #ifdef __SD_H__ considered a bad practice?

Say I'm working on a library^1 to which I want to add support for SD.h^2 but knowing for a fact that many microcotrollers don't support SD.h (therefore they result in compilation errors [eg. Attiny85])...
2 votes
1 answer
189 views

Using PBC library on Arduino

I want to know if there is a way to install/use the PBC library on Arduino UNO. I want to implement some cryptographic primitives using PBC library. Thank you.
1 vote
0 answers
41 views

MKR GPS shield inconsistent GPS connection/data printing...library issue?

I have been using a MKR WiFi 1010 board with GPS shield for a very long time (year+) and have not been able to solve my problems with the GPS data dropping out. The setup for my field application is a ...
1 vote
0 answers
412 views

Keyestudio KS5009 ESP32WROOM32 Smart Home

I'm encountering persistent errors with the sample code provided for my smart home kit project. Despite conducting extensive research and troubleshooting efforts, I haven't been able to find a ...
1 vote
2 answers
3k views

Arduino library or code for ESP32 to scan for Bluetooth devices?

Is there some code or library that would allow me to scan for nearby Bluetooth devices using a common ESP32 board ? I only found similar code for actual Arduino boards.
0 votes
1 answer
229 views

Unresolved reference to public function from library

I have three libraries that I've written and I'm trying to use. They're stored as follows Documents ├── Some/Path/To/Folder │ └── firmware.ino └── Arduino └── libraries ├── error ...
1 vote
1 answer
835 views

Add library to CLion project

I have a new project created with PlatformIO in CLion. I've copied the Servo-1.1.8 library into the include directory. #include <Arduino.h> #include "Servo-1.1.8/src/Servo.h" Servo ...
2 votes
1 answer
303 views

Uploading a Library to the library manager from a Github branch

I am trying to upload a library to the Arduino Library Manager. I know the GitHub - arduino/library-registry: Arduino Library Manager list repository, and I have already read the instructions, but I ...
-2 votes
3 answers
124 views

Using Soft UART - how include library

I want to use the soft serial communication example. But when I compile it, it sais: /home/xxx/Arduino/SoftwareSerialExample/aa/aa.ino:28:28: schwerwiegender Fehler: SoftwareSerial.h: Datei oder ...
2 votes
0 answers
4k views

WifiEsp client TIMEOUT when put on a loop

Hello I have been using the WifiEsp to send and receive data from Thingspeak. All is well until I put my http request on the Void Loop() section. My Goal: I want to receive data every loop not on ...
2 votes
0 answers
142 views

Ability to connect 2 or more w5500 Modules and deal with them as objects

I wish to create a rudimentary ethernet in/out - switch/hub where I can (sort of) daisy chain my boards. (I don't wish to use a ethernet switch/router/hub) One port would be acting as server The ...
0 votes
0 answers
30 views

What library does the Beetle BLE utilize for BLE commands?

I am trying to pair two gloves containing beetle BLE's on each, one set to a peripheral role and one to central to control leds for kids' party jewelry. The Arduino.BLE library does not work with this ...
4 votes
2 answers
434 views

Trying to resolve invalid conversion from 'byte' {aka 'unsigned char'} to

I'm trying to use an existing Arduino library on the Raspberry Pi Pico. The library is here: https://github.com/j-bellavance/EdgeDebounce/tree/master It's based on some interesting insight at Jack ...
2 votes
2 answers
631 views

SSD1306 OLED LCD Library Errors

Recently i bought an "Serial 128X64 OLED LCD Display SSD1306". I searched for available libraries and tried to find the best one to use before actually experimenting with this device. I came across ...
0 votes
2 answers
46 views

Why does analogRead(A0) deliver different Values when called in a library file vs calling it in the sketch directly

I wanted to write a library representing a sensor to later on have an array of sensors. I generated a file MoistureSensor.h: #ifndef MoistureSensor_h #define MoistureSensor_h #include <Arduino.h&...
20 votes
5 answers
26k views

Are there any signal smoothing libraries for Arduino?

I am working on a mobile robot controlled via a wireless 2.4 GHz link.The receiver is connected to the Arduino Uno which serves onboard as the main controller. The most critical (and main) input ...
4 votes
1 answer
110 views

How do you take the simplest continuous reading from a Garmin Lidar Lite V4 using I2C on a Particle Boron v4.1.0?

Hey there Stack community. I'm working with the Particle Boron v4.1.0. I'm connecting a Garmin Lidar Lite V4 on I2C. I'm using the LIDARLite_v4LED.h header file found in the library given for this ...
2 votes
2 answers
204 views

With reference to Arduino Keyboard library, it does not have a keymap for UK keyboard, has anyone created a KeyboardLayout_en_UK.cpp file for this?

With reference to the Arduino Keyboard library, it does not have a keymap for the UK keyboard. I have tried to find a keyboard map that shows the hex value for the UK keyboard but I didn't have any ...
1 vote
1 answer
351 views

How to drive two Stepper motors and use an Ultrasonic sensor together?

I am working on an autonomous robot using two 4-pin stepper motors, HC-SR04 ultrasonic sensor, 2 L298N motor drivers (one for each motor), and an Arduino Uno. My problem is that when I use the stepper ...
2 votes
1 answer
40 views

Having issues understanding what "#define GET_STATUS" does

I am trying to use a Waveshare 4.2inch e-paper display with an Adafruit Feather Adalogger M0, but am having issues with two separate instances of #define GET_STATUS being defined differently in ...
1 vote
1 answer
1k views

Adafruit_Arcada' does not name a type;

I am trying to program an adafruit pygamer (which says it's compatible with Arduino). I have added the ZIP folder for the library into the library folder om my PC where all of my folders are supposed ...
0 votes
1 answer
644 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
0 answers
171 views

Using library functions in timer ISR ESP32

I'm trying to use a library function in my ISR function that uses the internal timer to trigger every 1 ms. The chip that I'm using is an ESP32-C3-MINI. Here is my current code: main.cpp #include <...
-1 votes
3 answers
95 views

What is the best way to create a library from existing functions?

I was tasked to take functions that work, and create a library with these functions. Take a look at the following function that existed inside a program: char* Num_to_HEX_char_array(int32_t value) { ...
2 votes
1 answer
695 views

ESPAsyncWebServer code not compiling

Error messages Arduino: 1.8.14 Hourly Build 2020/12/15 11:33 (Windows 10), Board: "Generic ESP8266 Module, 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most ...
-1 votes
1 answer
50 views

Unable to get my created library to work - while it compiles

I am experimenting with creating my own Arduino libraries. Unfortunately, while the program compiles, the end result does not work. For purposes of experimentation, I have broken down the library in ...
1 vote
1 answer
237 views

1MHZ Attiny85 RF with MANCHESTER library

I'm trying to set up a transmitter made by the following components : Attiny85 (I need 1MHZ speed) Cheap 433mhz transmitter (FS1000A) The library I am using is the Manchester library GitHub. The ...
-1 votes
1 answer
444 views

Matrix and State Space Arduino Implementation

I wrote an Arduino Matrix class. Then I used this class to implement State Space on Arduino. During tests I stomped upon a problem. After starting the program it stops at some point. I have no idea ...
3 votes
3 answers
7k 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?
6 votes
6 answers
34k views

How to connect Wi-Fi shield ESP-12E-ESP8266-UART-WIFI-Wireless-Shield with Arduino

I have bought this shield from ebay and now I don't know how to use it, ESP 12E ESP8266 UART WIFI Wireless Shield for Arduino UNO R3 Bouclier Sans filfr: There are no instructions in the box or ...
1 vote
0 answers
110 views

Error compiling arduino sketch to seeduino xiao for RF24 Module

I am trying to get 2 rf24 modules talking to each other. This is my first real arduino project so bear with my ignorance please. I could get them to work with 2 arduino nano but, when trying to ...
0 votes
1 answer
1k views

Just installed Arduino 2.0.3 - what is windows path to associated libraries?

Just installed Arduino 2.0.3 and I attempted to build a sketch which includes a library that I manually installed in version 1.8.19 and it can't be found: In my program I have #include <DS3231.h>...
0 votes
1 answer
93 views

Making library for arduino

I'm learning library making on arduino , I want to make a library that works with arrays a user sets, e.g: User sets array of int, when a certain function is been called the library will check if ...
1 vote
0 answers
57 views

Adding RTC Library for Arduino Project in Visual Studio

I am working in an Arduino project in visual studio. I need to get and set time to a RTC clock. That's why I am adding a ds3231 header file in my project from GitHub. When I want to build "it's ...
-1 votes
1 answer
245 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 ...
2 votes
1 answer
261 views

WebSocket Server for MKR1000

I was looking for a websocket server for my MKR1000 but nothing I found works. I tried all the libraries that come with Arduino but half of those don't compile on the MKR1000 and those that do it don'...
-1 votes
1 answer
845 views

I need help with creating a menu using u8g2 library

I want to make a project with a (Nokia 5110) display using u8g2 library. Here I have the code for my program: #include <Arduino.h> #include <U8g2lib.h> #include <TM1637Display.h> #...
0 votes
1 answer
39 views

Confusion regarding PID library?

PID library is available(built in) in standard installation of arduino IDE or do we have to download it additionaly after installing our IDE? How can i check which of libraries are available in my ...
2 votes
4 answers
761 views

Why do most arduino function return a -1 instead of a 0

Many arduino functions return -1 if something 'fails'. Serial.read for example returns -1 or the infamous ÿ when this function is called while the serial buffer is empty. As embedded C progammer, I ...
1 vote
0 answers
418 views

Is there a FreeRTOS library for an Arduino Nano 33 BLE?

I can't seem to find any library online so I can start developing FreeRTOS tasks for the Arduino Nano 33 BLE in the Arduino IDE. Is FreeRTOS incompatible with this Arduino?
0 votes
1 answer
152 views

Best way to "hack" a library without forking it

I'm using Visual Studio Code and PlatformIO. I added some libraries to my project using platformio.ini: lib_deps = olikraus/U8g2@^2.34.4 crankyoldgit/IRremoteESP8266@^2.8.4 plerup/...

1
2 3 4 5
11