Introduction

Your task

In this scenario, you take on the role of a full-stack developer tasked with automating thermostat functions of a meeting room to conserve energy. You will use the Core2 for AWS IoT EduKit reference hardware for the thermostat hardware and deploy an end-to-end solution combining the reference hardware kit as an HVAC controller with the power of the AWS cloud. We create a fictional HVAC system in which your Core2 for AWS IoT EduKit acts as a thermostat.

The thermostat should use a narrower range of temperatures when employees occupy the room to maximize their comfort. When the room is not occupied, a wider range of temperatures is permitted to save energy. The solution should recognize when employees are present in the room and engage the HVAC to deliver comfortable temperatures.

Problem solving

Instead of using camera equipment to detect when the room is occupied, this solution will minimize costs by using the kit microphone to sample the noise level. You will capture the ambient noise level from the microphone and the room temperature from the device’s sensors, then publish these values to AWS.

Your serverless solution in AWS will convert the noise level into a boolean (true or false) and use that to determine whether the room is occupied. You can use a simple noise level threshold to make that determination.

While the room is occupied and the measured temperature is out of comfort bounds, the solution will send a command to the device to start heating or cooling, as needed. When the temperature is then measured as within bounds, the solution will send a command to the device to resume standby mode.

Solution architecture

Smart thermostat solution architecture

Let’s go!

Are you ready to start building? Let’s make sure you have the following prerequisites sorted:

  1. Have you completed the Blinky Hello World tutorial?
  2. Is your Core2 for AWS IoT EduKit already provisioned in AWS IoT Core? This means you have registered it as an AWS IoT thing with a certificate and policy attached that enables publish and subscribe operations? These steps are in the Blinky Hello World tutorial.
  3. Have you confirmed that you can see messages arrive from your device using a test MQTT client like the one in the AWS IoT Core console? You should be able to subscribe to a topic that your device is publishing on and see those messages arrive in the test client.
  4. Do you know which serial port your Core2 for AWS IoT EduKit device is mounted to? This is also covered in the Blinky Hello World tutorial.

If so, let’s begin by moving on to the next chapter, Data acquisition.


Community support Report bugs