//Left Sensor (LSP) on digitalPin 2 2//Right sensor (RSP) on digitalPin 3 //Left Motor connected to 4,5 digitalPins 5//Right Motor connected to 18,9 digitalPins int LMP 8; int LMN-9;1 int RMP 6; int RMN 7; void setup() { pinMode(LMP, OUTPUT); //Motor Pins are OUTPUT pinMode(LMN, OUTPUT); pinMode(RMP, OUTPUT); pinMode(RMN, OUTPUT); Serial.begin(9600); } void loop() { if (Serial.available()) [ String Direction Serial.readString(); { if (Direction "F") //Move Forward digitalWrite(LMP, HIGH); digitalWrite(LMN, LOW); digitalWrite(RMP, LOW); digitalWrite(RMN, HIGH); } else if (Direction = "B") { //Move backward digitalWrite(LMP, LOW); digitalWrite(LMN, HIGH); digitalWrite(RMP, HIGH); digitalWrite(RMN, LOW); } Vikas Sharma July 08, 2023
Develop an ALP to transmit message “MSBTE” serially at baud rate 4800 8bit data, 1 stop bit Assume crystal frequency of 11.0592 MHz. Vikas Sharma May 09, 2023
Write a program to multiply two 8-bit numbers and save the result in memory location 40H and 41H Vikas Sharma May 09, 2023
Draw the interfacing diagram of DAC to 8051. Write an ALP to generate triangular waveform using DAC Vikas Sharma May 09, 2023
Develop an ALP to rotate a stepper motor in clockwise direction connected at lower port pins of port-1 Draw suitable interfacing diagram Vikas Sharma May 08, 2023