SlideShare a Scribd company logo
1 of 2
Download to read offline
Ángela Núñez Pérez FEEDBACK UD6 ROBÓTICA
CÓDIGO COCHE ROBOT
//definimos el shield L298n
#define ENA 5 //Puente motor 1-2: digital 5
#define ENB 6 //Puente motor 3-4: digital 6
#define IN1 7 //Motor 1 (delantero izquierdo): digital 7
#define IN2 8 //Motor 2 (trasero izquierdo): digital 8
#define IN3 9 //Motor 3 (trasero derecho): digital 9
#define IN4 11 //Motor 4 (delantero derecho): digital 11
//informamos de los pines digitales de salida
void setup() {
pinMode(IN1, OUTPUT);
pinMode(IN2, OUTPUT);
pinMode(IN3, OUTPUT);
pinMode(IN4, OUTPUT);
pinMode(ENA, OUTPUT);
pinMode(ENB, OUTPUT);
digitalWrite(ENA, HIGH);
digitalWrite(ENB, HIGH);
}
void loop() {
digitalWrite(IN1, HIGH);
digitalWrite(IN2, LOW);
digitalWrite(IN3, LOW);
digitalWrite(IN4, HIGH); //go forward 1 second
delay(1000);
digitalWrite(IN1, LOW);
digitalWrite(IN2, LOW);
digitalWrite(IN3, LOW);
digitalWrite(IN4, LOW); //stop 0.5 seconds
delay(500);
digitalWrite(IN1, LOW);
digitalWrite(IN2, HIGH);
digitalWrite(IN3, LOW);
digitalWrite(IN4, HIGH); //turn left 0.5 seconds
delay(500);
digitalWrite(IN1, HIGH);
digitalWrite(IN2, LOW);
digitalWrite(IN3, LOW);
digitalWrite(IN4, HIGH); //go forward 1 second
Ángela Núñez Pérez FEEDBACK UD6 ROBÓTICA
delay(1000);
digitalWrite(IN1, LOW);
digitalWrite(IN2, LOW);
digitalWrite(IN3, LOW);
digitalWrite(IN4, LOW); //stop 0.5 seconds
delay(500);
digitalWrite(IN1, HIGH);
digitalWrite(IN2, LOW);
digitalWrite(IN3, HIGH);
digitalWrite(IN4, LOW); //turn right 0.5 seconds
delay(500);
digitalWrite(IN1, HIGH);
digitalWrite(IN2, LOW);
digitalWrite(IN3, LOW);
digitalWrite(IN4, HIGH); //go forward 1 second
delay(1000);
}

More Related Content

What's hot

Fanuc alarms fanuc series 15 alarm codes
Fanuc alarms fanuc series 15 alarm codesFanuc alarms fanuc series 15 alarm codes
Fanuc alarms fanuc series 15 alarm codesSoekarno Revolusi
 
Zed bull key programmer function list
Zed bull key programmer function listZed bull key programmer function list
Zed bull key programmer function listOBD365
 
Advanced motion controls dr100ee30a40ndc
Advanced motion controls dr100ee30a40ndcAdvanced motion controls dr100ee30a40ndc
Advanced motion controls dr100ee30a40ndcElectromate
 
Scheme logic implement pwr plant cntrl
Scheme logic implement pwr plant cntrlScheme logic implement pwr plant cntrl
Scheme logic implement pwr plant cntrlmichaeljmack
 
Embedded Systems Project Based Training|Engineering Projects,Summer Training
Embedded Systems Project Based Training|Engineering Projects,Summer TrainingEmbedded Systems Project Based Training|Engineering Projects,Summer Training
Embedded Systems Project Based Training|Engineering Projects,Summer TrainingTechnogroovy
 
Advanced motion controls mc1xdz01
Advanced motion controls mc1xdz01Advanced motion controls mc1xdz01
Advanced motion controls mc1xdz01Electromate
 
Advanced motion controls mc1xdz
Advanced motion controls mc1xdzAdvanced motion controls mc1xdz
Advanced motion controls mc1xdzElectromate
 
Advanced motion controls dr100ee100a40ndc
Advanced motion controls dr100ee100a40ndcAdvanced motion controls dr100ee100a40ndc
Advanced motion controls dr100ee100a40ndcElectromate
 
Advanced motion controls mc1xzdcr
Advanced motion controls mc1xzdcrAdvanced motion controls mc1xzdcr
Advanced motion controls mc1xzdcrElectromate
 
