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.

learn more… | top users | synonyms

0
votes
2answers
25 views

Newbie needing help with debounce errors in arduino

So I found a code I would like to use and not sure how to edit the code properly. #include <Debounce.h> void matrix(char matrix[7]) { int map[10]; map[0] = 2; map[1] = 3; map[2] = 4; ...
0
votes
0answers
37 views

Need L298N motor shield library for fritzing [closed]

I am searching for the L298N motor shield library for fritzing. I googled and found this image.. My motor driver is same as the picture. But I am failed to find the library for fritzing. Anybody ...
1
vote
0answers
27 views

Using multiple timers and avoiding conflicts

I would like to use three timers in CTC mode to launch three Interrupt Service Routines at different frequencies. In this application I need to use the servo library, millis() and micros() ...
0
votes
1answer
23 views

Issue with adding a library: No such file or directory

I downloaded a Library called "Morse" which I got from the Arduino website: http://arduino.cc/en/Hacking/LibraryTutorial (all the way at the bottom of the page there is a link called Morse.zip) And ...
0
votes
1answer
31 views

Example code and Documentation on using firmata communication in native java

I am trying for some time to get documentation on using Java and a firmata client library for the communication between a PC and an arduino. Please note I want to use Java only, i.e., not processing. ...
0
votes
1answer
44 views

lcd.print and 2D arrays

Click here to see my program running I have created a 2D array (see my full code below), and each row contains one state of a battery here is a schematic : row [0] : "▯▢▢▷" // this row represents ...
0
votes
1answer
33 views

Include my header files

let's suppose I have folder called AES, in this folder is file "AES.ino" where is code and folder "AESLib" what is library. In "AESLib" is file called "AESLib.h", now when I try to include AESLib.h ...
-3
votes
0answers
45 views

conflicting Libraries

I am using the softwareSerial library and Time library. I am finding a conflict when I added the Time.h library. Not sure where to begin to solve the problem. Thanks! ESP8266.cpp receive function. ...
0
votes
1answer
31 views

Why does the RCSwitch.available return false?

I am trying to use this example code from the RCSwitch library: /* Simple example for receiving http://code.google.com/p/rc-switch/ */ #include <RCSwitch.h> RCSwitch mySwitch = ...
0
votes
0answers
39 views

Payload Value in xbee-arduino library

I am trying to configure the payload values for the xbee-arduino library, to send a 0 or 1 via xbee. This is my code TX: #include <XBee.h> XBee xbee = XBee(); uint8_t payload[] = { 0, 0, 0, 0 ...
0
votes
1answer
38 views

MHz Sampling Rate for Arduino

How can we increase the Arduino's ADC sampling rate to 1 MHz while maintaining a 10 bit resolution? Can we change the prescaler to 16 to get 1 MHz ADC clock? If not, what alternatives are there? ...
0
votes
0answers
28 views

Custom Library Pin Change

I'm using an Arduino Uno with Funduino I2C 1602 LCD display. The LCD display is connected as LCD SCL--> A5 SDA -->A4 I need to measure the temperature, pressure and the velocity of a duct flow. So ...
0
votes
0answers
14 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.
0
votes
1answer
76 views

AttachInterrupt in a library

I'm having trouble adding attachInterrupt in a library that I am creating. I researched a lot, and I noticed that this is a common mistake, but do not quite understand the answers I found. The error ...
0
votes
0answers
36 views

Problem with Software Servo library

I downloaded software servo from the arduino website and included it and used its functions in the code. I edited the .h file to include Arduino.h instead of WProgram.h. After several errors the final ...
0
votes
0answers
9 views

Chaninging the delay lower than 4k gives no output using the library TimerOne.h [duplicate]

I'm trying to get the color sensor TCS3200 to give color values with a delay lower than 4000 ms. I've found a library to interface the TCS3200 from this link. I've modified the code to serve my needs ...
0
votes
1answer
117 views

TCS3200 color sensor not reading with delay lower then 4000 ms using TimerOne.h

I'm trying to get the color sensor TCS3200 to give color values with a delay lower than 4000 ms. I've found a library to interface the TCS3200 from this link. I've modified the code to serve my ...
0
votes
0answers
29 views

Asynchronous control framework

Can anyone recommend an Arduino-based asynchronous scheduling library for controlling a small mobile robot? I'm writing the control code for a small 2-wheeled Arduino-Uno based robot. It has a few ...
0
votes
1answer
74 views

error: ‘sleep’ was not declared in this scope

I am trying to use the sleep function in lieu of delay(), but when I include sleep(), I get Sweep.cpp:60:10: error: ‘sleep’ was not declared in this scope I read some place, about #include ...
0
votes
1answer
53 views

Arduino IDE Unable to detect ZumoMotor.H ( PIXY PET )

