Quantcast
Channel: Arduino Code Repository
Viewing all 115 articles
Browse latest View live

Released: LED Cube Library (Aug 13, 2015)

$
0
0
The MD_Cubo library implements methods that allow the software elements of LED cubes to be easily implemented, allowing the programmer to use the LED matrix as a pixel device addressable through XYZ cartesian coordinates, displaying graphics elements much like any other pixel addressable display.

The library implements functions that allow LED cubes to be abstracted in software so that underlying hardware changes do not affect the definition and structure of the controlling code.

Library currently comes with working code for 2 4x4x4 cubes and the jolliCube 8x8x8 cube.

Version 1.1 Update - Feb 2016
  • Added jolliCube - first 8x8 cube
  • Reorganised library
  • Reorganised and expanded examples
  • Added text based examples, font definition file and related utility functions

Updated Release: LED Cube Library (Aug 13, 2015)

$
0
0
The MD_Cubo library implements methods that allow the software elements of LED cubes to be easily implemented, allowing the programmer to use the LED matrix as a pixel device addressable through XYZ cartesian coordinates, displaying graphics elements much like any other pixel addressable display.

The library implements functions that allow LED cubes to be abstracted in software so that underlying hardware changes do not affect the definition and structure of the controlling code.

Library currently comes with working code for 2 4x4x4 cubes and the jolliCube 8x8x8 cube.

Version 1.1 Update - Feb 2016
  • Added jolliCube - first 8x8 cube
  • Reorganised library
  • Reorganised and expanded examples
  • Added text based examples, font definition file and related utility functions

Created Release: Relay Timer (Feb 27, 2016)

$
0
0
!!Relay Timer
Sketch for a user settable timer controlling a relay output. The hardware system for this code is described in the blog https://arduinoplusplus.wordpress.com/2016/02/27/led-display-relay-timer/

Hardware requirements

  • Arduino Uno/Nano/Mini/etc
  • 7 segment 4 Digit LED display
  • Rotary encoder with built in selection switch
  • Relay output or relay module

Function

  • Arduino manages the LED display
  • Rotary encoder allows setting the required timer value
  • Rotary encoder switch used to start the timer
  • Timer can be paused with a press of switch. Second press resumes and long press ends the timer.
  • While timer is active (running or paused) the relay output is switched on.

Released: Relay Timer (Feb 27, 2016)

$
0
0
!!Relay Timer
Sketch for a user settable timer controlling a relay output. The hardware system for this code is described in the blog https://arduinoplusplus.wordpress.com/2016/02/27/led-display-relay-timer/

Hardware requirements

  • Arduino Uno/Nano/Mini/etc
  • 7 segment 4 Digit LED display
  • Rotary encoder with built in selection switch
  • Relay output or relay module

Function

  • Arduino manages the LED display
  • Rotary encoder allows setting the required timer value
  • Rotary encoder switch used to start the timer
  • Timer can be paused with a press of switch. Second press resumes and long press ends the timer.
  • While timer is active (running or paused) the relay output is switched on.

Updated Release: Relay Timer (Feb 27, 2016)

$
0
0
!!Relay Timer
Sketch for a user settable timer controlling a relay output. The hardware system for this code is described in the blog https://arduinoplusplus.wordpress.com/2016/02/27/led-display-relay-timer/

Hardware requirements

  • Arduino Uno/Nano/Mini/etc
  • 7 segment 4 Digit LED display
  • Rotary encoder with built in selection switch
  • Relay output or relay module

Function

  • Arduino manages the LED display
  • Rotary encoder allows setting the required timer value
  • Rotary encoder switch used to start the timer
  • Timer can be paused with a press of switch. Second press resumes and long press ends the timer.
  • While timer is active (running or paused) the relay output is switched on.

Released: KeySwitch Digital Input Library (Mar 22, 2014)

$
0
0
Library for user key switches on a digital input.

This is a small library to encapsulate the use of momentary push switches as user input devices.
  • Detects press, double press, long press and auto repeat.
  • Works with either either low/high or high/low transitions.
  • Software debounce of initial keypress, configurable time period.
  • Software double press detection, configurable time period.
  • Software long press detection, configurable time period.
  • Software auto repeat detection, configurable time period.

Updated Release: KeySwitch Digital Input Library (Mar 22, 2014)

$
0
0
Library for user key switches on a digital input.

This is a small library to encapsulate the use of momentary push switches as user input devices.
  • Detects press, double press, long press and auto repeat.
  • Works with either either low/high or high/low transitions.
  • Software debounce of initial keypress, configurable time period.
  • Software double press detection, configurable time period.
  • Software long press detection, configurable time period.
  • Software auto repeat detection, configurable time period.