HIS 2017 David Oswald- Your car is not a safe box - breaking automotive keyle...
HIS 2017 David Oswald- Your car is not a safe box - breaking automotive keyle...HIS 2017 David Oswald- Your car is not a safe box - breaking automotive keyle...
HIS 2017 David Oswald- Your car is not a safe box - breaking automotive keyle...jamieayre
 
Advanced motion controls dr100ee60a40ndc
Advanced motion controls dr100ee60a40ndcAdvanced motion controls dr100ee60a40ndc
Advanced motion controls dr100ee60a40ndcElectromate
 
Dam gate open close lpc prog
Dam gate open close lpc progDam gate open close lpc prog
Dam gate open close lpc prognikhil dixit
 

What's hot (18)

Fanuc alarms fanuc series 15 alarm codes
Fanuc alarms fanuc series 15 alarm codesFanuc alarms fanuc series 15 alarm codes
Fanuc alarms fanuc series 15 alarm codes
 
Fanuc 21i alarm codes
Fanuc 21i alarm codesFanuc 21i alarm codes
Fanuc 21i alarm codes
 
Fanuc 10 alarm list
Fanuc 10 alarm listFanuc 10 alarm list
Fanuc 10 alarm list
 
Fanuc 15i alarms
Fanuc 15i alarmsFanuc 15i alarms
Fanuc 15i alarms
 
Fanuc alarms fanuc 6 alarms
Fanuc alarms fanuc 6 alarmsFanuc alarms fanuc 6 alarms
Fanuc alarms fanuc 6 alarms
 
Zed bull key programmer function list
Zed bull key programmer function listZed bull key programmer function list
Zed bull key programmer function list
 
Advanced motion controls dr100ee30a40ndc
Advanced motion controls dr100ee30a40ndcAdvanced motion controls dr100ee30a40ndc
Advanced motion controls dr100ee30a40ndc
 
Scheme logic implement pwr plant cntrl
Scheme logic implement pwr plant cntrlScheme logic implement pwr plant cntrl
Scheme logic implement pwr plant cntrl
 
Embedded Systems Project Based Training|Engineering Projects,Summer Training
Embedded Systems Project Based Training|Engineering Projects,Summer TrainingEmbedded Systems Project Based Training|Engineering Projects,Summer Training
Embedded Systems Project Based Training|Engineering Projects,Summer Training
 
Advanced motion controls mc1xdz01
Advanced motion controls mc1xdz01Advanced motion controls mc1xdz01
Advanced motion controls mc1xdz01
 
Advanced motion controls mc1xdz
Advanced motion controls mc1xdzAdvanced motion controls mc1xdz
Advanced motion controls mc1xdz
 
Advanced motion controls dr100ee100a40ndc
Advanced motion controls dr100ee100a40ndcAdvanced motion controls dr100ee100a40ndc
Advanced motion controls dr100ee100a40ndc
 
Advanced motion controls mc1xzdcr
Advanced motion controls mc1xzdcrAdvanced motion controls mc1xzdcr
Advanced motion controls mc1xzdcr
 
HIS 2017 David Oswald- Your car is not a safe box - breaking automotive keyle...
HIS 2017 David Oswald- Your car is not a safe box - breaking automotive keyle...HIS 2017 David Oswald- Your car is not a safe box - breaking automotive keyle...
HIS 2017 David Oswald- Your car is not a safe box - breaking automotive keyle...
 
Advanced motion controls dr100ee60a40ndc
Advanced motion controls dr100ee60a40ndcAdvanced motion controls dr100ee60a40ndc
Advanced motion controls dr100ee60a40ndc
 
Assignment#4a
Assignment#4aAssignment#4a
Assignment#4a
 
Dam gate open close lpc prog
Dam gate open close lpc progDam gate open close lpc prog
Dam gate open close lpc prog
 
Fanuc 10
Fanuc 10Fanuc 10
Fanuc 10
 

Similar to Feedback ud6.

F9 microkernel app development part 2 gpio meets led
F9 microkernel app development part 2 gpio meets ledF9 microkernel app development part 2 gpio meets led
F9 microkernel app development part 2 gpio meets ledBenux Wei
 
Robotic Car Controlled over Bluetooth with Obstacle Avoidance
Robotic Car Controlled over Bluetooth with Obstacle AvoidanceRobotic Car Controlled over Bluetooth with Obstacle Avoidance
Robotic Car Controlled over Bluetooth with Obstacle Avoidancekiet group of institution
 
