Input, output e mondo reale
Capire come i sensori leggono il mondo e gli attuatori lo modificano
Input, output e mondo reale è una lezione Arduino & IoT Academy gratuita su CoddyKit. Questa è la lezione 3 di 4. Puoi leggere la lezione completa qui gratuitamente — poi esercitati direttamente nel browser con un editor di codice integrato e un tutor IA disponibile 24/7. Fa parte del percorso di apprendimento Arduino & IoT Academy, e i tuoi progressi si sincronizzano tra il web e l'app CoddyKit. Il corso Arduino & IoT Academy include 4 lezioni in totale.
Parti di questa lezione non sono ancora state tradotte e vengono mostrate in inglese.
Two Directions
Every Arduino project is built from two flows: information coming in from the world, and signals going out to change it. 🙂
Inputs Bring Data In
An input is anything that tells your board about its surroundings, like a button being pressed or a room getting warmer.
Sensors Read the World
A sensor is an input device that measures something real, heat, light, or distance, and hands your board a number.
Outputs Push Action Out
An output is how your board changes the world: lighting an LED, spinning a motor, or beeping a buzzer.
Actuators Do the Doing
An actuator is an output that creates physical action, like a motor that moves or a speaker that makes sound.
Pins Carry Both
The same Arduino pins handle both jobs. You simply tell each pin in code whether it should listen or speak.
Setting a Pin's Role
You declare a pin's direction with one command. Here pin 13 is set up as an output so it can drive an LED.
pinMode(13, OUTPUT);Reading an Input
To listen instead, you read a pin's value. This grabs the state of a button wired to pin 2 so your code can react.
int state = digitalRead(2);The Loop That Joins Them
The magic is connecting them: read an input, decide, then drive an output. That tiny chain is the core of every gadget.
A Familiar Example
A motion light reads a sensor for movement, then drives a lamp on. Input in, output out, just like you'll build.
Why It Matters
Master inputs and outputs and you can build almost anything. Every project you'll make is just a clever mix of these two.
Quick Check
Let's sort inputs from outputs.
Recap
Inputs and sensors bring data in; outputs and actuators push action out. Read, decide, act, that loop powers every device. 🔁
Domande Frequenti
La lezione «Input, output e mondo reale» è gratuita?
Sì — il testo completo di «Input, output e mondo reale» è gratuito qui sul web. Per esercitarvi in modo interattivo (un editor di codice integrato e un tutor IA 24/7) e sbloccare il resto del corso Arduino & IoT Academy, passa a CoddyKit PRO. Il corso Arduino & IoT Academy include 4 lezioni in totale.
Cosa imparerò in «Input, output e mondo reale»?
Capire come i sensori leggono il mondo e gli attuatori lo modificano Eserciti Arduino & IoT Academy con codice pratico che esegui direttamente nel browser, e un tutor IA 24/7 risponde alle tue domande mentre lavori sulla lezione.
Ho bisogno di esperienza per iniziare Arduino & IoT Academy?
Non è richiesta alcuna esperienza precedente. Arduino & IoT Academy su CoddyKit è strutturato per principianti e studenti avanzati, quindi puoi iniziare da qui o dall'inizio e procedere al tuo ritmo. Questa è la lezione 3 di 4.
Quanto tempo richiede la lezione «Input, output e mondo reale»?
La maggior parte delle lezioni CoddyKit richiede circa 5–10 minuti. Ogni lezione è breve e interattiva, quindi fai progressi costanti e riprendi esattamente da dove hai lasciato su web e app.
Posso scrivere ed eseguire codice in questa lezione Arduino & IoT Academy?
Sì. Ogni lezione Arduino & IoT Academy include un editor di codice integrato, quindi scrivi ed esegui codice reale direttamente nel tuo browser e ricevi feedback istantaneo dall'IA — nessuna configurazione locale necessaria.
Tutte le lezioni di questo corso
- Dal computer al microcontrollore
- Che cosa significa Internet of Things
- Input, output e mondo reale
- La prima idea per un dispositivo smart