Comments (5)
Test out MPU9250 (Gyro + Accelorometer + Compass)
from nus-cs3237-iot-buoys.
Consider this repo for ideas on peak detection
from nus-cs3237-iot-buoys.
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.
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.
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)
- Prof briefing 1 HOT 5
- WeMOS - Phone communication HOT 3
- Phone - Cloud communication HOT 5
- Cloud backend infrastructure HOT 2
- Cloud Servers HOT 6
- Check-in 2 Pointers HOT 2
- Cloud Analytics HOT 1
- data collection HOT 2
- power management and wake up
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nus-cs3237-iot-buoys.