Jump to content
IGNORED

Slot car racing control with the TI 99/4A


Vorticon

Recommended Posts

 

Let's see if I can come up with another kid friendly demo next year :)

 

I doubt you'll have any problems coming up with ideas!

 

One idea, that would be fun for kids & adults alike is a weather station. One sensor pair, like you used in the track could be used in an anemometer. The software would simply count the pulses to determine wind speed. With a few more sensors, a crude wind direction device could be made as well.

 

Digital inputs can only get one so far, but with an analog input, resistance levels in a thermistor could be translated into a true temperature readout. I'm sure a guy like you using the cassette, RS-232 & PIO ports can do something amazing. :-D

Link to comment
Share on other sites

 

I doubt you'll have any problems coming up with ideas!

 

One idea, that would be fun for kids & adults alike is a weather station. One sensor pair, like you used in the track could be used in an anemometer. The software would simply count the pulses to determine wind speed. With a few more sensors, a crude wind direction device could be made as well.

 

Digital inputs can only get one so far, but with an analog input, resistance levels in a thermistor could be translated into a true temperature readout. I'm sure a guy like you using the cassette, RS-232 & PIO ports can do something amazing. :-D

 

Great idea, but it would require running cables from the TI to the outside for testing, something that would be cumbersome at best. Now there are wireless solutions possible worth looking into at some point.

Link to comment
Share on other sites

 

... the outside for testing, something that would be cumbersome at best.

 

Okay... do you think you could get the TI to control an electric motor? Sensors could be placed on a set of blinds in the window....

 

BLINDS - OPEN / HALF WAY / CLOSED

LIGHTS - ON / OFF

... the TI could make it look like you are home when you're not.

 

For people without RTC's in their TI's, Tursi has a totally awesome clock routine that keeps good time that could be integrated into something like this that ANYONE could use.

Link to comment
Share on other sites

I thought there was an X10 package made for the TI, wasn't there?

 

Unfortunately I was unable to get it to work with the Firecracker module, but Tursi has some great assembly code that works with Extended BASIC and a clock routine integrated with it as well. I imagine that and some tweaking, possibilities could still manifest...

  • Like 1
Link to comment
Share on other sites

I made a slot car racing control once, but used a Mitsubishi Melsec PLC together with a Beijer's MAC 90 HMI.

This was a demo used at an "Open house" event at the company where I worked at that time. One car controlled by the PLC, the other manually. You could compete with the computer controlled car.

The use of a PLC was simply because we did use such things in that company, but it would have worked just as well with a TI 99/4A, if that had been the point.

Link to comment
Share on other sites

I made a slot car racing control once, but used a Mitsubishi Melsec PLC together with a Beijer's MAC 90 HMI.

This was a demo used at an "Open house" event at the company where I worked at that time. One car controlled by the PLC, the other manually. You could compete with the computer controlled car.

The use of a PLC was simply because we did use such things in that company, but it would have worked just as well with a TI 99/4A, if that had been the point.

 

Cool! How did you handle speed control and car location on the track?

Link to comment
Share on other sites

Speed control by a couple of resistors and relays. The relays shorted the resistors as needed. This assembly was plugged in just like the ordinary speed control handle, so no modification to the race track itself necessary.

Car location read out by a photo cell in a "building" along the track.

When a computer controlled car passed a photo cell, a timed sequence was started, with different speeds during different times. Then the car passed a new photo cell, which triggered the next table of speeds/times.

 

There are som images here.

  • Like 1
Link to comment
Share on other sites

The computer controlled car has a piece of self-adhesive reflective tape on it. If you look at the photos, you'll see a few black blocks in some places. They prevent the photocell from looking across the track and thus seeing cars on a track further away.

 

Of course you could use a 99/4A instead. The purpose of my setup was to show what you could do with an industrial controller paired with a standard slot car race track set. I worked for an R&D departement, and displaying what you really do there isn't feasible in most cases. So we decided to show something people could relate to, kids could play with and in a way that we didn't have to label "Don't try this at home", but rather encourage to do try yourself, if you are interested.

 

We had three pairs of cars. Vistor who wanted to compete got a reasonably easy car to drive, and competed against the computer's "standard" car. Those I noticed knew slot car racing got the computer's "advanced" opponent. Finally, those who thought the computer's car was lame, were matched with the "impossible". That one I had tuned to such an extent that it took a few manually run laps for it to get the correct temperature. Only then did the programmed control for it work properly...

Edited by apersson850
  • Like 1
Link to comment
Share on other sites

The tuning is table based. There's a different set of tables for each car.

Each table then starts when the selected car passes a photo cell. Then it keeps pairs of power levels and time until you hit the next photo cell, which triggers a new table.

Just enter a power value low enough to make the car run through the whole track without derailing. Then estimate an optimized level for the beginning of a segment, estimate the time it will last and enter that.

Already after doing that, you have a good enough control to favorably compete with most people.

Then you can fine tune with more segments with different power levels, if desired. I did that mostly with the more advanced cars.

The good thing with this is that when the table times out, you always end with a power level that's low enough to run all around the track. Thus if the car derails, the table will have timed out before you have time to put it back on track. As you can run anywhere with this low level, it doesn't matter where the car is put back on the track. As soon as it hits the first photo cell, it will run from there anyway.

 

As I used a few resistors in combination to run the car, it's like having different gears. There were six combinations, with 1 representing no power feed, 2-4 various resistors connected and 5 full power. 0 disconnected power and instead connected another resistor in parallel with the track, thus providing dynamic braking. The manual handle could do the same thing. Level 3 allowed the cars to go around the whole track without any regulation.

 

I've attached a PDF we handed out at the event. Hope you enjoy the Swedish language challenge.

Bilbana.pdf

Edited by apersson850
  • Like 2
Link to comment
Share on other sites

My "gears" were all in software just by varying the frequency of power application to the track. The advantage of your setup is that the cars probably would run much more smoothly. I also did not have a default safe speed so when the car went off the track, it would continue with the speed set by the last sector it was in, which was problematic at times. I could have implemented a timer as you did between sectors and defaulted to a safe speed when it timed out, but did not think of it. Really well done!

 

I have been mulling with the idea of placing a 3D accelerometer and a wireless module in the car (will require a larger scale like HO) which will transmit to the TI the lateral forces on the car, and it would be a relatively simple matter to adjust the speed on the fly to keep the forces within safe parameters. That way there would be no need at all for photocells and would work on any track. So many ideas, so little time...

Link to comment
Share on other sites

It wouldn't work. When the accelerometer senses sideways acceleration too high, it's too late to do anything about it. The car's inertia will keep the speed above the acceptable level for too long. If you apply dynamic braking in any magnitude that's likely to make a difference in that case, then you'll lose tire grip.

 

Thanks for the compliment. I'm an automation/advanced motion engineer by trade, so I'm quite used to developing stuff like this.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...