Welcome, Guest. Please login or register.

Author Topic: A new project  (Read 2435 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
A new project
« on: May 13, 2006, 06:00:51 PM »
As some of you will know, I use an LCD TV for my Miggy, which displays both the VGA output from my Voodoo and the RGB output from the 15KHz display.

This is handy, but a little bit annoying when I have to use the remote to change from the VGA input to the RGB input every time I change between Voodoo and AGA screenmodes.

I have bought a learning remote, which I will teach the commands to change to the VGA input and the TV input. I will then rip the remote apart and connect it to a parallel relay board. I can then use software on the Amiga to trigger the pushing of each button.

I already use AmigaDOS scripts to run my WHDLoad games, so I can put a command before WHDLoad starts to send the correct command to the relay board to change to the TV input, then once the game has quit it will send another command to change it back to the Voodoo.

Cool huh :-)

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: A new project
« Reply #1 on: May 13, 2006, 09:14:08 PM »
The One4All remotes can't create the codes I need, and it's cheaper to get a universal remote than to get a chip programmer to rewrite the One4All's ROM  ;-)

That project you linked to, was it the one CU Amiga gave away on a magazine cover? They had the PCB sellotaped to the front, and you had to send away for the components. I built it once, but never got it working.

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: A new project
« Reply #2 on: May 14, 2006, 02:44:47 PM »
Quote
Oliver wrote:
Sounds like a fun project.  I'm not sure exactly how you will do it, but can't you do this just with logic gates, and leave out the relays?  I think it should be simpler, smaller, and use less power.

If you can tell me how, then I'll do it :-) I know very little about parallel ports so I wouldn't know where to start.

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: A new project
« Reply #3 on: May 14, 2006, 04:04:37 PM »
You understand correctly :-) The relay board will connect to the parallel port. The Amiga will issue a command to the parallel port which closes relay x. Relay x will close, completing a circuit which will short across the contacts for button y on the remote control, in effect "pushing" that button.

If you think this could be done better with transistors and can let me know how, then I will try. Otherwise, I would rather not experiment and risk damaging my parallel port!

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: A new project
« Reply #4 on: May 14, 2006, 07:12:24 PM »
I did look at TURD on Aminet, but I want something which can be driven with CLI commands, not a GUI or ARexx. Once the relay board has arrived I will probably be looking for advice on writing a small C programme to control the parallel port.

There is a Unix command to drive parallel relay boards, and if I understand correctly it sends an 8 bit string to the port which turns the 8 data lines on or off, which is then translated by the relay board to turn the 8 relays on or off.

I suppose this would be quite simple to achieve with the Amiga, but I have no idea where to start.

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10