Shop OBEX P1 Docs P2 Docs Learn Events
Driving a solenoid using BS2SX — Parallax Forums

Driving a solenoid using BS2SX

SiriSiri Posts: 220
edited 2007-06-04 15:02 in BASIC Stamp
I am planning to use the circuit diagram from "Application cookbook" byMatt Gilliland - The diagram and the code is attached to this.
What I need to achieve is to make the solenoid open and close about 30 times a second(30Htz).I would like to know if I use the code as it is and changed the pause limit will I will be able to do it or is there ia better way to achive this.The solenoid I have is capable of cycling at 30Htz.
The 30 Htz are maintained for about 1 sec. and paused for about 1 sec.This cycle is repeated.
The trigger for this cycle is fed from a air flow detrector - OMRON D6F - (The specifications are also attached).Ideally I wouls like to
get the out put of the Air Flow sensor and feed to th BS2 which intern would trigger the solenoid.

Can I do all these using BSX OEM board.
I wouls appreciate any help to achieve this goal.

Thank you.
Siri

Comments

  • FranklinFranklin Posts: 4,747
    edited 2007-06-03 23:32
    Both parts look OK. The solenoid diagram is great and the pressure sensors output is 0 to 5v so that should be no problem. It is analog so you will have to convert it to something the stamp can make decisions with either rctime or an ADC chip.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • SiriSiri Posts: 220
    edited 2007-06-04 15:02
    Stephen,
    Thank you - I will first tackle the solenoid and then figure out the air flow sensor section and post back with the results.

    Thanks again
    Siri
Sign In or Register to comment.