Friday, October 7, 2016

Bay Area Blind Arduino Monthly Meetup

The Blind Arduino Project is delighted to announce the kickoff of the Bay Area Blind Arduino Monthly Meetup -- BABAMM!! Beginning on October 8, 2016, Bay Area makers, both blind and sighted, will gather on the second Saturday of every month to construct, code, converse, and collaborate on Arduino and Arduino-ish projects. Bring your own or plan to join with others to teach and learn in a supportive and friendly environment focusing on empowering blind and visually-impaired people to make their own accessible stuff with Arduino.

If you are a blind maker working on a project, or if you are blind or sighted and have an interest in learning more about how blind and visually-impaired makers build stuff with Arduino, we invite you to bring your projects and your passion to BABAMM. We welcome beginners and masters alike, and are eager to learn and share our knowledge about all things Blind Arduino!

Meetups take place in the Innovation Lab at the LightHouse in San Francisco from 1:00 to 5:00 on the second Saturday of every month. Space is not unlimited, so it is really helpful to have an idea of how many people to expect. If you’re interested or think you might want to come, we would really appreciate it if you would sign up for the Bay Area Blind Arduino Monthly Meetup group. This makes it a lot easier for us to remind you when the meetups are happening, and to let you know about any special things that might be planned for future meetups.

Please join us for BABAMM! We look forward to crossing paths with many new and old friends as the Bay Area Blind Arduino Monthly Meetups continue to build momentum, community, and cool devices.

Tuesday, August 23, 2016

Configuring The Arduino IDE with the Java Access Bridge

Elsewhere in this blog I have discussed the relative inaccessibility of the Arduino IDE -- the free integrated development environment downloadable from arduino.org. Various rumors and suggestions have reached me about how it can be configured to work with the Java Access Bridge, but despite hours of effort I have never been able to do it myself.

Now, Ken Perry, blind maker, frequent advisor to the Blind Arduino Blog, and software engineer at the American Printing House for the Blind, has finally documented how to make the Arduino IDE work with a Windows screen reader. It is one of the early posts in what is bound to be an awesome blog on blind electronics.

It's great that Ken has finally told us how to get the Arduino IDE to work with the JAB, but I will probably continue to write code and upload from Notepad++ rather than use JAB with the IDE. This is mostly because I have concerns about the security of the Java Access Bridge, but I also feel like I have spent enough hours of my life fruitlessly wrestling with the JAB and don't feel like doing it any more. Maybe I'll try it some day when I'm feeling energized and long on patience.

For many people working in larger institutions such as schools or libraries, the JAB approach will also not be convenient because it requires extensive modification of environment variables and system-level files. Many system administrators will not like the configuration changes necessary to make the Java Access Bridge work with the Arduino IDE.

But the good news is that you can do it if you want, and Ken Perry is the hero of the day for finally telling us how. Thanks, Ken!

Sunday, July 3, 2016

How to Compile and Upload Arduino Sketches with Notepad++ -- Simple, Convenient, Accessible

Introduction

Blind people living in the real world are constantly working out hacks and alternatives to “normal” work flows that are inaccessible in whole or in part. Arduino software development is no exception, and many of the posts in this blog have been devoted to working around the sketchy (sic) accessibility of the Arduino IDE itself. For example, in an earlier post I describe (perhaps in more detail than strictly necessary) how to set up and configure the Arduino IDE from the Windows command line. In another post, Chancey Fleet provided excellent step-by-step instructions for installing and using Visual Micro to compile and upload Arduino sketches directly from Visual Studio. The current post offers the most convenient Arduino development tool chain I have yet found –editing, compiling, and uploading sketches directly from Notepad++.

Notepad++ (hereafter Npp) is my text editor of choice for almost any simple editing work including coding Arduino. It is used by many developers who don’t want the overhead of a giant IDE just to edit a bit of code. It’s free, open source, simple to install, and largely accessible with whatever screen reader you happen to prefer. It has features such as code completion, line numbers, support for different character encodings, and many others, yet it remains extremely compact and easy to use. Perhaps my favorite feature is that it doesn’t care what kind of line endings you use, CR/LF or just LF – it just does the right thing. This is really nice when using cross-platform source files such as Arduino sketches. If you don’t know what I’m talking about, just take my word for it: Notepad++ is extremely convenient and easy to use as a code editor.

Compiling and uploading Arduino sketches from the command line is great for those of us who are really old school and feel at home typing incredibly long text-based commands. For others though, those long commands are just opportunities for typos and inexplicable DOS error messages. Similarly, for hardcore hackers who have millions of lines of code under their belts, Visual Studio might be the best Arduino development environment you could want. Speaking for myself, however, Visual Studio makes me feel like the Sorcerer’s Apprentice with too many options, settings, and terms that I don’t quite understand, and an incredibly complex interface as reins to ultimate unwanted and undeserved power. In fact, I recently hit an accidental keystroke in VS and the entire thing stopped working. Of course, if I knew what I was doing in there then I’d be able to fix it, but I don’t have that kind of time and I don’t want that kind of power. I just want to write a little Arduino code!

In contrast, Npp is just my speed. It lets me do what I need to do without giving me a dangerous amount of rope. At the same time it has hidden depths which can be quite handy. You could say that I am definitely down with Npp…

But Npp is just an editor. It is not a compiler or an integrated development environment, so it can’t compile or upload your Arduino sketches. On the other hand, it can be configured to interact with other programs on your computer (such as the Arduino IDE) which can. This article explains how to set things up to let you edit an Arduino sketch with Notepad++, and then compile and upload that sketch with a single command without ever leaving Npp. The resulting Arduino compiler output and error messages are even displayed in a Notepad++ window for easy review.

The following sections offer two scripts that can be executed from inside Notepad++. The first allows you to set the Arduino COM port – convenient since this may change frequently with different boards and USB ports. The other compiles and uploads the Arduino sketch that is currently open in Notepad++.

Setting It Up

Step 1: Download the latest Arduino IDE and install it. If necessary, check out my instructions on installing and configuring the Arduino IDE from the command line.

Step 2: Download the latest version of Notepad++ (Npp) and install it. This process is easy and you should have no accessibility-related problems. Take note of the directory where you are installing it because you’ll need to find it later to install the Npp plugin.

Step 3: Download NppExec (a plugin for NPP) and install it. The installation process consists of unzipping the NppExec archive and copying the appropriate DLL into the plugins directory of the Npp installation directory. You are probably using the Unicode version of Npp, so copy the NppExec.dll file from the DLL_Unicode folder of the archive to the plugins directory of Npp and restart Npp to complete the installation. For example, my Npp plugins directory is "C:\Program Files (x86)\Notepad++\plugins"

Step 4: Set up the following Arduino-related NppExec scripts in Npp. You can either copy and paste them from below or download the NppExec scripts in this convenient archive.

