Iambian / tilink

Raspberry Pi Pico serial interface for TI graphing calculators
6 stars 0 forks source link

TI Graphing Calculator Serial Link Protocol as Implemented on a Raspberry Pi Pico

Nothing very usable here yet. Might as well put a TODO list here so I can keep track of progress and remember what needs to happen to reach my end goal.

Also going to condense some of the other documents in this project into something here to remove the clutter and maybe make it more pretty. It may not necessarily have anything to do with anyone else or their environment in general.

TODO

3.5mm Breakout Board Pinout

      #===#
@@@@@@#   #@@@@@@
@    /# S #     @  S = Sleeve ( Ground )
@   / #   #     @  R = Ring   ( White  / Line 1 )
@  /  # R #\    @  T = Tip    (  Red   / Line 0 )
@ /   #   # |   @
@ |  /# T # |   @
@ | | ##### |   @
@ | |       |   @
@ | |       |   @
@ |  \     /    @
@ |  *******    @
@ |  *T*S*R*    @
@ |  *******    @
@  \___/        @
@               @
@@@@@@@@@@@@@@@@@

Special Thanks

Possibly Useful Instructions To Possibly Use What I Have So Far

  1. Have a PC. Or Mac. Whatever it is, it's got to be able to run Visual Studio Code (VSCode), not to be confused with Visual Studio IDE.

  2. Go get a Raspberry Pi Pico (RP2) and make it so that you can connect devices to it. A breadboard and some jumpers would be awesome.

  3. Get one of these things: https://www.sparkfun.com/products/12009 . Or you can make your own for each line using either a mosfet or a transistor+diode for each of the two lines you'll be using. Or use nothing at all and rely on luck to keep your non-5V-tolerant RP2 from frying.

  4. Figure out a way to connect your RP2 to the calculator. I use a 3.5mm jack soldered to a breakout board with pin headers connected to the relevant pins on the jack.

  5. Connect your RP2 to the computer via USB and install Micropython on it. Do this by flashing a Micropython image to it. Google "raspberry pi pico how to update firmware" if you don't know how to update the firmware. Google "rp2 micropython uf2" to find an image file.

  6. Install VSCode then run it. In VSCode, install the "Pico-Go" extension. That extension adds stuff to the bottom bar while you have some Python files open and your RP2 connected to your computer. It lets you send and run stuff on the RP2.

  7. Open tiproto.py, wait for VSCode to configure itself, then on the bottom bar, click "Run" to run the code. All the action will now be in the Terminal (by default, the bottom window pane), and some documentation about the program/module should print. This is your cue to have fun and break everything.

  8. Don't forget that Pico-Go includes an FTP server under the "All Commands" thinger on the bottom bar. And that the ftp link that the console gives you can be pasted directly in the address bar of Explorer.