Source code checked in, #b0b67aa29ec96e1caed112590d771fb741c72190

$
0
0
New txt2font utility for easier font creattion from a text file Revised and ro-organised documentation; expanded section on fonts Version 2.8 codebase

Released: Max72XX LED Matrix Display Library v2.8 (Feb 23, 2014)

$
0
0
The library implements functions that allow the MAX72xx to be used for LED matrices (64 individual LEDs), allowing the programmer to use the LED matrix as a pixel device, displaying graphics elements much like any other pixel addressable display.

In this scenario, it is convenient to abstract out the concept of the hardware device and create a uniform and consistent pixel address space, with the libraries determining device and device-element address. Similarly, control of the devices should be uniform and abstracted to a system level.

The library still retains flexibility for device level control, should the developer require, through the use of overloaded class methods.

NOTE: Please make sure that you find and read the html documentation that comes with the library. You will need to edit the MAX72xx.h file to configure the type of matrix you are using. This is the most asked support question so avoid frustration and READ THE MANUAL in the doc subfolder.

Feb 2016 version 2.8
  • Added example Message_SD and renamed Message to Message_Serial
  • Added Pacman example
  • Added PushWheel example
  • Added USE_LIBRARY_SPI to enable library SPI object
  • Modified all examples to conditionally include <SPI.h>
  • FontBuilder modified to handle definitions for double height fonts
  • New txt2font utility for easier font creation from a text file
  • Revised and re-organised documentation; expanded section on fonts

Updated Release: Max72XX LED Matrix Display Library v2.8 (Feb 23, 2014)

$
0
0
The library implements functions that allow the MAX72xx to be used for LED matrices (64 individual LEDs), allowing the programmer to use the LED matrix as a pixel device, displaying graphics elements much like any other pixel addressable display.

In this scenario, it is convenient to abstract out the concept of the hardware device and create a uniform and consistent pixel address space, with the libraries determining device and device-element address. Similarly, control of the devices should be uniform and abstracted to a system level.

The library still retains flexibility for device level control, should the developer require, through the use of overloaded class methods.

NOTE: Please make sure that you find and read the html documentation that comes with the library. You will need to edit the MAX72xx.h file to configure the type of matrix you are using. This is the most asked support question so avoid frustration and READ THE MANUAL in the doc subfolder.

Feb 2016 version 2.8
  • Added example Message_SD and renamed Message to Message_Serial
  • Added Pacman example
  • Added PushWheel example
  • Added USE_LIBRARY_SPI to enable library SPI object
  • Modified all examples to conditionally include <SPI.h>
  • FontBuilder modified to handle definitions for double height fonts
  • New txt2font utility for easier font creation from a text file
  • Revised and re-organised documentation; expanded section on fonts

Released: TCS230 TCS3200 RGB Color Sensor Library (Mar 21, 2013)

$
0
0
The TCS230 is a color light-to-frequency converter on single CMOS integrated circuit. The output is a square wave (50% duty cycle) with frequency directly proportional to light intensity (irradiance). The full-scale output frequency can be scaled by one of three preset values via two control input pins. Output enable (OE) places the output in the high-impedance state for multiple-unit sharing of a microcontroller input.

A PDF file in the library folder explains the use of sensor with the library.

This library has a dependency on the FreqCount library for frequency counting (included in the download).Please read the setup information in the FreqCount header file or its distribution web site, as the type of Arduino that you are running will determine which pin should be used for connecting to the sensor's output pin.This is the most commonly asked question once the library is downloaded, so read the documentation and avoid frustration!

Library example code includes:
  • Simple blocking read from the sensor
  • Simple RGB non-blocking read
  • Example incorporating sensor calibration
  • Color learning and matching

Updated Release: TCS230 TCS3200 RGB Color Sensor Library (Mar 21, 2013)

$
0
0
The TCS230 is a color light-to-frequency converter on single CMOS integrated circuit. The output is a square wave (50% duty cycle) with frequency directly proportional to light intensity (irradiance). The full-scale output frequency can be scaled by one of three preset values via two control input pins. Output enable (OE) places the output in the high-impedance state for multiple-unit sharing of a microcontroller input.

A PDF file in the library folder explains the use of sensor with the library.

This library has a dependency on the FreqCount library for frequency counting (included in the download). Please read the setup information in the FreqCount header file or its distribution web site, as the type of Arduino that you are running will determine which pin should be used for connecting to the sensor's output pin. This is the most commonly asked question once the library is downloaded, so read the documentation and avoid frustration!

