Giter VIP home page Giter VIP logo

eslab_hw2's Introduction

ESlab_hw2

Overview

The purpose of this exercise is to send the value read by the accelerometer and
gyroscope of B-L475E-IOT01A2 to a Python socket server hosted on Windows10.

Usage

python visual.py
  1. Start the server, modify the host name and port number if needed.
  2. build the image using main.cpp in the repository, modify the configuration
    in mbed_app.json and the port number in main.cpp if needed, then the preparation is done.

Implementation

  1. Move the subfolder of the example project of “DISCO_L475VG_IOT01-Sensors-BSP”
    under “mbed-os-example-sockets”.
  2. Modify the default port number to the port number opened on our server
    Imgur
  3. Modify the host name of the “mbed_app.json”
    Imgur
  4. Merge some of the code in the main.cpp of the sensor example into
    the main.cpp of the sockets. including the sensor initialization part
    and sensor value reading part
  5. In the method run() of the class SocketDemo, We removed the part of sending
    HTTP request and receiving HTTP response, then We added a while(1) loop to
    implement sensor reading and sending data to the socket server.
  6. For data visualization, we use matplotlib to visualize acceleration in three dimensions.
    In addition, we provide a three dimensional model to display the relative position
    of the board. Moreover, we display the three dimensions of the gyro with three charts. Imgur

eslab_hw2's People

Contributors

dogsc729 avatar ericttttt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.