TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: GORDON HENDERSON
from: TONY VAN DER HOFF
date: 2017-11-06 11:14:00
subject: Re: Cannot read values fr

On 06/11/17 10:32, Gordon Henderson wrote:
> In article ,
> Björn Lundin   wrote:
>> pi@raspberrypi:~ $ sudo i2cget -y 1 0x68 0x75
>> 0x68
>>
>> but I get 0x00 for the x/y/z and ax/ay/az values whatever I do
>> pi@raspberrypi:~ $ sudo i2cget -y 1 0x68 0x44
>> 0x00
>> pi@raspberrypi:~ $ sudo i2cget -y 1 0x68 0x43
>> 0x00
>> pi@raspberrypi:~ $ sudo i2cget -y 1 0x68 0x3b
>> 0x00
>> pi@raspberrypi:~ $ sudo i2cget -y 1 0x68 0x3c
>> 0x00
>
> I've not used this device, but in emails with others what I gather is that
> you need to make sure it's not in self-test mode and that the registers
> (scaling, etc.) are set correcty, and that it's not in sleep mode, then
> trigger it to take a sample. Until then, the default values are all zeros.
>
> Or put it into continuous sample mode.
>
> So go and read the fine manual before writing it off!
>
> -Gordon
>

You have to send it a wake-up signal. Write a 0 to register 0x6b.

See
http://blog.bitify.co.uk/2013/11/reading-data-from-mpu-6050-on-raspberry.html
for a python program

Cheers, Tony

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.