Go Back   IceInSpace > Equipment > ATM and DIY Projects

Reply
 
Thread Tools Rate Thread
  #1  
Old 08-12-2021, 11:53 AM
bojan's Avatar
bojan
amateur

bojan is offline
 
Join Date: Jul 2006
Location: Mt Waverley, VIC
Posts: 7,043
Question General control USB -> prallel port

I was thinking.. it would be very convenient to have general control utility to switch ON or OFF various things in observatory (power, lights, filters.. you name it)..

I have couple of National Instruments USB-6501 modules, they are ideal for that purpose from h/w point of view.. but I don't have any drivers (I know they are part of NI packages, but the price for all that is out of amateur's pocket.
Does anyone knows of alternative solutions for application that can be used to control 6501?

Also, how about USB-> parallel adapter?
Or this Arduino relay board :

https://www.jaycar.com.au/arduino-co...sort=relevance

Thanks in advance!

Last edited by bojan; 08-12-2021 at 03:36 PM.
Reply With Quote
  #2  
Old 08-12-2021, 07:46 PM
bojan's Avatar
bojan
amateur

bojan is offline
 
Join Date: Jul 2006
Location: Mt Waverley, VIC
Posts: 7,043
I found something very interesting: software for LPT1 control.

https://www.instructables.com/Home-A...-your-Paralle/

