You are on page 1of 1

06232 engranaje 47t

02073 servo
02028 filtro aire

#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
#include <Servo.h>

const char* ssid = "Wifi"; // Set WiFi Name of WiFi Router/AP/HotSpot AND
Esp8266 will connect TO it
const char* password = ""; // Set PassWord For WiFi
unsigned int localPort = 9876; // Set port number

//************************************************************

// Settings for Servo using Servo library

//************************************************************

const int chCount = 3;


Servo servoCh;
int chPin = 5;
int chVal = 90; // default value in microSeconds for PWM signals (middle)

//***************************************************************
// LM298 H-bridge Motor Driver Pins and Settings for one channel
//***************************************************************

int enA = 2 ; // Pwm signal Pin used to control Motor Speed (Lm298)
int IN1 = 13 ; // IN1 IN2 pins on lm298 to control Motor's direction of
rotation
int IN2 = 15 ;
int mid = 0 ; // Default PWM value for enA pin

//***************************************************************

char cmd[40];

// Make a character array/C string to store the Contents Read from the received
UDP Packet
// Cmd is the name of the UDP packet Buffer in which the command which is received
is stored

You might also like