Search found 38 matches

by samerou
Mon Apr 22, 2019 3:45 pm
Forum: ESP8266 boards
Topic: Gyro/Mpu_Calibration "ESP8266"
Replies: 22
Views: 13713

Re: Gyro/Mpu_Calibration "ESP8266"

The sequence I used is: from machine import I2C, Pin from accel import accel # my I2C is connected to Pins 12 & 13 i2c= I2C(scl=Pin(12), sda=Pin(13)) mpu = accel(i2c) val = mpu.get_values() print(val) # or val = mpu.get_smoothed_values() print(val) And no, the values are not stable but have a lot o...
by samerou
Mon Apr 22, 2019 2:02 pm
Forum: ESP8266 boards
Topic: Gyro/Mpu_Calibration "ESP8266"
Replies: 22
Views: 13713

Re: Gyro/Mpu_Calibration "ESP8266"

@ roberthh ,

How did you manage to play with file where the class MPU6050 could you please give me the correct statement in order to extract values from it ?
by samerou
Mon Apr 22, 2019 1:43 pm
Forum: ESP8266 boards
Topic: Gyro/Mpu_Calibration "ESP8266"
Replies: 22
Views: 13713

Re: Gyro/Mpu_Calibration "ESP8266"

Just playing around with the MPU6050 class it looks as if creates reasonable normalized values. @Roberth Thank you for the suggestion but I tried I changed my actual mpu6050 ( the class accel ) but when running it it keeps giving a strange values but it's working strange values which mean : "Unstab...
by samerou
Mon Apr 22, 2019 5:57 am
Forum: ESP8266 boards
Topic: Gyro/Mpu_Calibration "ESP8266"
Replies: 22
Views: 13713

Re: Gyro/Mpu_Calibration "ESP8266"

I edited the two scripts such that they run on my Wemos D1 Mini and return some useful results. By chance, I had a MPU6050 sensor. Please not that the methods calibrate() and get_smoothed_value() of accel.py are still wrong. They look unfinished and cause obvious errors when called. accel.py: impor...
by samerou
Wed Apr 10, 2019 3:40 pm
Forum: ESP8266 boards
Topic: Gyro/Mpu_Calibration "ESP8266"
Replies: 22
Views: 13713

Gyro/Mpu_Calibration "ESP8266"

hello , I'm trying to use the Gyro sensor with ESP8266 and finding a trouble doing the calibration but first I used the mpu6050.py see below in order to get the position and temperature but all the values are wrong even when I keep my sensor without moving it, all the values keep changing and I don'...
by samerou
Thu Mar 28, 2019 3:21 pm
Forum: ESP8266 boards
Topic: ESP8266 Gyro_Database
Replies: 7
Views: 4411

Re: ESP8266 Gyro_Database

Depends on what you think is realtime. MQTT is very fast and probably the best to start with. If it doesn't offer enough performance, you could always change to something else. At your level of knowledge, I'd definitely start with MQTT before writing something else. Realtime ,everything you measure...
by samerou
Thu Mar 28, 2019 7:52 am
Forum: ESP8266 boards
Topic: ESP8266 Gyro_Database
Replies: 7
Views: 4411

Re: ESP8266 Gyro_Database

MQTT is not the best way for realtime data but I don't know what's best in that case as you will probably want to stream that data directly to the app without a server in between? I can't use something like a server "similar to wampserver (Tables) and SQL " the server will be on my PC and I will se...
by samerou
Thu Mar 28, 2019 6:40 am
Forum: ESP8266 boards
Topic: ESP8266 Gyro_Database
Replies: 7
Views: 4411

Re: ESP8266 Gyro_Database

Do you need the data in realtime? Or just every few minutes? How will the app/pc receive the data? Does mqtt fit your purpose? Thank you kevinkk for your reply Yes I need the realtime data and I gonna develop an app later for extract those data in order to use them And mqtt is good, so yes I think
by samerou
Wed Mar 27, 2019 8:08 pm
Forum: ESP8266 boards
Topic: ESP8266 Gyro_Database
Replies: 7
Views: 4411

ESP8266 Gyro_Database

dear all , Thank you for your support privatly or but respond to my questions but unfortuanlly I'm completly lost and getting my mind more messier , The probleme that I'm finding alot of information ( servers , uasyncio, mqtt,esp,...) but I can't find what I need to do So I decided to post Question ...
by samerou
Sun Mar 24, 2019 8:52 am
Forum: ESP8266 boards
Topic: ESP8266_write to external file_Micropython
Replies: 5
Views: 3760

Re: ESP8266_write to external file_Micropython

If you can connect the server permanently, you can also send the sensor data directly to the server and store them at the server. Yes, I know but what kind of server that allows me to send data on it which mean create table there with all values from sensor. Ps: things peak , cloud4rpi, dweet don't...