Connecting a dance(something, probably not mat) to the hydra.
GooL91
Posts: 7
Hi!
I've read more than half of the book and I still can't figure out how to get the HYDRA to compute simple I/O. All I want is for the screen to go full-black or full-white when I press any buttons.
Now, I use 10 pins for connection.
1 for "power" and 9 for the buttons.
...When you step on one button the hydra recieves a "1" though one of the i/o hole on the experimenter-Card, then fill the screen with white, else show a blank screen.
Can somebody please provide me with some help?
I've read more than half of the book and I still can't figure out how to get the HYDRA to compute simple I/O. All I want is for the screen to go full-black or full-white when I press any buttons.
Now, I use 10 pins for connection.
1 for "power" and 9 for the buttons.
...When you step on one button the hydra recieves a "1" though one of the i/o hole on the experimenter-Card, then fill the screen with white, else show a blank screen.
Can somebody please provide me with some help?
Comments
when you say 'power' what do you mean?
A schematic of how you have wired it up would help us to help you.
I would pull each of the iputs up to 3v3 with a 10K resisitor and put the common pin to ground, so when you press each button the signal transition is from high (1) to low (0)
Coley
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
PropGFX - The home of the Hybrid Development System and PropGFX Lite
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Toys are microcontroled.
Robots are microcontroled.
I am microcontrolled.
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Visit the: The Propeller Pages @ Warranty Void.
Power=Current=+...
A schematic is probably not needed. I've already done the wiring like you said, thank you for confirming my greatness.
To MicroControlled:
I'm not sure myself...
To OldBitCollector:
It was a standalone system. It included a dance-game an a pinball one. I just tared it apart an put the cables in.
...Ten of them.
Thank you for answering.
Well how about posting some code then, it could be something simple, otherwise we'll have to start polishing our crystal balls
Coley
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
PropGFX - The home of the Hybrid Development System and PropGFX Lite
Well, THAT was the part that I needed some help with.
Sorry for not being clear in the first post, I was tired.
Here is a schematic:
...Wait, that's backwards as to what you said!
Edit:
Oops! I forgot to include the 3v3...
Post Edited (GooL91) : 6/7/2009 8:10:42 PM GMT
I/O 0 through I/O 7 as well as the 2 HydraNet lines are free game -- 10, which seems enough for your application.
(These are the same used in the NES controllers) -- Heck for all that
matters you could (GASP!) gut a couple old controllers and use the
cables as well. Route all the I/O thru the game ports, using the
available spin for game controllers.
It would make your PAD compatible with a bunch of existing games
at the same time. [noparse]:)[/noparse]
[noparse][[/noparse]NES controllers really aren't that rare.. I bought three of them
for $5.00 each (in perfect condition) from the local game trader.]
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Visit the: The Propeller Pages @ Warranty Void.