Difference between revisions of "F16: Micro Watch Monitoring System"

From Embedded Systems Learning Academy
Jump to: navigation, search
(Parts List & Cost)
(Design & Implementation)
Line 145: Line 145:
  
 
== Design & Implementation ==
 
== Design & Implementation ==
The design section can go over your hardware and software design.  Organize this section using sub-sections that go over your design and implementation.
 
 
 
=== Hardware Design ===
 
=== Hardware Design ===
 
Discuss your hardware design here.  Show detailed schematics, and the interface here.
 
Discuss your hardware design here.  Show detailed schematics, and the interface here.
Line 154: Line 152:
  
 
=== Software Design ===
 
=== Software Design ===
Show your software design.  For example, if you are designing an MP3 Player, show the tasks that you are using, and what they are doing at a high level.  Do not show the details of the code.  For example, do not show exact code, but you may show psuedocode and fragments of code.  Keep in mind that you are showing DESIGN of your software, not the inner workings of it.
+
Show your software design.  For example, if you are designing an MP3 Player, show the tasks that you are using, and what they are doing at a high level.  Do not show the details of the code.  For example, do not show exact code, but you may show psuedocode and fragments of code.  Keep in mind that you are showing DESIGN of your software, not the inner workings of it.
 +
 
 +
'''SJ-One Board Monitoring Driver'''
 +
For this driver, three tasks were implemented to gather data from the operating system, sensors, and pins of the SJ-One Board. The operating system task calculates the CPU usage of each running task in the system along with the amount of global memory used, allocated memory used, allocated memory available, and memory available on the system. The sensor task reads data from the temperature sensor, light sensor, and accelerometer on the board. The pin task checks if any of the on-board switches are being used or not. These three tasks then send all the data collected to a fourth task which is the consumer. The consumer receives the data, stores it in three separate queues, and initializes the UART3 protocol on the board to prepare transmitting data via the Xbee Wire Antenna module.
 +
 
 +
'''SJ-One Board Xbee Driver'''
 +
 
  
 
=== Implementation ===
 
=== Implementation ===

Revision as of 08:36, 20 December 2016

Micro Watch Monitoring System

Abstract

The Micro Watch Monitoring System uses Amazon's Alexa Voice Service to relay monitored data from a network of SJ-One Boards with the assistance of the Raspberry Pi 3. The monitored data from a SJ-One Board is transmitted and received via a Xbee Wire Antenna module. The monitored data is then uploaded to our backend system, Google Firebase, by the Raspberry Pi 3, and is accessible through any device integrated with the Alexa Voice Service.

Objectives & Introduction

The objective of this project is to be able to monitor a network of SJ-One Boards for statistical data that is accessible via voice commands acknowledged by the Alexa Voice Service.

Tasks

  • Create a driver that monitors statistical data on the SJ-One Board
  • Create a driver that utilizes the Xbee Wire Antenna to wirelessly transmit data via the UART protocol
  • Create a driver that parses data received by the Xbee Wire Antenna and relays it to Firebase
  • Create a set of Alexa Skills that can access the data on Firebase via voice commands

Team Members & Responsibilities

Sanjay Agarwal

  • SJ-One Board Firmware Design
  • Hardware Connectivity Design
  • Firmware and Hardware System Testing

Mason Itkin

  • Raspberry Pi 3 Firmware Design
  • Amazon Alexa Voice Service Skill Design
  • Firmware and Voice Service System Testing

Schedule

Week Begin Task Task Description Result Planned Completion Actual Completion
1
10/21
Group Research on System Design
Complete
10/27
10/27
2
10/28
Design Group Task Structure
Complete
11/3
11/3
3
11/4
Order Raspberry Pi 3
Complete
11/10
11/10
4
11/11
Load NOOBs OS onto Raspberry Pi 3 and Deploy Alexa Skills on Amazon Web Services
Complete
11/17
11/17
5
11/18
Implement Alexa Voice Interactions and Communication to Raspberry Pi 3 via Lambda Function
Complete
11/24
11/24
6
11/25
Order Xbee Wire Antenna Modules and Xbee Explorer Dongle
Complete
12/1
12/1
7
12/2
Design SJ-One Board Monitoring Driver and Xbee Driver
Complete
12/8
12/8
8
12/9
Design Raspberry Pi 3 Communication Driver
Complete
12/15
12/15
9
12/16
Test Firmware, Hardware, and Voice Service Interconnectivity
Complete
12/17
12/19
10
12/21
Present Completed Project
Complete
12/21
12/21

Parts List & Cost

Part Quantity Price Merchant
SJ-One Board
2
$160
Preetpal Kang
Raspberry Pi 3
1
$
Raspberry Pi 3 NOOBs OS
1
$
Xbee Wire Antenna
2
$
Xbee Explorer Dongle
1
$
Amazon Tap
1
$

Design & Implementation

Hardware Design

Discuss your hardware design here. Show detailed schematics, and the interface here.

Hardware Interface

In this section, you can describe how your hardware communicates, such as which BUSes used. You can discuss your driver implementation here, such that the Software Design section is isolated to talk about high level workings rather than inner working of your project.

Software Design

Show your software design. For example, if you are designing an MP3 Player, show the tasks that you are using, and what they are doing at a high level. Do not show the details of the code. For example, do not show exact code, but you may show psuedocode and fragments of code. Keep in mind that you are showing DESIGN of your software, not the inner workings of it.

SJ-One Board Monitoring Driver For this driver, three tasks were implemented to gather data from the operating system, sensors, and pins of the SJ-One Board. The operating system task calculates the CPU usage of each running task in the system along with the amount of global memory used, allocated memory used, allocated memory available, and memory available on the system. The sensor task reads data from the temperature sensor, light sensor, and accelerometer on the board. The pin task checks if any of the on-board switches are being used or not. These three tasks then send all the data collected to a fourth task which is the consumer. The consumer receives the data, stores it in three separate queues, and initializes the UART3 protocol on the board to prepare transmitting data via the Xbee Wire Antenna module.

SJ-One Board Xbee Driver


Implementation

This section includes implementation, but again, not the details, just the high level. For example, you can list the steps it takes to communicate over a sensor, or the steps needed to write a page of memory onto SPI Flash. You can include sub-sections for each of your component implementation.

Testing & Technical Challenges

Describe the challenges of your project. What advise would you give yourself or someone else if your project can be started from scratch again? Make a smooth transition to testing section and described what it took to test your project.

Include sub-sections that list out a problem and solution, such as:

My Issue #1

Discuss the issue and resolution.

Conclusion

Conclude your project here. You can recap your testing and problems. You should address the "so what" part here to indicate what you ultimately learnt from this project. How has this project increased your knowledge?

Project Video

Upload a video of your project and post the link here.

Project Source Code

References

Acknowledgement

Any acknowledgement that you may wish to provide can be included here.

References Used

List any references used in project.

Appendix

You can list the references you used.