Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Actuator Project ( Was MRotate4)  (Read 47254 times)

0 Members and 1 Guest are viewing this topic.

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Actuator Project ( Was MRotate4)
« on: April 07, 2012, 10:17:11 pm »
***************************************************************
5/13/2012: I changed the name of this thread because I will soon release MRotate4, and I plan to make a new thread detailing what MRotate4 is then.
I sort of  steered this thread towards actuators, which is ok. But the name was misleading, since it really isnt about MRotate4.
Nothing else in this thread has been changed, and the remainder is the original.
***************************************************************


Ok, I have been working on a rig to rotate a LCD monitor using one of DarthPauls actuators. (Thanks DarthPaul!).
The initial test was a complete success.
I am also working on a new version of MRotate that I  plan to use on this rig.
This version will use the 9 pin (or 25 pin if you have a really old computer) com port.
I am calling this version MRotate4.
It will not require any kind of pic chip to get I/O. It will use two pins for outputs to turn on the drive, and two pins for inputs to monitor the limit switches.
The pins are: (on a 9 pin port)
Outputs:
Pin 4 DTR
Pin 7 RTS
Inputs:
Pin 1 DCD
Pin 6 DSR

The comport wont require the special inpout32.dll that the printer port needs, and it shouldnt have the annoying "some pins turn on during boot up".
Im not sure if a usb to serial convertor will work, but Im guessing it will.

I plan to make the drive for the motor very simple too.

The disadvantages of using the comport (without some sort of I/O chip), is the limited number of outputs and inputs.
So some of the features available in other versions wont be available in MRotate4. (Degauss, monitor off, drive enable, stop button, etc)

My question is: How many of you have comports on your mame PC? I know the comport is going the same path as the printer port, but I have seen some fairly new computers with at least one comport.

I have attached a picture of my test rig. It is strapped to a bar stool right now, notice the belt? (I have often wondered why God allowed me to get fat in my old years, now I know why LOL).
I used the same pine 2X4 rig I built for the stepper motor trial, which was a failure. The actuator, however works very well.



« Last Edit: May 13, 2012, 10:51:24 am by DaOld Man »

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: MRotate4
« Reply #1 on: April 07, 2012, 10:57:21 pm »
Here is a better picture of the rig. I added some labels to help explain what I am doing.

Le Chuck

  • Saint, make a poll!
  • Wiki Contributor
  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5509
  • Last login:March 14, 2024, 06:07:15 pm
  • <insert personal text here>
Re: MRotate4
« Reply #2 on: April 07, 2012, 11:38:13 pm »
All my laptops and netbooks have comports, and all my cabs above the micro scale have them as well.  I'd be interested the USB route though since I don't know how long the com port is going to hold on. 

Working on your 2012 UCA Software acceptance speech yet?  Have you even written your 2011 acceptance speech? 

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: MRotate4
« Reply #3 on: April 08, 2012, 08:21:53 am »
All my laptops and netbooks have comports, and all my cabs above the micro scale have them as well.  I'd be interested the USB route though since I don't know how long the com port is going to hold on. 

Working on your 2012 UCA Software acceptance speech yet?  Have you even written your 2011 acceptance speech? 

Well, I still have the MRotate USB version on the back burner. Its just that I want to build a way to make the monitor turn without being too complicated and not very expensive. (I know, just look at one of my schematics and laugh about my "complicated" statement!)

About the award, I want to thank you for your work LeChuck, and I really do appreciate it, but I was thinking, what does everyone think about whoever wins this year take a break the next year and not be eligible? This way others would have a shot, although Im not saying I have a shot next year, it's just that I dont think any of us would feel right winning two years in a row.  I will gladly go along with whatever the community wants to do. There are many very talented people (myself excluded) on here that could easily walk away with the award every year if they just put a little extra effort in it. Just trying to be fair and share the wealth.
This is probably a topic best for your thread over in the Main Forum.

Le Chuck

  • Saint, make a poll!
  • Wiki Contributor
  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5509
  • Last login:March 14, 2024, 06:07:15 pm
  • <insert personal text here>
Re: MRotate4
« Reply #4 on: April 08, 2012, 09:36:17 am »
I'm working on a low cost simple solution myself via USB but it's reliant on a very lite monitor.  If you can get something that is near idiot proof but has the ass to move larger loads I'm all for that.  Eitherway you're a pioneer man, if there's a need I'm sure you'll come up with a good solution.

As for the UCA, that's a valid recommendation.  I would probably tweek it to allow them to be nominated and confirmed but are excluded from the final voting.  Kinda like Miss America passing the crown.  During her reign Miss America visited XYZ and took part in these charities and build another sweet cab. 

We'll table all that for now tho, it's too soon to get back in the weeds on the UCAs for me but I think you can exepect to see a thread in Dec/Jan timeframe looking to discuss ways to make the UCAs better and create more involvement.   

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: MRotate4
« Reply #5 on: April 09, 2012, 12:19:20 pm »
I have been following your project LeChuck, and it is looking good.

I posted a youtube video of the actuator rig in action. Please excuse the quality of the video, it and the background both suck, but it is my first attempt, so hopefully I will make a better one soon.


Le Chuck

  • Saint, make a poll!
  • Wiki Contributor
  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5509
  • Last login:March 14, 2024, 06:07:15 pm
  • <insert personal text here>
Re: MRotate4
« Reply #6 on: April 09, 2012, 02:30:42 pm »
That's a really smooth transisiton.  Anxious to see more, keep them coming. 

TopJimmyCooks

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2097
  • Last login:February 06, 2024, 12:19:16 pm
Re: MRotate4
« Reply #7 on: April 09, 2012, 02:36:54 pm »
Man, worm drive ftw!.  I wonder how small they make those.  seems bulletproof for a rotating restrictor job. 


If I could just fit that garbage can in my cab!

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: MRotate4
« Reply #8 on: April 10, 2012, 01:28:42 am »
TJC, I was thinking about putting that garbage can on ebay, but if you want it I can make you a special price, but the garbage is going to be extra.  ;D
Also, I have been thinking about how to implement something of this nature on a 4-8 joystick, but the servos seem to work real good.

Ok, Ive got a couple of fairly decent (better) videos, shot from the other side of the rig.






darthpaul

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 447
  • Last login:November 23, 2022, 07:34:53 pm
  • Join, It's your duty
Re: MRotate4
« Reply #9 on: April 11, 2012, 07:24:13 pm »
 :applaud: :applaud: :notworthy: Now if we can only get it to work on a big old CRT.
"You don't know the power of the Dark Side"
Automated Cabinet
Nintendo Pi
PiCubed

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: MRotate4
« Reply #10 on: April 12, 2012, 03:01:07 am »
Yes that might be a challenge, but I think it could be done.
Any ideas?

darthpaul

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 447
  • Last login:November 23, 2022, 07:34:53 pm
  • Join, It's your duty
Re: MRotate4
« Reply #11 on: April 12, 2012, 06:55:16 pm »
This is something I would use if I get the OK to build a cabinet for work and I would be using a CRT monitor because it's free, what are your plans for the motor drive?
"You don't know the power of the Dark Side"
Automated Cabinet
Nintendo Pi
PiCubed

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: MRotate4
« Reply #12 on: April 13, 2012, 02:03:49 am »
This is something I would use if I get the OK to build a cabinet for work and I would be using a CRT monitor because it's free, what are your plans for the motor drive?

