PROGRAMAÇÃO MOTOR DE PASSO + ARDUINO + L298N

2 Pages • 91 Words • PDF • 110.7 KB
Uploaded at 2021-09-24 14:53

This document was submitted by our user and they confirm that they have the consent to share it. Assuming that you are writer or own the copyright of this document, report to us by using this DMCA report button.


// Conexoes modulo - Arduino int IN1 = 8; int IN2 = 9; int IN3 = 10; int IN4 = 11; void setup() { // Define os pinos como saida pinMode(IN1,OUTPUT); pinMode(IN2,OUTPUT); pinMode(IN3,OUTPUT); pinMode(IN4,OUTPUT); } int tempo = 10; void loop() { // Passo 1 digitalWrite(IN1, 1); digitalWrite(IN2, 0); digitalWrite(IN3, 0); digitalWrite(IN4, 1); delay(tempo); // Passo 2 digitalWrite(IN1, 0); digitalWrite(IN2, 1); digitalWrite(IN3, 0); digitalWrite(IN4, 1); delay(tempo); // Passo 3 digitalWrite(IN1, 0); digitalWrite(IN2, 1); digitalWrite(IN3, 1); digitalWrite(IN4, 0); delay(tempo); // Passo 4 digitalWrite(IN1, 1); digitalWrite(IN2, 0); digitalWrite(IN3, 1); digitalWrite(IN4, 0); delay(tempo); }
PROGRAMAÇÃO MOTOR DE PASSO + ARDUINO + L298N

Related documents

2 Pages • 91 Words • PDF • 110.7 KB

5 Pages • 732 Words • PDF • 662.4 KB

2 Pages • 173 Words • PDF • 982.4 KB

4 Pages • 1,551 Words • PDF • 1004.7 KB

5 Pages • 1,876 Words • PDF • 251.5 KB

4 Pages • 476 Words • PDF • 244 KB

3 Pages • 1,013 Words • PDF • 129.8 KB

10 Pages • 833 Words • PDF • 6.2 MB

3 Pages • 777 Words • PDF • 175.5 KB

21 Pages • 2,808 Words • PDF • 1.5 MB

15 Pages • 468 Words • PDF • 340.3 KB

20 Pages • 1,408 Words • PDF • 9.7 MB