Search found 10 matches
- Sat May 04, 2019 4:54 am
- Forum: MicroPython pyboard
- Topic: HMC5883L Magnetometer
- Replies: 10
- Views: 13863
Re: HMC5883L Magnetometer
I read that the HMC code does not work with the Chinese clone QMC code. I will look for code for QMC.
- Fri May 03, 2019 7:24 am
- Forum: MicroPython pyboard
- Topic: HMC5883L Magnetometer
- Replies: 10
- Views: 13863
Re: HMC5883L Magnetometer
Ok. Thanks. It was a) the pins needed to be set as Y9 and Y10, and b) the address of the sensor is 13 and not 30 as most of the documentation says.
HOWEVER: the program is now only returning values X: 0.0000, Y: 0.0000, Z: 0.0000, Heading: 0° 0′
Any idea why?
HOWEVER: the program is now only returning values X: 0.0000, Y: 0.0000, Z: 0.0000, Heading: 0° 0′
Any idea why?
- Fri May 03, 2019 6:55 am
- Forum: MicroPython pyboard
- Topic: HMC5883L Magnetometer
- Replies: 10
- Views: 13863
Re: HMC5883L Magnetometer
Which hardware module and which firmware version are you using? Edit: I just loaded your script to an ESP8266. It does not raise the error you post. But since the sensor is not attached, it fails at Line 24. Firmware/Module version: MicroPython v1.10-315-ge70c438c7-dirty on 2019-05-01; ESP module w...
- Fri May 03, 2019 3:03 am
- Forum: MicroPython pyboard
- Topic: HMC5883L Magnetometer
- Replies: 10
- Views: 13863
HMC5883L Magnetometer
Can someone help me get this compass working? I am using code from https://github.com/gvalkov/micropython-esp8266-hmc5883l/blob/master/hmc5883l.py The main program is this (full module): from hmc5883l import HMC5883L sensor = HMC5883L(scl=4, sda=5) x, y, z = sensor.read() print(sensor.format_result(...
- Fri May 03, 2019 2:54 am
- Forum: MicroPython pyboard
- Topic: VL53L0x
- Replies: 9
- Views: 10251
Re: VL53L0x
@daemeon I strongly recommend learning Python on a PC using an online course or a book. Then notation like 0x42 or b'\x01' would make sense, along with many other language features which go beyond simple loops. With a good grasp of the language you'll be able to follow other people's code. This for...
- Thu May 02, 2019 2:15 am
- Forum: MicroPython pyboard
- Topic: VL53L0x
- Replies: 9
- Views: 10251
Re: VL53L0x
Oh my god, it's working. Figured it out for myself, apparently. Thanks for almost helping me. Anyone know what course I should take (online since I live in Asia) or book I should read to understand how this driver works?
- Thu May 02, 2019 1:06 am
- Forum: MicroPython pyboard
- Topic: VL53L0x
- Replies: 9
- Views: 10251
Re: VL53L0x
[quote=OutoftheBOTS_ post_id=36220 time=1556745726 user_id=3423]
I have used this driver and it worked fine for me
[/quote]
Could you just direct me to the code (or send me the code?) I need to understand this.
I have used this driver and it worked fine for me

[/quote]
Could you just direct me to the code (or send me the code?) I need to understand this.
- Wed May 01, 2019 11:51 pm
- Forum: MicroPython pyboard
- Topic: VL53L0x
- Replies: 9
- Views: 10251
Re: VL53L0x
[quote=OutoftheBOTS_ post_id=36220 time=1556745726 user_id=3423] I have used this driver and it worked fine for me :) [/quote] On a pyboard 1.1? For something that is supposed to be a hobby, I find this very frustrating. I wish I understood programming more. I am fine with basic loops and stuff, but...
- Wed May 01, 2019 11:48 pm
- Forum: MicroPython pyboard
- Topic: VL53L0x
- Replies: 9
- Views: 10251
Re: VL53L0x
[quote=Roberthh post_id=36211 time=1556724246 user_id=601]
i2c.scan returns decimal values. 41 decimal is 0x29.hex. So you can use as address either 41 or 0x29.
[/quote]
Thank you for that info.
i2c.scan returns decimal values. 41 decimal is 0x29.hex. So you can use as address either 41 or 0x29.
[/quote]
Thank you for that info.
- Wed May 01, 2019 3:18 pm
- Forum: MicroPython pyboard
- Topic: VL53L0x
- Replies: 9
- Views: 10251
VL53L0x
This is my first ever question in a forum like this. I need help. I am trying to use the lidar module from https://bitbucket.org/thesheep/micropython-vl53l0x/src/9077f84e25409532b7ef220fa068605c971ba967/vl53l0x.py?at=default&fileviewer=file-view-default I am using a pyboard. I am getting this error ...