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
1 vote
1 answer
66 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 ...
user avatar
1 vote
1 answer
21 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 ...
user avatar
-1 votes
1 answer
46 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 ...
user avatar
  • 1
-1 votes
0 answers
34 views

Control 2 Nema 17 stepper motors

const long interval = 0; const long interval_alt = 0; unsigned long dirPin = 2; unsigned long dirPin_alt = 8; unsigned long stepPin = 3; unsigned long ...
user avatar
1 vote
0 answers
28 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() ...
user avatar
0 votes
2 answers
63 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 ...
user avatar
1 vote
2 answers
295 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 ...
user avatar
  • 113
1 vote
1 answer
43 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 ...
user avatar
  • 121
1 vote
1 answer
63 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 ...
user avatar
1 vote
0 answers
37 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 ...
user avatar
  • 11
2 votes
1 answer
44 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, ...
user avatar
1 vote
0 answers
38 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 ...
user avatar
  • 11
1 vote
1 answer
226 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 ...
user avatar
  • 111
1 vote
0 answers
44 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
user avatar
  • 111
0 votes
1 answer
358 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.
user avatar
  • 242
0 votes
1 answer
76 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 ...
user avatar
  • 985
1 vote
0 answers
353 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 ...
user avatar
1 vote
0 answers
67 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, ...
user avatar
1 vote
1 answer
76 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 ...
user avatar
1 vote
1 answer
293 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 ...
user avatar
1 vote
2 answers
179 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 ...
user avatar
  • 205
0 votes
1 answer
55 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 ...
user avatar
1 vote
1 answer
188 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....
user avatar
1 vote
1 answer
188 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 ...
user avatar
0 votes
1 answer
63 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 ...
user avatar
0 votes
1 answer
127 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 ...
user avatar
  • 103
1 vote
0 answers
13 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
user avatar
0 votes
1 answer
75 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, ...
user avatar
  • 236
0 votes
2 answers
40 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 ...
user avatar
  • 790
1 vote
1 answer
692 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 ...
user avatar
0 votes
1 answer
175 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)?
user avatar
-1 votes
2 answers
297 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 ...
user avatar
1 vote
0 answers
308 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 ...
user avatar
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!!
user avatar
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); ...
user avatar
1 vote
0 answers
79 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 ...
user avatar
2 votes
1 answer
251 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 ...
user avatar
  • 61
0 votes
1 answer
48 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 ...
user avatar
  • 1
0 votes
1 answer
131 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(...
user avatar
  • 185
1 vote
1 answer
339 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 ...
user avatar
0 votes
1 answer
80 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... ...
user avatar
0 votes
1 answer
342 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 ...
user avatar
  • 163
1 vote
1 answer
54 views

What pins to use on a Teensy to get data from multiple peripherals?

I'm using a Teensy to keep records on the location, speed, altitude, and direction of a weather balloon I'm hoping to launch. I have an Adafruit LSM9DS1 and a Ublox NEO-M8N with compass (HMC5833L) so ...
user avatar
  • 11
1 vote
0 answers
167 views

'class Adafruit_SPIDevice' has no member named 'endTransaction'

So what I have done is followed all of the instructions in the following link: https://learn.adafruit.com/adafruit-pygamer/setup and have managed to get all the way up to https://learn.adafruit.com/...
user avatar
1 vote
1 answer
518 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 ...
user avatar
0 votes
1 answer
97 views

Arduino stuck in PT_WAIT_UNTIL

I am using the Protothread Library from Adam Dunkels. It is supposed to wait 1 second and then continue. But instead it gets stuck there and everything after that line is not executed. lastTimeBlink = ...
user avatar
2 votes
1 answer
349 views

Trouble with Arduino Nano Every and radio transmission using RH_RF69.h

I give some help for students working on the Cansat Contest. I am trying to connect a RFM69 Radio Module to an Arduino Nano Every. Nothing works : compiling the simpliest program: #include <RH_RF69....
user avatar
1 vote
0 answers
111 views

Why do I get error "Error compiling for board Arduino Uno" with my mpu6050 video stabilization code?

This is the code I'm working with. I'm using it for video stabilization system. It was working fine but for some reason now it gives me this error? Is it because I deleted the library and installed ...
user avatar
  • 11
1 vote
0 answers
68 views

listener for Plotter library doesn't work

I try to use Plotter to plot some data from my Adafruit Circuitplayground board, but the listener is kept showing "Scanning serial ports..." and not displaying any plot (as shown below in ...
user avatar
  • 111
-1 votes
1 answer
39 views

I get an error?

void setup() { Serial.begin(9600); pinMode(13,OUTPUT); } void loop() { if(Serial.available()>0) {s_num =Serial.read();} if(s_num=='0'){ digitalWrite(13,HIGH); delay(100); //the specified time for 0 ...
user avatar

1
2 3 4 5
10