The computer I am using (HP Compaq workstation, 32-bit W'7 Pro) has LPT1 port (I also have USB-LPT adapter).


And here - USB-Parallel..
https://sigma-shop.com/category/4/relay-boards.html

Last edited by bojan; 08-12-2021 at 07:58 PM.
Reply With Quote
  #3  
Old 09-12-2021, 02:01 PM
redbeard's Avatar
redbeard (Damien)
Registered User

redbeard is offline
 
Join Date: Nov 2010
Location: Adelaide
Posts: 558
Hi bojan,


LPT control is a bit old and clunky. I used to use the LPT port to control things back in the 486 PC days.



Why not use an Arduino controller that is not only easy to connect hardware to, but also as an interface for the PC where any programming language could be used? That way software or hardware control could be used.



I'm interested in this topic and keen to see where it goes.


Cheers,
Damien.
Reply With Quote
  #4  
Old 09-12-2021, 04:09 PM
bojan's Avatar
bojan
amateur

bojan is offline
 
Join Date: Jul 2006
Location: Mt Waverley, VIC
Posts: 7,043
Damien,

Arduino is also on the table, of course.

Also, I asked Bob (Brown) if his MyFocuserPro2 app can be "widened" a bit to include support for filters and Bahtinov mask (which is the main reason I am doing this.. I want to be able to control it without climbing on the ladder in the dark to check focus between exposures).

I want to do it simple - if something free already exists, why not use it (even with small mods if possible )
Reply With Quote
  #5  
Old 09-12-2021, 04:59 PM
redbeard's Avatar
redbeard (Damien)
Registered User

redbeard is offline
 
Join Date: Nov 2010
Location: Adelaide
Posts: 558
What kind of control are you looking at for your filters and B mask?


Something like a relay and an actuator/solenoid for B mask?


Are the filters in a filter wheel and need to be controlled via Ascom or another method? Just need to determine exactly how you want to control those things.


Do you want to be able to control from PC only or standalone?


There are so many ways this can be done, just wanting to know what your preferred method is.



Cheers.
Reply With Quote
  #6  
Old 09-12-2021, 05:36 PM
bojan's Avatar
bojan
amateur

bojan is offline
 
Join Date: Jul 2006
Location: Mt Waverley, VIC
Posts: 7,043
Preferred method is from PC.. which is on WiFi (so it can be controlled from inside of house). But also stand-alone.

As for B mask, I was thinking of very simple motorized mechanical design - one DC motor and limit switches that stop motor when mask is in position, so only one control line is needed.

Long time ago I was using HP V.. predecessor of National Instruments Lab View. I even have installation disks somewhere.. problem with this is, HPIB interface card is needed (I have it, but it wouldn't fit in my comp, it is too old).

But, it is very easy to "write" applications for it, similar to Lab View.

As for filters, not sure yet, but they will probably be on wheel (again, simple DC motor.. or stepper, I will decide when need arises).


So.. for the star I would like to have something like this, but in Arduino form:
https://sigma-shop.com/product/66/us...put-modul.html
If there is nothing available like that in Arduino world, then I will buy that module and be done with it.

Last edited by bojan; 09-12-2021 at 06:39 PM.
Reply With Quote
  #7  
Old 11-12-2021, 06:22 AM
bojan's Avatar
bojan
amateur

bojan is offline
 
Join Date: Jul 2006
Location: Mt Waverley, VIC
Posts: 7,043
Idea for remote bahtinov came from here: https://www.youtube.com/watch?v=KrSrh4rIldk

This is no-nonsense circuit (with limit switches) for motor control.
Either H-bridge (controlled by single control line) or dpdt switch can be used.
Motor can come from some toy or I can use something like this or this depending on output speed (perhaps reduction should use worm gear instead).
Attached Thumbnails
Click for full-size image (c_113.jpg)
83.0 KB87 views
Click for full-size image (c_119.jpg)
13.9 KB71 views

Last edited by bojan; 11-12-2021 at 09:43 AM.
Reply With Quote
  #8  
Old 11-12-2021, 12:57 PM
bojan's Avatar
bojan
amateur

bojan is offline
 
Join Date: Jul 2006
Location: Mt Waverley, VIC
Posts: 7,043
Found something suitable in my drawers.. I think that came from trash can lid opener, output shaft was spring loaded (I removed the spring, it would return to original position when power is removed.
it works OK at 5V / 250 mA.
Attached Thumbnails
Click for full-size image (Motor_gearbox.jpg)
125.4 KB74 views
Reply With Quote
  #9  
Old 12-12-2021, 10:04 AM
bojan's Avatar
bojan
amateur

bojan is offline
 
Join Date: Jul 2006
Location: Mt Waverley, VIC
Posts: 7,043
This LPT port tester works on w'7 (LPT1):
http://www.downtowndougbrown.com/201...l-port-tester/


However, I want to use USB-LPT adapter I purchased a long time ago (because everything in my obs is on USB), device manager finds it and lists it as LPT3 but the above app doesn't recognize it for some reason.
Reply With Quote
  #10  
Old 13-12-2021, 11:50 AM
bojan's Avatar
bojan
amateur

bojan is offline
 
Join Date: Jul 2006
Location: Mt Waverley, VIC
Posts: 7,043
I think I found the solution for $25, local supply:
https://au.banggood.com/8CH-Channel-...N&rmmds=search

Last edited by bojan; 14-12-2021 at 05:44 AM.
Reply With Quote
  #11  
Old 15-12-2021, 11:24 PM
redbeard's Avatar
redbeard (Damien)
Registered User

redbeard is offline
 
Join Date: Nov 2010
Location: Adelaide
Posts: 558
Hi bojan,



I've had limited success with the USB LPT devices to do similar things in the past, as they sometimes just don't seem to match the old school way of hardware/addressing or something like that.


That last board you posted looks like the go, in my quick look, I could not find the API so to speak, so not sure on control.



Although, if you did it in Arduino + relays or other hardware, there would be a lot more flexibility on what you could do to it. For example, you could add input switches to give it stand alone operation without a PC and also use inputs as a way of detecting triggers, (micro switch etc). Use PWM to control motors, stepper motor control... I'm guessing you have no issues with coding, either way, I'll be happy to help out with code if you need a hand.


Keen to see what bits end up in the device.


Cheers,
Damien.
Reply With Quote
  #12  
Old 22-12-2021, 09:31 AM
bojan's Avatar
bojan
amateur

bojan is offline
 
Join Date: Jul 2006
Location: Mt Waverley, VIC
Posts: 7,043
Damien,

Thanks for the offer for help, let's see what happens.

At the moment, I have LPT1 port working, and relay box (donated to me by Avandonk couple of years ago..).
So for the start, I have to have all those gadgets installed (mask mechanism, filters etc.).
Attached Thumbnails
Click for full-size image (IMG_20211214_143444.jpg)
107.1 KB59 views
Reply With Quote
  #13  
Old 24-12-2021, 04:15 PM
bojan's Avatar
bojan
amateur

bojan is offline
 
Join Date: Jul 2006
Location: Mt Waverley, VIC
Posts: 7,043
Today, USB card arrived, but without any software.
After driver is installed, device manager display properties as shown below.
Also, I found on this website something that looks like the same card, but app I found somewhere else (looks the same) doesn't recognize the card.. so I am a bit stuck here.
Anybody knows where can I download the test app?
Attached Thumbnails
Click for full-size image (HTB1XDAwddzJ8KJjSspkq6zF7VXa2.jpg)
134.7 KB65 views
Click for full-size image (c_120.jpg)
37.6 KB52 views
Click for full-size image (c_121.jpg)
65.2 KB64 views
Click for full-size image (c_122.jpg)
23.1 KB49 views

Last edited by bojan; 25-12-2021 at 07:45 AM.
Reply With Quote
  #14  
Old 24-12-2021, 06:20 PM
bojan's Avatar
bojan
amateur

bojan is offline
 
Join Date: Jul 2006
Location: Mt Waverley, VIC
Posts: 7,043
This looks like the same thing..

Found both apps (as on images supplied by website), but neither finds the board...
Reply With Quote
  #15  
Old 24-12-2021, 06:50 PM
redbeard's Avatar
redbeard (Damien)
Registered User

redbeard is offline
 
Join Date: Nov 2010
Location: Adelaide
Posts: 558
I agree that it does look like the same board and therefore the software you found on another website should work. But maybe each manufacturer/seller has a different code? I would not normally think so.



I went back to the website where the relay device was and worked out how to download the software from their web site:


https://au.banggood.com/8CH-Channel-...N&rmmds=search






Then where it has the text:


>>>File download: Click here to open<<<


Right click on it and choose 'Save Link As" or similar depending on web browsers, and save the file to your hard disk. The file is in RAR format so you may need to download a free RAR extractor program from:



https://www.7-zip.org/


Keep extracting until you get to a folder called USBRelay. The files are there.



Ice in space limits the size of the files so I can't upload unfortunately.


The other thing too is this board is not 'serial USB', it's 'HID USB' which is much different and cannot be used with serial communications.


If you get stuck getting the files as they have not made it easy, I'll see if I can put then on 'BOX drive' or similar.


Cheers and Happy Happy.
Damien
Reply With Quote
  #16  
Old 24-12-2021, 07:07 PM
redbeard's Avatar
redbeard (Damien)
Registered User

redbeard is offline
 
Join Date: Nov 2010
Location: Adelaide
Posts: 558
I wasn't very clear on my explanation of where I downloaded the files: I meant to say that the files I downloaded were from the exact site where you bought the relay board from so that might make a difference.
Reply With Quote
  #17  
Old 24-12-2021, 09:40 PM
bojan's Avatar
bojan
amateur

bojan is offline
 
Join Date: Jul 2006
Location: Mt Waverley, VIC
Posts: 7,043
Damien, I already downloaded from your link and it doesn't work.

I also asked seller to provide a link.
Reply With Quote
  #18  
Old 24-12-2021, 09:47 PM
bojan's Avatar
bojan
amateur

bojan is offline
 
Join Date: Jul 2006
Location: Mt Waverley, VIC
Posts: 7,043
I will also try the app with different comp...
Reply With Quote
  #19  
Old 25-12-2021, 07:44 AM
bojan's Avatar
bojan
amateur

bojan is offline
 
Join Date: Jul 2006
Location: Mt Waverley, VIC
Posts: 7,043
Hmm..

It seems installed driver is from here:
https://sourceforge.net/projects/libusb-win32/


There is also a source code on link below that could be used for developing applications, but the test GUI should be quite OK for me.. provided it worked..
http://myosuploads3.banggood.com/pro...57USBRelay.rar


Now.. my comp (this one I am using at home ) is 64-bit W7 Pro.. maybe I need 32-bit? (it doesn't complain...)

Last edited by bojan; 25-12-2021 at 08:05 AM.
Reply With Quote
  #20  
Old 25-12-2021, 09:35 AM
bojan's Avatar
bojan
amateur

bojan is offline
 
Join Date: Jul 2006
Location: Mt Waverley, VIC
Posts: 7,043
Well, application works on 32-bit machine.
So - now I can start building gadgets and control them :-)
The first one will be remote controlled Bahtinov... and power On_OFF switch for mount.
Then, ROR motor...

Last edited by bojan; 25-12-2021 at 09:46 AM.
Reply With Quote
Reply

Bookmarks

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +10. The time is now 07:39 AM.

Powered by vBulletin Version 3.8.7 | Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Advertisement
Bintel
Advertisement