Download Latest Version SketchChooser.zip (52.3 kB)
Email in envelope

Get an email when there's a new version of Arduino Sketch Chooser

Home
Name Modified Size InfoDownloads / Week
Sketch Chooser v. 1.0 2011-06-14
Readme.txt 2011-06-14 3.1 kB
SketchChooser.zip 2011-06-14 52.3 kB
Totals: 3 Items   55.4 kB 0
Table of Contents
1. About "Program Chooser"
2. System Requirments
3. How to Use "Program Chooser"
4. Changelog
5. License

**********************************************************************************************


1. About "Program Chooser"

Program Chooser is a simple program that allows Arduino to "use" four separate "programs," and allows the user to seemlessly switch between programs, without needing a computer to upload new programs.  This is useful especially for robots where the user may need to have multiple tasks stored on the Arduino at once, but needs them to be executed separately.  It makes this easier, because each of the tasks is written in a separate sketch, and then integrated into "Program Chooser" separately.

2. System Requirments

A computer with Arduino 0022 or later (get the software from: "www.arduino.cc")
Arduino



3. How to Use "Program Chooser"


 a. Import up to four sketches into the program chooser sketch via the "Sketch/Add File..." menu in Arduino.


b. in the newly imported files, rename the "setup", and "loop" voids to "<the filename>setup" and "<the filename>loop" respectively. (i.e. if I was using "blink" I would rename the setup void "blinksetup", and the loop void "blinklo)op"


c. In the main Program Chooser sketch, go to the voids labeled prgrm1, prgrm2, ..., and in these put in the names of the voids that are the voids to be executed in the other programs. (i.e. if one of my programs is "blink" then based on step b. if I wanted to make that program three I would place the line "blinkloop();" inside the void "prgrm3".)

d. In the void labeled "setups" place all of the "setup" voids for the other programs. (i.e. if I was using "blink" I would, based on step b. add the line "blinksetup();" to the void "setups")

e. Upload the sketch to the board.

f. Using the Schematic included with "Program Chooser," wire up the Arduino board. (Button "1" is the program selector button, and Button "2" is the run/stop button.


g. Using the buttons, you can now select and run the program of choice.



4. Changelog

 * Version     When        Who                 Comments
 * 1.0         06/14/11    Richard Eberheim    Initial authoring.







5. License

Copyright (c) 2011 by Richard Eberheim                               
 	                         
 
 	This library is free software; you can redistribute it and/or
 	modify it under the terms of the GNU Lesser General Public
 	License as published by the Free Software Foundation; either
 	version 2.1 of the License, or (at your option) any later version.
 
 	This library is distributed in the hope that it will be useful,
 	but WITHOUT ANY WARRANTY; without even the implied warranty of
 	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 	Lesser General Public License for more details.
 
 	You should have received a copy of the GNU Lesser General Public
 	License along with this library; if not, write to the Free Software
 	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
Source: Readme.txt, updated 2011-06-14