lunes, 29 de septiembre de 2025

TI83 - Arduino ArTICL (Arduino TI Calculator Linking Library) con Circuito

TI83 - Arduino ArTICL (Arduino TI Calculator Linking Library)

https://github.com/KermMartian/ArTICL?tab=readme-ov-file


ArTICL (Arduino TI Calculator Linking Library)

TI Link Protocol library for the Arduino development platform

For more information and for questions, please refer to this forum post on Cemetech. An introductory video contains a demo of the ControlLED example, and a how-to video created by @geekboy1011 and @KermMartian shows you how to set up ArTICL with your calculator.

Using the Library

If you want to be able to simply send() and get() packets to and from a calculator or other TI link protocol-speaking device, create a TICL object and use it. For higher-level management that can be used with the calculator's Send( and Get( commands, make a CBL2 object instead. See the ControlLED example for a demonstration of using the CBL2 class.

Introductory video: https://www.youtube.com/watch?v=-A14KrqVtt0

How-to video: https://www.youtube.com/watch?v=gAUrIO3FTcQ

Hardware

ArTICL works with the Arduino Duemilanove and newer Arduino boards, as well as TI's MSP432 Launchpad.

Arduino Hardware

To communicate with a calculator, cut open a 2.5mm calculator link cable, and connect its three wires to the Arduino. The defaults are digital pin 2 = tip (red wire), digital pin 3 = ring (white wire), gnd = base (copper wire). For the screenshot example, short digital pin 4 to gnd to take a screenshot.

MSP432 Launchpad Hardware

The Launchpad has weak pullup resistors, so additional connections are necessary. Cut open a 2.5mm calculator link cable, and connect its three wires to the Launchpad. The defaults are pin P5.7 = tip (red wire), P5.6 = ring (white wire), gnd = base (copper wire). In addition, connect a 1Kohm resistor from P5.6 to +3.3V, and from P5.7 to +3.3V.

MSP432 Launchpad to calculator connections

Verbose Output

You can make the TICL class dump details of every packet successfully received and every packet that is attempted to be sent. Add the following code to your setup() function, assuming ticl is a TICL object or CBL2 object.

  Serial.begin(9600);
  ticl.setVerbosity(true, &Serial);


TI83 - Arduino Programa serial2ti83

 TI83 - Arduino Programa serial2ti83

https://github.com/jw0k/serial2ti83


serial2ti83

A program for Arduino Uno that makes it possible to connect a TI-83 calculator to a computer

Introduction

This program turns an Arduino Uno board into an adapter between a TI-83 graphing calculator and a computer. In order to use it upload serial2ti83.ino to an Arduino board using the standard Arduino IDE and connect the 2.5mm jack port on the bottom of TI-83 to Arduino according to the following table:

Jack portArduino
sleeveGND pin
tippin 2
ringpin 3

You can now run some linking program, e.g. TiLP and start exchanging data (upload programs, take screenshots, dump ROM, manage variables, etc.). In case of TiLP make sure to go to File->Change Device first and choose GrayLink cable and TI-83 calc.

Optional: before uploading serial2ti83.ino it is recommended to increase the size of hardware serial buffers to make the connection more reliable. Open HardwareSerial.h from you Arduino installation folder (usually C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino) and change these 2 lines:

#define SERIAL_TX_BUFFER_SIZE 64
#define SERIAL_RX_BUFFER_SIZE 64

to:

#define SERIAL_TX_BUFFER_SIZE 256
#define SERIAL_RX_BUFFER_SIZE 256

Schematic

schematic

Putting it in a box

Here is an example of how you can put an Arduino board inside a box and attach a 3.5mm jack socket to the box to make a device that is convenient to use.

