Question: we need to design a medica device. Please read the number of requirements and write the code based on the component connection to the Arduino
we need to design a medica device. Please read the number of requirements and write the code based on the component connection to the Arduino
The device shall output a message to the Serial Monitor to prompt the user to start it This message should include a disclaimer to the user, reminding them of what the working parameters of the device are.
The device shall output its status to an external screen, ie not the Serial Monitor. This can include options such as Waiting to startWorking Measuring... and so on Results from measurements should also be displayed on this screen.
The device shall measure a users skin resistance and shall display that on an external screen. If the skin resistance increases above a certain threshold value, to be determined empirically, the device shall measure and display the current air temperature and air humidity.
If the skin resistance has increased above the threshold value, AND the current air temperature is above the comfortable threshold value, to be determined empirically, the shall open a windowstart a fan by moving a motor to an ON position. The device should indicate this is happening by a displaying a message on the external screen for no less than five seconds
If the current air temperature decreases below the comfortable threshold value, or the user movesstands up the device shall close the windowstop the fan by moving the motor to an OFF position. The device should indicate this is happening by a displaying a message on the external screen for no less than five seconds
The components of the device connected to my Arduino the Grove Shield board and the codes to help you write the Arduino code better. But if you see they are not correct don't write them the initial pins for each components is from our lab session. The libraries that I added under each componates should be used in the Ardiuno codes.
One Air quality sensor connected to the A
The Arduino code starts with :
#include "AirQualitySensor.h
AirQualitySensor sensorA;
int airquality;
GSR Sensor board with leads connected to the A
The code starts with:
const int sensorpin A;
int sensorvalue ;
long sensorvalueaverage ;
int i;
variable for the skin resistance
long skinresistance ;
One temperature and humidity sensor connected to the pin
#include DHTh
#define DHTTYPE DHT Sensor type DHT
#define DHTPIN Which pin we are connected to
DHT dhtDHTPIN DHTTYPE;
float temperature ;
float humidity ;
One Servo motor connected to the pin
The code stared with :
#include
Servo motor;
int motorposition ; This is measured in degrees, initial starting position
One Pulse Oximeter sensor connected to the pin
One Grove Button connected to pin A this button can be used for user interaction if required and control the device
const int pushbuttonpin A;
const int timerbuttonpin A;
One Grove x LCD screen connected to pin
The Grove LISDHTR sensor is connected to the pin
The cods stared with ;
#include
#include rgblcd.h
rgblcd lcd;
Remember to install the libraries such AirQualitySensor, LCD Screen, temperature and humidity and Servo motor and etc
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
