Shop OBEX P1 Docs P2 Docs Learn Events
Connecting a dance(something, probably not mat) to the hydra. — Parallax Forums

Connecting a dance(something, probably not mat) to the hydra.

GooL91GooL91 Posts: 7
edited 2009-06-12 15:56 in Propeller 1
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.

File?id=dhcjw96g_2ggsb2thp_b


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

  • ColeyColey Posts: 1,110
    edited 2009-06-05 20:26
    Hi GooL91

    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
  • MicrocontrolledMicrocontrolled Posts: 2,461
    edited 2009-06-05 23:47
    Good idea, this way it is easier for the prop to detect it. Oh.. and the Experimental Card only has 7 inputs(dosn't it??)

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Toys are microcontroled.
    Robots are microcontroled.
    I am microcontrolled.
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2009-06-06 04:24
    Which system was the PAD designed for?

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Visit the: The Propeller Pages @ Warranty Void.
  • GooL91GooL91 Posts: 7
    edited 2009-06-06 20:39
    To Coley:
    Power=Current=+... burger.gif

    A schematic is probably not needed. I've already done the wiring like you said, thank you for confirming my greatness. scool.gif


    To MicroControlled:
    I'm not sure myself... confused.gif

    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. smile.gif
  • ColeyColey Posts: 1,110
    edited 2009-06-06 21:55
    GooL91 said...

    A schematic is probably not needed. I've already done the wiring like you said, thank you for confirming my greatness.

    Well how about posting some code then, it could be something simple, otherwise we'll have to start polishing our crystal balls tongue.gif

    Coley

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    PropGFX - The home of the Hybrid Development System and PropGFX Lite
  • GooL91GooL91 Posts: 7
    edited 2009-06-07 18:37
    Coley said...

    Well how about posting some code then... tongue.gif
    Coley

    Well, THAT was the part that I needed some help with. rolleyes.gif
    Sorry for not being clear in the first post, I was tired.

    Here is a schematic:
    File?id=dhcjw96g_3fpv2vkhr_b

    ...Wait, that's backwards as to what you said! lol.gif


    Edit:
    Oops! I forgot to include the 3v3...

    Post Edited (GooL91) : 6/7/2009 8:10:42 PM GMT
  • GooL91GooL91 Posts: 7
    edited 2009-06-12 11:00
    ...How many pins can be used on the hydra for this? 'Cause I nedd 10 or 9.
  • Spork FrogSpork Frog Posts: 212
    edited 2009-06-12 13:38
    The Hydra expansion slot brings out 14 I/O lines from the Propeller, though really only 10 of those are usable because 2 are for the EEPROM and 2 are for the USB-Serial converter -- not a good idea to use those twice.

    I/O 0 through I/O 7 as well as the 2 HydraNet lines are free game -- 10, which seems enough for your application.
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2009-06-12 14:03
    You could always grab a couple 4021N's from digikey.
    (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.
  • RobotWorkshopRobotWorkshop Posts: 2,307
    edited 2009-06-12 15:56
    Why not try a NES Nintendo POWER PAD Accessory? It should already have the correct connector for the Hydra and just plug in. There are a few up on ebay right now. Item #'s: 260427323652 , 390058722851 , 190313913182 and probably others.
Sign In or Register to comment.