The easiest way to install these scripts is to copy and paste them individually into the Execute dialog in NPP. This dialog can be opened with a keyboard shortcut (F6 inside Npp), or through Npp’s menus (Plugins > NppExec > Execute…).

The Execute dialog has a multi-line edit field for pasting or typing the script itself, a Save button for naming and saving scripts, a combo box for recalling previously saved scripts, and an OK button to execute the selected script. All the controls in this dialog are accessible with NVDA or JAWS.

The Arduino COM Port Script

This script makes it easy to quickly update the Arduino IDE’s COM port. This is the port used to upload the sketch to the board. When you invoke this script from inside Npp, a dialog pops up asking for the Arduino’s COM port. Appropriate responses are like the parameters you would use on the command line when setting the com port (e.g., com3, com4, etc.).

To set up the port selection script, open the Execute dialog by pressing F6 or by selecting Execute from the NppExec sub-menu of the Plugins menu. Paste the following script into the edit field and press the Save button. In the Save dialog, type something like “ Arduino Port,” and press return. The port selection script will then be saved for future use using that name.

Before saving, be sure to edit this script to reflect the actual location of your Arduino installation. I have mine in the root directory for convenience – “c:\arduino”.


//This NppExec script sets the com port of your Arduino IDE
//By Josh Miele -- June 27, 2016
//The Blind Arduino Project
//http://blarbl.blogspot.com
set arduino_path = c:\arduino\arduino_debug //the path to your Arduino IDE.
//put up a dialog box requesting com port name
inputbox "Please enter the COM port of your Arduino (e.g., com5):" //gets com port value
//use result to set port value doesn't verify
cmd /c "$(arduino_path)" --port $(input)
npp_console 0 //hide the console

Note: This script does no checking to make sure that you have entered a valid COM port or string. If you make an error typing or enter an invalid com port, you will get no error message or other feedback to indicate your mistake. Take care!

The Compile and Upload Script

This script saves the currently open Arduino sketch, then calls the Arduino IDE with the command line parameters to compile and upload it. It then passes any output, including errors to a new Npp file so that you can easily see what happened.

To set up the compile/upload script, open the Execute dialog by pressing F6 or by selecting Execute from the NppExec sub-menu of the Plugins menu. Paste the following script into the edit field and press the Save button. In the Save dialog, type something like “ Arduino Upload,” and press return. The compile/upload script will then be saved for future use using that name.

Before saving, be sure to edit this script to reflect the actual location of your Arduino installation. I have mine in the root directory for convenience – “c:\arduino”. Also make sure that the Arduino_output.txt file is being created in a directory where you have write privileges and where it won’t cause any problems. I put mine in “c:\temp”. The first time the script runs it will ask for permission to create the output file. After that it will quietly overwrite the file with each new execution of the script.


//This NppExec script compiles and uploads the current Arduino sketch in Npp
//By Josh Miele -- June 27, 2016
//The Blind Arduino Project
//http://blarbl.blogspot.com
//Set where the output goes. Make sure you have write privileges
set arduino_output = "c:\temp\arduino messages.txt" 
//Set location of Arduino executable. 
set arduino_path = c:\arduino\arduino_debug 
npp_save //save current file before uploading
//Compile and upload sketch in current Npp window and send stdOut and stdErr to arduino_output
cmd /c "$(arduino_path)" --upload $(full_current_path)>$(arduino_output) 2>&1
npp_console 0 //hide the console
//show the results of the compile/upload in Npp window
npp_open $(arduino_output)  

Note: This script does not account for the fact that the Arduino IDE will move your sketch if it is not already inside a folder of the same name as the stem of the script. For example, if you are editing a file called MySketch.ino located in c:\temp, executing the above NppExec compile/upload script will compile and upload the sketch, but the Arduino Ide will create a directory called c:\temp\MySketch and move the file MySketch.ino inside it. Notepad++will be left with an open file that has been moved out from under it. This has the potential to lead to unexpected errors and problems, so I recommend making sure your sketches are contained within folders of the appropriate name as modeled in the Arduino examples directory.

Using the Scripts

To invoke these scripts from inside Npp, press F6 to bring up the Execute dialog, then use your arrow keys to select the desired script from the combo box and press return. Pressing ctrl-F6 will execute the last script without invoking the execute dialog.

Note: There is a way to map individual NppExec scripts to their own keyboard shortcuts using the Shortcut Mapper under the Settings menu. Unfortunately, this dialog is not accessible using NVDA or JAWS. I believe there is a way to modify the shortcut mappings by editing one of Npp’s XML files, but I don’t yet know how to do this. In the interest of getting this info into your hands, I decided to post this anyway and update the post when I find an accessible way to map the shortcuts. If you have info about how to do this, please leave it in the comments.

References and Disclaimers

I’m no expert in any of the several areas necessary for creating elegant and effective NppExec scripts. I encourage feedback in the comments and invite suggestions for improvement and additional helpful scripts.

In developing these scripts I found the following resources extremely informative:

Monday, June 20, 2016

Consider the Continuity Tester

It has been argued that the continuity tester is one of the most essential pieces of equipment for a blind electronics maker. It is a device which provides accessible feedback when current flows in a circuit -- basically an Ohmmeter or resistance meter. A continuity tester with audio or tactile output provides an accessible way of testing and even identifying components, leads, and connections, tracing paths on circuit boards, checking solder joints, and even making other simple measurement tools such as light detectors and thermometers. While the sighted person finds occasional uses for an Ohmmeter, the continuity tester is an indispensable and pervasive tool for the blind maker. I cannot over emphasize the importance of having one.

They come in a variety of flavors, from simple circuits which buzz below a specified resistance threshold to oscillators that vary the pitch of an audible tone depending on the amount of resistance in the circuit. The classic continuity tester described in the following section, as well as many other awesome accessible continuity tester circuits and their uses, are fully documented in the Fall, 1982 issue of the Smith-Kettlewell Technical File. Advanced makers should definitely study these for insight into some old-school accessible test equipment.

The Classic Continuity Tester

The classic Smith-Kettlewell continuity tester is an elegantly simple circuit which makes for an excellent first soldering project (read the Soldering Series in the Smith-Kettlewell Technical File for all the information you need on blind soldering techniques). If you're planning to build electronics, make stuff with Arduino, or otherwise make a habit of messing around with wires and components, I strongly recommend building one. It's reliable, versatile, and extremely nice to have around.

Building the Classic Continuity Tester

The continuity tester's oscillator consists of an audio output transformer and a PNP transistor. An 8 Ohm speaker is connected across the leads of the low-impedance secondary of the transformer. The primary of the transformer has a center tap which connects to the emitter of the transistor. One end of the transformer's primary connects to the Positive terminal of a 9-volt battery. The other primary lead connects through a 0.022 uF capacitor to the base of the transistor. Across the entire primary is another 0.022 uF capacitor. The base of the transistor connects through a 22K resistor to the positive test terminal. The negative test terminal connects to the collector of the transistor and the negative terminal of the battery (ground). That's it!

