Question

In: Computer Science

For this assignment you are required to build a system using BBC Micro:bit device. You will...

For this assignment you are required to build a system using BBC Micro:bit device. You will use the Micro:bit to gather data automatically using its sensors; and make it available on the internet. You are to deliver this data in a rigorous fashion to a PC attached via USB using the onboard Python, and then to run a local Python server on the PC with appropriate web pages to serve the result locally. Remote access to the PC is not required but would be simple to add. This assignment is designed to be as open as possible, and you are encouraged to be creative and innovative. This might be in the data collected, the manner of collection, the use of the data on the PC, etc. Marks will be awarded for interesting solutions; however, most of the marks are for the use of the techniques described above and below. Where an instruction might not be clear, you are to make a decision of what is reasonable to work, and justify this reasoning in the report, and video.

Details

1. Data Sampling

Take a measurement of at least two sensor variables that are plausibly connected (e.g. Temperature and light level), and regularly collect their measurements, storing them internally until the buffer is more than ¾ full, and then dump the contents to the PC. For example… o You need to simulate the changes for the sensors including light, temperature, accelerometer, and compass and explicitly describe their experimental setup. o Take the micro: bit into warmer and colder places and see how the temperature readings change. o Try out the built-in light sensing capability of the Micro:bit, o Flip the board; Page 2 of 4 o Test the kind of values that you get for the compass heading.

At the start of collection, the PC is to provide a time/date stamp to all devices, and they are to resynchronize every time a data transfer has successfully completed, and new data collection has started. If there is a significant difference, between internal date and synchronize-date, this is to be reported by the PC to the data files before re-synchronization to all data files prior to dumping the data onto them.

The sampling frequency of data is determined by the application (eg. temperature will not change frequently – unless it is a thermostat).

2. Display.

Whenever a sample is taken, the 5x5 display is to increment a single digit.

When the device is downloading, the display is to show a download icon.

When the collected data is confirmed to have been delivered and is cleared, then the display shows a tick mark. If a download error occurred, a cross is shown on the display.

3. Data Transmission

The data is to be labeled, and the time/date of collection is to also be recorded and dumped to the PC. Suggested data format is JSON.

.A suitable protocol is to be developed to ensure reliable transmission of the data. For example, a simple stop and wait ARQ.

The data in the onboard buffer of the connected Micro:bit is not to be deleted until the data has been confirmed to have arrived. Matched checksums might be sufficient.

4.PC Data

On the PC, the data can be stored as TAB-or Comma delimited data in a file in a fixed location.

The data is appended to any existing data in the file. This must be done at the PC end, in order to avoid running out of space, and the fact that file open in append mode is not possible on Micro:bit.

The data is to include the time/date stamp, device# doing the collection, the sensor variable name, and value.

Separate files are maintained for each sensor variable. This makes it easy to plot these files using Excel, or some such. As an extension. another Python package could run on the server to provide plot images.

5. Web server

The Python web server is to point to the folder containing the files. A web user could then select the file and see text data. An optional extension might be to store the data in HTML format but beware of tableend delimiters.

Solutions

Expert Solution

In a data collection of objects an python data collector is an key role where we can gatter a required data useing the inputs of different technologys where the data can be made modified and used

1. Data Sampling

Take a measurement of at least two sensor variables that are plausibly connected (e.g. Temperature and light level), and regularly collect their measurements, storing them internally until the buffer is more than ¾ full, and then dump the contents to the PC. For example… o You need to simulate the changes for the sensors including light, temperature, accelerometer, and compass and explicitly describe their experimental setup. o Take the micro: bit into warmer and colder places and see how the temperature readings change. o Try out the built-in light sensing capability of the Micro:bit, o Flip the board; Page 2 of 4 o Test the kind of values that you get for the compass heading.

At the start of collection, the PC is to provide a time/date stamp to all devices, and they are to resynchronize every time a data transfer has successfully completed, and new data collection has started. If there is a significant difference, between internal date and synchronize-date, this is to be reported by the PC to the data files before re-synchronization to all data files prior to dumping the data onto them.

The sampling frequency of data is determined by the application (eg. temperature will not change frequently – unless it is a thermostat).

2. Display.

Whenever a sample is taken, the 5x5 display is to increment a single digit.

When the device is downloading, the display is to show a download icon.

When the collected data is confirmed to have been delivered and is cleared, then the display shows a tick mark. If a download error occurred, a cross is shown on the display.

3. Data Transmission

The data is to be labeled, and the time/date of collection is to also be recorded and dumped to the PC. Suggested data format is JSON.

.A suitable protocol is to be developed to ensure reliable transmission of the data. For example, a simple stop and wait ARQ.

The data in the onboard buffer of the connected Micro:bit is not to be deleted until the data has been confirmed to have arrived. Matched checksums might be sufficient.

4.PC Data

On the PC, the data can be stored as TAB-or Comma delimited data in a file in a fixed location.

The data is appended to any existing data in the file. This must be done at the PC end, in order to avoid running out of space, and the fact that file open in append mode is not possible on Micro:bit.

