Channels ▼

Mike Riley

Dr. Dobb's Bloggers

techBASIC and Seeed Studio's HiJack Dev Kit

January 04, 2012

After posting my series on Post-PC development, I was contacted by several vendors who have already made the leap into the on-tablet application development space in a big way. One of these companies is Byteworks, the developers behind the recently released techBASIC for the iPad.

techBASIC is one of the few interpreted coding environments available on the iOS platform that executes scripted code on the fly. This ability is a somewhat exclusive achievement given Apple's strict constraints on running interpreters on their mobile platform. Because of these Apple-imposed restrictions, techBASIC is currently limited to a sandbox that only executes rudimentary instructions in the usual file system sandbox offered to all except Apple's own software. techBASIC also only has access to rudimentary on-board iPhone and iPad sensor information, such as the accelerometer and magnetometer readings. techBASIC currently does not have access to more desirable hardware features like access to the camera or networking capability.


techBASIC script variables can be watched, and code can be easily debugged via the Step In/Out/Over features.

To make up for these shortcomings, Byteworks introduced the option to use the HiJack analog to digital converter to display real-time data captured from the sensors attached to the HiJack hardware. Byteworks partner in this recent HiJack feature edition, Seeed Studios, is the official vendor of HiJack hardware.

Seeed Studios bills themselves as an Open Hardware Facilitator, and sells the HiJack hardware that plugs into the iPhone or iPad's audio port. Once connected, custom HiJack classes in techBASIC can be used to access the digital data captured by the HiJack hardware. The captured data can then be graphically displayed on screen using simple routines called by techBASIC code. Using this approach, techBASIC programmers can create a number of interesting real-time graphs. Some examples include a simple oscilliscope, a three-lead EKG, a temperature hisotry graph and a humidity sensor.


HiJack hardware values can be accessed via techBASIC's HiJack class.

Seeed Studios is expected to expand their line of HiJack-compliant hardware to further take advantage of data collection programs like the kind of facility that techBASIC provides. In the meantime, students, teachers, engineers and scientists can create some pretty nifty real-time programs with an iPhone or iPad, a HiJack plug and techBASIC. Having created a few of my own HiJack-enabled techBASIC apps completely on the iPad (with the help of a Logitech Tablet Keyboard to type in and debug the techBASIC code), I found the process to be fast, simple and rewarding. Considering the amount of time and Objective-C knowledge required to write a native iOS app that captures and displays the HiJack data, the techBASIC approach is definitely preferred.


The resulting graphic output of a techBASIC script.

techBASIC is currently available in the Apple App Store for $14.99. The Seeed Studios HiJack audio plug can be purchased online from the Seeed Studios website for $79. For more information about techBASIC, visit the Byteworks website. More specific details about using HiJack sensors with techBASIC can also be found on the site. For more details about Seeed Studios' HiJack Development Pack, visit their online store.

Related Reading


More Insights






Currently we allow the following HTML tags in comments:

Single tags

These tags can be used alone and don't need an ending tag.

<br> Defines a single line break

<hr> Defines a horizontal line

Matching tags

These require an ending tag - e.g. <i>italic text</i>

<a> Defines an anchor

<b> Defines bold text

<big> Defines big text

<blockquote> Defines a long quotation

<caption> Defines a table caption

<cite> Defines a citation

<code> Defines computer code text

<em> Defines emphasized text

<fieldset> Defines a border around elements in a form

<h1> This is heading 1

<h2> This is heading 2

<h3> This is heading 3

<h4> This is heading 4

<h5> This is heading 5

<h6> This is heading 6

<i> Defines italic text

<p> Defines a paragraph

<pre> Defines preformatted text

<q> Defines a short quotation

<samp> Defines sample computer code text

<small> Defines small text

<span> Defines a section in a document

<s> Defines strikethrough text

<strike> Defines strikethrough text

<strong> Defines strong text

<sub> Defines subscripted text

<sup> Defines superscripted text

<u> Defines underlined text

Dr. Dobb's encourages readers to engage in spirited, healthy debate, including taking us to task. However, Dr. Dobb's moderates all comments posted to our site, and reserves the right to modify or remove any content that it determines to be derogatory, offensive, inflammatory, vulgar, irrelevant/off-topic, racist or obvious marketing or spam. Dr. Dobb's further reserves the right to disable the profile of any commenter participating in said activities.

 
Disqus Tips To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy.
 


Video