pages
home
compiler logo
code compiler
electronics
notes about electronics
laboratory
laboratory
Processing logo
Processing code compiler
Theremino logo
Theremino code compiler
logggin Arduino
accedi o esci

tutorials Arduino

lights Arduino

my first led turns on

led's games

an electronic dice

traffic lights

candle effect

fading effect

red-green-blue 1

red-green-blue 2

7-segment display - Countdown

7-segment display bis

sensors

sensors

Sensor and serial port

sensor PIR

ultrasonic sensor

sound

Theremin

a melody

build a note

switches

buttons

keypad

input via serial port

input via serial port 2

input remote control

input remote control 2

use of variables

custom functions

servos

a robot

a remote-controlled robot

elettronica

mechanics

inglese Italian

handbook

pins

connections

resistors

Scarica Adobe Flash Player

remarkable sketches

remarkable circuits

Arduino pins

error messages

tables

colour's tables

electrical simbols

referenze on-line

reference Arduino

reference Processing

link

www.arduino.cc

fritzing.org/projects

processing.org

links

hardware

base kit

facilitated kits

advanced kits

Theremino

Arduino begins the workshop

review a workshop carried out

my account

info

link

contacts

sensore_PIR

introduction

PIR stands for Passive InfraRed sensor. Detects the minimum of infrared heat emanating from a person or an object. The PIR stores as normal all that does not change around him. The wall of a room in front of him does not change temperature (only very slowly from day to night) and then records it as normal. A person who passes in front emits heat, the PIR registers this immediate change.

We build an alarm, an audible beep and an LED that flashes when someone approaches

program

Arduino apri il programma


Arduino inizia il laboratorio

algorithm


attrezzaggio

pin13 ledrosso Arduino _red_led
pin0 altoparlante Arduino _altoparlante
pinA0 genericosensore Arduino _sensor_PIR

variabili

X = 0

ciclo

the variable X is equal to... read the sensor: _sensor_PIR
USB Arduino write on the serial: valore di... X
IF HAPPENS THAT X is greater than 100
SWITCH ON (5 Volt) switch on _red_led component
PLAY the note C central (262Hz) duration: 500 milliseconds
wait 1000 milliseconds
SWITCH OFF   (0 Volt) switch off _red_led component
PLAY the note 3 G (392Hz) duration: 500 milliseconds
wait 1000 milliseconds

Arduino code

Arduino

copy/past in Arduino

electrical connections

Arduino
Fritzing here Fritzing's file


indietro torna all'indice avanti esci logout Licenza Creative Commons

Ultima modifica: Agosto 2016