List of required items

  • Arduino Uno board (or clone)
  • plastic project box (search for "ABS Plastic Electronic Enclosure Project Box Black 103x64x40mm" on Banggood, it's about $3.5)

box

  • 3.5mm panel mounted stereo jack socket (eBay, $0.99)

jack socket

  • nylon M3x10mm standoffs (eBay, $1.69 for 25 pieces)
  • nylon M3x6mm philips screws (eBay, $1.79 for 25 pieces)
  • 3.5mm to 2.5mm stereo jack cable (eBay, $0.99)

Note: not every 2.5mm jack plug fits TI-83 smoothly. You may need to file away bits of plug's plastic housing so it goes all the way into the socket

  • some jumper cables
  • basic tools (soldering iron, philips screwdriver, dremel tool, drill, files, etc.)

Assembling the device

The first step is to attach standoffs to the Arduino board:

a01

Sometimes you will need to file edges of the DC socket and connector headers to make space for screws.

a02

Drill 4 holes in the bottom part of the box. The holes should match Arduino's layout:

a03

a04

Screw the Arduino board to it:

a05

Make a rectangular opening for the USB plug in the top part of the box. You may use a drill and finish with a file. The opening should be correctly positioned so that it matches with the USB socket.

a06

Drill a hole on the other side of the top part of the box and attach the 3.5mm jack socket. Solder 3 jumper cables to it.

a07

a08

Connect the jumper cables to the Arduino (see schematic above).

a09

Assemble the box. Use the 4 screws included with it.

a10

Insall 4 rubber feet:

a11

This is the final result:

a12

a13

a14

About

A program for Arduino Uno that makes it possible to connect a TI-83 calculator to a computer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Other100.0%

Footer


TI83 - MATHei - Programación de la calculadora - Curso con 10 Videos

TI83 - MATHei - Programación de la calculadora - Curso con 10 Videos

https://www.youtube.com/watch?v=ZqoUij3fte0


https://www.youtube.com/watch?v=TrJc_ry6vQc


https://www.youtube.com/watch?v=GRWiR_I_9Rs










TI-83+ I/O Port Tutorial #7 - Making a Laser Tripwire


In this video we make a laser tripwire using a TI-83+ series graphing calculator. Also, a correction, it's a 10 kOhm not a 300 Ohm I specifically used. Although as I said you will probably have to try a bunch of different resistors anyways depending on your situation so it doesn't matter.

TI83 - Arduino Uno Communications - Nuts and Volts - William Massano

TI83 - Arduino Uno Communications - Nuts and Volts - William Massano  

https://www.nutsvolts.com/magazine/article/May2014_Massano


Calculators as Coprocessors

By William Massano    


While microcontrollers have grown to be very powerful, sometimes you need math functions that are not available or graphic capabilities that are complex to program. The popular TI (Texas Instruments) series calculators (TI 83+, TI 84+, and TI 86) have these capabilities and are often found lying around the home unused. I was looking for such a device when I saw an article about interfacing a PIC microcontroller to a TI 83+.

While the article gave good basic information, I found it lacking on three counts. First, it was centered around a PIC and I needed the code for an Arduino. Second, the language utilized was Great Cow Basic; I needed C (and a more robust implementation that did not rely on global variables — a known problem with GCB). Finally, the code in the article was only a demonstration of its potential; I needed detailed routines. For example, I needed to send numbers in my code and didn’t want to be responsible for converting them to strings first. That is what computers are for!

My first thought was to look online to see if anyone had solved this issue before I attempted to reinvent the wheel. I was disappointed. The only C code I found was similar to the GCB implementation and poorly written (unless they were deliberately obfuscating the code). I would fail one of my students if they wrote code that declared variables in the middle of a program rather than at the start of the routine!

So, I have written my own code in the form of an Arduino library which is available with the article downloads. The code will automatically detect the calculator that is attached: TI 82, 83+, 84+, or 86. The TI 82 does not support silent transfer, so it’s not supported by my code at this time.

After startup, you may send or get any variable (A-Z on 83+/84+, the 86 supports longer names) via silent transfer, and you may send any TI command that the calculator accepts. List sending is also supported and, of course, data plotting.

For an excellent guide to the protocols, go to TI-73...V200 Link Protocol Guide v1.4 by Tim Singer and Romain Liévin at http://merthsoft.com/linkguide/ and choose the 83+ or 86. For the command codes, go to http://merthsoft.com/linkguide/ti83+/keys.txt or replace 83+ with 86 for those codes.

Protocol and Wiring

The original article I mentioned has a good description of the basic protocol, but I will summarize it here.

The TIs communicate over a serial two-line (+ground) communication link. The cable is a 2.5 mm (3/32") TRS cable. The tip of the connector is the Data0 line; the ring is the Data1 line; and the sleeve is ground. When idling, both lines are held high by the Arduino internal pull-up resistors.

To send a zero, the sender pulls the Data0 line low. The receiver then pulls the Data1 line low to acknowledge, then both lines go high. To send a one, the sender pulls the Data1 line low and the receiver acknowledges by pulling the Data0 line low. These are handled by the library's internal functions and don’t need to be accessed by the user directly.

Figure 1 shows a data cable that I made by buying a TRS cable on eBay and cutting it in half.

Figure 1. Wiring.


Finally, in my experience, the TI 83+ can’t handle the current drawn by a direct connection to the Arduino, so I put a 1K resistor in series with each data line; all calculators are happy with this arrangement. I connected these to two Arduino digital pins. Note the schematic in Figure 2.

Figure 2. Schematic.


Using the Library

Copy the library folder ArtoTI to the Arduino library folder then insert #include <ArtoTI.h> into the code. Use the constructor before the setup function:

ArtoTI a(8,7);

where "a" is the name of the instance, 8 stands for the pin connected to the tip, and 7 stands for the pin connected to the sleeve. Once that’s done, you can call any public function (see ArtoTI.h or the guide included in the library folder for the available functions).

The first basic job handled by the library is to send and receive numbers to and from the calculator. TI calculators (at least the ones for which this library is written) use "silent transfer" which means that the calculator doesn’t have to be in a special mode to get or send numbers.

The two routines that handle the protocol are sendNum and getNum. Their use:

sendNum(memloc, doublenum);
x=getNum(memloc);

where memloc is a TI variable name — A-Z (as a string) for 83+/84+ and a string of one or more characters for the 86. Doublenum is a real number (double is the same as float for the Aduino Uno) and getNum returns a double. Note: The Arduino can handle 10^±38 but the calculators can handle 10^±99.

The other job is to send commands. Here, there are two problems. First, the 86 has different command codes to the 83+/84+ codes. Second, many are non-alphanumeric — the square root symbol, for example.

Here, there are two choices:

sendCmd(hexcode);

which sends a hex code (0x0005, for example). This always works but can get tedious. Some of the example programs at the article link show a sample. Next is:

sendANstring(command string);

which is a mini parser. It can handle text and a limited number of operators. Anything it doesn't recognize is not sent.

The mini parser is capable (at the time of this writing) of handling any single letter or operator like +, -, etc. It also allows for quoted commands. The percent sign "%" is the quote character. It’s followed by a two-letter command. (See the guide in the library folder for available commands).

To send something like sin(30) to the 83+/84+, you can use sendANstring("%SN30)"). The percent sign can be sent by typing %%. The 86 can recognize some strings without resorting to the tokens, but tokens will work as well. Tokens are not case sensitive.

The final choice is:

sendOP(opchar);

It can send the operators plus some special ones like Pi, the EE key, and a few others. Again, anything not found here can be sent by using sendCmd. This option is not recommended and may be eliminated. Use sendANstring instead.

I didn’t make the parser complete because the library is already over 16K if fully used, which is about half the Uno's code space. If you need more, you can easily modify the library.

A few other routines are Enter() to send the "enter" key; clearScreen(); getDir() which gets a directory of the variables stores in the calculator and prints them to the serial monitor; and getStatus() which gets the status (and identity) of the calculator.

Finally, floatout corrects a defect in the Serial.print routine to handle floating point numbers correctly; comp holds the code used by the computer to send instructions and helps distinguish between the 86 and the 83+/84+ which use the same code.

Graphic commands can usually be sent by sendANstring or sendCmd if needed, or a combination of both — one of the examples at the article link shows this.

Plotting can be done via the Plot command. Lists can be sent as well, so statistics may be processed on them.

There are six example programs included in the available library. The first shows how to use the constructor (see Figure 3).

/* arduino to TI 83+/84+, 86
Example 1
Created by William Massano

Initialize instance and see what is connected
*/
#include <ArtoTI.h>

ArtoTI calc(8,7);

void setup(void){
  Serial.begin(9600);
  Serial.println("Start:");
  pinMode(13,OUTPUT);
  digitalWrite(13,LOW);    //for some reason 13 is high, force it low
  if(calc.comp==0){  
    Serial.println("Calculator not recognized, aborting");
    return;
  }
  Serial.print("Calculator type:");
  if(calc.calctype<0){
    Serial.println(abs(calc.calctype));
  }else{
    switch (calc.calctype){
      case 83:
      case 84:  Serial.print(calc.calctype);
                Serial.println("+");
                break;
      case 82:
      case 86:  Serial.println(calc.calctype);
                break;
    }
  }   
  Serial.println("Done");
}
    
void loop(){
}

Figure 3. Example 1: Identifying the calculator.


There are examples of sending data and calculating math, as well as a demo of some of the functions. The last examples (5 and 6) draw a circle and plot data (Y vs X where Y=X^2).

Figure 4 is a screenshot of the plot (y=x^2) from example 6.

Figure 4. Plot screenshot.


The code that produced it is in Figure 5.

/* arduino to TI 83+/84+, 86
Example 6
Created by William Massano

create 2 lists and plot them in an x-y plot
example does 10 points, but you can do more
*/
#include <ArtoTI.h>

ArtoTI calc(8,7);

void setup(void){
  double list1[20],list2[20];
  int i;
 
  Serial.begin(9600);
  Serial.println("Start:");
  pinMode(13,OUTPUT);
  digitalWrite(13,LOW);          //for some reason 13 is high, force it low
  if(calc.comp==0){  
    Serial.println("Calculator not recognized, aborting");
    return;
  }
  for(i=0;i<20;i++){
    list1[i]=1+i;
    list2[i]=list1[i]*list1[i];
  }    
  calc.Plot(list1, list2, 10,0); //plot with box marks
  delay(5000);
  calc.clearScreen();
  calc.clearScreen();
  Serial.println("Done");
}
    
void loop(){
}

Figure 5. Example 6 code.


The final example (7) shows a case where two calculators are controlled at the same time (you can control as many calculators as you have pins for). Since this is really C++, we can create two instances of ArtoTI and deal with each instance separately.

Obviously, you need two each of calculators, cables, and resistors, but at least you know that if you need this feature it’s available.

For improvements, the parser can be expanded, and lists can be sent via silent transfer. Currently, I can’t get it to work, so they are sent as keystrokes. If anyone can send the lists silently, I’d like to see the protocol they’re using. Finally, I’m considering adding the 89.

I hope this library allows people to make use of these fine calculators in a new way!  NV


Downloads

May2014_Massano

ArtoTIlib Files