A Simple Arduino-Based Continuity Tester

While the continuity tester described above is extremely simple and reliable, you may not have these capacitors, transformers, or transistors readily at hand. Possibly you aren't yet confident enough with a soldering iron to build it. Sometimes you may want to slap a continuity tester together using an Arduino and a couple of resistors. The following sketch makes a reasonably handy audible continuity tester, although the classic continuity tester described above is superior in most ways.

Building the Arduino Continuity Tester

Connect a 1 mega Ohm resistor and a 1 kilo Ohm resistor to analog pin 0 of the Arduino board. Connect the other end of the 1 mega Ohm resistor to ground and the other end of the 1 kilo Ohm resistor to +5v. Connect a piezoelectric buzzer to digital pin 9 and ground, (or you can substitute a speaker in series with a 100 Ohm resistor). Connect the positive test lead to analog pin 0 and the negative test lead to ground.

Programming the Arduino Continuity Tester

Copy and paste the following sketch into your development environment, make any desired modifications, and upload it to your Arduino. You can also download the continuity tester sketch here.

/*
Simple Audio Continuity Tester

Wiring Description
Parts: 
Resistors -- 1Meg, 1K, 100 Ohm.
8 Ohm speaker or piezo buzzer
jumper cables and test leads
Arduino...

Connect buzzer to pin 9 and ground.
If using a speaker, connect one side to pin 9. 
The other side of the speaker goes to 100 Ohm res, which goes to ground.

Connect 1K to +5V. The other end connects to a junction which includes the positive test lead, analog pin 0, and  the 1M. 
The other end of the 1M goes to ground. 

The negative test lead also connects to ground.

When there is no connection between the test leads, the speaker is silent. It begins to click when there is some conductivity, and produces a 500 Hz tone when there is no resistance.

Play with resistor values and the mapping of reading to ici to optimize for the range of sensitivity you need.

By Josh Miele
The Blind Arduino Project, June 17, 2016.
http://bit.ly/blarct01
*/

int sensorPin = 0; //the pin connected to +test lead
int speakerPin = 9;  //connected to speaker or buzzer
int thresh = 1000;   //above this sensor val no sound is played
int reading = 0;  //analog input value somewhere between 0 and 1023;
int ici = 0;   //inter-click interval in ms. Shorter for lower resistance values.

void setup() {
 pinMode(speakerPin, OUTPUT);    //speaker (or buzzer) pin 
 pinMode(sensorPin, INPUT);   //connected to +test lead
}   //end of setup

void loop() {
 reading = analogRead(sensorPin);  //measure voltage across 1Meg Ohm
 if (reading < thresh) {
  //if reading is less than threshold then speaker clicks
  //play a 500 Hz click 5 mS long
  tone(speakerPin, 500, 5);   
  //scale reading val to delay value in mS
  ici = map(reading, thresh, 0, 200, 0);  
  delay(ici);   //wait before playing next click
 }   //end of if
}   //end of loop

Monday, May 30, 2016

HELP -- My Arduino Headers Don't Have Gaps!

In another post I wrote about orienting yourself to the Arduino pins using tactile landmarks such as the gaps in the left and right header blocks. Unfortunately, the header blocks on some Arduino boards are manufactured without gaps between sections. Instead, both right and left headers are continuous blocks that include both upper and lower sections. Where the gap would be on most boards is simply a double-wide space on the header with no hole at all.


You can orient yourself the hard way using a probe such as a jumper pin, wire, or stylus to feel your way along the top of the header to find the spot where there is a wider gap between holes. This is the break between the upper and lower sections. While this is doable, it’s definitely a pain to do every time you need to find a particular pin.


To make navigation easier on these notchless boards, use a serrated dinner knife or a metal nail file to cut a notch between upper and lower sections that is easily detectable by touch. Guide the knife or file by placing male jumper cables on either side of the gap, that is, in the bottom hole of the top section and the top hole of the bottom section. Placing the knife or file between the two jumpers, gently saw back and forth to cut a small notch in the plastic header. Be sure to hold the Arduino by the header, not the board, to avoid straining the joint between the header and the board. The notch doesn’t need to be deep in order to be easily felt. Five to ten strokes with the knife or file should be enough. Check to be sure you can feel it and continue if necessary.


If you don’t want to permanently mark your header you can use a probe to find the gap and place a temporary landmark such as a flexible plastic toothpick or male-female jumper cable in one of the adjacent holes. The main consideration here is not to use anything which might accidentally break off or create a short.

Wednesday, May 25, 2016

What is the Blind Arduino Blog?

There is nothing new about blind makers -- we have a long history of creativity and innovation in order to get access to the information we need to do the things we want to do. We also have a long history of sharing how-to information among ourselves in order to support our community in achieving our goals and potential. The Blind Arduino Blog follows in this proud tradition.

Bob Gunderson's Braille Technical Press was a great, mid-century example of blind people supporting other blind people in building the tools they need. It largely focused on amateur radio tools and techniques, but it was an early pioneer in the blind DIY electronics genre. Bob worked as an electronics teacher at the New York Institute for the Blind and published the Braille Technical press in the 1950s as a way of documenting the accessible tools he and his students developed so that other blind hams could build and use them.

More recently in the 1980s and 90s, Bill Gerrey at The Smith-Kettlewell Eye Research Institute (where I happen to work) published the Smith-Kettlewell Technical File -- a publication inspired by Gunderson's earlier magazine. In addition to publishing instructions for building all kinds of useful accessible test equipment and refining the technique of circuit description, the Technical File published a series of excellent tutorial articles on techniques for blind solderers, also available at the previous link to the Technical File.

With the advent of open-source, relatively standardized, microprocessor-based project kits like Arduino, the kinds of devices that can be built by the casual maker at home have become quite sophisticated. In fact, Arduino is an ideal platform for creating a variety of accessibility devices which blind makers and users might find useful. For example Arduino would be perfect for building tools like audio and tactile meters and gauges which could be driven by any manner of sensors and detectors. From accessible scales to timers, range finders, multimeters and beyond, Arduino could make it relatively easy to design and share accessible tools which can be endlessly modified, adapted, and improved to meet a wide range of applications and needs.

A little googling reveals that there are designs for a number of Arduino-based accessibility devices scattered across the net. However, none that we have found are intended to be built by blind people, Nor is the documentation necessarily accessible. Furthermore, the fact that they are from all over the place means that they are inconsistently documented and occasionally hard to find.

The Blind Arduino Blog is another step along the road paved by Gunderson and Gerrey. Its intent is to provide a public clearing house for blind makers who want to build accessible devices with Arduino. The project has two main objectives:

  1. To provide clear instructions and accessible resources for blind people who want to develop for Arduino, and
  2. To Assemble a library of accessible project descriptions for devices that might be of particular use for blind people.


Before we can begin assembling our library of accessible Arduino devices for blind makers, there are a number of hurdles to be overcome. We can build on Bill Gerrey and Bob Gunderson's hardware-assembly description techniques to document how to build the Arduino hardware, but the coding component needs some R&D. First we need to identify and document the accessible tools and resources for learning, writing, and uploading code to the Arduino itself.

There are many different Arduino boards and accessories, and many different software tools available for coding, uploading, and debugging. Thus, the first posts to this blog will document our investigations into which boards, tutorials, and other tools are most accessible, as well as any work-arounds or tricks for getting the most out of them as a blind user. Once we have a nice foundation of accessible tools for Arduino development on which to build, we can move on to our long-range plan of collecting and developing accessible instructions for building a wide variety of accessibility devices based on Arduino. My own personal interest is in duplicating a number of devices from the S-K Technical File recast in Arduino. As our group learns and grows, I have confidence that the depth and diversity of projects will expand well beyond what I currently imagine.

Some Comments on Platforms, Screen Readers, and Browsers

Arduino software development can be done on Linux, Mac, Windows, and other platforms. This blog will focus on identifying tools that are Windows based. For folks who are comfortable in Linux, I suspect that is the easiest and most accessible path for Arduino development. However, most people are a little intimidated by Linux. While Apple has done great work with VoiceOver, the vast majority of blind users are still on Windows. For these reasons, we are committed to charting an accessible Arduino-development path through Windows. This doesn't mean that we won't include some posts on tools for other platforms, it just means that the emphasis here will be on tools for Windows.

In addition, in making our judgements about accessibility of tools and informational resources, we will assume the default screen reader/browser combination of NVDA and Firefox. Certainly there are other screen readers and browsers and preferences will vary, but web site performance will as well. Since we can't test all combinations, we will generally stick to NVDA and Firefox when we test Arduino resource sites for accessibility.

Monday, May 23, 2016

Visual Studio Community: a free, accessible IDE for Arduino

Thanks to Ken Perry for investigating and recommending Visual Studio Community 2015 as an accessible Windows environment for programming Arduino. This method requires some time and effort to set up, but once it’s done it offers screen-readable line numbering, error reporting, serial monitoring and code completion, among other advantages. I found that JAWS 17 and NVDA 2016.1 work equally well with Visual Studio Community. If you’d like to give VSC a try, here’s how:

Installation

