Jump to content

Photo

TI 99/4A interfacing


173 replies to this topic

#126 Vorticon OFFLINE  

Vorticon

    River Patroller

  • Topic Starter
  • 2,678 posts
  • Location:Eagan, MN, USA

Posted Fri Oct 14, 2016 2:33 AM

My latest project: Slot car control on a race track with the TI to compete against a human player.

Details here: http://atariage.com/...-994a-computer/



#127 apersson850 OFFLINE  

apersson850

    Moonsweeper

  • 372 posts

Posted Wed Oct 19, 2016 3:34 PM

For the lack of a working printer with serial or parallel port, I've used my 99/4A connected serially with a small laptop, which acts as a print server. It reads the incoming text on the serial port (in reality a USB - RS232 converter) and prints it on a networked laser printer. So for sure you can communicate serially between different computers.

 

For a game application, I'd recommend setting one of the computers up as a server, the other as a client. With regular intervals, the client writes a pre-determined block of data to the server, which responds by returning a similar block to the client. That's the most efficient transfer mode.

If you don't need block transfer, instead set up a short message to be sent with regular intervals from the client to the server. The server will respond with a similar message. The message is coded with a data identifier and some data. By sending data at regular intervals you make the transfer deterministic, which is good in real-time games.

Then you queue up data you want to transfer. Say you have two players in a game, each played on one computer. The only action you can do is throwing a bomb to a certain location.

When no bomb is thrown, you repeatedly send PXxxxx or PYyyyy, to tell the other computer where your player is. If you throw a bomb, the messages BXxxxx and BYyyyy are queued. They will be sent by next two messages, and then the communication routine returns to sending player positions again.

Also add a message ID, like a digit from 0 to 9, incremented at each transfer. The same digit is returned by the other computer each time. This way, both will know that new messages are coming from the other computer, and that they are received and returned. If you feel it's critical, add a checksum to make sure each message is valid. But it doesn't matter in a game application.

If you hit the player you may get DXxxxx and DYyyyy back, to tell that he's dead at a certain position. You can easily define messages like Status Restart, Status Lost, Status Stealth or whatever is applicable to your game.

 

This message structure is similar to what is used in CAN networks in cars. By keeping the transfer routing ticking by itself, eating data from the queue, you can easily separate the tasks of communication and handling the data to send. You need to write som interrupt-driven communication, of course, but that's doable. Ten messages per second serially shouldn't be impossible, and that's pretty good for a game played by a person, if you keep the data simple.

 

As you can perhaps understand I've implemented exactly this, but in a different context than gaming on a 99/4A.



#128 Vorticon OFFLINE  

Vorticon

    River Patroller

  • Topic Starter
  • 2,678 posts
  • Location:Eagan, MN, USA

Posted Tue Jan 17, 2017 8:36 PM

Here's a new blog entry http://atariage.com/...-994a-computer/ detailing how to interface the TI 99/4A computer using the parallel port from within Extended Basic. This is primarily targeted at rapid prototyping as well as for users who do not have knowledge of assembly language.



#129 --- Ω --- OFFLINE  

--- Ω ---

    Kwisatz Haderach

  • 10,276 posts
  • TI-99/4A Fanatic
  • Location:In the den playing with my FinalGROM 99!

Posted Tue Jan 17, 2017 8:37 PM

Here's a new blog entry http://atariage.com/...-994a-computer/ detailing how to interface the TI 99/4A computer using the parallel port from within Extended Basic. This is primarily targeted at rapid prototyping as well as for users who do not have knowledge of assembly language.

 

Already been there!  Nice entry!



#130 Vorticon OFFLINE  

Vorticon

    River Patroller

  • Topic Starter
  • 2,678 posts
  • Location:Eagan, MN, USA

Posted Tue Jan 17, 2017 8:42 PM

 

Already been there!  Nice entry!

 

That was quick! :) Thanks.



#131 --- Ω --- OFFLINE  

--- Ω ---

    Kwisatz Haderach

  • 10,276 posts
  • TI-99/4A Fanatic
  • Location:In the den playing with my FinalGROM 99!

Posted Tue Jan 17, 2017 8:45 PM

BTW - Besides being a neat project, I see you've been updating your system!  

 

gallery_35324_1027_4508421.gif

 

It looking real nice!


  • RXB likes this

