Page 6 of 10 FirstFirst 12345678910 LastLast
Results 51 to 60 of 93

Thread: General question about powering an arduino

  1. #51
    Resident 100HP water-cannon operator SXRguyinMA's Avatar
    Join Date
    Jun 2008
    Location
    MA
    Posts
    5,865

    Default Re: General question about powering an arduino

    well yea that's what I meant lol. I'll snap up a small relay @ radio shack after work and try it out tonight

  2. #52
    Resident 100HP water-cannon operator SXRguyinMA's Avatar
    Join Date
    Jun 2008
    Location
    MA
    Posts
    5,865

    Default Re: General question about powering an arduino

    something like this should work right?

    http://www.radioshack.com/product/in...lterValue=SPST

  3. #53
    Fox Furry crenn's Avatar
    Join Date
    Apr 2005
    Location
    In the shadows behind you
    Posts
    4,067

    Default Re: General question about powering an arduino

    I think something more like this: http://www.radioshack.com/product/in...ductId=2062481

    You need it to handle the current of charging the capacitor and also for the arduino and servo to work.
    Antec Sonata II | Pioneer DVR-212
    Good news! You can follow my website or follow me on twitter!

  4. #54
    Resident 100HP water-cannon operator SXRguyinMA's Avatar
    Join Date
    Jun 2008
    Location
    MA
    Posts
    5,865

    Default Re: General question about powering an arduino

    it doesn't need to be a SPDT does it? They have this 1A SPST as well.

    http://www.radioshack.com/product/in...lterValue=SPST

    :EDIT: that SPST 1A is only a 5v relay, so I will need that one you listed

    :EDIT 2: they're got it in stock at my local store, I'll scoop it up after work tonight

  5. #55
    Resident 100HP water-cannon operator SXRguyinMA's Avatar
    Join Date
    Jun 2008
    Location
    MA
    Posts
    5,865

    Default Re: General question about powering an arduino

    crenn, here is the datasheet for that relay:

    http://relays.tycoelectronics.com/datasheets/OUAZ.pdf

    what would be the best way to wire it up? I was thinking the 12v would go to the switching pins (bottom left 2), 5v from PSU to bottom right pin, 5v sense wire to top right pin. This would close the 5v circuit when 12v is applied (computer on), and take away 5v when the computer is off. the 5v charge I was going to hook directly to the PSU as it is breadboarded now, or would this cause problems?

  6. #56
    Resident 100HP water-cannon operator SXRguyinMA's Avatar
    Join Date
    Jun 2008
    Location
    MA
    Posts
    5,865

    Default Re: General question about powering an arduino

    ok here's what I've got. Obviously the 5v and 12v will be switched together, but to do that in this program would make it look complicated and messy

    Code:
    $ 1 5.0E-6 1.7725424121461644 99 5.0 50
    c 112 240 112 288 0 10.0 0.002935472230715953
    c 112 288 112 336 0 10.0 0.002935472230715953
    178 384 224 400 224 0 1 0.2 0.03749999999999956 0.05 1000000.0 0.0375 320.0
    x 445 258 554 261 0 10 5v sense pin to arduino
    x 364 144 423 147 0 10 5v from PSU
    x 249 283 314 286 0 10 12v from PSU
    x 159 201 196 204 0 10 Arduino
    s 320 256 352 256 0 0 false
    g 256 336 304 336 0
    w 256 304 256 336 0
    w 256 336 224 336 0
    s 272 112 304 112 0 0 false
    w 112 336 224 336 0
    w 384 256 352 256 0
    w 288 256 320 256 0
    w 112 160 112 240 0
    w 112 112 112 160 0
    w 160 112 224 112 0
    w 160 112 160 160 0
    w 224 112 224 208 0
    w 224 256 224 336 0
    w 336 112 304 112 0
    w 384 304 256 304 0
    w 384 272 384 304 0
    w 400 240 480 240 0
    w 272 112 272 224 0
    w 272 224 384 224 0
    w 224 112 272 112 0
    181 224 208 224 256 0 1906.636257543845 100.0 5.0 0.4 0.4
    z 112 160 160 160 1 0.805904783 5.6
    r 112 112 160 112 0 100.0
    R 336 112 400 112 0 0 40.0 5.0 0.0 0.0 0.5
    R 288 256 272 256 0 0 40.0 12.0 0.0 0.0 0.5
    o 0 64 0 35 0.009765625 0.05 0 -1
    o 1 64 0 35 0.009765625 0.05 1 -1
    o 31 64 0 35 5.0 25.6 2 -1
    o 32 64 0 35 20.0 0.05 3 -1

  7. #57
    Fox Furry crenn's Avatar
    Join Date
    Apr 2005
    Location
    In the shadows behind you
    Posts
    4,067

    Default Re: General question about powering an arduino

    You can hook the 5v directly to the sense pin on the arduino. Then connect the closed position (ie when the 12v is applied) to the voltage supply of the arduino and charging circuit. So when the computer turns off, the arduino, servo and capacitor is isolated from the rest of the system and the arduino still can sense when the computer has turned off as the 5v supply will disappear from the sense pin.

    EDIT: Goto Page 5 and my top post. That's more accurate to what you want.
    Antec Sonata II | Pioneer DVR-212
    Good news! You can follow my website or follow me on twitter!

  8. #58
    Resident 100HP water-cannon operator SXRguyinMA's Avatar
    Join Date
    Jun 2008
    Location
    MA
    Posts
    5,865

    Default Re: General question about powering an arduino

    I just edited the code again

    :EDIT: I'll cehck what you've got on pg 5

  9. #59
    Resident 100HP water-cannon operator SXRguyinMA's Avatar
    Join Date
    Jun 2008
    Location
    MA
    Posts
    5,865

    Default Re: General question about powering an arduino

    ok I took your pg5 code and edited it so it wouldn't send voltage from the caps back through the 5v sense pin

    Code:
    $ 1 4.9999999999999996E-5 1.6308177459886661 50 5.0 50
    z 224 272 224 176 1 1.2 5.1
    r 160 272 160 176 0 15.0
    c 192 272 192 320 2 10.0 1.5976931634448988
    c 192 320 192 384 2 10.0 1.5976931634448988
    w 192 384 288 384 0
    w 288 384 384 384 0
    w 384 192 384 176 0
    g 288 384 288 432 0
    w 224 272 192 272 0
    w 192 272 160 272 0
    w 160 176 192 176 0
    w 192 176 224 176 0
    R 272 80 272 32 0 0 40.0 5.0 0.0 0.0 0.5
    w 224 176 384 176 0
    s 192 112 272 112 0 1 false
    178 272 80 384 80 0 1 0.2 0.0 0.05 1000000.0 0.0375 320.0
    w 272 128 272 304 0
    w 272 304 288 304 0
    w 288 304 288 384 0
    R 192 112 144 112 0 0 40.0 12.0 0.0 0.0 0.5
    x 421 292 458 295 0 10 Arduino
    z 384 128 384 176 1 0.805904783 5.6
    w 384 96 384 128 0
    x 461 115 531 118 0 10 5v to sense pin
    g 480 96 512 96 0
    r 384 96 480 96 0 1000.0
    181 384 256 384 272 0 1462.1431707282563 100.0 4.0 0.4 0.4
    w 384 192 384 256 0
    w 384 272 384 384 0
    o 2 64 0 35 2.5 51.2 0 -1
    o 3 64 0 35 5.0 51.2 1 -1
    o 26 64 0 35 5.0 51.2 2 -1

  10. #60
    Fox Furry crenn's Avatar
    Join Date
    Apr 2005
    Location
    In the shadows behind you
    Posts
    4,067

    Default Re: General question about powering an arduino

    You can remove that zener diode as the sense pin should be connected before the relay (aka directly from the PSU itself). I'll draw up an accurate representation before I go to bed.
    Antec Sonata II | Pioneer DVR-212
    Good news! You can follow my website or follow me on twitter!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •