javr_io

(last updated: 2006/11/04)

Purpose: Provides a GUI to the avr_io project so that a user can manually control the avr_io's general purpose IO.

Overview

The avr_io project provides are hardware platform with general purpose IO. The IO can be set/read using commands send/received through the serial port. javr_io provides a GUI where the state of inputs is shown, and the state of outputs is shown and they can be changed. In some uses of avr_io, the rate at which the IO must be changed is fast, so a custom PC application is necessary (such as in the LCD Demonstrator project; however, when speed is not an issue, or when a user wants easy manual control of IO, then javr_io is appropriate.

javr_io is a Java application. It requires javax.comm.

Screen shot of main screen:

There is no installation utility. The application has only been run from within Jbuilder 2005.

Highlights of the Java application:

- Application implements the ActionListener interface. Clicking a button causes an event that is then handled.

- JOptionPane class used for dialog boxes – messages, gettting user input, selection from a list.

- JDialog used to present the user with a configuration dialog box.

- javax.comm used to communicate through the serial port with the avr_io hardware.

- Properties class used to save/get configuration (to a file).

There are some IO of the avr_io hardware (STK200) that may not be useful because of the circuit on the board. See the avr_io project page.

Specifications

- 16 input buttons.

- 16 output buttons.

- Any available general purpose IO can be set up as an input or output.

- If a hardware pin is already being used as an input, then it cannot be used as an output, and visa-versa.

- Configuration can be saved and recalled.

- A single button is used to read and update the inputs.

- Button text can be set by the user to assist with remembering what the hardware pin is used for/attached to.

- The AVR's internal pullup can be enabled – inputs only.

- The user can select the PC serial port to which the avr_io hardware is connected.

My Setup:

- PC running Jbuilder 2005 Foundation with the javr_io project, javax.comm must be installed.

- avr_io hardware, connected to PC's COM1 serial port.

Downloads (see Attachments)

javr_io - Source code + Jbuilder project + User Guide

Links

avr_io project.

Terms of Use

Home

Copyright Steven R. Nickels, 2008. All rights reserved.