Im glad you asked about the motor drive. I plan to build one using two relays, two NPN transistors, and a few diodes and resistors. Will be controlled via serial (com) port.
I got in from work tonight (working afternoon shift this week), and some parts I ordered for the drive were in the mailbox!
I ordered them from allelectronics.com, shipping is high (7 bucks for the parts a I ordered), but they got here super quick.
Here are the parts. I ordered 2 extra relays and a whole bunch of 1 amp 400 V diodes (my junk box was running low.)
Also got some extra transistors. Although not a real necessity, you gotta love the terminal strips.

So now I need to breadboard it and make sure it will work, then it's off to Radio Shack to pick up one of those neat little copper clad pre-drilled PC boards.
More pics and schematics to come.

darthpaul

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 447
  • Last login:November 23, 2022, 07:34:53 pm
  • Join, It's your duty
Re: MRotate4
« Reply #13 on: April 14, 2012, 12:38:32 am »
Will MRotate4 only work with your motor driver or will it also work with a more conventional Pololu drive like the one I'm currently using with Mrotate and CPRotate?
"You don't know the power of the Dark Side"
Automated Cabinet
Nintendo Pi
PiCubed

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: MRotate4
« Reply #14 on: April 14, 2012, 11:04:20 am »
Mrotate4 will control the serial port, so it is very possible to use the serial port to control your drive if it is currently being controlled by the printer port.
The big difference between using MRotate3 with the printer port and MRotate4 with the serial port is the limited number of available inputs and outputs with Mrotate4.
Printer port has 8 outputs and 5 inputs that are very easy to interface with.
The serial port, in the way MRotate4 will access it, has only 2 outputs and 2 inputs.
So, if your drive only needs two signals to run (forward and reverse) and you only need two signals back to the PC (limit switches), then this new setup will do nicely.
I do plan to incorporate optional speed control, dynamic braking and sounds in MRotate4.
But monitor on/off control, degaussing, parking brake control, optional stop input and parking brake released input will not be available in MRotate4, simply due to unavailable inputs and outputs.
Since you already have your rig set up with the printer port, i suggest you do not go the route of the serial port.
I am creating MRotate4 for simplicity, to encourage others to get on the rotating bandwagon.

When I am finished with this project I plan (no, I promise) to pick up the MRotateUSB project again (May be renamed MRotate5) .
Now this will open up the USB port for a combination of 16 points of access (8 outs 8 ins, 5 outs 11 ins, etc)
It will just not be as simple or cheap to implement as its predecessors.

darthpaul

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 447
  • Last login:November 23, 2022, 07:34:53 pm
  • Join, It's your duty
Re: MRotate4
« Reply #15 on: April 14, 2012, 04:58:01 pm »
I would plan on using this on the cabinet I am hoping I get the go a head to do for my job. I don't think I would need any of the extra features that Mrotate3S has, I'm not using them now.
"You don't know the power of the Dark Side"
Automated Cabinet
Nintendo Pi
PiCubed

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: MRotate4
« Reply #16 on: April 14, 2012, 05:31:32 pm »
I would plan on using this on the cabinet I am hoping I get the go a head to do for my job. I don't think I would need any of the extra features that Mrotate3S has, I'm not using them now.

Cool. I am just about finished with the drive.
Are you going to try to use the actuator to turn the monitor?

darthpaul

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 447
  • Last login:November 23, 2022, 07:34:53 pm
  • Join, It's your duty
Re: MRotate4
« Reply #17 on: April 14, 2012, 06:40:11 pm »
No, I have to go with the tried and true friction drive to turn that beast.
"You don't know the power of the Dark Side"
Automated Cabinet
Nintendo Pi
PiCubed

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: MRotate4
« Reply #18 on: April 15, 2012, 10:07:12 pm »
Alright, a little progress to report:
I got the relay drive built and it works like a charm!
The drilled PC board I got from Radio Shack was a little hard to use with the relays I bought. The relay pins did not line up exactly with the holes in the board. I had to bend the pins a little, and the relays are slightly "cock-eyed", but it works good.
Here are a couple of pics.
First is the relay with the 9 pin comport connector laying beside it.
Second pic has a arcade pushbutton laying beside it for size comparison.
I will try to get together a parts list and cost, also a schematic diagram of this drive.
I think this will be a simple and cheap way to go if your rotating rig does not need speed control.
MRotate4 to be released very soon.

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: MRotate4
« Reply #19 on: April 15, 2012, 10:21:43 pm »
And here is a quick and dirty hookup diagram.

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: MRotate4
« Reply #20 on: April 25, 2012, 11:08:34 am »
Here is a diagram of the relay and transistor I used for this project:

Le Chuck

  • Saint, make a poll!
  • Wiki Contributor
  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5509
  • Last login:March 14, 2024, 06:07:15 pm
  • <insert personal text here>
Re: MRotate4
« Reply #21 on: April 25, 2012, 11:11:09 am »
Your documentation is awesome as usual.  Keep it up!

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: MRotate4
« Reply #22 on: April 25, 2012, 12:16:01 pm »
Thanks LeChuck, I hope it is useful.

Here is the schematic diagram of my simple drive. (Any suggestions for a name for this drive? (be nice!)).
I found that it is not necessary to use both contacts on the limit switches. I just wired both the terminals on the strip for each switch to just the NC contact of the switch. So I adjusted this drawing to show that, no need to use extra terminals if you dont need them.

Edit: I left out one very important thing on this drawing, and that is a fuse on the power from the power supply.
The fuse can be an auto type fuse, and it should be rated in amps high enough to not blow during normal operation, but low enough to blow if the motor hangs up. With the actuator Im using, I found that while the motor is running it draws around a half amp, and when it stalls it draws right at 5 amps.
Why would it stall? If something happened to a limit switch and the circuit wasnt turned off when it should be, the actuator would travel until it hit a mechanical stop. This is when the motor would stall, or cant turn. Current jumps high during this time and if power isnt removed pretty quick, the motor will get hot, possible damaging the motor or the power supply. So this is where the fuse comes into play. The fuse blows (or opens up), turning off power to the circuit and the motor.
I feel this is very important. Im thinking about trying a 1.5 amp fuse on this circuit. If it blows too soon, I will up the amps by .5. (The fuse must be large enough to handle the startup current of the motor, which can be much higher than the running current for a split second).
The power supply must also be rated to supply enough current to blow the fuse, should the motor stall.
Say for instance I use a power supply rated for 1 amp, it would probably be enough to run the motor normally, but If I use a 2 amp fuse and the motor stalls, the power supply may not be able to pump 2 amps into the circuit long enough for the fuse to blow quickly. This could damage the power supply.
A good test would be to move the limit switch out of the way and let the motor stall while supervising it. Fuse should blow before anything heats up. And by supervising, I mean hand on the power cord, ready to pull the power.
« Last Edit: April 25, 2012, 12:47:17 pm by DaOld Man »

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: MRotate4
« Reply #23 on: April 25, 2012, 01:30:16 pm »
Ok, so maybe you dont want to use relays, cause let's face it relays are old school, and they are mechanical, which means eventually they will wear out and fail, even though it may be many many years down the road, there is a point which they will give up the ghost.
But in defense of relays, they are much simpler and much more forgivable about current surges and short circuits than solid state devices are.
One big disadvantage for some folks would be that you cannot control the speed of the motor by pulsing the relays on and off, like you can with a solid state device. (Such as a transistor).
So you are planning on using a solid state drive AKA as "H Drive", but you like the idea of using the comport to control it?
Well here is a circuit that basically cuts out the relays and two of the diodes of the previous circuit, but adds two resistors, to offer an interface between the comport and the H Drive.
I plan to offer PWM speed control in MRotate4 as an option. (Cant use it on the relay drive though).
I havent tested this circuit, but I am pretty sure it will work, but as with all of the circuits and software I offer, use at your own risk.
Connecting anything to your computer can be a risky thing. You can fry your computer if not wired properly.
I have tested the relay drive on my main desktop PC with no problems at all, but keep in mind you are doing this at your own risk.


DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: MRotate4
« Reply #24 on: April 25, 2012, 01:41:48 pm »
This might be a better circuit for the H drive. Notice that in this circuit, when a limit switch opens, the input on the H drive will turn off immediately, and not rely on the software turning it off.
Let me add also the same speech I made above about the fuse.

Le Chuck

  • Saint, make a poll!
  • Wiki Contributor
  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5509
  • Last login:March 14, 2024, 06:07:15 pm
  • <insert personal text here>
Re: MRotate4
« Reply #25 on: April 25, 2012, 02:13:10 pm »
This is some great stuff man, nothing that is going to knock socks off immediately but it's exactly the stuff that makes some cockamamey ideal possible. 

As for adding the fuse that is a really great solution.  I ran into the same thing on my controller rotate with the servo hanging.  I really fought with how to get it around it.  The issue was that the servo was trying to push past the stop and wouldn't shut down at the right marker.  Due to scale rather than try to fix with switches I just used a script to shut it down after one second (the process takes .5 second).  It isn't a failsafe like the fuse tho, which really protects the system from unforeseeable failures.  When I upscale I'll be hitting this thread up first. 

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: MRotate4 (Update 4/30/12)
« Reply #26 on: April 30, 2012, 04:11:58 pm »
Ok, I found a limit switch arm that I figured would work and look better than the hastily thrown together crank I used to test the actuator rig.
I had to drill the hole in the center of the arm to fit the 3/8" shaft.
The arm had a roller on the end, I removed it and bored that hole out to 1/4"
It is adjustable in crank length and rotation angle on shaft.
I am happy with the way it turned out:



