Jump to content
ELFORUM - Forumul electronistilor

Telefon cu Arduino


Guest ellyvas

Recommended Posts

Guest ellyvas

Buna ziua,

 

 

As vrea un pic de ajutor. Vreau sa leg un telefon mobil de  arduino care are rolul de a ma suna o data cu detectarea unui senzor. Codul sursa e asemanator cu cel al unui  bec  adica

If(digitalread(senzor_pir)==LOW) {

digitalWrite(telefon, high)

}

else

digitalWrite(telefon,LOw).

 

Uitilzand codul , mie  imi este activat tot timpul tasta 3   pe care am pus  firele. Eu vreau o data  ce imi decteaza prezenta sa sune  adica  ia  curent pe  tasta 3  si  ce  termina  detectia   sa  iasa, adica sa  numai poata  suna.

 

Cum as  putea sa  rezolv aceasta  prob?post-226267-0-67684500-1401459047_thumb.jpg

Link to comment
  • 2 months later...
  • Replies 2
  • Created
  • Last Reply
  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.Terms of Use si Guidelines