pages
home
compiler
code compiler
processing
Processing code compiler
electronics
notes about electronics
laboratory
laboratory
logggin
login/logout
File
new code
open code
save code
export code
participates in the laboratory (as student)
begin a laboratory (as teacher)
login
Edit
undo
redo
select all
invert selection
deselect
select setup
select loop
After the
row #1
row #2
row #3
row #4
row #5
row #6
row #7
row #8
row #9
last row 10
move
selected rows.
copy
selected rows.
past
from the clipboard.
Copy in the clipboard
selected rows,
for another code.
delete
selected rows.
Tooling
Add variable
tooling default
"Arduino Esplora"
"Arduino Robot"
Danger Shield - Sparkfun
CodeShield
LED
Add a green led
Add a yellow led
Add a red led
Add a blue led
Add a RGB led
Add bicolor led
Add LED matrix
Add a 7 segments led
actuators
Add a speaker
Add an ultrasonic sensor
Add a motor
Add a servo
Add a relay
Add a IR emitter
Add a display lcd
sensors
Add a button
Add a switch
Add a potentiometer
Add an encoder
Add a photoresistor
Add a temperature sensor
Add a humidity sensor
Add a microphone
Add an ultrasonic sensor
Add a remote control IR
Add a IR receiver
Add a generic actuator
Add a generic sensor
Actions
wait for a time
switch off / switch on
modulate the voltage
drive servo motor
play a note
read from a sensor
detects the status of a button
reads the duration of an impulse
transform a variable
if that happens do this
repeat n times
new function
call a function
Add a note
Add a marker
generate a random number
milliseconds
read from the serial port
write on the serial port
write on a display LCD
View
italian
english
style
clear
style
space
style
classic
larger character
smaller character
pages
electricity
guide
contacts
tooling
row:2
pin0
pin1
pin2
pin3˜
pin4
pin5˜
pin6˜
pin7
pin8
pin9˜
pin10˜
pin11˜
pin12
pin13
pinA0
pinA1
pinA2
pinA3
pinA4
pinA5
row:4
pin0
pin1
pin2
pin3˜
pin4
pin5˜
pin6˜
pin7
pin8
pin9˜
pin10˜
pin11˜
pin12
pin13
pinA0
pinA1
pinA2
pinA3
pinA4
pinA5
engaged pins: 2
declare variables
riga:0
=
integer
floating-point
text
array
riga:1
=
integer
floating-point
text
array
main
row:5
the variable
...
value
previous_value
is equal to... read the sensor:
...
_ricevitoreIR
row:6
IF HAPPENS THAT
...
value
previous_value
is greater than
is less than
is equal to
is not equal to
...
HIGH
LOW
value
previous_value
an even if/or if...
row:7
write on the serial:
...
value
previous_value
new line
row:8
the variable
...
value
previous_value
increases
decrease
multiplies
divides
is equal to
is equal to the formula
...
HIGH
LOW
value
previous_value
row:9
(close the cycle)
row:10
WAIT
milliseconds
actions
new function
call a function
messaggi
...
file
di
clear
space
classic
select all
invert selection
deselect
select setup
select loop
After the
1th row
2th row
3th row
4th row
5th row
6th row
7th row
8th row
9th row
last row
move
the selected rows.
copy
the selected rows.
past
from the clipboard.
copy in the clipboard
the selected rows.
erase
the selected rows.
components
actions
wait
switch off / switch on
modulate the voltage
drive servo motor
play a note
read from a sensor
detects the status of a button
reads the duration of an impulse
transform a variable
if that happens do this
repeat n times
new function
call a function
Add a note
Add a marker
generate a random number
milliseconds
reads from the serial port
write on the serial port
write on a display LCD
//programma: remote1 //******* pin ******** //******* declare ******** #include
; //library to work with the infraredint value=0;//declares the variable int previous_value=0;//declares the variable const int pin_ricevitoreIR=0;//pin IR receiver IRrecv irrecv(pin_ricevitoreIR); //imposto il pin all'oggetto irrecv, istanza della classe IRrecv decode_results risultati;//I merged the decoding in the variable risultati const int pin_led_13=13;//pin of _led_13 //********** setup ********** void setup(){ irrecv.enableIRIn(); //enable IR receiver pinMode(pin_led_13,OUTPUT); Serial.begin(9600); // Initialize the serial } //********** loop ********** void loop() { if (irrecv.decode(&risultati)) { //controllo se il segnale di decodifica è valido value=risultati.value; //legge il valore decodificato irrecv.resume(); //rimette il ricevitore nella condizione di attesa del segnale successivo } if(value!=previous_value){ Serial.print("codice_tasto:");//writes on the serial Serial.print(value);//writes on the serial previous_value=value; } delay(50);//attendi };//end loop //powered by "Arduinomio" (C) //www.mastrohora.it
copy/past in Arduino
logout