Exámen Arduino 25/05/2016

https://docs.google.com/forms/d/1xrR_UIfKV8GmGSVTCBG2zZ0c74qhHO95YfiJE7UasSU/viewfo

Potenciómetro

int led1 = 5; // Declaración de puertos donde están los LEDs int led2 = 4; int led3 = 3; int led4 = 2; int potenciometro = 1; // Definición de donde está conectado el pot int lectura; // Variable donde se almacenará el resultado ADC void setup() {   pinMode (led1, OUTPUT); // Puertos

CALCULADOR DE RESISTENCIAS

http://www.percomnet.com/new/ventanaresistencia.p

ARDUINO LED PUSH BUTTON

/* PRACTICA NUMERO SESIÓN 6 Y 7 27/04/2016*/ //DECLARACIÓN DE VARIABLES int led = 4; //  VARIABLE LED PIN 4 int boton = 8; // VARIABLE BOTÓN PIN 8 int estado = 0; // AGREGAMOS UNA VARIABLE CON VALOR 0 void setup() {   pinMode (8, INPUT);  // DECLARAMOS COMO ENTRADA  BOTON  

Practica Servo if else if

Practica Servo #include <Servo.h> // Libreria ServomotoresServo miServo;int angulo = 90;void setup(){    miServo.attach(9);    Serial.begin(9600);}void loop(){    unsigned char comando=0;      if(Serial.available()){ 

ESTRATEGIA 3. Terminal / Serial.begin / Serial.print / Serial.println int num; void setup () {   Serial.begin (9600); // Hanilia e inicializa la Terminal a una velocidad   // de 9600 Bauds } void loop() {   Serial.println("Hola Alumno Robotix");   Serial.println("

Practica Final

 Sensor Ultrasónico Practica Final.. :) #include <Servo.h> const int trigger = 12; const int echo = 11; float dist, res; Servo sd; Servo si; int led1 = 7; int led2 = 6; int led3 = 5; int led4 = 4; void bargraph (int led1, int led2, int led3, int led4)// Función bargraph {