Arduino IDE
You’ll still need to start out by downloading the Arduino IDE; you won’t be opening or coding in this IDE, but a Visual Studio plug-in needs to use the Arduino compiler behind the scenes. If you already have the IDE, check to make sure it’s the latest version; if it isn’t, download the current version before moving on. (Note: at this writing, the current version is 1.6.9. It’s of course possible that a future version will be incompatible with VSC. A quick Google search of the current IDE version and VSC version should let you know whether they’re working together). It’s a good idea to put the Arduino folder at the root of your hard drive: by default it installs within C:\Program Files, which can cause problems with permissions down the line. If you already have the IDE installed, you can just copy the whole Arduino folder from C:\Program Files to C:\.
Visual Studio Community 2015
Visual Studio Community is available as a free download. While the initial download is relatively small, budget some time (it took me around 45 minutes with a decent wifi connection) for the VSC installer to acquire and configure additional files, and make sure you have 12 gb of free storage space (8 for VSC, 4 for Visual C++) before you begin the setup process. The necessary controls to move through installation are readable with both JAWS and NVDA. To monitor the progress of installation, use the touch cursor (JAWS) or object navigation (NVDA). You may notice some “phantom controls” above the progress information that refer to ending a session, cancelling setup, and choosing an installation location. Don’t worry about those; keep your attention on the reassuring movement of the files being installed and the progress percentage.
Note: Before you start the installation, read ahead to the section of Visual C++. If you choose a custom install for VSC, you can skip an extra step later on: however, I haven’t tested this myself so I’ll be describing the (probably longer) path I took.
When setup is done, activate the “Launch” button. You’ll be prompted to sign in or create an account to connect to developer services, but you can tab and choose “Not Now, Maybe Later” if you’d rather not.
Next, you’ll be prompted to choose your development settings (the default, “General”, is fine) and a color theme. Tab and choose to “Start Visual Studio”, and go make a cup of tea or something; it takes about two minutes for VSC to configure itself.
You are now in a world of buttons leading to tutorials, news, videos and more. You can tab through these if you’d like to explore them.
Visual C++
You’ll need to install Visual C++ before programming your Arduino. If you didn’t do this when you first installed VSC, navigate to the File Menu>New>Project. In the dialog box of extension providers that appears in focus, choose Visual C++. Tab several times to a list of extensions and choose “Install Visual C++”. This installation took me about 15 minutes and all screens were readable, although I encountered “phantom messages” similar to the ones I described when installing VSC.
The Arduino Plug-in
Navigate to Tools>Extensions and Updates to install the Arduino Plug-in, otherwise known as “Visual Micro”.
Within the Extensions and Updates dialog box, shift-tab once and change the combo box from “Installed” to “All” (sorry, this box’s label seemed unreadable by NVDA). Then, tab to the search box and type in “Arduino”. Tab to the table of extensions, where “Arduino IDE for Visual Studio” should be your top hit. Tab once more to Download, and press enter to initiate download and installation. (You may need to say “Yes” to a User Account Control at this point”). One more dialog box will appear; choose Install, and follow the prompt to restart VSC. (If you receive an error message stating that “per user extensions” could not be loaded, close VSC; set its properties to always run as an administrator; and reopen it.
When VSC restarts, you’ll be placed in a dialog box to configure IDE locations. (You’ll also be shown a window containing the Arduino for Visual Studio documentation). Choose your Arduino IDE version and the installation path for your Arduino IDE, then tab and choose OK. At this point, I was presented with a message reading “toolchain reloaded” and the only way to dismiss it was to close and reopen VSC.

Getting ready to program

Select your toolbars
Navigate to View>Toolbars and select all four Micro toolbars (Boards, Project, Programmer, Serial Communications).
Configure VSC to work with your board
Visual Studio Community can work with a wide variety of microcontrollers, including Arduino. You need to specify your board and how it’s connected before you can write programs to your Arduino.
Connect your Arduino and find out what com port it’s using. To do this, open your Device Manager and expand the “Ports, Com and LPT” section.
In VSC, navigate to the “Micro Boards” toolbar (you can do this by pressing Alt for the menu bar and then pressing Control+Tab until you find the toolbar). The first combo box you find, Micro Applications, will specify your IDE version. Tab once to the Board combo box and choose your Arduino model. (Pro tip: the first choice here is “Arduino Yún” which sounds a lot like, but emphatically is not, the same thing as “Arduino Uno”. Do not waste time choosing this option and failing to program your Uno: I’ve already done that for you).
After you choose your board, navigate to the Micro Serial Communications toolbar and choose your board’s com port.

Writing a Program

To create your first project, navigate to File>New>Arduino Project. Give your project a name and press enter. A blank sketch is always populated with lines for “Void Setup” and “Voic Loop”, along with comments (bracketed by /* and */) explaining what those sections mean. If you’re writing code by hand, leave these in place; if you’re pasting in a code example that already has these sections, select and delete the existing text before you paste.

Uploading the Program

To upload your program, press Control+F5. If VSC finds errors, it will list them for you, by line and column number. If not, it will let you know whether the program finished uploading. In either case, to dismiss the message and get back to your code, press Escape.

Closing and re-opening your program

VSC refers to programs, which can include your Arduino sketch and any associated files, as “Solutions”. Navigate to File>Close Solution when you’re done working with a program, and follow the prompt to save or discard changes. To open a program you’ve previously created, navigate to File>Open>Arduino Project.

Saturday, May 7, 2016

Blind Arduino Booth at Maker Faire Bay Area 2016

Maker Faire Bay Area has been growing in size and coolness ever since it started a few short years ago. At this giant festival makers of all kinds get together to show off their stuff, swap ideas, and encourage each other to greater heights of collaborative creativity.

This year the faire will be even cooler because the Blind Arduino Project will be running a booth – showing off awesome accessible gadgets, answering questions about how blind people build stuff with Arduino, demoing blind soldering techniques, and more.

Look for us in Zone 2, booth 2420. We will be in among amny other Arduino-related booths, so please enjoy the process of finding us and telling them you're looking for the Blind Arduino Booth.

Maker Faire 2016 takes place at the San Mateo Event Center, May 21-22, with a
convenient shuttle connecting from Millbrae BART.

Please tell your friends about it and come visit our booth at Maker Faire Bay Area to learn all about blind makers and how blind people work with Arduino!

If you are tweeting about your Maker Faire experience, please remember to use #BlindArduino and #mfba16 in your posts.

Looking forward to seeing you there!

Tuesday, May 3, 2016

A (Very New) Beginner's Guide to Hobby Electronics and Robotics

  • absolutely no background in robotics, electronics, or programming needed
  • some assembly required
  • use of eyes NOT required
  • batteries not included 
Laura's robot: the Luna Moth Bot
My first robot, the Luna Moth Bot, on exhibit at the Pittsburgh Mini Maker Faire 2011. The microcontroller, motor control circuit, breadboard, and tank treads are housed under a repurposed SMILA BAGGE plastic lamp enclosure from IKEA that is about 12 by 9 inches. The photoresistor sensors (more on those later) are sized to fit perfectly into the winged bug’s eye sockets. Note that my nail polish matches the robot enclosure. The neon light green color is similar to that of a luna moth, the inspiration for the project. Photo credit: Larry Rippel

Pfft... you think I could build a robot?

There is a certain mystique surrounding the word robot. For some it can conjure up delightful images of a friendly companion who is always eager to serve you; for others it causes fear of the unknown. When I think about robots, I think about machines that react to sensors. I tend to consider whether the functionality of a machine seems to be greater than the sum of all of its parts. Yes, that’s vague, but robotics is an incredibly diverse field and I couldn’t possibly hope to address it all. So, I’d like to focus on a very specific and accessible branch of robotics: hobby robotics. I’ll define a hobby robot as a robot built for fun or entertainment. It should mostly be an instructional device or something that you just think performs a cool function in some way.

Recent advances have made hobby robotics accessible to anyone with an interest, regardless of background or past experience. All you might need is a little bit of information about the hobby robotics community, a little background information that will make beginner guides more accessible, and a plan for moving forward. Though this guide is for anyone, I’ll be giving special attention to the readers interested in getting into electronics who are blind or have vision impairment by including comments on accessibility and links to other parts of this blog.

Getting started: a journey of a thousand miles begins with a single step

You might be considering whether you want to start out with a walking robot that will fetch you a can of pop from the fridge or perhaps instead a giant mechanical suit that will stomp around town and bring you to work while you sleep in. By the end of reading this guide, I hope that you can begin to get an appreciation for the complexity of such machines. The truth is that some of our world’s best and brightest are still working on just tiny facets of those kinds of ideas. Several companies might be sending out test fleets of self-driving cars, but machines still have a long way to go before they can perceive the world with the same level of ability as your pet cat. Robots built by professionals have many layers of complexity. Manufactures have cost and material concerns and all use kinds of technology that are advanced beyond the scope of this guide. I’ll just be talking about starting very small with a little programmable rover robot and focusing on having fun. An example of a rover robot is a small mobile robot like the one pictured above, the quintessential beginner's project.

A fun place to begin outside of a school is in a makerspace, any one of the physical locations that comprise the “maker movement”. Makers (in this context) are folks who want to make the things around them better through modification and experimentation. A maker is the type of person who might build a robot or use a 3D printer, laser cutter, or even yarn to make an interesting item. A makerspace comes into existence when makers get together to create a community of collaboration, fun, and adventure. In a way, makers can be thought of as amateur hobbyist engineers, proving that you do not need a fancy degree to fulfill geeky aspirations. The community and resources of a makerspace should be available to anyone. In my experience in Pittsburgh and in traveling to other shops, I have always found them to be welcoming places. I was lucky enough to find some robotics experts to mentor me. Some people love to talk about their work and will tell you more than you ever wanted to know while others might direct you to someone else who could help you. You could really hit the jackpot and live in a town that has a makerspace specializing in robotics such as the Dallas Personal Robotics Group. Makerspaces can pool together at Maker Faires around the country to collaborate and show off new projects which the Blind Arduino group will be doing in 2016. Another nice thing about makerspaces is that if you do not have one in your town, you are free to start one yourself!

If you prefer a more solitary learning path, or there are no resources for a makerspace in your hometown, there are some books and online resources that are available to help you. I have found a few problems with these materials that I hope to help you, as a (very) new beginner, overcome. First, since technology changes at a seemingly ever more rapid pace, printed material of any kind can become outdated or obsolete. Second, some “beginner's” books are still too advanced for someone who is brand new to electronics or robotics. I certainly remember feeling my eyes gloss over while trying to read some of these things. I am writing this guide as a possible solution to these issues. I will be discussing hobby robotics in very broad terms so that as the specifics change, the general principles will hopefully still be helpful to you. I will also discuss how to select resources for further learning and experimentation on your own. I encourage you to supplement all of this instruction with free resources, including your local public library or websites like www.instructables.com which offer free step-by-step outlines of projects. There are plenty of self-education podcasts and videos that are helpful once you know what you don’t know.

Here are some rules about hobby robot building I learned from my mentor at the time, Ed Paradis. He doesn’t take credit for them, so I guess that means their origins are now steeped in lore and mystery.
1) Avoid building a robot you can’t outrun. (I always get a comical image in my head when I think about this one.)
2) Avoid building a robot heavier than you can lift.
3) Avoid building a robot that can’t fit in a car or out your main door.