Library example code includes:
  • Simple blocking read from the sensor
  • Simple RGB non-blocking read
  • Example incorporating sensor calibration
  • Color learning and matching

Created Release: Radio Buttons Library (Mar 29, 2016)

$
0
0
Small library to allow the use of momentary push switches with LEDs to operate as user
radio button style selection buttons. See the blog post at https://arduinoplusplus.wordpress.com/2016/03/29/radio-buttons-in-the-real-world/ for a longer description.

Released: Radio Buttons Library (Mar 29, 2016)

$
0
0
Small library to allow the use of momentary push switches with LEDs to operate as user
radio button style selection buttons. See the blog post at https://arduinoplusplus.wordpress.com/2016/03/29/radio-buttons-in-the-real-world/ for a longer description.

Updated Release: Radio Buttons Library (Mar 29, 2016)

$
0
0
Small library to allow the use of momentary push switches with LEDs to operate as user
radio button style selection buttons. See the blog post at https://arduinoplusplus.wordpress.com/2016/03/29/radio-buttons-in-the-real-world/ for a longer description.

Released: Rotary Encoder Library (Sep 06, 2014)

$
0
0
This is an adaptation of Ben Buxton's excellent rotary library athttp://www.buxtronix.net/2011/10/rotary-encoders-done-properly.html and implements additional features for encoder rotation speed.

Features
  • Debounce handling with support for high rotation speeds
  • Correctly handles direction changes mid-step
  • Checks for valid state changes for more robust counting and noise immunity
  • Interrupt based or polling in loop()
  • Counts full-steps (default) or half-steps
  • Calculates speed of rotation

April 2014 - version 1.0
  • Initial implementation from Ben's code
  • Cleaned up some compile issues and added begin() method
  • Updated and documented
  • Added speed functionality

Updated Release: Rotary Encoder Library (Sep 06, 2014)

$
0
0
This is an adaptation of Ben Buxton's excellent rotary library at http://www.buxtronix.net/2011/10/rotary-encoders-done-properly.html and implements additional features for encoder rotation speed.

Features
  • Debounce handling with support for high rotation speeds
  • Correctly handles direction changes mid-step
  • Checks for valid state changes for more robust counting and noise immunity
  • Interrupt based or polling in loop()
  • Counts full-steps (default) or half-steps
  • Calculates speed of rotation

April 2014 - version 1.0
  • Initial implementation from Ben's code
  • Cleaned up some compile issues and added begin() method
  • Updated and documented
  • Added speed functionality

Released: DS1307 Real Time Clock Library (Jan 05, 2013)

$
0
0
Library for using a DS1307 RTC with the Arduino platform.

Exposes access to all on-chip capability
  • Read and write clock time registers
  • Access to the 64 byte battery backed up RAM
  • Control of square wave generator (on/off & frequency)
  • Control of clock features (on/off, 12/24H, day of week)
Example code supplied to
  • Manage the DS1307 using the Serial Console
  • Display the time on a LCD display

Updated Release: DS1307 Real Time Clock Library (Jan 05, 2013)

$
0
0
Library for using a DS1307 RTC with the Arduino platform.

Exposes access to all on-chip capability
  • Read and write clock time registers
  • Access to the 64 byte battery backed up RAM
  • Control of square wave generator (on/off & frequency)
  • Control of clock features (on/off, 12/24H, day of week)
Example code supplied to
  • Manage the DS1307 using the Serial Console
  • Display the time on a LCD display

Released: DS3231 Real Time Clock Library (Aug 09, 2015)

$
0
0
The DS3231 is a low-cost, extremely accurate I2C real time clock (RTC) with an
integrated temperature compensated crystal oscillator (TCXO) and crystal. Microprocessor interface is exclusively through an I2C bidirectional bus.

The device
  • incorporates a battery input, and maintains accurate timekeeping when main power to the device is interrupted.
  • maintains seconds, minutes, hours, day, date, month, and year information.
  • automatically adjusts dates for months with fewer than 31 days, including corrections for leap year.
  • operates in either the 24-hour or 12-hour format with an AM/PM indicator.
  • includes two programmable time-of day alarms.
  • has and frequency programmable square-wave output.
This library features access to all on-chip features
  • Read and write clock time registers
  • Read and write alarm registers and controls
  • Read/write clock and alarm registers as RAM
  • Control of square wave generator (on/off & frequency)
  • Control of clock features (Square Wave type and on/off, 12/24H, day of week, etc)
Viewing all 115 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>