Loading...
Welcome,
Guest
. Please
login
or
register
.
May 22, 2013, 11:25:02 am
|
Arduino Forum
::
International
::
Italiano
::
Hardware
(Moderator:
leo72
) :: domanda
« previous topic
next topic »
Pages: [
1
]
Go Down
Print
Author
Topic: domanda (Read 143 times)
0 Members and 1 Guest are viewing this topic.
tecnico3
Offline
Newbie
Karma: 0
Posts: 48
domanda
«
on:
February 06, 2013, 06:28:15 am »
Bigger
Smaller
Reset
scusate ragazzi,ho appena comprato Arduino e sono alle prime esperienze come progettista; vi vorrei chiedere come faccio ad accendere e spegnere un led tramite un pulsante?? So che per voi è una cosa banale però ripeto sono elle prime esperienze e mi sto mangiando le mani...grazie
Logged
leo72
Forum Moderator
Italy
Offline
Brattain Member
Karma: 219
Posts: 16462
Don't know what I do
Re: domanda
«
Reply #1 on:
February 06, 2013, 06:30:52 am »
Bigger
Smaller
Reset
Bisogna cercare... cercare... cercare.
http://arduino.cc/en/tutorial/button
Nel link trovi un esempio che accende/spenge il led integrato usando un pulsante esterno
Logged
Guide for ATtinys, swRTC and secTimer libs, Micrologio, Atmega1284 core, ArduinoISP2, leOS operating system etc..
tecnico3
Offline
Newbie
Karma: 0
Posts: 48
Re: domanda
«
Reply #2 on:
February 06, 2013, 10:09:18 am »
Bigger
Smaller
Reset
no non mi sono spiegato bene. Io voglio un programma che se premo il pulsante il led si deve accendere e se premo nuovamente il pulsante, il led si deve spegnere...(quello l'avevo trovato)
Logged
BrainBooster
Deep south of Italy
Offline
Faraday Member
Karma: 6
Posts: 2954
The quieter you become, the more you can hear
Re: domanda
«
Reply #3 on:
February 06, 2013, 10:17:00 am »
Bigger
Smaller
Reset
..Aggiungi un pò di fantasia ed avrai il tuo flip flop software.
Leo ti ha dato comunque un punto di partenza
Logged
Lucailvec
Offline
Jr. Member
Karma: 3
Posts: 59
Re: domanda
«
Reply #4 on:
February 06, 2013, 10:44:59 am »
Bigger
Smaller
Reset
un punto esclamativo nel tuo codice dovrebbe bastare
guarda i principali segni logici in ogni caso hai messo un minimo di filtro al tuo bottone e una bella resistenza di pull-up o down ?
Logged
leo72
Forum Moderator
Italy
Offline
Brattain Member
Karma: 219
Posts: 16462
Don't know what I do
Re: domanda
«
Reply #5 on:
February 06, 2013, 10:47:22 am »
Bigger
Smaller
Reset
Quote from: tecnico3 on February 06, 2013, 10:09:18 am
no non mi sono spiegato bene. Io voglio un programma che se premo il pulsante il led si deve accendere e se premo nuovamente il pulsante, il led si deve spegnere...(quello l'avevo trovato)
Usa una variabile di stato. Ad ogni pressione, cambi il valore della variabile di stato, da false a true e viceversa.
Poi imposti il led in base allo stato di questa variabile.
Logged
Guide for ATtinys, swRTC and secTimer libs, Micrologio, Atmega1284 core, ArduinoISP2, leOS operating system etc..
Pages: [
1
]
Go Up
Print
« previous topic
next topic »
|
Arduino Forum
::
International
::
Italiano
::
Hardware
(Moderator:
leo72
) :: domanda
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> General Discussion
-----------------------------
Using Arduino
-----------------------------
=> Installation & Troubleshooting
=> Project Guidance
=> Programming Questions
=> General Electronics
=> LEDs and Multiplexing
=> Displays
=> Audio
=> Motors, Mechanics, and Power
=> Sensors
=> Networking, Protocols, and Devices
=> Interfacing w/ Software on the Computer
-----------------------------
Topics
-----------------------------
=> E-Textiles and Craft
=> Robotics
=> Science and Measurement
=> Home Automation and Networked Objects
=> Device Hacking
=> Education and Teaching
=> Interactive Art
=> Product Design
-----------------------------
Development
-----------------------------
=> Suggestions for the Arduino Project
=> Other Hardware Development
=> Other Software Development
-----------------------------
Community
-----------------------------
=> Website and Forum
=> Products and Services
=> Gigs and Collaborations
=> Workshops and Events
=> Local Groups
=> Exhibition / Gallery
=> Bar Sport
-----------------------------
International
-----------------------------
=> Deutsch
=> Español
=> Français
=> Italiano
=> Portugues
=> Scandinavia
-----------------------------
Forum 2005-2010 (read only)
-----------------------------
===> Uno Punto Zero
===> Bar Sport
===> Frequently-Asked Questions
===> News
===> Exhibition
===> Workshops
===> Interfacing
===> Bugs & Suggestions
===> Development
===> Troubleshooting
===> Portugues
===> Deutsch
===> Español
===> Français
===> Italiano
===> Scandinavia
===> Development
===> Interfacing
===> Syntax & Programs
===> Bugs & Suggestions
===> Troubleshooting
===> Report Spam at Arduino.cc
===> Forum
===> Playground Wiki
=> General
=> Hardware
=> Software
=> International
=> Web/Forum/Email/Spam
-----------------------------
Using Arduino
-----------------------------
=> Storage
=> Microcontrollers
-----------------------------
International
-----------------------------
===> Humor y Debate
===> Talleres, Encuentros, ...
===> Tutoriels et cours
===> Réalisations et Projets Finis
===> Le bar
=> Nederlands
===> Software
===> Hardware
===> Proyectos
===> Documentación
=> India
===> Hardware
===> Software
===> Megatopic
-----------------------------
Products
-----------------------------
=> The Arduino Starter Kit
=> Arduino Due
-----------------------------
International
-----------------------------
===> Generale
-----------------------------
Products
-----------------------------
=> Arduino Esplora
=> Arduino GSM Shield
-----------------------------
Maker Faire Rome - The European Edition
-----------------------------
=> Makers
=> Events and Tour
Loading...