• +1-617-874-1011 (US)
  • +44-117-230-1145 (UK)
Live Chat
Follow Us:

SIT123: Data Capture Technologies Lab Report 2

In this task, we will attach sensors to the Arduino board, and collect sensor data. Similar to last week, we will use software engineering methods to plan and organise our exercise.

Hardware Required

Arduino Board 
USB cable
HCSR505 PIR (Passive Infra Red) Motion Detector
DHT22 Temperature and Humidity Sensor
DFrobot Soil Moisture Sensor
Male to Female Dupont Jumper Wires
Male to Male Dupont Jumper Wires
	
Software Required
Arduino programming environment

Task Objective

For this task, your tutor/lecturer will be your client. Here are your client’s requirements:

  • “We have an Arduino board and some sensors. We need to be able to measure air temperature, humidity, motion, and soil moisture, and see the collected data in real-time on the computer screen.”

Task Submission Details

There are 4 questions in this task. Answer all of them in this word document itself and submit to unit site.

Q1: Consider the given Task Objective. Think about how this simple system can be decomposed to ‘Sense-Think-Act’ as discussed in class (lecture).

  • What is the ‘sensing’ requirement in this system, if any?
  • What is the ‘thinking’ requirement in this system, if any?
  • What is the ‘acting’ requirement in this system, if any?

Q2: PIR Motion Detector

Please refer to the provided ‘Sensing Motion Activity Sheet’ and follow the steps.

  • Refer to the given code in HCSR505motion.ino. What does the following line mean?

    Serial.begin(9600);

  • If the Arduino transfers data at 4800 bits per second and you're sending 12 bytes of data, how long does it take to send over this information?
  • What is a simple strategy to test this program to make sure it is working as given in the requirements?
  • Take a screenshot of your Serial Monitor displaying motion data logs. Add the image here.
  • Run your program for three minutes. In that time, make sure the sensor can detect ‘Active’ as well as ‘Inactive’ data by creating some movement for it to detect. Retrieve the collected data as text file and save it your computer’s hard drive, naming it ‘lab2_motionData.txt’. Upload ‘lab2_motionData.txt’ with this lab report.

Q3: Temperature and Humidity Sensor

  • Please refer to the provided ‘Sensing Temperature and Humidity Activity Sheet’ and follow the steps. Consider the given code in the activity sheet and fill the table below. The first row is completed for you.

    term

    explanation

    example usage from code

    variable

    A variable is a place to store a piece of data. It has a name, a value, and a type.

    float temp;

    library

    comment

  • A spec of the DHT22 sensor is given in the link below. It mentions that the sampling rate is 0.5 Hz. https://tronixlabs.com.au/sensors/humidity/dht22-temperature-and-humidity-sensor-australia/
    • What does the sampling rate mean?
    • Where is this used in the Arduino code?
  • What is a simple strategy to test this program to make sure it is working as given in the requirements?
  • Take a screenshot of your Serial Monitor displaying temperature & humidity sensor data logs. Add the image here.
  • Run your program for five minutes. Retrieve the collected data as text file and save it your computer’s hard drive, naming it ‘lab2_temperatureData.txt’. Upload ‘lab2_temperatureData.txt’ with this lab report.

Q4: Soil Moisture Sensor

Please refer to the provided ‘Sensing Soil Moisture Activity Sheet’ and follow the steps.

  • Refer to the given code in DFRobotSoilMoisture.ino. What does the following line do?

    val = analogRead(0);

  • How is analogRead different than digitalRead?

    [Hint: we used digitalRead in the code for HCSR505 PIR Motion detector]

  • What is a simple strategy to test this program to make sure it is working as given in the requirements?
  • Take a screenshot of your Serial Monitor displaying soil moisture sensor data logs. Add the image here.
  • Run your program for three minutes. Experiment testing the sensor in the air, in water & wet tissue. Retrieve the collected data as text file and save it your computer’s hard drive, naming it ‘lab2_soilMoistureData.txt’. Upload ‘lab2_soilMoistureData.txt’ with this lab report.

Important: When you are finished, gently unplug the jumper cables from the Arduino pins and the sensor pins. Store the sensor carefully inside the zip lock bag and place it inside the plastic box.

SIT123: Data Capture Technologies Lab Report 2, Assignment help, Australian assignment help, Australian Homework help, assignment help Australia, Homework help Australia, help with assignment

Assignment Help Australia Assignment Help Australia

Australia University Assignments