#132 Vorticon OFFLINE  

Vorticon

    River Patroller

  • Topic Starter
  • 2,678 posts
  • Location:Eagan, MN, USA

Posted Wed Jan 18, 2017 8:19 AM

I really have not actually, with the exception of having a PEB cable extension. Otherwise, the changes have been internal with an ATX power supply and an HRD replacing my flaky IDE card. I'm filming from a different angle this time though :) Speaking of filming, I think it's high time to replace my video camera. The one I'm using currently is the Sony DCR-TRV22. Used to be higher end maybe 15 years ago when I bought it new, but the footage is too grainy for today's standards and it doesn't perform well under fluorescent lighting which is what I have in my hobby room.



#133 acadiel OFFLINE  

acadiel

    Dragonstomper

  • 914 posts
  • www.hexbus.com
  • Location:USA

Posted Wed Jan 18, 2017 8:11 PM

You're gonna love what I'm working on with a couple other people if we can get it working :-)

#134 Vorticon OFFLINE  

Vorticon

    River Patroller

  • Topic Starter
  • 2,678 posts
  • Location:Eagan, MN, USA

Posted Tue Jan 31, 2017 9:09 PM

Here's a quick demo of wireless communication between the TI and an Arduino using 2 XBee modules. This is a proof of concept test relating to my wireless weather station project. You can read about it here: http://atariage.com/...t-update-13117/

 



#135 Vorticon OFFLINE  

Vorticon

    River Patroller

  • Topic Starter
  • 2,678 posts
  • Location:Eagan, MN, USA

Posted Mon Feb 13, 2017 8:01 PM

Tursi, are the A/D pins on the ubergrom input only or bidirectional?



#136 Opry99er OFFLINE  

Opry99er

    Quadrunner

  • 8,246 posts
  • Location:Cookeville, TN

Posted Tue Feb 14, 2017 8:32 AM

That video is too cool, Vorticon. :)


I have been contemplating finding cool ways to use the serial port, once I get all the other things lined out with my system. I want to make an AV switch to swap the input for my game systems on my CRT. This would be opening Telco, sending data to an Arduino Uno and using the powered outputs on the Arduino to select a position on a homemade 4 way switch I've sketched out (breadboard).

The arduino scripting language is basically just C++, so pretty high level stuff... Should be fun as a project with the boy.

Your projects are very inspiring. :D

#137 Tursi OFFLINE  

Tursi

    River Patroller

  • 4,710 posts
  • Location:BUR

Posted Tue Feb 14, 2017 4:46 PM

Tursi, are the A/D pins on the ubergrom input only or bidirectional?


A/D is by definition one-way (analog to digital - input only).

But there are also 6 digital GPIO pins that can be configured as input or output.

#138 Vorticon OFFLINE  

Vorticon

    River Patroller

  • Topic Starter
  • 2,678 posts
  • Location:Eagan, MN, USA

Posted Mon Feb 27, 2017 9:49 PM

Here's the next step in the wireless weather station project: Remote temperature sensing. 

 

 

Here's the full blog: http://atariage.com/...t-update-13117/



#139 RXB OFFLINE  

RXB

    River Patroller

  • 2,678 posts
  • Location:Vancouver, Washington, USA

Posted Tue Feb 28, 2017 12:57 AM

Here's the next step in the wireless weather station project: Remote temperature sensing. 

 

 

Here's the full blog: http://atariage.com/...t-update-13117/

Just so cool you are using RXB for this!



#140 Meddler OFFLINE  

Meddler

    Star Raider

  • 54 posts

Posted Thu Mar 2, 2017 12:41 PM

Connecting two Consoles.

I was pondering on my Thread on Joystick Port Interfacing how I might transfer a couple of variables (or more) between two 99 consoles and wondered if the following would work?

By inter-connecting the Cassette Mic. and Ear sockets between two consoles and driving a Joystick key input with the Cassette Motor Drive output then it should be possible to PRINT and INPUT between units on a Keyboard 3 branch.

Has anyone tried this or would like to?
Any other ideas? Console and BASIC only!
To find out why I was thinking this then you would have to look at the other Post here:

 

 

http://atariage.com/...c-console-only/


Edited by Meddler, Thu Mar 2, 2017 1:04 PM.


#141 Opry99er OFFLINE  

