❓ Help Patulong sana Ardiuno

C++:
const int trigPin = 3;
const int echoPin = 2;

void setup() {
  Serial.begin(9600);
  pinMode(trigPin, OUTPUT);
  pinMode(echoPin, INPUT);
}

void loop() {
  long duration, cm, inches, feet;
 
  digitalWrite(trigPin, LOW);
  delayMicroseconds(2);
  digitalWrite(trigPin, HIGH);
  delayMicroseconds(10);
  digitalWrite(trigPin, LOW);
 
  duration = pulseIn(echoPin, HIGH);
 
  cm = duration / 29 / 2;
  inches = cm / 2.54;
  feet = inches / 12;
 
  Serial.print("Height: ");
  Serial.print(cm);
  Serial.print(" cm, ");
  Serial.print(inches);
  Serial.print(" in, ");
  Serial.print(feet);
  Serial.println(" ft");
 
  delay(1000);
}

sensors and materials used:
• LM35 to measure the temperature of the person
• HC-SR04 ultrasonic sensor to measure the height of a person
• Pulse Sensor to measure pulse n respiratory rate
• 20x4 LCD
• Mini thermal receipt printer
• Arduino uno

Overview:
So our product has up, down, right, left buttons that allow the user to navigate which sensor he wants to use, he can also choose if cm, inch or ft. if he wants to use for the height unit.
He also has a choice whether to print the recorded value using the mini thermal receipt printer or not. the pulse sensor can not only measure the pulse but also the respiratory rate.
 

About this Thread

  • 0
    Replies
  • 281
    Views
  • 1
    Participants
Last reply from:
Villain-In-Glasses

Trending Topics

Online now

Members online
371
Guests online
7,947
Total visitors
8,318

Forum statistics

Threads
2,329,563
Posts
29,248,728
Members
1,156,509
Latest member
Dkminifresh
Back
Top