Next I made bearings for the actuator pivot points.
I used brass pipe plugs (3/8"). I drill out a hole in the center for the pivot. (1/4", a little big but as close to pivot diameter that I had). I then filled the plug with wood putty. The putty set up pretty hard. I did this to keep oil from soaking into the wood and to help steady the pivot. Probably  not necessary. Then I drilled out the wood putty (1/4") to the depth of the length of the pivot.
I then bored 1/2" holes in the wood supports and threaded the plugs in. It is a tight fit and I dont think they are going anywhere.
The actuator pivots a lot smoother and stays in line better.
Here is a pic of the backside of the bushing, showing the wood putty filler.



First pic of the new crank was with the monitor in vertical position. here it is in horizontal. (I dont have the mechanical stops or limit switches installed yet, its a bit past horizontal. You can see where I marked the stop for vertical (probably use a 1/4" bolt through the 2X4). There is a hole where I mounted the servo once upon a time. I plan to use this for the horizontal stop bolt.
I make the mechanical stops so the monitor can turn past the level vert and horz positions. This allows me some adjustment room on the switches, and if it hits the mechanical stop I will know because the screen will be crooked.



I then set up the rig to test for proper alignment. I ran small wirewrapping wire between the corners to find center of the screen. I then set up my camera tripod with a wood skewer for a pointer.
This pic shows monitor in vertical and pointer lined up on screen center.



And here it is rotated to horizontal. The screen is about 1/4" off center from vertical position.
Im going to have to live with this. I plan to center the monitor with the cabinet while in horizontal position, so maybe 1/4" to the side while in vertical wont be too noticeable.



And here is how I set up the centering guide. I ran the small wires (can be thread too) between each corner of the screen (not the monitor but the viewable portion of the screen). I scotch taped the wires to the monitor to hold in place. Where the wires intersect should be the center of the screen.



Next on my agenda for this project: Mount mechanical stops and rig up limit switches.

« Last Edit: April 30, 2012, 04:14:02 pm by DaOld Man »

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9226
  • Last login:March 17, 2024, 08:21:52 pm
  • ...
Re: MRotate4 (Update 4/30/12)
« Reply #27 on: May 01, 2012, 11:27:31 am »
Definitely "borrowing" that adjustable arm idea.  :)

I know I'm not going to be able to get the screen exactly centered with my tools and ability.
My plan is to have a round logo displayed while rotating, and adjust the position of that until the picture is centered.
That will at least create an illusion of the screen being perfectly centered.

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: MRotate4 (Update 4/30/12)
« Reply #28 on: May 01, 2012, 01:43:46 pm »
I have been experimenting with the adjustable arm.
I have found that the monitor turns faster on a short radius (arm adjusted towards center), but it is a lot "jerkier" so faster may not be better.
I am also experimenting with sliding a spacer over the worm shaft, which makes a very good mechanical stop for actuator retracting.
This actuator is so strong that it tries to bend the crank arm, so a extended mechanical stop will have to stop the end of the actuator screw, not the crank arm.
There is another hole in the actuator screw shaft on the opposite end, I thought about using that to make a mechanical stop for extended. But with the setup I posted, the hole in the screw end disappears into the actuator when extended, thats why I messed around with the crank radius adjustment, I did get the hole in the screw to still appear when monitor is just slightly past vertical. I put a finishing nail in the hole and extended the screw shaft. It bent the nail when it reached it, but it did stop the motor. I may have to move the actuator closer to the crank to get what I need. A nail is not going to work either. Like I said this actuator is pretty strong.
I like the way the monitor turns with the crank radius as in the pics I last posted. Much smoother. Will try to stay away from a short radius on the crank.

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9226
  • Last login:March 17, 2024, 08:21:52 pm
  • ...
Re: MRotate4 (Update 4/30/12)
« Reply #29 on: May 01, 2012, 03:21:13 pm »
I have been experimenting with the adjustable arm.
I have found that the monitor turns faster on a short radius (arm adjusted towards center), but it is a lot "jerkier" so faster may not be better.
I am also experimenting with sliding a spacer over the worm shaft, which makes a very good mechanical stop for actuator retracting.
This actuator is so strong that it tries to bend the crank arm, so a extended mechanical stop will have to stop the end of the actuator screw, not the crank arm.
There is another hole in the actuator screw shaft on the opposite end, I thought about using that to make a mechanical stop for extended. But with the setup I posted, the hole in the screw end disappears into the actuator when extended, thats why I messed around with the crank radius adjustment, I did get the hole in the screw to still appear when monitor is just slightly past vertical. I put a finishing nail in the hole and extended the screw shaft. It bent the nail when it reached it, but it did stop the motor. I may have to move the actuator closer to the crank to get what I need. A nail is not going to work either. Like I said this actuator is pretty strong.
I like the way the monitor turns with the crank radius as in the pics I last posted. Much smoother. Will try to stay away from a short radius on the crank.


I've been planning on using the crank length to adjust the speed.  I picture a square on the back of the monitor and I need to move one corner to the position of the next corner to get 90 degrees rotation.  My actuator is lighter duty and rated at 1.5"/second, so I'd need a 4.5" square if I wanted the rotation to be 3 seconds.  (slightly longer since the actuator isn't travelling a straight line, but close enough)  ......at least in theory. 

I'm waiting on a few more parts in the mail before testing.  I thought about trying to get the length perfect so that it would hit the built in limit switches each way, but I'm not sure I'd be happy waiting that long for the monitor to turn.  If I do go this route, can mrotate work without any input from limit switches?

BTW, I ordered the $7 motor driver from India that you linked to in another thread.
http://robokitsworld.com/index.php?main_page=product_info&cPath=73&products_id=15
Partially trackable and uninsured shipping, 7-15 day delivery was under $10.

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: MRotate4 (Update 4/30/12)
« Reply #30 on: May 01, 2012, 03:52:32 pm »
....can mrotate work without any input from limit switches?

BTW, I ordered the $7 motor driver from India that you linked to in another thread.


Mrotate can do it without limit switches, just set the time limits and turn off the pop up message option. MRotate4 will be able to do the same, if you are planning on going with the serial port.

I have not tried that driver, I have so far built my own, but it looks like a real good price, let me know how you like it.

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9226
  • Last login:March 17, 2024, 08:21:52 pm
  • ...
Re: MRotate4 (Update 4/30/12)
« Reply #31 on: May 01, 2012, 03:58:59 pm »
I plan to use the parallel port version.  (even though I'm posting in the mrotate4 thread :-[  )

Continuing off topic discussion:

I've been planning on using the crank length to adjust the speed.  I picture a square on the back of the monitor and I need to move one corner to the position of the next corner to get 90 degrees rotation.  My actuator is lighter duty and rated at 1.5"/second, so I'd need a 4.5" square if I wanted the rotation to be 3 seconds.  (slightly longer since the actuator isn't travelling a straight line, but close enough)  ......at least in theory.  

To expand on this.... to get the length of the crank needed, you'd use the Pythagorean Theorem.

where both a and b are the sides of your square (the distance between the starting and stopping point of your actuator) and the midpoint of c is the center.
So half of c is the length of crank needed.
Using my 4.5" square as an example (both a and b=4.5)
 and popping it into an online calcuator:
http://www.basic-mathematics.com/pythagorean-theorem-calculator.html
c is 6.36.  
So my crank would need to measure 3.18" from the center of both pivot points to get the result I want.

To use the full 6" stroke of the actuator, I'd need a 4.25" crank.

DaOld Man, don't be afraid to tell me to get off of your lawn!  ;)
« Last Edit: May 01, 2012, 08:32:20 pm by BadMouth »

ataruzzolo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 25
  • Last login:April 11, 2021, 01:07:41 pm
Re: MRotate4 (Update 4/30/12)
« Reply #32 on: May 01, 2012, 04:50:50 pm »
I used Pythagorean Theorem myself this morning to find the lenght of the crank!
I'm doing a little alteration (again) to my rotating setup and a little actuator is coming in use.
First edition was the classical friction solution, one month after I remaked the mechanism and the motion was transmitted by gear, now is time for the linear actuator...

I'll post some photo...

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: MRotate4 (Update 4/30/12)
« Reply #33 on: May 01, 2012, 11:18:42 pm »
I plan to use the parallel port version.  (even though I'm posting in the mrotate4 thread :-[  )

Continuing off topic discussion:

I've been planning on using the crank length to adjust the speed.  I picture a square on the back of the monitor and I need to move one corner to the position of the next corner to get 90 degrees rotation.  My actuator is lighter duty and rated at 1.5"/second, so I'd need a 4.5" square if I wanted the rotation to be 3 seconds.  (slightly longer since the actuator isn't travelling a straight line, but close enough)  ......at least in theory.  

To expand on this.... to get the length of the crank needed, you'd use the Pythagorean Theorem.

where both a and b are the sides of your square (the distance between the starting and stopping point of your actuator) and the midpoint of c is the center.
So half of c is the length of crank needed.
Using my 4.5" square as an example (both a and b=4.5)
 and popping it into an online calcuator:
http://www.basic-mathematics.com/pythagorean-theorem-calculator.html
c is 6.36.  
So my crank would need to measure 3.18" from the center of both pivot points to get the result I want.

To use the full 6" stroke of the actuator, I'd need a 4.25" crank.

DaOld Man, don't be afraid to tell me to get off of your lawn!  ;)

Cool, thanks for the theorem.. The stroke of the actuator Im using is approx 4.5".
I went to the hardware store today and I couldnt find anything to use for a stop. I did find some pins that fir pretty snug in the hole on the end of the threaded screw, so I think I will use that for the horizontal (retracted) mechanical stop.
Now I got to figure out how to mount the limit switches, I want to be able to adjust the position of them or the striker to get monitor dead on horizontal and vertical.
I like your actuator with the built in switches, thats going to make it a lot easier.
I though about building a small circuit that monitors the current on the motor, then use the mechanical stops to stop the monitor in correct positions. When the circuit senses the current going up, it will signal the drive to turn off. But I dont think I like the idea of straining the motor every time it moves. Sooner or later something will give.
I will get some more pics soon, looking forward to seeing your project in action.
And go ahead and walk across the lawn, just step around the crab grass. LOL
« Last Edit: May 01, 2012, 11:28:32 pm by DaOld Man »

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: MRotate4 (Update 4/30/12)
« Reply #34 on: May 01, 2012, 11:30:48 pm »
I used Pythagorean Theorem myself this morning to find the lenght of the crank!
I'm doing a little alteration (again) to my rotating setup and a little actuator is coming in use.
First edition was the classical friction solution, one month after I remaked the mechanism and the motion was transmitted by gear, now is time for the linear actuator...

I'll post some photo...


Alright, looks like the actuator idea is catching on! Looking forward to seeing your progress.
I wonder if these actuators would turn a CRT? I am thinking if it has the correct bearings the one i have would.

ataruzzolo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 25
  • Last login:April 11, 2021, 01:07:41 pm
Re: MRotate4 (Update 4/30/12)
« Reply #35 on: May 02, 2012, 04:27:15 pm »
This is my home made LEGO linear actuator. Actually it consists of two LEGO linear actuators (part number 61927c01), a XL LEGO Motor (part number 8882), some spare lego bricks/gears and a ball bearing drawer slides (it comes from  Samsung monitor pivottable stand I placed in the cab) to strengthen the whole.


Le Chuck

  • Saint, make a poll!
  • Wiki Contributor
  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5509
  • Last login:March 14, 2024, 06:07:15 pm
  • <insert personal text here>
Re: MRotate4 (Update 4/30/12)
« Reply #36 on: May 02, 2012, 04:34:04 pm »
^ I'll be damned.  That's pretty impressive.  Video?

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: MRotate4 (Update 4/30/12)
« Reply #37 on: May 02, 2012, 05:09:46 pm »
I agree. Very impressive. Why did you use two actuators?

ataruzzolo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 25
  • Last login:April 11, 2021, 01:07:41 pm
Re: MRotate4 (Update 4/30/12)
« Reply #38 on: May 02, 2012, 05:19:42 pm »
Thanks ;)
I believe my crappy camera can't record video, tomorrow (I need some daylight!) I will try with the phone.


DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: MRotate4 (Update 4/30/12)
« Reply #39 on: May 02, 2012, 05:20:44 pm »
Ok, I have the mechanical stop problem fixed.

First I moved the actuator supports 1/2" closer to the crank.
I then readjusted the crank to get the clevis block to bottom out against the actuator body when it goes past horizontal. Here you can see the clevis bottomed out:



And here is a pic of the monitor position at this point:



And I inserted a pin in the other end of the screw, I couldnt insert it too far because of small clearance between the screw and the motor housing. Pic is a little blurred so I drew a red circle around the pin:




And here it is at the mechanical stop for vertical:



And finally, the position of the monitor at the vertical mechanical stop:



Now that I have the mechanical stops figured out, need to work on limit switches now.

ataruzzolo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 25
  • Last login:April 11, 2021, 01:07:41 pm
Re: MRotate4 (Update 4/30/12)
« Reply #40 on: May 02, 2012, 05:38:12 pm »
I agree. Very impressive. Why did you use two actuators?

Because I had two...! The first prototipe used two opposing actuators with the motor in the middle, than I shortened the lenght of the crank so now I only need half the stroke. I also paired the actuators because the LEGO construction seems to be more firm.

ataruzzolo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 25
  • Last login:April 11, 2021, 01:07:41 pm
Re: MRotate4 (Update 4/30/12)
« Reply #41 on: May 02, 2012, 05:50:29 pm »

Now that I have the mechanical stops figured out, need to work on limit switches now.


In my first photo you can see my solution: limit switch combined to mecanical switch. The chassis of the monitor hits an ex coin microswitch --> the motor stops --> the chassis hits the wood and can't turn further.

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: MRotate4 (Update 4/30/12)
« Reply #42 on: May 02, 2012, 06:41:21 pm »

Now that I have the mechanical stops figured out, need to work on limit switches now.


In my first photo you can see my solution: limit switch combined to mecanical switch. The chassis of the monitor hits an ex coin microswitch --> the motor stops --> the chassis hits the wood and can't turn further.

Looks good. Why didnt I think of the coin switches? I have two laying around, but I will have to buy new ones when it comes time to mount the coin door. I'll worry about that then. ;D

ataruzzolo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 25
  • Last login:April 11, 2021, 01:07:41 pm
Re: MRotate4 (Update 5/02/12)
« Reply #43 on: May 03, 2012, 05:48:11 am »


« Last Edit: May 06, 2012, 04:04:42 pm by ataruzzolo »

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9226
  • Last login:March 17, 2024, 08:21:52 pm
  • ...
Re: MRotate4 (Update 5/02/12)
« Reply #44 on: May 03, 2012, 10:23:11 am »
Had no idea those lego actuators were that strong.
Excellent work!

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: MRotate4 (Update 5/02/12)
« Reply #45 on: May 03, 2012, 10:23:44 pm »
Ok, got my limits fabbed.

I bought two 3/8" ID collars and three 3/8" ID X 1-5/8" OD fender washers. (Only used 2 of the washers.)



I drilled a hole through each collar and through the fender washer.
I then attached the washer to the collar with a small bolt and nut.
I then ground off nearly half of each washer.
After this picture, I had to grind some off the head of the bolt and the nut to clear the 3/8" shaft.
This was very tricky and I dont think I did a pretty job, but it works.
If you do this, I highly suggest you use a drill press, I couldnt imagine doing it on a hand drill. Welding the washer to the collar would be a lot easier, but I dont have a welder.



I then mounted my limit switches, one on opposite ends of the shaft.
Here is one:



And the other:



The switches are wired to normally open contact. The washer holds the limit switch closed until the ground off part rotates around, then the switch opens.
I can easily adjust stopping points by loosening the bolt in the collar and turning the collar a bit.
Works very good.
(Somebody needs to pitch me a fish!)

Got the relay drive mounted:



And the motor wired in:



Sorry about the quality of the pics, I think the batteries were going down in the cam.

I hooked this to my desktop PC and it works great!

I have a video made, I will try to upload to youtube and post later.

Now I need to tidy up my wiring, need to fasten motor and limit switch wires to the 2X4's. Will probably use staples.
I also need to ground the actuator frame and maybe the shaft, although it is grounded to the monitor, so that may not be necessary.

Edit: Removed double post of a pic.

« Last Edit: May 04, 2012, 07:53:18 am by DaOld Man »

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: MRotate4 (Update 5/03/12 I have my limits!)
« Reply #46 on: May 03, 2012, 10:31:21 pm »
Video. Excuse the quality the battery died in the cam before I could get a better shot.



Edit: Ignore me taling in the background, I was on the phone and didnt realize the cam would pick me up. Also the squeaking is my desk chair. And I promise that small squeak at about 8 secs is the chair!

The monitor is not perfectly level, but I will level it up with the cabinet when I install it. Shouldnt be a big deal, just trial and error with the limit switch cams. (Collars and washers).
« Last Edit: May 04, 2012, 11:05:21 am by DaOld Man »

ataruzzolo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 25
  • Last login:April 11, 2021, 01:07:41 pm
Re: MRotate4 (Update 5/03/12 I have my limits!)
« Reply #47 on: May 06, 2012, 02:02:28 pm »
What a neat solution! Very good  ;)

[Noob mode on]
How do you attach the youtube video preview?
[Noob mode off]

Le Chuck

  • Saint, make a poll!
  • Wiki Contributor
  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5509
  • Last login:March 14, 2024, 06:07:15 pm
  • <insert personal text here>
Re: MRotate4 (Update 5/03/12 I have my limits!)
« Reply #48 on: May 06, 2012, 03:47:20 pm »
What a neat solution! Very good  ;)

[Noob mode on]
How do you attach the youtube video preview?
[Noob mode off]


Hit quote on his post and check out his code.

Code: [Select]
[url=http://www.youtube.com/watch?v=Y4oEnLlBQ3s#]parts 007.MOV[/url]


ataruzzolo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 25
  • Last login:April 11, 2021, 01:07:41 pm
Re: MRotate4 (Update 5/03/12 I have my limits!)
« Reply #49 on: May 06, 2012, 04:06:12 pm »
Hit quote on his post and check out his code.

Code: [Select]
[url=http://www.youtube.com/watch?v=Y4oEnLlBQ3s#]parts 007.MOV[/url]

Thanks  :cheers:

darthpaul

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 447
  • Last login:November 23, 2022, 07:34:53 pm
  • Join, It's your duty
Re: MRotate4 (Update 5/03/12 I have my limits!)
« Reply #50 on: May 06, 2012, 07:30:25 pm »
Good stuff, too bad I only have big old CRTs to use(they were free).
"You don't know the power of the Dark Side"
Automated Cabinet
Nintendo Pi
PiCubed

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: MRotate4 (Update 5/03/12 I have my limits!)
« Reply #51 on: May 07, 2012, 06:11:20 pm »
Looks to me like you could be the first to rotate a CRT with one of those actuators. Are you up for the challenge?

darthpaul

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 447
  • Last login:November 23, 2022, 07:34:53 pm
  • Join, It's your duty
Re: MRotate4 (Update 5/03/12 I have my limits!)
« Reply #52 on: May 08, 2012, 08:23:24 pm »
Don't you ever want me to finish my cabinet :dizzy:
"You don't know the power of the Dark Side"
Automated Cabinet
Nintendo Pi
PiCubed

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: MRotate4 (Update 5/03/12 I have my limits!)
« Reply #53 on: May 08, 2012, 10:39:11 pm »
Do any of us ever finish our cabinet?   :scared

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: Actuator Project ( Important update)
« Reply #54 on: September 04, 2013, 03:08:10 pm »
Sorry for the bump, but just in case anyone decides to build my serial port motor drive, I have found a potential problem.
I tested this drive on a different computer, and found that the inputs on that computer tend to float. This did not happen on the computer that I designed this circuit with.
So if you build this, I suggest you bread board it first and test on your computer.
It may be necessary to add 10K resistors from each input pin to the ground.
I would like to have input from anyone who has built this circuit.
Also, not sure if I already mentioned it, but the serial port, when the computer boots up, tries to communicate with any devices connected to it. This is undesirable because in this setup, it will make the motor jerk one way or the other during computer boot up.
I never found a way to overcome this, except to add a timer that allows time for the computer to completely boot before the serial drive gets any power.

Monkeyvoodoo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 251
  • Last login:February 12, 2024, 08:00:58 pm
  • I swear I can stop at one. Or two.
    • threefoldhorse Custom
Re: Actuator Project ( Was MRotate4)
« Reply #55 on: February 19, 2014, 12:08:37 am »
It's been awhile since you posted but I'm on board for trying this circuit out. I'm currently trying to combine this interface into my discreet h-bridge. I'm pretty sure I have it figured out.

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: Actuator Project ( Was MRotate4)
« Reply #56 on: February 20, 2014, 10:53:08 am »
It's been awhile since you posted but I'm on board for trying this circuit out. I'm currently trying to combine this interface into my discreet h-bridge. I'm pretty sure I have it figured out.

That's good. Do you have any pics or schematics?
Remember what I said about the serial port flashing its outputs (polling) during computer bootup.
Since serial only has two outputs, all I can figure to fix this is a timer that will "kill" the circuit until pc has time to boot up and get past the serial polling.

Monkeyvoodoo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 251
  • Last login:February 12, 2024, 08:00:58 pm
  • I swear I can stop at one. Or two.
    • threefoldhorse Custom
Re: Actuator Project ( Was MRotate4)
« Reply #57 on: February 20, 2014, 04:58:02 pm »
Here's what I have so far:

I haven't forgotten about the startup port flashing. Although the Cabinet will most likely be on most of the time. :D

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: Actuator Project ( Was MRotate4)
« Reply #58 on: February 21, 2014, 01:56:05 pm »
Good job!
Just a note for anyone wanting to try this: I found that on a different computer the inputs tended to float, so I had to tie each input to ground with a high value resistor. (cant remember the value, but I would try a 200K).
This was not necessary for the computer I developed the circuit on, so you may or may not need the pull down resistors.

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: Actuator Project ( First Beta of Mrotate4 uploaded here.)
« Reply #59 on: April 28, 2017, 07:27:53 pm »
Monkey Voodoo:
Your email provider kept rejecting my attached file (tried rar and zip, didnt like any of it.)
So Im posting it here so you can test it.
Note to everyone: This is still a work in progress, and may have some bugs in it, so if you download it, please be aware that it is still a beta product.
I tend to update this when I iron out any bugs.
If anyone wants to beta test for me, that would be great.

Unzip this to mrotate4.exe.
It may have some bugs in it and I know there are a couple of things I need to finish up.
When you first run it it will make you run the setup mode.
Choose your com port, input pins and output pins.
Also choose your commands to turn vertical or horizontal (I suggest 0 for horz and 90 for vert.)
You can also run a test while in this setup mode.
When you get it set up the way you want, close it, make sure you save the settings
Then you should be able to run it from a cmd window or line, type mrotate4 + the direction command (Example: mrotate4 90)
If you type just mrotate4, it will open up the setup mode.
Let me know if you have any trouble running it or see any problems.

And as always, I welcome and appreciate any and all suggestions and comments.

10/17/2020 Note: I have removed the mrotate4 download from this thread. You can get latest version of Mrotate4 in the downloads thread in this forum (automated projects).
« Last Edit: October 17, 2020, 02:46:32 pm by DaOld Man »

pixel.arcade

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 34
  • Last login:November 13, 2022, 04:27:29 pm
  • I want to build my own arcade controls!
Re: Actuator Project ( Was MRotate4)
« Reply #60 on: October 12, 2020, 06:41:25 pm »
Hi DaOld Man.

After a long time without using Mrotate3 support with a parallel port that does not run on Win 64 bits I see that @DaOld Man has released a new version and that makes me very happy.

Taking advantage of the "Mrotate3" structure, I now update with the "serial port" cable. In the first tests everything worked fine, I used the version without "PWM" and I confess I missed you.


https://photos.app.goo.gl/BmcTPhGSCh912M3o8

Now just make some fine adjustments.

I couldn't get the limit switch to work, I'm confused, I appreciate any help in connecting the wires.

« Last Edit: October 12, 2020, 10:12:07 pm by pixel.arcade »

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: Actuator Project ( Was MRotate4)
« Reply #61 on: October 13, 2020, 07:53:34 am »
Hi DaOld Man.
......
I couldn't get the limit switch to work, I'm confused, I appreciate any help in connecting the wires.

Hi Pixel.arcade!
About the limit switches.
The serial port inputs are ordinarily low, unlike the printer port inputs which are ordinarily high, so connecting the limit switch from input to ground will not work with the serial port, unless you "pull" them high with external 5 volts first.
The easiest way to do this is to connect the input through the limit to an external 5 vdc positive (such as the PC power supply).
Then you must select "watch for inputs going high" in Mrotate4 inputs/outputs section.
Here is a dirty drawing. Top half shows using external power supply to watch for inputs going high at end of travel.
Lower half is watch for inputs going low. In lower half, the inputs are pulled high when switch is open. When switch closes, the input is pulled low to ground.
Hope this helps.

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: Actuator Project ( Was MRotate4)
« Reply #62 on: October 13, 2020, 08:00:50 am »
Forgot to say that which ever method you choose to use, just duplicate it for the other input.

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: Actuator Project ( Was MRotate4)
« Reply #63 on: October 13, 2020, 08:21:08 am »
If you can give me a sketch of how you are wired to your limits and your drive now, i might can give you a better answer.
Also, if you really want PWM, I can re-enable it, but you will have to install RCTimer.ocx. (I can give you that too).
Note that PWM in this method will not speed up your motor from the speed it is currently going, it can only slow it down.
To speed up a motor faster than its full voltage speed, it would take a very complicated (and expensive) drive. (Or increase motor voltage, but then you get into all sorts of possible problems, overheating, etc)
From your video, looks like your motor is going pretty good now, so you probably dont want to slow it down, but if you do, just let me know. :)

pixel.arcade

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 34
  • Last login:November 13, 2022, 04:27:29 pm
  • I want to build my own arcade controls!
Re: Actuator Project ( Was MRotate4)
« Reply #64 on: October 13, 2020, 06:37:10 pm »
Thanks for the reply DaOld Man.

The option to slow the engine is interesting, I would like to test.
A quick turn at the end of the stroke can sometimes go a little over 90 degrees, sometimes in the old design with the printer door.

I understood the issue of the necessary external supply of the 5 volts on the serial port.

I think I'm excited and skipping stages, I will strictly follow the drawing posted in 2012. I will set up the circuit and post the result.

« Last Edit: October 13, 2020, 07:04:50 pm by pixel.arcade »

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: Actuator Project ( Was MRotate4)
« Reply #65 on: October 13, 2020, 07:29:26 pm »
Sounds good.
That is an old drawing.
Please be aware with that wiring plan you cannot use dynamic braking, because at end of travel one limit switch will open, disabling that direction to the drive.
Applying dynamic braking will make the monitor jerk in opposite direction until that limit closes, then the monitor will be off alignment.
Let me know what you come up with.

pixel.arcade

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 34
  • Last login:November 13, 2022, 04:27:29 pm
  • I want to build my own arcade controls!
Re: Actuator Project ( Was MRotate4)
« Reply #66 on: October 15, 2020, 12:36:49 pm »
I made a drawing that amateur as I love it. ::)
Everything works correctly, the limit keys are ok.

https://photos.app.goo.gl/X8sHYybMj2sGYdpe6

Some doubts
The next step would be to add a diode on the "foward, reverse" wire.
The question of booting windows the engine performs some movements, how to get around the situation.
« Last Edit: October 15, 2020, 12:44:56 pm by pixel.arcade »

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9390
  • Last login:Today at 03:26:41 am
  • Designated spam hunter
Re: Actuator Project ( Was MRotate4)
« Reply #67 on: October 15, 2020, 03:02:24 pm »
The question of booting windows the engine performs some movements, how to get around the situation.
You could put a DPDT delay relay on the 12v and ground lines between the driver and motor.

If you get a relay that temporarily energizes as soon as power is applied:
- Use the NC and COM contacts
- When power is applied, the relay energizes, disconnecting the NC and COM terminals.
- Set the delay time long enough that the motions are done before the relay de-energizes, reconnecting the NC and COM terminals.

If you get a relay that does not energize as soon as power is applied:
- Use the NO and COM contacts
- When power is applied, the delay circuit waits to energize the relay.
- Set the delay time long enough that the motions are done before the relay energizes, connecting the NO and COM terminals.

You can get relays that use either 110VAC, 220VAC, or 12VDC to power the timer circuit and coil.
- 12V from a Molex or SATA power is probably the easiest way to go.

Delay relays come in a variety of delay ranges.
- Choose one where your desired delay is in the mid-range of the spec, not the extreme end.
- For example, if you need a 14 second delay, get a 0-30 second relay instead of a 0-15 second or 0-30 minute relay.

The Omron H3Y-2 (or similar) is a popular choice for an application like this.


Scott
« Last Edit: October 15, 2020, 03:04:32 pm by PL1 »

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: Actuator Project ( Was MRotate4)
« Reply #68 on: October 15, 2020, 06:11:10 pm »
What PL1 said.
However, if you use the timer relay on the wires to the motor, it will have to be heavy enough to handle the current of the motor.
You can also use a DPDT timer on the forward and reverse wires from the serial port to the drive. The current on these wires should be very low, probably milliamps.
Let me see if I can find a timer that would work for you on the internet. Any idea how long of a delay it needs to be? (How long for PC to boot from power on to windows desktop.)
Appreciate the video, it is very informative. If that drive is doing ok now, without the diodes between the drive and serial port outputs, then you probably wont need the blocking diodes, but it sure wouldnt hurt to install them if you want.
RopiJo has a similar setup on his rotating rig, maybe he can share what timer he used.

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: Actuator Project ( Was MRotate4)
« Reply #69 on: October 15, 2020, 06:16:22 pm »
Heres one I found on amazon. 12 VDC DPDT 0-60 secs (make sure thats enough time).

https://www.amazon.com/Delay-Timer-Relay-Second-Socket/dp/B07QKDTP34/ref=sr_1_26?dchild=1&keywords=timer+relay&qid=1602799993&sr=8-26

I dont know where you live. I do know some people on here that live not in USA say they have a hard time ordering stuff.


Ropi Jo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 201
  • Last login:January 30, 2024, 04:26:37 pm
  • I want to build my own arcade controls!
Re: Actuator Project ( Was MRotate4)
« Reply #70 on: October 15, 2020, 07:03:28 pm »
RopiJo has a similar setup on his rotating rig, maybe he can share what timer he used.

Hey Old Man.

I used the older version of this one for almost all the timers on my rig. It's multi-function so covers virtually all scenarios. I had a whole load of them in my scrap box that I picked up cheap yrs ago. Not so cheap now though!

https://uk.rs-online.com/web/p/timer-relays/0160284/
« Last Edit: October 15, 2020, 07:06:36 pm by Ropi Jo »

Ropi Jo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 201
  • Last login:January 30, 2024, 04:26:37 pm
  • I want to build my own arcade controls!
Re: Actuator Project ( Was MRotate4)
« Reply #71 on: October 15, 2020, 07:09:15 pm »
RopiJo has a similar setup on his rotating rig, maybe he can share what timer he used.

Hey Old Man.

I used the older version of this one for almost all the timers on my rig. It's multi-function so covers virtually all scenarios. I had a whole load of them in my scrap box that I picked up cheap yrs ago. Not so cheap now though!

https://uk.rs-online.com/web/p/timer-relays/0160284/

And I used 2 of the ones like your link (but the 240V version) in my degaous circuit.

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9390
  • Last login:Today at 03:26:41 am
  • Designated spam hunter
Re: Actuator Project ( Was MRotate4)
« Reply #72 on: October 15, 2020, 07:19:45 pm »
However, if you use the timer relay on the wires to the motor, it will have to be heavy enough to handle the current of the motor.
You can also use a DPDT timer on the forward and reverse wires from the serial port to the drive. The current on these wires should be very low, probably milliamps.
Good news -- Omron H3Y-2 contacts are rated for 5A and the L298n driver only outputs 3A peak, 2A continuous.   ;D

If you put the relay on the wires between the driver and motor, it is guaranteed to prevent spurious driver outputs from reaching the motor during boot-up.

Not 100% sure if putting the relay on the forward/reverse wires will ensure that the driver won't send spurious outputs to the motor during boot-up.   :dunno


Scott

pixel.arcade

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 34
  • Last login:November 13, 2022, 04:27:29 pm
  • I want to build my own arcade controls!
Re: Actuator Project ( Was MRotate4)
« Reply #73 on: October 15, 2020, 10:07:49 pm »
Thanks for the replies guys.

I found the "H3y-2" model suggested and can easily get it in my region.
I will buy and post the result. Maybe I have doubts in the connection of the wires, but I ask for help  :laugh:

https://produto.mercadolivre.com.br/MLB-856325165-h3y-2-rele-de-tempo-temporizador-timer-com-base-citex-_JM#position=3&type=item&tracking_id=80a5fedd-6b1f-4a44-bb22-d382039aa6f7


PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9390
  • Last login:Today at 03:26:41 am
  • Designated spam hunter
Re: Actuator Project ( Was MRotate4)
« Reply #74 on: October 15, 2020, 11:45:48 pm »
Maybe I have doubts in the connection of the wires, but I ask for help  :laugh:
This might help.   :cheers:




Scott

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: Actuator Project ( Was MRotate4)
« Reply #75 on: October 16, 2020, 06:12:52 am »
Thanks for the replies guys.

I found the "H3y-2" model suggested and can easily get it in my region.
I will buy and post the result. Maybe I have doubts in the connection of the wires, but I ask for help  :laugh:


Sounds good! But before you spend your money, make sure the the timer adjusts long enough for the  computer to boot past the serial port flashing. This timer has a 60 second maximum time delay.
It sure wouldnt hurt if you time the boot up first, just to be sure.
Here are a couple of drawings showing how to hook up that timer. Note that Im denoting a 12 volt dc timer.
First drawing is probably the simplest. It waits until the time delay is finished before applying the positive current to the drive.
Second drawing cuts the power between the drive and the motor as PL1 suggested.
In this drawing, im breaking both lines to the motor. You can just as well break only one line, which would be simpler to wire.
Good luck and keep us informed!
« Last Edit: October 16, 2020, 06:32:01 am by DaOld Man »

pixel.arcade

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 34
  • Last login:November 13, 2022, 04:27:29 pm
  • I want to build my own arcade controls!
Re: Actuator Project ( Was MRotate4)
« Reply #76 on: October 24, 2020, 06:12:17 pm »
Hi gentlemen

I assembled another prototype for the project, now more organized, but many adjustments still needed. The idea is to take the whole mechanism and adapt it behind the arcade cabinet, plug and play type. >: D

At that first moment I used the relay connected to the windshield motor
In tests carried out with the limit switches installed, the rotation speed of the motor is high thus causing problems with the motor stopping.
"DaOld Man, PL1" thanks for the help in wiring the wires in the time relay.

I would be very happy to be able to test the version of Mroate4 with the "PWM" setting. DaOld Man  :cheers:

Details in the link
https://photos.app.goo.gl/jk2syt8xohHXftPB6


« Last Edit: October 24, 2020, 07:14:51 pm by pixel.arcade »

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: Actuator Project ( Was MRotate4)
« Reply #77 on: October 24, 2020, 09:28:37 pm »
MRotate4 with PWM speed control

RSTIMER


Let me know if you have any problems with either of these.

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: Actuator Project ( Was MRotate4)
« Reply #78 on: October 24, 2020, 09:44:12 pm »
Good video!
If that drive can do dynamic braking, you might try enabling it in mrotate4. It will make the motor stop faster, but the drive has to be able to do it.
Caution! If drive can not do dynamic braking it could fry the drive. Consult drive documentation, unless you are willing to take the risk.
Dynamic braking sets both directions on for a set time when the travel limit is made. Times can be set in Mrotate4.

Dynamic braking can be enabled and time to apply it can be set in Options. I would start with a very low time first. (100 MS is the minimum.)

According to this link, that drive can handle dynamic braking (fast stop).
But since I cant say for sure, use at your own risk.

https://www.teachmemicro.com/use-l298n-motor-driver/
« Last Edit: October 24, 2020, 09:57:25 pm by DaOld Man »

pixel.arcade

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 34
  • Last login:November 13, 2022, 04:27:29 pm
  • I want to build my own arcade controls!
Re: Actuator Project ( Was MRotate4)
« Reply #79 on: October 28, 2020, 03:06:32 pm »
Hi,

Further tests with Mrotate PWM, the pulse value between "0-30" I found very good, but the engine suffered to rotate a monitor.
There was a considerable loss of torque.
I will look for another engine with a lower RPM for further testing.
Dynamic braking was also tested and no burning scent so far.

« Last Edit: October 28, 2020, 03:32:40 pm by pixel.arcade »

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: Actuator Project ( Was MRotate4)
« Reply #80 on: October 28, 2020, 04:24:06 pm »
Good work!.
That drive uses pwm by pulsing the drive enable pin, but since you can only get two outputs from the serial port, we dont have an output to turn on the enable.
One other choice to reduce the speed is to lower the voltage on the drive. Of course this may require a different type power supply.
You can also use a 555 circuit to pulse the drive enable.
This would require building a timer with the 555 IC chip.
You would need an astable mode circuit.
Here is a site with some info. You can replace R1 with a pot, which would allow you to adjust the pulses.
of course, this is entirely up to you.
One other way would be to add a larger gear on the monitor shaft. This would require re-positioning your motor to. Its kinda hit or miss to get the correct speed you want,
but if you are good at math (Im not), you could calculate how big the gears need to be.

here is that 555 site:
http://www.555-timer-circuits.com/operating-modes.html

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: Actuator Project ( Was MRotate4)
« Reply #81 on: October 28, 2020, 04:31:04 pm »
I shortened the pulses on the PWM, and made the speed adjustment on the fly a little easier.
See what you think.
Unzip this to mrotate4.exe, and replace the one you have now with this one.
if you think you may want to go back to the old one, just copy it to a different spot to save it before you replace it with this one.

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: Actuator Project ( Was MRotate4)
« Reply #82 on: December 14, 2020, 09:11:56 am »
Any updates on your project pixel.arcade?

pixel.arcade

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 34
  • Last login:November 13, 2022, 04:27:29 pm
  • I want to build my own arcade controls!
Re: Actuator Project ( Was MRotate4)
« Reply #83 on: December 14, 2020, 08:13:43 pm »
Hello DaOld Man, sorry for the delay in updates. I have little space in the environment to make improvements to the project.

Come on, in this update I used the 32 inch TV, with 1 engine that was weak to turn 32 inches so I put a second engine on the L298.
In fact, these engines are for lifting car windows and not for windshields, so they are weaker, but work well with the L298.
The PWN function with these engines does not work satisfactorily.
The negative detail that I see at the moment would be a little sudden friction on the switch at the end of the rotation.



« Last Edit: December 14, 2020, 08:26:43 pm by pixel.arcade »

DaOld Man

  • Moderator
  • Trade Count: (+4)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: Actuator Project ( Was MRotate4)
« Reply #84 on: January 26, 2021, 09:25:27 pm »
Ive been off of here for awhile, just dropped in to catch up on things.
Good job pixel.arcade! Thanks for the good video too.