Shop OBEX P1 Docs P2 Docs Learn Events
Voltage & current detect. Need some help. — Parallax Forums

Voltage & current detect. Need some help.

NMhZNMhZ Posts: 2
edited 2008-01-25 02:08 in General Discussion
hi everyone,

just wanna ask. how can i detect the voltage and current using SX chips?
i don't really sure whether i am doing it correct or not. See attachment.
735 x 597 - 17K
eg1.JPG 17.1K

Comments

  • VonSzarvasVonSzarvas Posts: 3,527
    edited 2008-01-24 08:50
    Check the SX/B help document. Under "Commands" find "ANALOGIN".

    The docs have a circuit diagram, code and a thorough description of whats going on. I think it may tell you all you need to know about measuring voltage.

    As for current... never needed that so no sure off top the head - but maybe thats just a simple formula? V = IR ? Assuming you have a constant resistance.

    Good luck.
  • BeanBean Posts: 8,129
    edited 2008-01-24 12:21
    What do you mean by "detect" ? Do you just want to see if voltage is there ? Or do you actually want to measure the voltage ?

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    www.iElectronicDesigns.com

    ·
  • NMhZNMhZ Posts: 2
    edited 2008-01-25 02:08
    Bean (Hitt Consulting) said...
    What do you mean by "detect" ? Do you just want to see if voltage is there ? Or do you actually want to measure the voltage ?

    Bean.

    yes, i want to measure voltage and current. when the voltage/current go to certain level, i want the controller to react. but i am not really sure whether the connection i did is correct. thx for helping.
Sign In or Register to comment.