Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Arduino vs S4A

31,237 views

Published on

Analogías entre el lenguaje empleado en S4A (Scratch for Arduino) y Arduino

Published in: Education
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THAT BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m77EgH } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m77EgH } ......................................................................................................................... Download Full doc Ebook here { http://bit.ly/2m77EgH } ......................................................................................................................... Download PDF EBOOK here { http://bit.ly/2m77EgH } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m77EgH } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m77EgH } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book that can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer that is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story That Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money That the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths that Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Arduino vs S4A

  1. 1. Arduino vs S4AIES Vicente Aleixandre 4ºESO Curso 2012/13 José Pujol
  2. 2. ÍndicePresentación para ver las analogías entre S4A y Arduino● Estructuras de control: ○ Por siempre ○ Repetir ○ Si ○ Si... si no ○ Hacer x siempre que... ○ Break ○ Comparador● Esperar● Escritura/ Lectura de pines ○ Escritura Digital ○ Lectura Digital ○ Escritura Analógica ○ Lectura Analógica
  3. 3. Índice● Variables● Operadores: ○ Aritméticos ○ Comparativos ○ Booleanos● Número aleatorio● Comunicación● Comentarios● Ejemplos: ○ Blink
  4. 4. Por siempre S4A ARDUINO void loop() { } PabloGallardo
  5. 5. Repetir nº de vecesS4A ARDUINO José Pujol
  6. 6. Condición SiS4A ARDUINO if (algunaVariable > 50) { } Alejandro Navarro
  7. 7. Condición: Si... Si no S4A ARDUINO if () { //Acción A } else { //Acción B } Marci de Jorge González
  8. 8. Comparador múltipleS4A ARDUINO María Sánchez Rubio
  9. 9. Hacer X siempre que...S4A ARDUINO María Sánchez Rubio
  10. 10. Break ( detener)S4A ARDUINO break ; // se usa para salir de los bucles for, do, while o switch case José Antonio Rufo López
  11. 11. Esperar X segundosS4A ARDUINO delay(2000); delay(1000); . José Magdaleno
  12. 12. Encender/Apagar Digital S4A ARDUINO Victoria Pecellín Vargas
  13. 13. Lectura DigitalS4A ARDUINO Victoria Pecellín Vargas
  14. 14. Escritura Analógica- PWMS4A ARDUINO analogWrite (5,255); Pin: 5 Valor: 0-255 Marta Sánchez Egea
  15. 15. Lectura AnalógicaS4A ARDUINO analogRead (A0); JP
  16. 16. VariablesS4A ARduino int counter=0; counter=counter+1; counter++; Pablo Gallardo
  17. 17. Operadores AritméticosS4A ARDUINO + Suma dos operandos 2+4 - Resta 2 operandos 2-4 * Multiplica 2 operandos 2*4 / Divide 2 operandos 2/4 José Antonio Rufo López
  18. 18. Operadores Comparativos S4A ARDUINO x < y (x es menor a y) x > y (x es mayor a y) x == y (x es igual a y) x != y (x no es igual a y)En S4A estos operadores comparativos no existen x <= y (x es menor o igual a y) x >= y (x es mayor o igual a y) Zoila de la Rosa
  19. 19. Operadores BooleanosS4A ARDUINO && || !x Marco Gutierrez
  20. 20. Número AleatorioS4A ARDUINO numAleatorio = random (1 ,10); María Galve Contreras
  21. 21. Decir...S4A ARDUINO Ángel Luis Abela
  22. 22. ComentariosS4A ARDUINO // Comentario de una línea /* Comentario de múltiples líneas*/ Marta Sánchez Egea
  23. 23. Ejemplo: BlinkS4A ARDUINO void setup() {. pinMode(13, OUTPUT); } void loop() { digitalWrite(13, HIGH); delay(1000); digitalWrite(13, LOW); delay(1000); } José Magdaleno Sánchez
  24. 24. Arduino vs S4AIES Vicente Aleixandre 4ºESO Curso 2012/13 José Pujol
  25. 25. Ejemplo: Contador segundos S4A ARduino Ej: int x=1; do { Serial.println ("Hola"); delay (1000); x += 1; } while (x > 3) María Galve Contreras
  26. 26. Cadenas: String S4A Arduino char Str1[15]; char Str2[8] = {a, r, d, u, i, n, o}; char Str3[8] = {a, r, d, u, i, n, o, 0}; char Str4[ ] = "arduino"; char Str5[8] = "arduino"; char Str6[15] = "arduino"; Alejandro Navarro
  27. 27. Al Recibir: SubprogramaS4A Arduino int incomingByte = 0; // para el byte leido void setup() { Serial.begin(9600); // abre el puerto serie a 9600 bps } void loop() { // envia datos solamente cuando recibe datos if (Serial.available() > 0 ) { // lee el byte entrante: incomingByte = Serial.read(); // dice lo que ha recibido: Serial.print("He recibido: "); Serial.println(incomingByte, DEC); } }
  28. 28. S4A ArduinoMarco Gutierrez
  29. 29. AnalogReadS4A Arduino void loop() { val = analogRead(analogPin); // lee el valor de tensión del pin } David Cejudo de alarcón
  30. 30. AnalogWrite S4A ARDUINO void loop () { analogWrite(5, 255) (pin, valor) } Zoila de la Rosa
  31. 31. Repetir...S4A ARDUINO Marta Romero F
  32. 32. Decir..S4A ARDUINO Marta Romero F
  33. 33. Ejemplos: si/sinoS4A Arduino const int pulsPin = 1; int pulsEstado = 0; void setup () { Serial.begin (9600); pinMode (pulsPin, INPUT) void loop () { if (pulsEstado == HIGH); { delay (2000) Serial.println ("Hola"); delay (2000); } else { delay (2000) Serial.println ("Adios") delay (2000); } Marci de Jorge González

×