I’m adding a few rules myself:
1) Don’t feel intimidated. It is unlikely that you will seriously injure yourself with a rover kit or unwittingly unleash a maniacal destruction bot upon the world. Everyone started somewhere and once knew nothing about robotics! With the creator’s permission, feel free to pick robots up and play with them to your heart’s content.
2) Do whatever makes you excited. Hobby robotics is all about having fun. Leave behind whatever doesn't make you happy.
3) Create a memorable robot. Give it a name or make it appeal to your senses. I personally like to make cute robots that evoke a smile instead of looking fearsome.

Robot parts!

The Arduino (aka Braaaaaaaaaains)
Though hobby robotics has been a pastime for decades, I think that a specific technological invention has welcomed even the most beginning robot builder to the field, the Arduino microcontroller. With a little ingenuity and a few tips from our blog, it's accessible to people with disabilities, too. A microcontroller can be thought of as the brain of a robot. It makes judgments based on what you tell it to do and directs the rest of the robot part's based on conditions around it. Around 2005, a group of researchers put together a project that would allow novice electronics users to easily get started using computer code and a small device to control the world around them. The result was the Arduino, which has been improved upon several times since then. One aspect of the Arduino's appeal is that there is a huge community of people around the world using it and sharing their knowledge to help others get started. Arduino has become a bit of a common language, if you will, among beginning and advanced electronics users alike. Thanks to its open-source hardware design, there are tons of variants available as well. Here is just a sample of the many projects that use Arduino

The Arduino itself is a small board of electronics with a processor like the one in your computer except that its processor is slower and smaller. It comes with some software that allows you to write programs to run on it and this article discusses ways to make the software accessible. On one end, you connect the board to your computer using a USB cable and on the computer end, you can send the board "sketch" - a script that gets transferred to the Arduino via that cable. The script that will be running on the Arduino starts as an idea in your head, then as a text outline of your program, then a script written with help from the Arduino programming guides.  At that point, you press a button to compile that script, that is, turn your human-readable script into a machine-readable file. (Beginning programmers might argue against the script being “human readable” but I assure you that it gets more and more so with practice.) This machine-readable file is sent via serial communication to your Arduino where it is stored. If you disconnect your cable, your program will still run because it is saved in the Arduino’s memory. You can only store one program at a time on the Arduino. If you want to change what the Arduino does, you just write a new script and overwrite the one you had on there before. If you want to add some new functionality, you can purchase some additional hardware that sits on top of the Arduino called a shield. There are many shield designs available for sale online for different purposes. Because the Arduino is “embedded” in the robot, this type of programming is called embedded programming. Something I just love about this kind of programming is knowing that an idea I had in my head is now actually running a robot even if I am not physically present. 

While I am talking about programming the Arduino, I’d like to add more information on learning to program for the first time. When working with an Arduino, a script is called a “sketch”. There are more details in the Getting Started Guide on the Arduino website. There is also a ton of great advice on the AdaFruit website. In general, it is a good idea to start with a plan and break it into small steps. Execute each small step, testing as you go, and you will have built your first program. Be sure to add lots of comments to your sketch. Comments are notes that you add to a program that are ignored when your sketch is compiled. I recommend using these comments to first create an outline and then fill in each section little by little. 

As for the Arduino board itself, you connect to it via wires going to and coming from the other parts of the robot. The main thing that I’d like to encourage you to remember is that the Arduino is concerned with changes in voltages. Voltage is a somewhat abstract concept that has to do with the way that electric circuits work. A change in voltage can occur by changing the amount of electric current flowing through a circuit or the resistance of the components in that circuit. I don’t care to go into the details of these concepts, so I’m trying to be as general about this as possible. I only mention them because it shows that looking for changes in voltages in a circuit is a good way to tell that something somewhere else in that circuit has changed. You can learn more about these terms by studying Ohm’s law in physics or by picking it up as you go along while you build a robot. The bottom line is that your Arduino uses voltages to communicate your commands to your motors or read in information from your sensors. This is opposed to actually running the motors (usually) or making the sensors sense things. Other parts of the robot are responsible for those tasks. 
The Sensors: sensitive kind of guys 
If the Arduino is the robot’s command center, the sensors are its spies. The sensors collect information about the world and report it back to headquarters. There are a variety of low-cost sensors available that can give your robot some cool features. For example, potentiometers are sensors that have a little dial on top that can be turned to cause different effects within the circuit. Photoresistors or photodiodes can detect light. Infrared (IR) or sonar sensors can detect whether other objects are near or far from the robot. These sensors will probably be pretty small on a hobby robot. You can come up with clever applications such as using a pair of sensors and comparing their readings to guide the robot’s navigation. For example, if you have two light sensors, you could have your robot steer towards whichever one has more light shining on it, which is what my robot did. Sonar or IR sensors can be placed on the bottom of your robot as a means of detecting the edge of the table. You can tell the robot to stop whenever it senses that an object suddenly gets much further away. That is, you would watch for when the sensor goes from reading the table top close by to the floor far away. Here is more information about an accessible way of reading those numbers. There are sensors that can track just about anything about their place in the physical world, including the speed of travel, movement in any direction, or if they have twisted or turned in any dimension. The possibilities are almost limitless so it is a good idea to start out with just a few sensors of one type and expand from there. Note that when you are comparing the readings of two sensors, each sensor might report slightly different numbers from the others. You will need to calibrate these sensors, that is, make adjustments to your hardware or software to compensate for these differences. You can learn more about accommodating these sensors in the Arduino guides or as a part of building your first robot. 
Power! Muhahaha!!
You will want some batteries to run your robot because a roving robot that is plugged into the wall might end up being no fun. The power requirements for your robot depend on things like your motor sizes, required running time before it dies, and the amount of cool things you want to hook up. Given all that variability, I wouldn’t be able to cover all cases in this guide so I will refer you to a kit, or to someone who will design your first robot for you. The main thing to know is that you should only use a battery of the specified size and type. This should be marked on the battery itself. Know that a fresh battery right out of the box or charger will cause different behavior than one that has been used a lot. If your robot is acting strangely, try swapping in new batteries. Also, if you are just using something like a few AA batteries, you don’t have to worry too much about electric shocks. Hobby robotics is not an extreme sport.
Motors and gears: he's going the distance, he's going for speed 
I once used the terms “engine” and “motor” interchangeably which left an inquisitive engineer aghast that there was an “engine” (thinking of an engine in a car) in a tiny vehicle (that most certainly did not run on gasoline!). I now know that there is actually some debate regarding the exact meaning of those two terms depending on historical context and other factors and that other people use them interchangeably, too. The fact of the matter is that if you want to get into robotics, you will encounter a confusing array of technical terms and you will definitely make some mistakes in using them along the way. Don’t let that deter you. While you may encounter that one person eager to put you down, my experience has shown that there will be far more people even more eager to help you along. In my case, the engine/motor confusion just led to a good laugh for all. I’m just going to call them motors for the rest of this guide. That’s how I refer to them in the context of hobby robotics in conversation now. I am clearly not an expert on motors, so I will tell you what I’ve learned about some very specific yet common motors, hobby DC motors, and how to avoid destroying them. The most basic thing to know is that when it comes to working with motors, it is important to know what the motor needs to run and what kind of result you should expect from running it. I know that I needed my Arduino to tell the motors when to run, and I’ll go into that more in the next section on motor controllers. I also needed those motors to turn my robot’s wheels. Specifically, I had model tank treads that just had a sprocket, or a wheel with teeth, that was responsible for turning the entire tread. I had a total of two motors, one for each sprocket/tread combination on either side of the robot. (I spent most of my life thinking that the term ‘sprocket’ was a made up term for the Jetsons and wasn’t a real thing. You never know what you’ll learn when you try new things!)

