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
1 answer
33 views

#define from main (.ino) not considered by comiler in own libaries

I have got the problem, that my #define from main (.ino) is not considered by the comiler in my own libaries. This #define MQTT_MODULE is only considered in the main (.ino) programm, but not in ...
  • 21
-2 votes
1 answer
19 views

https post using custom "Fetch" lib

I`m trying to do POST request to my ssl server, using https. Here is my arduino code example: #include "recipes/WiFi.h" #include "Fetch.h" #define SSID "My_wifi_name" #...
  • 1
-4 votes
1 answer
52 views

Can I run Arduino code on a 6502?

I've been doing projects with the arduino boards for a long time and accordingly also with the libs from adafruit etc. But that was too boring for me and I wanted to get more into the matter, so I ...
2 votes
1 answer
44 views

How to configure 16x2 character LCD to work with 8bit?

I have the LiquidCrystal library installed but all the examples are for 4bit connection, I want to drive the LCD with 8bit. In LiquidCrystal.cpp file it says; When the display powers up, it is ...
-1 votes
1 answer
42 views

Library fails to compile

I want to try out this library: https://github.com/connornishijima/arduino-volume3 I downloaded the zip file from github, renamed it, and included it as a library in the IDE. So run one of the ...
  • 1,297
1 vote
1 answer
40 views

Fluctuation in 4 half bridge load cell via combinator

I'm currently using a Sparkfun 4 Half-Bridge load sensor (50 Kg) with combinator and amplifier both are from the Sparkfun. Link:https://www.sparkfun.com/products/10245 (For Load Sensors)https://www....
  • 13
0 votes
1 answer
32 views

TVout characters don't line up

I am messing around with the Arduino TVout library and I have created some multi-character tiles (I don't know what else to call them). Just to start out, I created a simple X that spans across 4 ...
  • 13
1 vote
0 answers
118 views

PlatformIO - Creating a library including a 3rd party library

I'm using PlatformIO, and I'm trying to create a library who uses another library in it. (1) For that I created an empty library called ABCD.h stored in a newrep github repository. (2) 3rd party ...
  • 870
0 votes
1 answer
66 views

Create a library when using PlatformIO

(1) I'm trying to work with libraries in PlatformIO format", for , of a library, located in Arduino's libraries, where code is llocated under \src directry. (2) Any other library, not it "...
  • 870
1 vote
1 answer
287 views

Arduino create Json Array with double values and 2 decimal point

How i can create a Json Array with double values and 2 decimal point using the ArduinoJson Library? https://arduinojson.org/v6/how-to/configure-the-serialization-of-floats/ In the folowing small ...
1 vote
1 answer
25 views

Please help me navigate the stepper motor object definition in the documentation

I am trying to use the stepper library and the stepper object is documented like this This function creates a new instance of the Stepper class that represents a particular stepper motor attached to ...
-1 votes
1 answer
59 views

How to use two timers 1 and 4 simultaneously in Arduino Mega 2560

I activated timer 1 and its interrupt on the 2560 board and it works properly. Now I want to run Timer 4 as well. I installed the Timer 4 library, but when I compile the program, I get the following ...
  • 11
1 vote
0 answers
111 views

AccelStepper motor current position

When using the AccelStepper library to control the motor, I need the current position of the motor at any given time when in motion. However, the functions in this library blocks so currentPosition() ...
0 votes
2 answers
73 views

Odd behavior of defines - is this Arduino specific and how does it work?

A question I have long had regards an interaction between #define statements and a library header include. I've seen several Arduino libraries use this rather convenient configuration system where you ...
1 vote
2 answers
696 views

Undefined reference to function in custom library

Hello I am making a private Arduino library but am having trouble understanding how it is linked. Why does this h file work, but when I move the definition of board_led to a matching c file, it throws ...
  • 113
1 vote
1 answer
46 views

Is it possible to use mathematical sets and their operations in arduino?

In python there is the object set that resembles a mathematical set, namely, you can remove elements from it, add elements to it, you can calculate the intersection/union between two sets, etc. Is ...
  • 121
1 vote
1 answer
210 views

Arduino HX711 load cell lots of drift

I am trying to make this 50kg load cell work with this HX711 chip. I currently have the following connections : Load cell red -> E+ Load cell black -> E- Load cell white -> A- Load cell ...
1 vote
0 answers
41 views

Problem adding library in the Arduino IDE

Currently, I'm trying to build image processing on ESP32 using OpenCV GitHub - joachimBurket/esp32-opencv: Shrinked OpenCV for ESP32. Then I want to put this library into Arduino IDE. But, I'm having ...
  • 11
2 votes
1 answer
75 views

How to install Adafruit motorshield library in arduino-cli

I need to install this library using the arduino-cli software. I don't know what name to use for the library. Using arduino-cli lib install <library_name> I have tried Adafruit_MotorShield, ...
1 vote
0 answers
52 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 ...
  • 11
1 vote
1 answer
380 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 ...
  • 111
1 vote
0 answers
65 views

WiFi HaLow library

Does anyone know if some Arduino based library is on the way to support new low power WiFi HaLow modules. If there is, I would like to know for which module? For reference I'm sharing link here
  • 121
0 votes
1 answer
798 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.
  • 242
0 votes
1 answer
125 views

Arduino LiquidCrystal library code prevents ESP32 from running. For 16x2 character display

See bottom for solution. I am trying to run the Arduino LiquidCrystal library example HelloWorld.ino on an ESP32. It seems like it never even executes the Setup() loop. The ESP resets after eight ...
  • 985
1 vote
0 answers
486 views

Getting location working on SIM800L with TinyGSM?

Hey Arduino enthusiasts :) I have purchased a LilyGo T-Call board. Which has a Esp32 processor and a SIM800L GSM module. For my project i want to send location data over the 2G cellular network. I am ...
1 vote
0 answers
78 views

RTClib.h problem

In Library Manager RTClib and DS3231 work somehow with older versions. RTC time can picked only once and then it give bullshit. Using newest versions screen is empty. In picture first time is right, ...
1 vote
1 answer
90 views

Why does the send pin influence the receive pin with Arduino Capacitive Sensing Library

I'm trying to figure out how the Arduino Capacitive Sensing Library https://playground.arduino.cc/Main/CapacitiveSensor/ works. It says: When the send pin changes state, it will eventually change the ...
1 vote
1 answer
471 views

Unable to find headers from installed platformio library

I wrote a library that I intend to use in several project and I published it via platform.io's library management system. https://platformio.org/lib/show/12820/FastLED-SectionManager This is the first ...
1 vote
2 answers
226 views

which is the best way to declare Serial while creating Arduino library?

Well, I am trying make a library for HMI display. display and Arduino comminicate with Serial. So I will so many times Serial port. Generally I will use Serial.write commend. if I examine other ...
  • 205
0 votes
1 answer
71 views

Artefacts on display when adding seemingly unrelated code

I have this simple program, where I am implementing a menu structure on an OLED display and a rotary encoder. The code works functionally as intended, however when I add more menu items, then I get ...
1 vote
1 answer
254 views

Custom library for Arduino to encode and decode JSON Web Tokens

So I have been recently been trying to create a library for Arduino to encode and decode JSON Web tokens(JWT) using HMAC-SHA256. For those unfamiliar, JWT has 3 parts - The header, body and signature....
1 vote
1 answer
252 views

Select pin to connect RF receiver

I use the RCSwitch library receive signals with a RF receiver. I really need to change the pin the receiver is connected to on my Arduino Uno. What should I change in my sketch? What pins can I ...
0 votes
1 answer
69 views

Customizing system settings with defines?

I have written a library that contains a statically allocated buffer (f.g. struct taskList proc[TBL_SIZE];) TBL_SIZE is a macro currently defined in my .h file. I have heard that there's a way to set ...
0 votes
1 answer
165 views

I2S read() is which channel?

The Arduino I2S reference describes the I2S standard and functions available with the standard I2S library, (Bizarrely it doesn't reference the existing read() function which is used in the examples ...
  • 103
1 vote
0 answers
14 views

arduino loRa module search tutorial

I recently purchased a LoRa module (https://it.aliexpress.com/item/1005002116232826.html?spm=a2g0s.9042311.0.0.38c74c4dPnh2Gg) but I have not found any working tutorial for this model can you help me
0 votes
1 answer
98 views

EtherCard library without TCP

I have connected some sensors to an Arduino Uno (but the final code should run on a Pro-Mini) with an ENC28J60 shield. The sensor code works fine - until I add EtherCard. I tried UIPEthernet first, ...
  • 246
0 votes
2 answers
41 views

Init a calss inside a class

I'm building a monitoring IP class, IPmonitoring, that using an SPIFFS class that I wrote, flashLOG. Inside IPmonitoring I have 2 instances of flashLOG (code below). My sketch have several instances ...
  • 870
1 vote
1 answer
857 views

ESP32 Arduino Bluetooth Serial does not reconnect after disconnecting

The basic ESP32 Arduino Bluetooth Serial example pairs and connects as expected, BUT once I disconnect the Bluetooth terminal it stops responding to new events at all, once I reset the esp32, it ...
0 votes
1 answer
213 views

TimedAction.h: No such file or directory

I am new to Arduino and I am trying one of the library TimedAction.h for sudo multithreading on Arduino. However the library is not present in the Arduino. How do I install external library(if it is)?
-1 votes
2 answers
344 views

How to convert an int to const int in Arduino?

For a specific project, I need to convert an int to a const int variable type. int i = 10; boolean ShiftRegister[i] //Throws error const int i = 10; boolean ShiftRegister[i]// Works Fine as i am ...
1 vote
0 answers
380 views

Bluetooth HID for mouse project

I’m working on a project, to create an air mouse for people with repetitive strain injury (since I have it as well). I’m flexible with the hardware required. The plan is to use data from an IMU for ...
1 vote
0 answers
44 views

Can I create an hemi-cycle raising signal with one pin and the other hemi-cycle signal with another pin?

I am new to Arduino, I would like to know if someone could help me to create this type of signal with the Arduino Uno. Many thanks!!
1 vote
0 answers
28 views

Touch sensor trouble

I need help I use Touch Sensor(T)v.0 and it always receives a signal not matter I touched it or not. Here is the code. #define TOUCH_PIN 7 int touchVal = 0; void setup() { Serial.begin(115200); ...
1 vote
0 answers
93 views

generate and using a precompiled library ESP32

I would like to ask you how I can generate a dot_a file for a given library for ESP32? I want to replace my .cpp file with a precompiled .a in the Arduino IDE. Is that possible? Can you please guide ...
2 votes
1 answer
317 views

Arduino IDE - scope of the pre-processor "#define"

I'm creating an Arduino library and have 3 files - a "test.ino" program, and two library/class files: "testLibrary.h" and a "testLibrary.cpp". The library makes use of ...
  • 61
0 votes
1 answer
59 views

LF: flexible scheduler/timer library

I'm working on a few arduino projects where I've needed a flexible scheduler and/or timer library and was wondering if anyone has a library they recommend? Case 1: I have a sensor that needs to ...
  • 1
0 votes
1 answer
142 views

How to use this confing function

For INA3221 current sensor, I found this library, however, I don't understand how to use the INA3221SetConfig() function as defined in the .cpp file link. void SDL_Arduino_INA3221::INA3221SetConfig(...
  • 183
1 vote
1 answer
441 views

Library for working with a 4-digit 7-segment indicator SH5461AS

Good day. Tell me an excellent library for working with a 4-digit 7-segment indicator. I am currently using #include <fDigitsSegtPin.h> But it does not allow you to display letters, does not ...
0 votes
1 answer
111 views

Library ADC MCP33121

I'm looking for the Library of the ADC MCP33121 for Arduino UNO or functional code, I don't have enough tools for testing so I'd like to get some code already tested. I appreciate any help. Thanks... ...
0 votes
1 answer
401 views

Not able to build program with arduino program under clion

I'm pretty new to arduino and I just downloaded clion and installed the arduino plugin so I have an IDE that I'm used to. Here is my code: #include <Arduino.h> // Time between a switch ...
  • 163

1
2 3 4 5
10