The data is to include the time/date stamp, device# doing the collection, the sensor variable name, and value.

Separate files are maintained for each sensor variable. This makes it easy to plot these files using Excel, or some such. As an extension. another Python package could run on the server to provide plot images.

5. Web server

The Python web server is to point to the folder containing the files. A web user could then select the file and see text data. An optional extension might be to store the data in HTML format but beware of tableend delimiters.

,This are the posiable determiners of collecting data useing tensorflow ,keras etc.


Related Solutions

In this assignment, you will be selecting a product of interestand you will build a...
In this assignment, you will be selecting a product of interest and you will build a sales strategy to improve the sales performance for that product. A product is only one of the four pillars of a marketing strategy, and so you will need to build a thorough understanding of how the price of this product is set, what channels are available for the physical housing and distribution of the product, and how this product will be promoted (commonly referred...
Assignment Description: You will be required to conduct analysis of a technology/system application and write a...
Assignment Description: You will be required to conduct analysis of a technology/system application and write a formal paper. The analysis need to be of an application technology used in either (a) a clinical setting for managing health data, patient care, etc or (b) educational setting for improvement of teaching and learning of students, patients, etc. The Technology Application Analysis will be an independent activity for each student to be completed using resources available in your agency, IT department, on the...
Overview In this assignment you are required to implement binary code comparator using Xilinx that it...
Overview In this assignment you are required to implement binary code comparator using Xilinx that it is compatible with the MXK Seven Segment Displays. You will draw your digital logic circuit using Xilinx and then simulate it to verify the functionality of your design. Software Requirements ? Xilinx ISE 10.1 or higher Specifications Binary Code Comparator The binary code comparator is to be implemented and made compatible with the seven 7-segment displays of the board. Represent the first five digits...
C++ Simple Programming Assignment you need to build off of the code below: #include using namespace...
C++ Simple Programming Assignment you need to build off of the code below: #include using namespace std; // class definition class Fraction {         // two data members         // one representing numerator         int numerator;         // other, representing denominator         int denominator;         public:                 void set (int numerator, int denominator);                 Fraction addedTo (Fraction f);                 Fraction subtract (Fraction f);                 Fraction multipliedBy (Fraction f);                 Fraction dividedBy (Fraction f);                 bool isEqualTo (Fraction f);                 void print (); }; void Fraction :: set (int numerator, int denominator) {         this...
In this assignment you will build a small C# project that uses… • A struct •...
In this assignment you will build a small C# project that uses… • A struct • A method with a reference parameter • A while-loop • A switch statement and block instructions: Inside the StringHandler struct add a public void method named Abbreviate. The Abbreviate method must take a string parameter that is passed by reference. This method will take the name of a month (January, February, etc.) as its input and convert it to a 3-letter abbreviation of the...
1. For this assignment you will need to first build a graph to these specifications: Draw...
1. For this assignment you will need to first build a graph to these specifications: Draw a downward sloping demand curve with vertical intercept (0,150) and horizontal intercept (25,0). Draw a supply curve with vertical intercept (0,50) and with slope=4 i.e. the market equilibrium occurs at (10, 90). a. Compute consumer, producer, and total surplus at the market equilibrium. b. Label consumer surplus and producer surplus if the government imposes a price floor of $120, then compute deadweight loss. c....
Excel Assignment (Percentage-of-completion) Required: 1- Using the data provided below you are to input formulas in...
Excel Assignment (Percentage-of-completion) Required: 1- Using the data provided below you are to input formulas in the area designated below to calculate: % complete, revenue to be recognized in each year, and gross profit to be recognized in each year. (10 points) Hint: I suggest you use formulas with an IF function regarding the gross profit section of your speadsheet because your spreadsheet should be able to calculate correct answers whether a contract generates a profit or loss. 2- Using...
For this assignment, you are going to build upon several skills that you've learned: Create an...
For this assignment, you are going to build upon several skills that you've learned: Create an object that contains objects. Using querySelectorAll to read a nodeList from the DOM. Looping through the nodeList then updating the HTML page. Set up Create the assignment in a "week6" folder with the typical files: index.html css/styles.css js/scripts.js This is the standard structure that we'll use in all assignments. Here is the HTML to use for this assignment. Change the meta author tag to...
Questions 6-10 are related to the following As a statistics course assignment you are to build...
Questions 6-10 are related to the following As a statistics course assignment you are to build a 95% confidence interval for the mean monthly rental for two-bedroom apartments in Marion County. A random sample of 80 apartments yields the following data. 840 1550 560 1080 970 1560 830 1220 1390 1110 920 1150 1600 1310 610 1590 1100 720 720 1350 1020 1290 710 600 830 1190 1170 1470 1320 730 800 840 1130 690 900 1520 1050 1220 1400...
Design and implement a Fire Alarm IOT System, using the framework of the Raspberry PI device,...
Design and implement a Fire Alarm IOT System, using the framework of the Raspberry PI device, temperature, C02 and CO sensors. •Define the process specification of the system. The system should collect and analyze the sensor data and email alerts when a fire is detected •Define the domain model for this IOT device •Define the Service specifications
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT