Professional Documents
Culture Documents
ELECTRÓNICA INDUSTRIAL
Electricidad y electrónica
industrial
UNIDEG – SABES
Plantel San José Iturbide
Electricidad Y Electrónica
1
Unideg SABES Electricidad y Electrónica Industrial
ELECTRICIDAD Y
ELECTRÓNICA INDUSTRIAL
¿QUÉ ES ARDUINO?
¿PARA QUÉ SIRVE?
¿CONCEPTOS BÁSICOS?
HERRAMIENTAS DOCENTES
EJEMPLO DOMÓTICA
Redes de sensores
Robótica sencilla
Alarmas
Sistemas de comunicaciones
• Microcontrolador ATMega328
• Funcionamiento 5V
• Voltaje Entrada de voltaje (recomendado) 7-
12V
• Límites de voltaje 6-20V
• Digital I / O Pins 14 (de los cuales 6
proporcionar una salida PWM)
• 6 pines de entrada analógica DC
• Corriente de pines I / O 40 mA
• Memoria Flash de 32 KB (ATMega328) de los
cuales 0,5 KB utilizado por el gestor de
arranque
• SRAM 2KB (ATMega328)
• EEPROM 1KB (ATMega328)
• Velocidad del reloj de 16 MHz
Unideg SABES Electricidad y Electrónica Industrial
ELECTRICIDAD Y
ELECTRÓNICA INDUSTRIAL
Se ejecuta
una sola vez
Se ejecuta
Infinitamente
Mensajes y
errores
void setup() {
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
// Print a message to the LCD.
lcd.print("hello, world!");
}
void loop() {
// set the cursor to column 0, line 1
// (note: line 1 is the second row, since counting begins with 0):
lcd.setCursor(0, 1);
// print the number of seconds since reset:
lcd.print(millis()/1000);
}
#include "Ultrasonic.h"
Ultrasonic ultrasonic(11,10);//(Trig,Echo)
void setup() {
Serial.begin(9600);
}
void loop()
{
//output the distance in cm
Serial.println(ultrasonic.Ranging(CM));
delay(100);
}
Unideg SABES Electricidad y Electrónica Industrial