rigacciorg / py-qmc5883l Goto Github PK
View Code? Open in Web Editor NEWPython driver for the QMC5883L 3-axis magnetometer, developed for the Raspberry Pi
License: GNU General Public License v3.0
Python driver for the QMC5883L 3-axis magnetometer, developed for the Raspberry Pi
License: GNU General Public License v3.0
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.
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 ?
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!
m = sensor.get_data()
Now I got the following error:
WARNING:root:Chip ID returned 0xe8 instead of 0xff; is the wrong chip?
Any help appreciated.
Hi, the py-qmc5883l library is working well on a QY 273; any ideas if it will also work on a QY 271?
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 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.
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!
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?
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.