Code Monkey home page Code Monkey logo

py-qmc5883l's People

Contributors

rigacciorg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

py-qmc5883l's Issues

IOError: [Errno 121] Remote I/O Error

I am continuosly requesting data (every second) via
[bx, by, bz, t] = sensor.get_data()

Now I got the following error:

  File "build/bdist.linux-armv7l/egg/py_qmc5883l/__init__.py", line 139, in get_data
  File "build/bdist.linux-armv7l/egg/py_qmc5883l/__init__.py", line 117, in _read_byte
IOError: [Errno 121] Remote I/O error

Any help appreciated.

Typo in get_magnet (z missing)

Hi, thank for the work you provided !
I think there is a typo in your code, line 177 to 179 included, I think you replaced z with x, am I correct ?

2d-calibration-make-calc: TypeError: %d format: a number is required, not numpy.float64

I followed the steps described in Calibration section.
Unfortunately, when I run the 2d-calibration-make-calc script I get the following error:

Traceback (most recent call last):
File "2d-calibration-make-calc", line 269, in
x2-cx, y2-cy) # Example point (dot)
TypeError: %d format: a number is required, not numpy.float64

I am not sure how to fix this after some searches on the internet. Could you please advise regarding this error?
Many thanks for writing this library!

QY 271?

Hi, the py-qmc5883l library is working well on a QY 273; any ideas if it will also work on a QY 271?

bad get_bearing() results

I connected a qmc5883l to my raspberry pi and tried to read the bearing using your library. When do I this i only get values between 70 and 120 deg. Do you have an idea if this maybe is a wiring or code problem?

What are all the library properties?

What are all teh library properties?
For now i have only tried get_bearing and get_magnet.
Are there are other "readable" properties in this library?
Thank you.

No Calibration?

You should add functionality for calibrating the device and functionality to adjust errors due to magnetic declination.
I'll work on those and help you add them!
I believe this is the only QMC driver for the pi!

Aiuto! Non riesco a ottenere valori sensati

ENG: Hi! First of all, congratulations for the fantastic library. I know that this is not the right place for question like this, but I am really lost!
I cannot read correct values from the magnetometer, also during the calibration phase (I turn it around of 360 degrees) values do not seem coherent. I am far away from magnets and other magnetic objects. The only thing is my pc, which is about half meter from the Raspberry. I tried to go outdoor, but the same problem occurs. I did not get overflow warning. Can you give me a suggestion on what I am doing wrong?

ITA: Ciao! Innanzitutto, complimenti per la libreria fantastica. So che non è il posto giusto per domande di questo tipo, ma non saprei a chi altro chiedere.
Non riesco a leggere valori corretti dal magnetometro, anche durante la calibrazione (in cui ho fatto fare un giro completo di 360°) i valori non sembrano essere coerenti. Non ho vicino calamite o altri oggetti magnetici. L'unico oggetto a circa mezzo metro di distanza dal Raspberry è il mio pc portatile. Ho provato anche andando all'esterno, ma stesso problema. Da escludere anche overflow, dato che non ricevo avvisi. Potresti darmi un tuo parere so cosa potrei aver sbagliato?

image

Magnetic overflow?

Despite changing the output range to RNG_8G, I'm still getting the WARNING:root:Magnetic sensor overflow error, which after a while crashes my program. Any suggestions ?

Also, thanks for writing this library!

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.