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

Can anyone suggest me a software timer library that does not use polling but timer ISR instead?

There are many software timer libraries available in Arduino. A library called SimpleTimer http://playground.arduino.cc/Code/SimpleTimer is really good with many functions, but it uses polling. If ...
1
vote
0answers
22 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 ...
1
vote
1answer
84 views

NodeJS (Galileo-IO) + Arduino sensor library

I've done some basic apps with NodeJS firmata where I can connect to my Arduino Uno and do the basics like reading a pin or doing a servo write. I'd like to go further and play with some different ...
0
votes
1answer
35 views

arduino yun sensor reading into MySQL [closed]

how to post arduino yun reading into MySQL is there any library file are available or we can directly posted the arduino yun reading into MySQL.Please tell me what are the methods to follow post ...
1
vote
1answer
49 views

error: 'CLASS' does not name a type only when creating object inside another object

I'm trying to use Adafruit's LED Backpack library within a custom class. When I use the Adafruit library directly within a sketch, it compiles fine. When I use an example sketch provided with the ...
0
votes
1answer
32 views

Why doesn't the Micro OLED library compile on my DUE?

I have an Arduino DUE and just got a Micro OLED display from SparkFun. Using their library, when I try to compile I get the error below. Other example code works just fine and I've programmed this ...
2
votes
1answer
43 views

How Do I Send An Email WITHOUT An Ethernet or WiFi Shield

I can only find info relating to the wifi shield, but I want to send an email without the wifi shield. For now, I just plan on leaving my arduino plugged into a computer, so I just want to use the ...
0
votes
0answers
20 views

Arduino ProMini green led flashing and unable to reset

so I'm using a promini running on solar power. For some reason, after sometime it gets stuck with the green led flashing and only by cutting power can I reset the promini. Even the reset button doesnt ...
-1
votes
1answer
48 views

modbus slave ID setting

I have small problem in setting device ID for Mosbus slave arduino. Here is simple example In Modus library; device ID being configure hardcode while program. This code works for Me. Modbus ...
2
votes
1answer
99 views

Random(min,max) Function only giving ~50 range no matter what the values?

I can't get the min,max range to function properly. Monitoring the serial, only gives out ~50 difference from the min. I then added truerandom.ino to try to fix, but no help. const int ledPin = 13; ...
0
votes
1answer
32 views

object with multiple instances with internal data store separate for each instance

I'm trying to keep track of a timer, and the internal variables seem to be overrun by one another. I just want two instances of the Output class, which can keep track of the _elapsed_time so I can ...
0
votes
3answers
161 views

Error: Function not declared in the scope

I want to make a timer library. The cpp file I have written is: #include "avr/interrupt.h" #include "Arduino.h" #include "AllTimer.h" AllTimer::AllTimer() {} void AllTimer::dofun(void) { TIFR1 ...
0
votes
1answer
61 views

Compilation error when trying to give pointer to a function to another function

I'm trying to write a library for Arduino using the Wire library. Here's my code: PiCom.h: #ifndef PiCom_h #define PiCom_h #include "Arduino.h" #include <Wire.h> class PiCom { public: ...
0
votes
2answers
56 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; ...
1
vote
1answer
88 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
39 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
106 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
88 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
75 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 ...
0
votes
1answer
179 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
85 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
55 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
72 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
16 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
274 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
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
444 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
45 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
183 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
95 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
494 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
70 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
133 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 ...
2
votes
2answers
119 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
211 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
38 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 ...
4
votes
1answer
398 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
99 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
338 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
120 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
1k 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
175 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
573 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
389 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
838 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
455 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 ...
3
votes
2answers
237 views

What are the FLASH_ARRAY/FLASH_TABLE macros in this code?

In this code for heating monitor, there appears to be macros called FLASH_ARRAY and FLASH_TABLE. I can't find any reference to them either in this code, Arduino, or on the Internet. What do they do? ...
1
vote
1answer
95 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
864 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
393 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 ...