In the case of my robot, I had motors that had a metal shaft sticking out of one end with a little gear attached to it that would spin when the motor had electricity flowing through it. That small gear was connected to other gears in such a way that I could take advantage of what are called gear ratios. You can read more about gear ratios online and see lots of interesting physics discussions. I’ll summarize the basics. A gear ratio is determined by comparing the size or number of teeth of one gear to another. A smaller gear can make its rotation faster while a larger gear is  capable of outputting more turning force, or torque. Torque has an interesting unit of measure because it is a combination of a force (or mass) unit and a distance unit. Something that took me a while to figure out is that torque isn’t just a force, or a distance between the center of a gear and its teeth, it is the combination of both of those things together. It is a little like velocity or speed. Velocity isn’t just the time it takes to travel a distance, and it isn’t just that distance that is traveled, it is both the time and the distance together in one measurement. I recommend that you start out working with gears that are selected for you and then experiment to see which sizes yield different results. This is another area where you can just keep going deeper and deeper with the details so start at the most general case and keep studying if you are interested. You can’t learn everything in robotics! That is an impossible task for one human. The specific problem that was solved by my gears was that I had a small motor that was capable of spinning that small gear really fast but was a weakling when it came to spinning around something heavy. The sprockets didn’t need to go as fast as the motor but they needed to turn with more torque than the motor alone could deliver. By putting gears between them and taking advantage of the increasing size of each gear compared to the rest of the gears in the gear train, the fast turning motor’s movement could be translated into the turning force I needed to turn the tank treads.

 Motor Controllers: Control freaks
So you’ve got a motor, some gears, and some sweet wheels and you are ready to use them. Congratulations, you now have a toy car that will drive in one direction at one speed until you disconnect the power! If you want some control over your motor, you need something called a motor controller, oddly enough. Some people call them motor drivers or point out that they are just an example of a larger concept that is called a control system. If you buy one off the shelf, you would just hook it up to one of the pins of your Arduino on one end and your motors on the other according to its specifications. My first robot didn’t use an off the shelf motor controller and instead used a bunch of individual electronics parts put into what is called a breadboard, or electronics prototyping board. While this was a learning experience, I also nearly destroyed my whole robot because I accidentally hooked it up incorrectly the first time. I lucked out there, but if I didn’t, I could have just replaced some of the robot parts because they were pretty cheap. Use whichever motor controller is recommended to you or is a part of a kit you have purchased.

Chassis: bringing everything together
This section is about the exterior shell of your robot. You could say that it provides protection and structure for your robot, and I would agree, but I’d also consider it a place to stuff your somewhat ugly parts or hastily made assembly mistakes so that you don’t need to see them anymore. If you want a rover type robot, you would look for a chassis that can accept your wheels and has enough room to hold a microcontroller, some motors, some batteries, and some sensors. You may need to add some holes in which to situate sensors or to allow heat to escape so you might want to choose a somewhat easy to cut material. You can find many designs online that are inexpensive because they are composed of parts that come in a kit that you can assemble.  These kinds of kits are commonly made out of wood or plastic and they were likely made using a tool called a laser cutter that can cut plastic and other materials on demand. A laser cutter allows for rapid prototyping and creation of a design. Really, though, you could put just about anything together as long as you think it looks cool. The chassis for my first robot was an old Ikea lamp I found at a thrift store. I took out the light bulb and cord and put in the electronics and wheels. There are even electronics that can be sewn into soft items like a stuffed animal but I’d be likely to recommend against that because it might just turn out to be creepy. Let’s delight, not traumatize, the children.

Time to build: the whole kit and caboodle 


The best kit is a bunch of parts selected for you and handed to you by someone who can help you assemble them. Eventually, you’d learn enough that you could start making your own kits. Not everyone can get that, though, so you can consider many options available online. Look for something that accepts a common microcontroller like an Arduino and contains parts for everything I’ve described here. A good beginning kit should allow you options to customize it and make it do a variety of things as opposed to just one purpose. It’s a good thing if you should have to assemble it somewhat. I’m partial to this kit from DFRobotShop because it contains a lot of the features I like in a robot including a built-in motor controller, plenty of documentation, and a price under $90 as of this writing. As time goes by, these kits will be replaced by newer and cooler things. Embrace the change, just get started with something, join the community, and have fun!

____

Special thanks to Meagan H. Houle for her copyediting services and to countless friends for playing with robots with me. 


Arduino software accessibility overview by OS

The Arduino software is used to write a "sketch" - basically a script - compile it, and send it to your Arduino board. It is also used to receive data from the Arduino board in the form of the Serial Monitor. Here is a download link for the software and an overview of making it accessible.

Software Setup

If you are using a screen magnifier:

No adjustments needed. You may like the Arduino O&M post for more details on the smaller parts of the board.

If you are using a screen reader:

  • If you are using OS X, VoiceOver has been reported to work with the Arduino Integrated Development Environment (IDE) without modification. 
  • If you are using Windows, see this post about setting up the software on Windows
  • If you are using Linux, the Windows setup post may be helpful but we do not have further details at this time. 

Learn to code resources


Wednesday, March 30, 2016

Getting to know the Arduino Uno Board

Getting to know the Arduino Uno Board


In a previous post, Josh thoroughly described the useful and interactive pieces of the Arduino Uno board. This article intends to describe physical components on the board that are not the pins and headers, in order to give new users a "tour" of the Arduino. Many of my explanations will describe components in relation to the locations of other parts. For our purposes, we will orient the Arduino Uno with its power and USB ports on the top and the components out in front of us. And generally, we will travel counter clockwise around the board. First up, the AT328Mega Microcontroller.

Picture of the Arduino Uno - courtesy of Tested.com
Picture of the Arduino Uno, oriented with the USB and Power ports on the top

AT328

The physically largest component on the Uno board is the AT328Mega Microcontroller, which is laid out in a vertical column just to the right of the analog pins, extending from the bottom portion to about two-thirds of the way up the board. This microcontroller is the essentially the "brains" of the Arduino, it is a computer chip that contains the CPU, a small amount of memory, and inputs/output capabilities that are realized by Arduino's analog and digital pins. More information about microcontrollers in general (what they do and how they work) can be found all over the internet, though I quite like Instructables.com's overview which can be found here.