Musical Machines and Flapping Phones
Musical Machines and Flapping PhonesMusical Machines and Flapping Phones
Musical Machines and Flapping PhonesNeil Mendoza
 
Arduino bt mobile robot r2.0
Arduino bt mobile robot r2.0Arduino bt mobile robot r2.0
Arduino bt mobile robot r2.0Fajar Baskoro
 
I made some more expansion board for M5Stack
I made some more expansion  board for M5StackI made some more expansion  board for M5Stack
I made some more expansion board for M5StackMasawo Yamazaki
 
[가상편] 하드웨어에 생명을 주는 아두이노
[가상편] 하드웨어에 생명을 주는 아두이노[가상편] 하드웨어에 생명을 주는 아두이노
[가상편] 하드웨어에 생명을 주는 아두이노Chiwon Song
 
Arduino programming.pptx
Arduino programming.pptxArduino programming.pptx
Arduino programming.pptxChithraDiljith
 
Combine the keypad and LCD codes in compliance to the following requ.pdf
Combine the keypad and LCD codes in compliance to the following requ.pdfCombine the keypad and LCD codes in compliance to the following requ.pdf
Combine the keypad and LCD codes in compliance to the following requ.pdfforwardcom41
 
Codigo fuente
Codigo fuenteCodigo fuente
Codigo fuenteBlackD10
 
Advanced motion controls dx15co8 src
Advanced motion controls dx15co8 srcAdvanced motion controls dx15co8 src
Advanced motion controls dx15co8 srcElectromate
 
Advanced motion controls dx15co8
Advanced motion controls dx15co8Advanced motion controls dx15co8
Advanced motion controls dx15co8Electromate
 
Powerful Electronics with Arduino
Powerful Electronics with ArduinoPowerful Electronics with Arduino
Powerful Electronics with ArduinoAbdallah Hodieb
 
Internet of thing: Trabajando con Arduino y Visual Studio
Internet of thing: Trabajando con Arduino y Visual StudioInternet of thing: Trabajando con Arduino y Visual Studio
Internet of thing: Trabajando con Arduino y Visual StudioBruno Capuano
 
OPAL-RT RT14: New hardware presentation
OPAL-RT RT14: New hardware presentationOPAL-RT RT14: New hardware presentation
OPAL-RT RT14: New hardware presentationOPAL-RT TECHNOLOGIES
 

Similar to Feedback ud6. (20)

F9 microkernel app development part 2 gpio meets led
F9 microkernel app development part 2 gpio meets ledF9 microkernel app development part 2 gpio meets led
F9 microkernel app development part 2 gpio meets led
 
Robotic Car Controlled over Bluetooth with Obstacle Avoidance
Robotic Car Controlled over Bluetooth with Obstacle AvoidanceRobotic Car Controlled over Bluetooth with Obstacle Avoidance
Robotic Car Controlled over Bluetooth with Obstacle Avoidance
 
Praktek ARDUINO
Praktek ARDUINOPraktek ARDUINO
Praktek ARDUINO
 
Compteur ARDUINO
Compteur ARDUINOCompteur ARDUINO
Compteur ARDUINO
 
Musical Machines and Flapping Phones
Musical Machines and Flapping PhonesMusical Machines and Flapping Phones
Musical Machines and Flapping Phones
 
4x4
4x44x4
4x4
 
Arduino bt mobile robot r2.0
Arduino bt mobile robot r2.0Arduino bt mobile robot r2.0
Arduino bt mobile robot r2.0
 
Presentation1
Presentation1Presentation1
Presentation1
 
I made some more expansion board for M5Stack
I made some more expansion  board for M5StackI made some more expansion  board for M5Stack
I made some more expansion board for M5Stack
 
[가상편] 하드웨어에 생명을 주는 아두이노
[가상편] 하드웨어에 생명을 주는 아두이노[가상편] 하드웨어에 생명을 주는 아두이노
[가상편] 하드웨어에 생명을 주는 아두이노
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
 
Arduino dtmf controlled robot
Arduino dtmf controlled robotArduino dtmf controlled robot
Arduino dtmf controlled robot
 
Arduino programming.pptx
Arduino programming.pptxArduino programming.pptx
Arduino programming.pptx
 
Combine the keypad and LCD codes in compliance to the following requ.pdf
Combine the keypad and LCD codes in compliance to the following requ.pdfCombine the keypad and LCD codes in compliance to the following requ.pdf
Combine the keypad and LCD codes in compliance to the following requ.pdf
 
Codigo fuente
Codigo fuenteCodigo fuente
Codigo fuente
 