Opry99er

    Quadrunner

  • 8,246 posts
  • Location:Cookeville, TN

Posted Thu Mar 2, 2017 1:19 PM

I love any kind of interfacing. :)

This could be a primitive precursor to a 2 player gaming format... Chess or something of the like.

#142 Vorticon OFFLINE  

Vorticon

    River Patroller

  • Topic Starter
  • 2,678 posts
  • Location:Eagan, MN, USA

Posted Mon Mar 13, 2017 7:59 PM

Experimenting with an RTC module for my wireless weather station project :)

 

 

Here's the project blog: http://atariage.com/...t-update-31317/


  • RXB likes this

#143 RXB OFFLINE  

RXB

    River Patroller

  • 2,678 posts
  • Location:Vancouver, Washington, USA

Posted Tue Mar 14, 2017 1:12 AM

Really impress with this!

 

Thanks!



#144 Vorticon OFFLINE  

Vorticon

    River Patroller

  • Topic Starter
  • 2,678 posts
  • Location:Eagan, MN, USA

Posted Wed Mar 22, 2017 12:15 PM

Humidity and pressure sensors up and running...

 

 

Full blog entry: http://atariage.com/...t-update-32317/



#145 Opry99er OFFLINE  

Opry99er

    Quadrunner

  • 8,246 posts
  • Location:Cookeville, TN

Posted Wed Mar 22, 2017 12:50 PM

Wow!!!
  • RXB likes this

#146 RXB OFFLINE  

RXB

    River Patroller

  • 2,678 posts
  • Location:Vancouver, Washington, USA

Posted Wed Mar 22, 2017 9:44 PM

And he is using RXB subprogram command CALL IO to do all of this!



#147 Meddler OFFLINE  

Meddler

    Star Raider

  • 54 posts

Posted Thu Mar 23, 2017 6:54 AM

Hi, butting in to say that I have received this nasty little thing, "cheap-as-chips" from China.

Attached File  s-b275x275.PNG   23.4KB   2 downloadsAbsolutely no information....MP3, Bluetooth, USB,FM Radio etc.

The idea being that it replaces the Cassette Player. It might do more as it is a USB host.

Hopefully, it will be straight forward but if anyone recognizes the chip: AC1652DAK115-0 marked JL then that would help.

http://www.ebay.co.uk/itm/262711322166



#148 RXB OFFLINE  

RXB

    River Patroller

  • 2,678 posts
  • Location:Vancouver, Washington, USA

Posted Thu Mar 23, 2017 12:30 PM

Well this kinda helps if you speak what ever he is saying????

 

 

Or better is:

 



#149 Meddler OFFLINE  

Meddler

    Star Raider

  • 54 posts

Posted Sun Apr 9, 2017 5:36 AM

Hi, butting in to say that I have received this nasty little thing, "cheap-as-chips" from China.

attachicon.gifs-b275x275.PNGAbsolutely no information....MP3, Bluetooth, USB,FM Radio etc.

The idea being that it replaces the Cassette Player. It might do more as it is a USB host.

Hopefully, it will be straight forward but if anyone recognizes the chip: AC1652DAK115-0 marked JL then that would help.

http://www.ebay.co.uk/itm/262711322166

Well that did not work out so well....

but could this be the answer? Record to SD card and scrolling display; edit on P.C if necessary

Attached File  s-l500.jpg   24.59KB   1 downloads

* It saves all data in SD card
* High quality recording, listen recording  files clearly
* Support  recorded files and MP3 songs  playback
* Manage in real time
* Quickly and Easily searching conversation  call with pressing button
* Manual controls: Pause, Continue play
* 1GB Memory size can record 35 hours
* Start Recording time sensitivity
* Each call has data and time in detail to  assist searching
* Allows to change recording volume

 

http://www.ebay.co.uk/itm/322204331089



#150 Vorticon OFFLINE  

Vorticon

    River Patroller

  • Topic Starter
  • 2,678 posts
  • Location:Eagan, MN, USA

Posted Wed Apr 26, 2017 12:08 PM

Here's the latest update video on the wireless weather station project.

The analog temp sensor has been replaced with a digital one and the wind and rain sensors are now online. This  essentially completes the technical development of the project and now it's just a matter of creating an appropriate enclosure and refining the RXB interface. More details here: http://atariage.com/...t-update-42617/

 






0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users