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
0answers
25 views

Energy Meter HLW8032 with Arduino

I have a HLW8032 and want to do project with it. I use this library:GitHub - Khaalidi/HLW8032: A lightweight library for the HLW8032 SOP8 high precision energy metering IC actually I use Arduino mega ...
1
vote
0answers
30 views

How swagger CodeGen access to the libraries [ccprest for example] [closed]

please I need quick help. I am working in a project to developed codegen to make it work with different protocols and data representations. I was reading the "cpprest" files of swagger code-...
0
votes
1answer
48 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
1answer
48 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
1answer
36 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
1answer
59 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
1answer
41 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 ...
1
vote
0answers
12 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
1answer
30 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, ...
1
vote
0answers
34 views

please help me when compile this code it says 'sendATcommand' was not declared in this scope [closed]

int8_t answer; int onModulePin= 2; int counter; char aux_str[150]; char aux; char frame[200]; char latitude[15]; char longitude[15]; char altitude[6]; char date[16]; char time[7]; char ...
0
votes
2answers
37 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 ...
1
vote
1answer
266 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 ...
1
vote
1answer
52 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
2answers
149 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
0answers
84 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
0answers
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
0answers
23 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); ...
0
votes
0answers
126 views

LiquidCrystal_I2C may be incompatible with your current board message

I am trying to get the LED to blink the message in the code. However, I keep getting an error message library LiquidCrystal_I2C-master claims to run on AVR architecture(s) and may be incompatible with ...
1
vote
0answers
39 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
1answer
96 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 ...
0
votes
1answer
29 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 ...
0
votes
1answer
100 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(...
1
vote
1answer
161 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 ...
1
vote
0answers
40 views

Piezoelectric buzzer interfacing with arduino without using any library

I want to learn programming from the roots, so i have started learning interfacing different modules with arduino without using any libraries. i want to learn how to interface piezoelectric buzzer ...
1
vote
0answers
28 views

Uploading code with other libraries [closed]

I'm working on a very big project and want to upload this to GitHub for people to use (flight controller software) and I'm using libraries from other people to make the process in the beginning easier ...
0
votes
1answer
28 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
1answer
134 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 ...
0
votes
0answers
15 views

query of arduino sketch with regards to employment of gsm sim900a module

what i'm trying to do is to send message to one whose no. is used in code about balance of sim_card plugged in sim900a. but i get commands in message or blank message after using ATE0. what i was ...
1
vote
1answer
49 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 ...
1
vote
0answers
88 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/...
1
vote
1answer
235 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 ...
1
vote
0answers
537 views

Read & write on Winbond SPI flash using Arduino UNO

Recently I have brought a original UNO for modifying and flashing various types of bios. I had a dedicated one click bios programmer which was very expensive but few days ago it failed. So I thought ...
0
votes
1answer
64 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 = ...
0
votes
0answers
122 views

Arduino Nano 33 IoT not connecting to WiFi

I have been using my Nano 33 IoT for a while now and it has been behaving perfectly. All of a sudden though, I just cannot connect to WiFi. I am using the WiFi Nina library. Everything is updated to ...
2
votes
1answer
177 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....
1
vote
0answers
61 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 ...
1
vote
0answers
52 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 ...
1
vote
0answers
38 views

I have a bunch of libraries but all of them are came as .ino files. I need to turn them into .h files

I recently bought an arduino starter pack online, did some poking around, and learned that I have to install the libraries to get them to work for my projects. The issue is, they all came as .ino ...
-1
votes
1answer
38 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 ...
2
votes
1answer
66 views

What are a few good ways to connect multiple I2C busses?

I have an issue with a project. I have a backplane with an Atmega328P based microcontroller controlling an I2C bus with multiple peripheral devices. One such peripheral is a removable card with ...
0
votes
0answers
90 views

ESP32 Ticker Vs ESP8266 Ticker inside a class

I'm trying to create a class including Ticker library when using ESP32. A question asked here, concluded the situation. BUT after answered, I could not understand or even implement the answer. Please ...
3
votes
1answer
314 views

Alternatives to Nextion display

I am wanting to have a display where I can design the GUI on a program and then somehow transfer it to the display. For the graphics I want to make, it would be really hard to manually write the code. ...
0
votes
1answer
61 views

Code hangs with SPI, and OLED labraries (Possible conflict between Adafruit SSD1306 and hardware SPI libraries)

I have an issue with using two libraries together, namely SPI.h that is installed together with an Arduino and Adafruit_SSD1306.h. My code was getting stuck so I stripped it down to the bare minimum ...
1
vote
1answer
286 views

TinyGPS++ Question about gps.encode(ss.read())

I am trying to make an oled gps display, however when looking at multiple examples and other people's code, I am seeing that people are using different methods. I see some code that has gps.encode(ss....
-3
votes
1answer
114 views

What wireless protocols can be used with arduino?

Before you close this saying it's not related to programming. It is related to programming since i'm using it and asking about libraries. What are the common types of communication protocols and their ...
0
votes
0answers
110 views

#include <stdatomic.h> generates compile errors with no code

Consider the following (non)code example: #include <stdatomic.h> void setup() { // Nowt. } void loop() { // Nowt squared. } This generates compile errors for several lines of code in ...
2
votes
1answer
83 views

is it necessary to include libraries that are specified in the header file already?

I am using the Adafruit BME280 library in my sketch. In the example sketches, they have included the Wire, SPI and the Adafruit_Sensor library. However, I see that in the Adafruit_BME280 library ...
4
votes
3answers
439 views

Programming Arduino Uno R3 to trigger a relay once every 24 hours

I programmed Arduino UNO R3 to trigger a relay once every 24 hours from the moment it is powered on I calculated milliseconds and used the function delay() 24 hours * 60 minutes each hour * 60 second ...
1
vote
0answers
481 views

How to use LCD display HD44780 with arduino without using any library

My professor wants me to implement a display to an old project prototype we had laying around on the lab. But he wants me NOT to use LiquidCrystal.h library or any other to achieve that. I read ...
2
votes
1answer
91 views

WebSocket Server for MKR1000

I was looking for a websocket server for my MKR100 but nothing I found looks it works. I tried all the libraries that come with arduino but half of those doesn't compile on MKR1000 and those that did ...

1
2 3 4 5
10