Giter Club home page Giter Club logo

Comments (5)

yuheem avatar yuheem commented on June 13, 2024

Test out MPU9250 (Gyro + Accelorometer + Compass)

from nus-cs3237-iot-buoys.

cheehongw avatar cheehongw commented on June 13, 2024

https://github.com/TheSpaceCuber/fitness-tracker

Consider this repo for ideas on peak detection

from nus-cs3237-iot-buoys.

leon-thomm avatar leon-thomm commented on June 13, 2024

Added a small lib and external dependency to read basic data from MPU in 2763809. Tested on 3.3V, values are okay and can be read quite frequently, but sometimes the sensor gets stuck (especially in z direction).

from nus-cs3237-iot-buoys.

leon-thomm avatar leon-thomm commented on June 13, 2024

temperature sensor (guide, wiring for S and - seems flipped)

Implemented reading from analog temperature sensor directly in 20974c4. Added ADC spport in f8a072e. The temperature sensor runs on 3.3V and should, by default, be connected to A1 of the ADC.

photo resistor (guide, wiring for S and - seems flipped)

Implemented reading from analog photo resistor directly in e1e8b2c. Added ADC support in 92b6be5.

ADC

Since we are using multiple analog sensors, we need to use the ADC. I implemented simple reading from the ADC's channels in 971878c.

I2C

In order to use the ADC and MPU we need to use I2C. I implemented a script to conveniently scan the devices and addresses in 23f0d00 and 0ca4c73.


  • I wrote an example script initializing and reading from the ADC, temperature sensor, and photo resistor in 0c0cd4d.

TODO: we pre-assign different addresses I2C addresses to the ADC and MPU.

from nus-cs3237-iot-buoys.

leon-thomm avatar leon-thomm commented on June 13, 2024

I2C

TODO: we pre-assign different addresses I2C addresses to the ADC and MPU.

The MPU and the ADC are natively using different addresses. The ADC's address can also easily be changed by applying different voltages to the addr pin.

ADC

I switched to a library because manually configuring it caused a bunch of issues - I could not correctly select channels and had depressing timing constraints.

temperature sensor

The temperature seems quire imprecise is a few °C off. We should check with the prof on the formula we used, but it assumes very specific constants derived from the sensor's built-in resistors, and I don't know if this is accurate for our exact temperature sensor. While it didn't seem super accurate, if a constant error in temperature of 1-3°C is not a big deal, we can just go with this. Changing this later (after starting to collect data), however, will not be an option.

The glued sensor seems broken - maybe the glue is too hot?

photo resistor

The glued sensor works fine.

from nus-cs3237-iot-buoys.

Related Issues (10)

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.