Advertisement
Advertisement

More Related Content

Advertisement

Perlduino - Interfaceando sua aplicação com o mundo real!

  1. Perl + Arduino Extendendo sua aplicação ao mundo real! http://rio.pm.org http://www.arduinrio.cc
  2. PWM (Modulacao por Largura de Pulso)
  3. Conversor Analogico<->Digital (ADC)
  4. int ledPin = 13; // LED connected to digital pin 13 void setup() { pinMode(ledPin, OUTPUT); // sets the digital pin as output } void loop() { digitalWrite(ledPin, HIGH); // sets the LED on delay(1000); // waits for a second digitalWrite(ledPin, LOW); // sets the LED off delay(1000); // waits for a second }
  5. void loop() { char pc_input; if (Serial.available()) { pc_input = Serial.read(); } if( pc_input == 'w') { if (Speed < 255){ Speed = Speed + 5; } go_forward(Speed); } if( pc_input == 's') { stopMotors(); } if( pc_input == 'a') { turn_left(10); } if( pc_input == 'd') { turn_right(10); } }
  6. Na Prática...
  7.  
  8. Arduino TV Out
  9. Agora é usar a imaginação e desenvolver! Perguntas?
Advertisement