The ICSPs

Directly to the right of the AT328, at the very bottom of the board, there is a little 3x2 grid of pins (sort of resembling a bed of needles, or a Braille cel) that poke straight up. The ICSP is used to install a bootloader on your Arduino if it is no longer functioning. As beginners, we won't interact with ICSP but it is a good landmark to orient yourself to the board. More info about Arduino Bootloaders is here.

Moving to the right around the perimeter of the board, you will next encounter the digital pins, which are in a column formation along the right edge. Again, Josh explained these in great detail here. Just to the left of the very top two digital pins is a second ICSP (3x2 grid of pins), oriented perpendicular to the ICSP on the bottom of the board.

Restart Button

In the top right corner of the board adjacent to the USB port and above the digital pins is the restart button, which can be used if your Arduino is behaving erratically, or if you want to restart the program running on the board. Note that it's the only pushable button on the board (it's kind of fun, go ahead and press it).

USB port and AT16megaU2

The USB port is located above the second ICSP and slightly to the left. The Uno takes a standard USB type B cable input, and allows the board to both send / receive information and power from a computer. Just below the USB port is a small square-shaped chip, which is the second microcontroller, the AT16megaU2, which is the "brains" of the Uno's ability to communicated with the computer via USB. That second ICSP is tied to this second microcontroller.

16mhz crystal

Just to the left of the small square shaped AT16mega chip is an elongated oval-shaped cylinder. This is the 16 mhz crystal, which provides a clock input to the microprocessor. Continue to make your way towards the top left corner of the board.

Power Supply

In the top left corner of the Arduino Uno board are all of the components that pertain to power. If you leave your computer connected to the Arduino when using it, this area is of little concern. But if you plan on loading a program onto the Arduino and using the board independently from a computer, you will need to find a way to run power into the device. The power input jack, located in the very top left corner of the board, is a 2.1 mm x 5.5 mm jack than can receive between 7 and 12 VDC. Just to the left of the Power input jack is the voltage regulator, a small rectangular-shaped chip.

Directly below the power jack are two cylindrical capacitors. These capacitors are located between the AT328Mega and the analog pins. We have completed our journey, having traveled counter-clockwise around the entire Arduino Uno Board.

LED Lights

Lastly, it is important to note that there are several LED lights on the Arduino Uno which serve a few different purposes. Diagonally to the right above the AT328 Mega's ICSP is the ON LED light, which lights up green when the unit receives power. Another LED can be found directly to the left of the Digital 13 pin, which is used in the Arduino Blink exercise.

Thank you for reading and if you have any questions or clarification points, please share them in the comments below.



Tuesday, February 16, 2016

Blind Arduino Workshop to Honor Arduino Day 2016

In honor of
Arduino Day 2016,
on April 2, 2016, the Blind Arduino Project will hold the first of a series of in-person workshops to demonstrate and teach critical methods for blind Arduino developers. This workshop will include hands-on experience with eyes-free wiring, coding, and debugging of Arduino projects. We will assist blind makers with the process of configuring their own systems for accessible development, and will support attendees at all levels from design advice on advanced projects to one-on-one guided tours of open-source examples, all in a relaxed and supportive environment.

Participants in this first Blind Arduino Workshop will gain first-hand experience building auditory and tactile displays for Arduino devices using a variety of servos, steppers, buzzers, and specialized shields. They will also form the core group of future teachers and mentors for our up-coming Blind Arduino Workshops -- yet to be announced.

The first Blind Arduino Workshop will take place from 10:00-5:00 on April 2, 2016, at the Ed Roberts Campus in Berkeley, California. If you would like to attend this event, please
sign up.
No previous experience is required, but knowledge of Windows and your access technology is suggested. Space is limited, so we may not be able to accommodate all applicants in the first round (hence the plan for more workshops in the future).

To keep track of these events as they form and unfold, check in on
#BlindArduino
and
#ArduinoD16.

If you have questions about the event or want more information about the Blind Arduino Project,
contact the organizer by e-mail.

We hope to see you there!

Sunday, January 3, 2016

Arduino O&M: Pins and Headers

This article verbally describes the most current Arduino headers and pin locations (version R3) so you can start building things as quickly as possible. It offers a basic orientation to the Arduino board plus specific descriptions of pin locations on the standard headers used for input, output, and control. It also includes descriptions of some non-visual techniques for finding header sockets -- some manual dexterity and sensitivity required.

This article does not orient you to older board configurations or to other components on the board, nor does it go into any detail about specific properties of the pins themselves. That information is readily available elsewhere, but a good start is this article with more information about Arduino pins and their properties.

Basic Orientation


Most Arduino boards are the same shape and size for standardization and interchangeability: a small rectangle about 2.25X2.75 Inches with USB and power ports on one of the short edges, and two rows of header sockets along the two long edges. The headers are narrow, tall blocks, each with a single row of small holes (sockets) along the center of the top face. Each Arduino pin is associated with one of these sockets.

Holding the board with the end that includes the USB and power ports at the top, the headers run vertically along the left and right edges. Both left and right headers are divided into lower and upper sections separated by a small notch. Unfortunately, some headers are manufactured without this notch, making tactile orientation a little harder.Check out this post on dealing with notchless headers for suggestions. In the modern R3 header configuration, the left header has 6 sockets in the lower section and 8 in the upper. The right header has 8 sockets in the lower section and 10 in the upper.

Note: Older boards have header configurations with fewer sockets in the top sections on both left and right.

The lower-left section of 6 sockets is the Analog Section. In order from bottom to top, the sockets are:
A5, A4, A3, A2, A1, and A0.

The top-left section of 8 sockets is mostly related to power supply. From bottom to top, these sockets are:
voltage in, ground pin, another ground pin, 5 volt pin, 3 volt pin, reset pin, I/O reference pin, and an unused pin.

The lower-right header section of 8 sockets is where the digital pins begin. From bottom to top, these are:
D0, D1, D2, D3, D4, D5, D6, and D7.

The top-right header section of 10 sockets continues the digital pins. From bottom to top, the sockets are:
D8, D9, D10, D11, D12, D13, ground pin, analog ref pin, I2C SDA, and I2C SCL.

Non-Visual Techniques for Navigating The Sea of Holes


It’s not easy to feel the sockets in the headers with your fingertips, but there are other ways. Counting the sockets is easy using a probe such as a tooth pick, stiff piece of wire, or an opened paper clip, but you get serious old-school blind cred if you use a stylus!

Often the easiest way is to count your way along a row of sockets with the stripped end of the wire you’re planning to insert. Finally, you can most easily find the gap between upper and lower header sections with a fingernail, or by running the side of the probe along the edge of the header block.

Acknowledgements


Once again, my thanks to John Schimmel of DIY Ability, this time for transcribing the socket information off of a JPG and for providing awesome background links.