Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

How to control the DC motor speed by Pulse Width Modulation Technique with the help of micro-processor by GSM technique?

1 answer below »
How to control the DC motor speed by Pulse Width Modulation Technique with the help of micro-processor by GSM technique?
Answered Same Day Dec 26, 2021

Solution

Robert answered on Dec 26 2021
134 Votes
Microcontroller program:
LCD module connections
sbit LCD_RS at PORTC2_bit;
sbit LCD_EN at PORTC3_bit;
sbit LCD_D4 at PORTC4_bit;
sbit LCD_D5 at PORTC5_bit;
sbit LCD_D6 at PORTC6_bit;
sbit LCD_D7 at PORTC7_bit;

sbitLCD_RS_Direction at DDC2_bit;
sbitLCD_EN_Direction at DDC3_bit;
sbit LCD_D4_Direction at DDC4_bit;
sbit LCD_D5_Direction at DDC5_bit;
sbit LCD_D6_Direction at DDC6_bit;
sbit LCD_D7_Direction at DDC7_bit;
End LCD module connections
sbitbuzer at PORTC1_bit;
Variables
int i = 0,h=1; char receivemy[10];
int received = 0;
const unsigned short VREF = 3.30;
unsignedinttemp_res = 0,cc=0,iii=0,NMEAI=0;
float temp;
char txt[15];
unsigned long timerd,timer;
char NMEAN[5];
charDataType[] = "xxxxxxxxxxxxxx";

char NMEA[] = "
";

,xxxx.xxx,x,xxxxx.xxx,x,x,xx,x.x,xxx.x,x,xx.x,x,,*xx";
char receive;
End Variables
void main()
{
DDC0_bit=0;DDC1_bit=1; DDB3_bit=1;DDD7_bit=1; DDD3_bit=1;DDD4_bit=1;
PWM1_Init(_PWM1_PHASE_CORRECT_MODE, _PWM1_PRESCALER_1024,
PWM1_NON_INVERTED,0);
PWM1_Start();
PORTB = 0xFF;
TRISB = 0xff;
Lcd_Init();
Initialize LCD
Lcd_Cmd(_LCD_CLEAR);
Clear display
Lcd_Cmd(_LCD_CURSOR_OFF);
Cursor off
Lcd_Out(2,1,"SPEED:");
UART1_Init(9600);
Initialize UART for GPS board connectivity
Delay_ms(7000);
UART1_Write_Text("AT\r");Delay_ms(500);
UART1_Write_Text("AT+CLIP=1\r");Delay_ms(500);
UART1_Write_Text("AT+CMGF=1\r"); Delay_ms(500);
UART1_Write_Text("ATE0\r"); Delay_ms(500);
UART1_Write_Text("AT+CPMS=\"SM\"\r"); Delay_ms(500);
...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here