Arduino with lcd and pir motion sensor and dc motor 12v

i need some help for this project because its my final. and i do have some problem with this one. i want to do the coding but im just a beginner so i cant do it. can anyone help me for some coding to connect the lcd, pir motion sensor with dc motor 12v???? im begging you guys cause the deadline is almost near.

what have you done to learn?
I suppose you did not get the assignment last week...
show us what you tried to do.

Take them one at a time:

Build each machine first, then try to integrate them.

Hi
For any tax-free US$1,528,726.28, I do a simple sketch, with arduino, LCD, PIR and motor, in 2 days.

RV mineirin

Is that all? I'll take 4.

Hi @er_name_not_found
Send the order in 4 copies now. :grinning_face_with_smiling_eyes: :grin:

RV mineirin

Can you take a post-dated, 3rd party, out of state personal check that I spilled my coffee on?

i just copy and download the code from google or any website and i tried to verify it and its okay but i dont know if its suitable or not

#include <LiquidCrystal.h>

LiquidCrystal lcd(8, 9, 10, 11, 12, 13);
#define motor_RPS_pulse_ip 7
#define motor_PWM_pulse_ip 4
int motor_RPS_Ton,motor_RPS_Toff,PWM_Ton,PWM_Toff,PWM_T;
int PWM_duty,pulse_width=255,RPS,motor_RPS_period,RPM;
float voltage;

void setup()
{
pinMode(motor_RPS_pulse_ip,INPUT);
pinMode(motor_PWM_pulse_ip,INPUT);
lcd.begin(16, 4);
lcd.clear();
lcd.print("Pulse Width:");
lcd.setCursor(0,1);
lcd.print("PWM Volt:");
lcd.setCursor(0,2);
lcd.print("Speed(RPS):");
lcd.setCursor(0,3);
lcd.print("Speed(RPM):");
}
void loop()
{
analogWrite(3,pulse_width);
PWM_Ton= pulseIn(motor_PWM_pulse_ip,HIGH);
PWM_Toff=pulseIn(motor_PWM_pulse_ip,LOW);
delay(2000);
PWM_T = PWM_Ton+PWM_Toff;
PWM_duty = (PWM_Ton/PWM_T)100;
voltage = 0.12
PWM_duty;
lcd.setCursor(12,0);
lcd.print(PWM_duty);
lcd.print('%');
lcd.setCursor(9,1);
lcd.print(voltage);
lcd.print('V');
pulse_width-=15;
if(pulse_width==90) pulse_width = 255;
delay(3000);
}

This has gotten you through your course? What about actually learning the material?

I think it's time you face the consequences of not studying...
The world does not need more cheater who get good grades but don't have the skills.

2 Likes

Agreed.
Go to your instructor and admit your mistakes. You may or may not find leniency.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.