Advanced motion controls dx15co8 src
Advanced motion controls dx15co8 srcAdvanced motion controls dx15co8 src
Advanced motion controls dx15co8 src
 
Advanced motion controls dx15co8
Advanced motion controls dx15co8Advanced motion controls dx15co8
Advanced motion controls dx15co8
 
Powerful Electronics with Arduino
Powerful Electronics with ArduinoPowerful Electronics with Arduino
Powerful Electronics with Arduino
 
Internet of thing: Trabajando con Arduino y Visual Studio
Internet of thing: Trabajando con Arduino y Visual StudioInternet of thing: Trabajando con Arduino y Visual Studio
Internet of thing: Trabajando con Arduino y Visual Studio
 
OPAL-RT RT14: New hardware presentation
OPAL-RT RT14: New hardware presentationOPAL-RT RT14: New hardware presentation
OPAL-RT RT14: New hardware presentation
 

More from ngelaNezPrez

Ejercicio feedback 5 resuelto.
Ejercicio feedback 5 resuelto.Ejercicio feedback 5 resuelto.
Ejercicio feedback 5 resuelto.ngelaNezPrez
 
Feedback 1 resuelto.
Feedback 1 resuelto.Feedback 1 resuelto.
Feedback 1 resuelto.ngelaNezPrez
 
Proyecto final. Entornos virtuales
Proyecto final. Entornos virtualesProyecto final. Entornos virtuales
Proyecto final. Entornos virtualesngelaNezPrez
 
Proyecto final apps.
Proyecto final apps.Proyecto final apps.
Proyecto final apps.ngelaNezPrez
 
Proyecto final. crear logotipo
Proyecto final. crear logotipoProyecto final. crear logotipo
Proyecto final. crear logotipongelaNezPrez
 
Proyecto final. Doblaje y subtitulación.
Proyecto final. Doblaje y subtitulación. Proyecto final. Doblaje y subtitulación.
Proyecto final. Doblaje y subtitulación. ngelaNezPrez
 
Feedback ud5. Herramientas para evaluar. (1)
Feedback ud5. Herramientas para evaluar. (1)Feedback ud5. Herramientas para evaluar. (1)
Feedback ud5. Herramientas para evaluar. (1)ngelaNezPrez
 
Feedback ud4. redes sociales. (1)
Feedback ud4. redes sociales. (1)Feedback ud4. redes sociales. (1)
Feedback ud4. redes sociales. (1)ngelaNezPrez
 
Feedback 3. 5 herramientas (2)
Feedback 3. 5 herramientas (2)Feedback 3. 5 herramientas (2)
Feedback 3. 5 herramientas (2)ngelaNezPrez
 
Recursos REA y RED. feedback 2.
Recursos REA y RED. feedback 2. Recursos REA y RED. feedback 2.
Recursos REA y RED. feedback 2. ngelaNezPrez
 
Plataforma lms. feedback ud1 (1)
Plataforma lms. feedback ud1 (1)Plataforma lms. feedback ud1 (1)
Plataforma lms. feedback ud1 (1)ngelaNezPrez
 
4 recursos digitales
4 recursos digitales4 recursos digitales
4 recursos digitalesngelaNezPrez
 
Los animales invertebrados
Los animales invertebradosLos animales invertebrados
Los animales invertebradosngelaNezPrez
 
Uso de redes sociales en la docencia. docx
Uso de redes sociales en la docencia. docxUso de redes sociales en la docencia. docx
Uso de redes sociales en la docencia. docxngelaNezPrez
 
Feedback 2 e centro
Feedback 2 e centroFeedback 2 e centro
Feedback 2 e centrongelaNezPrez
 

More from ngelaNezPrez (20)

Ejercicio feedback 5 resuelto.
Ejercicio feedback 5 resuelto.Ejercicio feedback 5 resuelto.
Ejercicio feedback 5 resuelto.
 
Feedback 3.
Feedback 3.Feedback 3.
Feedback 3.
 
Feedback ud2.
Feedback ud2. Feedback ud2.
Feedback ud2.
 
Feedback 1 resuelto.
Feedback 1 resuelto.Feedback 1 resuelto.
Feedback 1 resuelto.
 
Proyecto final. Entornos virtuales
Proyecto final. Entornos virtualesProyecto final. Entornos virtuales
Proyecto final. Entornos virtuales
 
Proyecto final apps.
Proyecto final apps.Proyecto final apps.
Proyecto final apps.
 
