Ver Mensaje Individual
  #1  
Antiguo 11-06-2015
Avatar de nlsgarcia
[nlsgarcia] nlsgarcia is offline
Miembro Premium
 
Registrado: feb 2007
Ubicación: Caracas, Venezuela
Posts: 2.206
Reputación: 21
nlsgarcia Tiene un aura espectacularnlsgarcia Tiene un aura espectacular
Aprender a programar un Arduino OnLine

Club Delphi,

Cita:
Empezado por UnoCero
...Los Arduinos son pequeñas computadoras, las cuales tienen puertos de entrada y salida, así como pines para conectar una variedad de componentes electrónicos...en Electronics from beginner to pro se tienen todos estos componentes de manera virtual, así como diferentes tipos de Arduino e incluso protoboards, donde se conectan los componentes cuando se hace un prototipo...


Un ejemplo básico de programación de Arduino OnLine:



Código PHP:
// Test Circuit-1 (Leds)
// 
// Made by nelson garcia
// License: GPL 3.0
// Downloaded from: https://123d.circuits.io/circuits/859172-test-circuit-1-leds

// Program Test Circuit-1 (Leds)
// Pin 1,2 and 3 has an LED connected on most Arduino boards.
int ledblue 1;
int ledgreen 2;
int ledred 3;

// the setup routine runs once when you press reset:
void setup() {
  
// initialize the digital pin as an output.
  
pinMode(ledblueOUTPUT);
  
pinMode(ledgreenOUTPUT);
  
pinMode(ledredOUTPUT);
}

// the loop routine runs over and over again forever:
void loop() {
  
// turn the LED on (HIGH is the voltage level)
  
digitalWrite(ledredHIGH);
  
digitalWrite(ledgreenHIGH);   
  
digitalWrite(ledblueHIGH);   
  
delay(500);               
  
// turn the LED off by making the voltage LOW
  
digitalWrite(ledblueLOW);
  
digitalWrite(ledgreenLOW);
  
digitalWrite(ledredLOW); 
  
delay(500);               

Ver la noticia completa en : Cómo aprender a programar un Arduino en línea y de forma gratuita

Información relacionada:


Nelson.
Responder Con Cita