Amiga.org

Amiga computer related discussion => Amiga Hardware Issues and discussion => Topic started by: amiga4001 on October 20, 2009, 10:26:48 PM

Title: relaycard for amiga
Post by: amiga4001 on October 20, 2009, 10:26:48 PM
I want to control a swimmingpool pump which pumps the water through some piping on the roof which heats the water in the pool.
Idea was to use an amiga500 or 1200 with a relaycard.
Can I use all parallelrelay cards for this?
Which software is best to control this..
Was thinking about C64 to do the control as it is easier to program in basic...If I remember all commando's.
But This has no RTC so makes it difficult to make a timescheme.
Is it also possible to have a input to the amiga?
Like a tempsensor saying Yes 30 degrees so pump on..
Title: Re: relaycard for amiga
Post by: ferix on October 20, 2009, 11:35:52 PM
Quote from: amiga4001;526689
I want to control a swimmingpool pump which pumps the water through some piping on the roof which heats the water in the pool.
Idea was to use an amiga500 or 1200 with a relaycard.
Can I use all parallelrelay cards for this?
Which software is best to control this..
Was thinking about C64 to do the control as it is easier to program in basic...If I remember all commando's.
But This has no RTC so makes it difficult to make a timescheme.
Is it also possible to have a input to the amiga?
Like a tempsensor saying Yes 30 degrees so pump on..

Yes, It's all posible. But I'm afraid you'll need to write your own control program. Also, you must notice the amiga has a powered pin (14) that you must leave unconnected to prevent destroying your computer.
It's convenient to use a optoisolated relay board too.
You can use the parallel and joystic ports as digital inputs too.
Joystick ports has analogic inputs for pads, that can be used for reading values from resistive probes, as LDRs, NTC and PTC resistors, etc..
Title: Re: relaycard for amiga
Post by: Tension on October 21, 2009, 12:00:47 AM
Was there ever a control program like this for the Amiga?  Something where you could make your own flow charts for example?

