Go Down

Topic: Automaticly rotating monitor (Read 1 time) previous topic - next topic

Shabanoty

Hi,
I'm looking i ro building one of those, but i'm not sure how to Do That. Becouse i would like arduino to act only If there is a need to rotate monitor.

The thing is. I would like to build MAME ( multi arcade machine emulator), which displays both hotizontal and vertical games, using hyperspin as front end ( software integrating all emulators in one).

Hyperspin should send data thru USB, to arduino giving the comand to start DC motor and keep it running x amount of time ( based on motor speed needed to turn the monitor 90 degrees) efter playing the game, hyperspin should send another data thru USB, saying t
To arduino to start the DC motor in oposite direktion. FOR same amount of time.

How ever, there is à script 4 hyperspin and program cald mrotate doing That. But program works thru serial port ( printerport)

Basicly i have 3 questions :

1. Is it posible to control arduino WITHOUT programing it in arduino language ?
2. Is it posible to write the program in arduino language allowing the controll of arduino with some other program?
3. Is there anyone WHO Did something like this?

I still have'nt bought My arduino, but Will by the end of the month.

I know i need the arduino ( Will but Uno), DC sheald, DC motor, resistors, cables and bunch of other stuff.
ANy help is highly appreceated.


johnwasser

> Hyperspin should send data thru USB, to arduino giving the comand to start DC motor and keep it running x amount of time ( based on motor speed needed to turn the monitor 90 degrees)

The time to rotate the monitor may change with room temperature and other factors. You should probably have limit switches to stop the motor at the vertical and horizontal positions.  By having the switch open when you reach the end of travel and putting a diode across the switch you can allow the motor to run the other way even with one of the limit switches open.

> But program works thru serial port ( printerport)

The PC 'printer' port is a PARALLEL port, not a SERIAL port.  You might be able to use the parallel port to drive a small relay.  The small relay could control the direction of the rotation motor.  No need for an Arduino.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Shabanoty

Let us say That i want to send and receve data from hyperspin to arduino and vice versa. Sure, two microswiches can be mount to tell the arduino That rotation is complete (0-90 and vice versa). My biggest issue is how Do i tell to hyperspin, That à reference wether or not it should start motor using other program. Making à "button" with microswiches as stops to start DC motor is relativly Easy. But i want to use a program ( hyperspin or. Some other front end 4 emulators) instead of button to start.

johnwasser

This forum entry has wiring diagrams for the MRotate2 program:

http://forum.arcadecontrols.com/index.php/topic,94350.0.html

It does use a parallel port.  If you don't have a parallel port you might be able to buy a USB-to-Parallel adapter.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Shabanoty

Wireong is more pr less ok, i have issue with programing the arduino Uno and DC motor shield. How to male them accept commqnds from mrotate. That is the biggest issue for me.

Go Up