recently i trying to make the pixy pet work for my project. (https://learn.adafruit.com/pixy-pet-robot-color-vision-follower-using-pixycam/playing-with-your-pet). I used the given code for the ...
1
vote
1answer
292 views

Problem connecting Arduino Uno with Wifi and NFC

I'm new here and also new to Arduino. I've got a rather specific problem and I've posted to the official Forum on arduino.cc two days ago (original Post) Sadly, I've yet to recieve any help and ...
3
votes
1answer
62 views

In Linux, how do I get this Arduino library to work

In Linux Fedora 20 Arduino I want to use the Timer library from here, from which I have downloaded the folder Timer-master.zip, but, when I try to import it, I get the Arduino message that it cannot ...
0
votes
0answers
105 views

How to connect an e-paper display to a RFD22102 RFduino DIP

I got my hands on a RFD22102 RFduino DIP and want to connect it to an e-paper display like the EM027BS013 or equivalent in the 2.7-3.0 inch range. I am pretty new to this. I want to know which ...
0
votes
0answers
56 views

Can't get Arduino 1.0.5-r2 to compile HelloWorldServer in the SerialIP library

I can't get the SerialIP library to compile. I don't know what I am doing wrong I select the library example and it pops up with errors. I am still just starting out with this stuff so its quite ...
2
votes
2answers
89 views

How to avoid odd naming rules for Arduino when writing a library?

I'm building a small library that will be used and production and released open source. I'm paying a lot of attention to the "best practices" to make sure this code is reliable and easy to use. I also ...
0
votes
1answer
152 views

Why PIN3 stays at 1v3 in a IR emitter project?

Here is my very simple IR emitter circuit. OSI5FU5111C-40 is an infrared LED. I am using the IRremote library from here in this simple sketch, #include <IRremote.h> unsigned int ...
0
votes
1answer
37 views

Arduino standard libraries location

I want to read the source code of an arduino library that comes with the IDE. Specifically the GSM.h I dont know the location of the standard libraries that come with the IDE. I only know the ...
3
votes
1answer
279 views

Why does increasing resistance make a capacitive sensor more sensitive?

From the Capacitive Sensor Page on the Arduino website, it states the following: The capacitiveSensor method toggles a microcontroller send pin to a new state and then waits for the receive pin to ...
1
vote
1answer
77 views

Initialize a “Matrix” object in my own library?

So, I'm trying to make a custom library to drive a 8x8 Bi-Color LED Matrix from 2 MAX7219's that incorporates two "Matrix" objects from the "Matrix" library and I cannot, for the life of me, figure ...
0
votes
1answer
236 views

Include statement not working

I am creating my own library for the Arduino and I have the following code: #include <Arduino.h> #include <Servo.h> class ServoMotorController { public: ...
2
votes
1answer
103 views

XBee, external libraries and passing structures as arguments

I have very weird problem with a library I am creating. The library will be used to communicate between Arduino modules using XBee Series 1 modules. Library is very simple wrapper library around ...
-2
votes
3answers
692 views

How do I initialize a servo object in my own library?

I'm trying to make my first library for Arduino and want to use a servo object in my library. How can I do this?
3
votes
1answer
149 views

It is possible to program Linino to send HTTP requests and then use the returned values in sketch?

I am new to using Arduino Yun and I would like to know if it is possible to run a command from the Arduino sketch in order to make (probably, through the Bridge Library) Linino to execute a HTTP ...
2
votes
2answers
420 views

How do I connect a PS4 controller connected to an Arduino that's connected to a laptop to another Arduino?

My high school is entering an ROV competition and for next year's competition we want to try and set it up so that we can control it using a PS4 controller. I have done research and found this shield ...
4
votes
1answer
244 views

Writing First Library - Serial Stream Object

I have done quite a few projects with Arduino, but have never done more than a "Hello World" in C. I am writing my first library, and a lot of the object oriented stuff is going over my head. Anyway, ...
2
votes
3answers
472 views

How can I get the source files for Arduino libraries?

I've been looking for a while inside Arduino's files to find the core library. However, I haven't found them yet. Where on my hard drive can I obtain the core library files (.cpp and .h) necessary for ...
1
vote
1answer
289 views

Arduino error message that I don't understand

I downloaded Arduino code from this: https://github.com/BabyWrassler/MissionControl/ Github, and got the error message below. It is designed to work with a Raspberry Pi, and I installed the two ...
1
vote
1answer
89 views

Why are the files not being created correctly?

I have been through http://arduino.cc/en/Hacking/LibraryTutorial but I can't do it. Whenever I create a new sketch and try to save it as .cpp or .h from the Save As button in the Arduino IDE, it gets ...
2
votes
2answers
536 views

How does this code line detect if a serial interface is connected?

I am working with some code for remote temperature sensor nodes. They turn the debug interface on and off depending on if anything is conneced to the serial port or not. The code is on Github here. ...
4
votes
3answers
330 views

Where can I find a central repository of all available Arduino libraries?

Currently; when I start a new Arduino project with some new hardware, the first thing I do is to look for 3rd-party libraries that bring Arduino support for this hardware. The first places I look ...
1
vote
0answers
162 views

Why can't I use Jeelib Sleepy on the Teensy 2 along with Serial

I have been using the Jeelib Sleepy functionality for several years now to achieve low power states on the Arduino ATmega328/1280/2560 boards, specifically the LoseSomeTime functionality. I want to ...
4
votes
1answer
182 views

How can I adapt the DallasTemperature library to accept another 1-Wire class?

A commonly used library is the DallasTemperature library, used to access DS18B20 sensors on a 1-Wire bus. When creating a DallasTemperature object you pass a reference to a OneWire object. OneWire can ...
3
votes
1answer
297 views

Why do I need to include libraries used in other libraries?

I have a simple library which uses another library. Here is the header: #ifndef __DERIVEDCLASS_H__ #define __DERIVEDCLASS_H__ #include <HardwareSerial.h> class DerivedClass { private: ...
4
votes
4answers
2k 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 ...
0
votes
1answer
285 views

Are there any good and maintained libraries for using DS2482 I2C to 1-Wire bridge?

The DS2482-100 and DS2482-800 are I2C to 1-Wire bridges which are useful for driving complex 1-Wire networks. These are natively supported by a number of packages in Linux so you can interface easily ...
7
votes
1answer
218 views

What are the steps involved in porting an Arduino library?

I want to use the Adafruit CC3000 and its Arduino libraries on another platform. In this case it's the Arduino pin compatible PSOC4 Pioneer Kit. This is an ARM Cortex M0 based platform. My question ...