I`m off to investigate...
Title: Re: relaycard for amiga
Post by: Tension on October 21, 2009, 12:04:24 AM
Sounds like you need a T.U.R.D





http://aminet.net/package/driver/other/turd_020
Title: Re: relaycard for amiga
Post by: amiga4001 on October 21, 2009, 06:40:44 AM
Ok this t.u.r.d can it do the job?I mean with timing on rtc handle inputs to deliver action.
Can't try it now no amiga here only pegasos.
Can anybody recommend a type of parallel relaycard?
Title: Re: relaycard for amiga
Post by: amyren on October 21, 2009, 08:07:34 AM
There is a home automation program that enables the Amiga to communicate into the X10 protocol. Sadly it havent been developed for a long time, and the program is hard to find as well.
But it is a great idea, and far better in my opinion than a relay card. This way you can controll anything, everywhere in your house. This is because the control signals are sent via the powerlines that you already have in your house.

The program is named EZHome. This is written to connect to a CM11A controller. This controller will open access to a whole range of controllable equipment. Just have a look at x10.com. Also there is a program that can be found on aminet, named 3DHome. This is a graphical interface to works together with EZHome. There is also a timer program named EZCron.

Here is a link to an interesting article written on this subject. There is also some screenshots of the program:
http://www.hometoys.com/htinews/aug98/reviews/hines/AmigaHA.html

In the article there is also described a few other x10 related amiga programs that is on aminet, CyberX10 and X10Commander. These can communicate with the CP290 controller.
The difference between tha CP290 and the CM11A is that CP290 can transfer the X10 commands from the computer and send them to the x10 equipment. And the CM11A is able to have a two way communication, and also receive x10 commands. But for many cases I think the CP290 will be sufficant.

I also got some hits where this thing is mentioned on this forum:
http://www.amiga.org/forums/archive/index.php/t-45754.html
http://www.amiga.org/forums/showthread.php?t=28165

Edit: I also found a utility on aminet to use with CM11A controllers, file named X10CM11A.lzh
This is a command line tool that also is able to send commands to dim lamps etc. But looks like its no GUI for it yet.
Title: Re: relaycard for amiga
Post by: Tahoe on October 21, 2009, 08:25:34 AM
Thanx for the pointer, I've sent an Email to the author of EZHome, let's see if I get a reply!
Title: Re: relaycard for amiga
Post by: amyren on October 21, 2009, 09:07:24 AM
I also sent email to author Jim Hines long time ago, but sadly that email adress found on that webpage does not exist anymore. Hope you have better luck in finding him.

But I also sent email today to one of his co-developers named in the article, Gene Haskel. Hope he is able to reply. I will give feedback here.
Title: Re: relaycard for amiga
Post by: Chewi on October 21, 2009, 09:52:24 AM
You mean Gene Heskett. He's still active on Linux mailing lists, spoken to him once. Friendly guy. Loves his old school hardware.
Title: Re: relaycard for amiga
Post by: tokyoracer on October 21, 2009, 11:56:03 AM
Quote from: amyren;526724
There is a home automation program that enables the Amiga to This is because the control signals are sent via the powerlines that you already have in.
I know that the C64 isn't an option but wasn't there an attachment you could wire up the 64 to the mains and it will switch off and on lights, as to imitate someone in your home?
Title: Re: relaycard for amiga
Post by: Homer on October 21, 2009, 06:24:37 PM
X10 would certainly seem to fit the bill, as they have volt free input and output relay modules, as well as the more common appliance and dimmer modules. Let us know if you find the Amiga software; I'm particularly interested as it is another of my hobbies, and I am  the moderator of two UK home automation forums.
Title: Re: relaycard for amiga
Post by: amyren on October 21, 2009, 09:03:18 PM
Quote from: tokyoracer;526742
I know that the C64 isn't an option but wasn't there an attachment you could wire up the 64 to the mains and it will switch off and on lights, as to imitate someone in your home?


I wasnt aware of that, but you are right :)

A quick google search provided this picture of the device:
http://www.loafbread.com/ie/images/c64x10ttcontrol/Pages/3.html

Also this webpage does mention a C64 X10 system. The article is atari related, but it does mention C64 and the "X-10 PowerHouse home controller system".
http://www.atarimagazines.com/v7n4/powermanager.html
Title: Re: relaycard for amiga
Post by: amyren on October 21, 2009, 09:21:04 PM
Quote from: Homer;526775
X10 would certainly seem to fit the bill, as they have volt free input and output relay modules, as well as the more common appliance and dimmer modules. Let us know if you find the Amiga software; I'm particularly interested as it is another of my hobbies, and I am  the moderator of two UK home automation forums.


For basic needs, I guess that all the software you need is already available, as I mentioned in an earlier post the CM11A can be controlled by a commandline utility found on aminet. The CM11 adaptor is available to buy in two versions, with USB or serial interface. For the amiga, the serial version will be the choice.

Then you can controll it from shell, or you can write small scripts. One script to turn off lamp 1, another script to turn on lamp 2 and so on.
Best thing would be to have a nice GUI to use, but if thats not available you could use one of the docking programs available. Customize it to run your scripts, and you suddenly have a small GUI with lots of buttons controlling your home X10 devices.
Title: Re: relaycard for amiga
Post by: Tahoe on October 22, 2009, 06:50:35 AM
Well, guess what; I'm in touch with Jim and Gene right now. They are having a look, looks like Jim lost the software a while ago; but Gene probably still has it on tape somewhere. If they do find it I'll host it on my site!
Title: Re: relaycard for amiga
Post by: zurt on October 22, 2009, 08:05:27 AM
Hello,

Basically I would recommend you to use The Ultimate Relay Driver II along with some small ARexx scripts capable of turning on and off the relays via TURD's ARexx port, a Cron-like program (CyberCron would do the job) if you want to automatically call these scripts at certain hours and a (homemade) program capable of linking the Amiga and the temperature probe and read its analog value.

Anyway I don't recommend to use two-wire thermistor (PT-100, NTC, PTC or whatever) specially when long lenghts of cable are needed. Three or four-wire sensors are mandatory to deliver an accurate reading of the resistor value, but (in the case of three-wire ones) you should use both potentiometers to do this. One would read the ohmic value due to length, cross section and material of the wires, while the other would read the total ohmic value (cables + sensor). Substracting the first value from the second would deliver you the corrected (real) value of the resistor. Anyway I don't know any software for Amiga capable of doing this off the shelf, that is why I said "a homemade program" above.

Keep in mind the resistors of the Amiga are of 470 KOhm (+-10%) value.

But honestly, apart from experimenting purposes, I won't use the Amiga for such monotonous task. I would go for a inexpensive 220V/110V-powered programmable relay with analog input and RTC such as Schneider Zelio, Siemens Logo!, Omron Zen or similar that would do the job perfectly.
Title: Re: relaycard for amiga
Post by: amyren on October 22, 2009, 09:03:56 AM
Quote from: Tahoe;526836
Well, guess what; I'm in touch with Jim and Gene right now. They are having a look, looks like Jim lost the software a while ago; but Gene probably still has it on tape somewhere. If they do find it I'll host it on my site!


Thats good news. If they cant find the software at all, you could ask them if it would be ok to publish the software if you find the software somewhere else. Its a good chance that some Amiga that did buy the software still have a copy available.

btw: Nice website, the amiga museum you have there. Also like the idea of the webshop for used amiga hardware. If just all unused or the amiga things that some even throw away was collected into one big webshop, it would give the amiga classic ever better "afterlife" possibilities.
Title: Re: relaycard for amiga
Post by: amiga4001 on October 26, 2009, 08:16:15 PM
I want to give turd a go,reasons: low budget realycard available software nice with a gui with all my needs.
Only no input but maybe I'll find another hardwareproject for input through another port.
But has anybody been able to register t.u.r.d lately?
The weblink is dead and I get no response from my email to his adress.
I want to buy a key from him.
Title: Re: relaycard for amiga
Post by: amyren on October 26, 2009, 10:35:30 PM
Quote from: amiga4001;527388
I want to give turd a go,reasons: low budget realycard available software nice with a gui with all my needs.
Only no input but maybe I'll find another hardwareproject for input through another port.
But has anybody been able to register t.u.r.d lately?
The weblink is dead and I get no response from my email to his adress.
I want to buy a key from him.


I did a quick search and found a couple of parallel relay boards starting from £30 for a kit or £35 for the pre assambled ones. Have you found some cheaper ones available?

And how do you plan to get the temperature reading into the amiga, you need some sort of input device for this?
Title: Re: relaycard for amiga
Post by: amiga4001 on October 27, 2009, 06:45:50 AM
I found one on conrad.ml it's productno:130217-89 priced at 30 euro so about the same..it's a kit though.
Didn't search for the inputproblem yet.
Maybe through the joystick connector?
Does anybody know if the non registered version off t.u.r.d. is limited in some way?
Can't reach the programmer it seems.
Or maybe somebody wants to sell me the complete program registered and all?
Anybody can recommened a type off amiga to play with the relaycard?
Was thinking about a amiga1200 and a small ps2 screen.
Title: Re: relaycard for amiga
Post by: amyren on October 27, 2009, 09:10:03 AM
..I guess you ment to write conrad.nl (conrad.ml did not go anywhere)
Title: Re: relaycard for amiga
Post by: amyren on October 27, 2009, 09:20:37 AM
btw: I havent tried t.u.r.d. Is it programmable so that you can set it to eg. if joystick left, then output 1 = on and so on? Does it have an arexx port?

Just thinking that it should be possible to use blitzbasicII to make a small program that does what you want. Not sure if there are a library made for controlling the paralell port.
Title: Re: relaycard for amiga
Post by: amiga4001 on October 28, 2009, 05:53:32 PM
Yes turd has a arexx port.
Indeed it is conrad.nl sorry.
Title: Re: relaycard for amiga
Post by: Castellen on October 28, 2009, 06:37:11 PM
Quote from: amyren;527422

Just thinking that it should be possible to use blitzbasicII to make a small program that does what you want. Not sure if there are a library made for controlling the paralell port.


It's also possible to to access the parallel and joystick ports directly via Arexx.  Barry Walker has written some good examples here (http://homepages.tesco.net/wisecracker/AMIGA/HWACCESS.LHA) plus other hardware projects which might be of interest here (http://homepages.tesco.net/wisecracker/AMIGA.HTM) and on Aminet.

Of course it's just as simple to do in C or any other language, port access is essentially reading or writing to a few CIA registers.  Set the data pin directions by writing the appropriate 8-bit value to 0xBFE301 and read/write data pin states by reading/writing to 0xBFE101

An analogue temperature sensor (e.g. LM35) with appropriate DC amplification/scaling could be read via the paddle port 7-bit ADC.  Or you could use 1-wire temperature sensors such as Dallas 1822 for better resolution.  You'd need to implement the Dallas bidirectional serial protocol out of one of the parallel port pins, which would be achievable.

Digital I/O can easily be expanded using shift registers or by multiplexing octal latches.  Hundreds of I/O lines are possible providing you don't need to poll them very quickly.