Proyecto final. crear logotipo
Proyecto final. crear logotipoProyecto final. crear logotipo
Proyecto final. crear logotipo
 
Proyecto final. Doblaje y subtitulación.
Proyecto final. Doblaje y subtitulación. Proyecto final. Doblaje y subtitulación.
Proyecto final. Doblaje y subtitulación.
 
Feedback ud5. Herramientas para evaluar. (1)
Feedback ud5. Herramientas para evaluar. (1)Feedback ud5. Herramientas para evaluar. (1)
Feedback ud5. Herramientas para evaluar. (1)
 
Feedback ud4. redes sociales. (1)
Feedback ud4. redes sociales. (1)Feedback ud4. redes sociales. (1)
Feedback ud4. redes sociales. (1)
 
Feedback 3. 5 herramientas (2)
Feedback 3. 5 herramientas (2)Feedback 3. 5 herramientas (2)
Feedback 3. 5 herramientas (2)
 
Recursos REA y RED. feedback 2.
Recursos REA y RED. feedback 2. Recursos REA y RED. feedback 2.
Recursos REA y RED. feedback 2.
 
Plataforma lms. feedback ud1 (1)
Plataforma lms. feedback ud1 (1)Plataforma lms. feedback ud1 (1)
Plataforma lms. feedback ud1 (1)
 
4 recursos digitales
4 recursos digitales4 recursos digitales
4 recursos digitales
 
Los animales invertebrados
Los animales invertebradosLos animales invertebrados
Los animales invertebrados
 
Medio ambiente
Medio ambiente Medio ambiente
Medio ambiente
 
Los ecosistemas
Los ecosistemasLos ecosistemas
Los ecosistemas
 
Uso de redes sociales en la docencia. docx
Uso de redes sociales en la docencia. docxUso de redes sociales en la docencia. docx
Uso de redes sociales en la docencia. docx
 
Dislexia
Dislexia Dislexia
Dislexia
 
Feedback 2 e centro
Feedback 2 e centroFeedback 2 e centro
Feedback 2 e centro
 

Recently uploaded

Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxAnaBeatriceAblay2
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 

Recently uploaded (20)

Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 

Feedback ud6.

  • 1. Ángela Núñez Pérez FEEDBACK UD6 ROBÓTICA CÓDIGO COCHE ROBOT //definimos el shield L298n #define ENA 5 //Puente motor 1-2: digital 5 #define ENB 6 //Puente motor 3-4: digital 6 #define IN1 7 //Motor 1 (delantero izquierdo): digital 7 #define IN2 8 //Motor 2 (trasero izquierdo): digital 8 #define IN3 9 //Motor 3 (trasero derecho): digital 9 #define IN4 11 //Motor 4 (delantero derecho): digital 11 //informamos de los pines digitales de salida void setup() { pinMode(IN1, OUTPUT); pinMode(IN2, OUTPUT); pinMode(IN3, OUTPUT); pinMode(IN4, OUTPUT); pinMode(ENA, OUTPUT); pinMode(ENB, OUTPUT); digitalWrite(ENA, HIGH); digitalWrite(ENB, HIGH); } void loop() { digitalWrite(IN1, HIGH); digitalWrite(IN2, LOW); digitalWrite(IN3, LOW); digitalWrite(IN4, HIGH); //go forward 1 second delay(1000); digitalWrite(IN1, LOW); digitalWrite(IN2, LOW); digitalWrite(IN3, LOW); digitalWrite(IN4, LOW); //stop 0.5 seconds delay(500); digitalWrite(IN1, LOW); digitalWrite(IN2, HIGH); digitalWrite(IN3, LOW); digitalWrite(IN4, HIGH); //turn left 0.5 seconds delay(500); digitalWrite(IN1, HIGH); digitalWrite(IN2, LOW); digitalWrite(IN3, LOW); digitalWrite(IN4, HIGH); //go forward 1 second
  • 2. Ángela Núñez Pérez FEEDBACK UD6 ROBÓTICA delay(1000); digitalWrite(IN1, LOW); digitalWrite(IN2, LOW); digitalWrite(IN3, LOW); digitalWrite(IN4, LOW); //stop 0.5 seconds delay(500); digitalWrite(IN1, HIGH); digitalWrite(IN2, LOW); digitalWrite(IN3, HIGH); digitalWrite(IN4, LOW); //turn right 0.5 seconds delay(500); digitalWrite(IN1, HIGH); digitalWrite(IN2, LOW); digitalWrite(IN3, LOW); digitalWrite(IN4, HIGH); //go forward 1 second delay(1000); }