sumotoy / MM7150

a library for Microchip Motion Sensor Fusion module
0 stars 0 forks source link

Some news about your lib ? #1

Open sylvainf opened 8 years ago

sylvainf commented 8 years ago

Hello,

Did you progress with your work on this library ? MM7150 looks a promising device but suffer a lack of code/library. I will be interested by your work when it will be available. Best regards,

Sylvain

sumotoy commented 8 years ago

My first module was defected, I'm waiting other 2 modules to continue!

kmenezes commented 8 years ago

Keep us updated thanks

christian-nils commented 8 years ago

Hej Guys,

On which platform would you like to implement the MM7150 on? After 3 full months of work, I was able to interface the MM7150 with a RPi. So basically, we can interface it with any other linux-based platform.

Greetings,

Christian-Nils

sylvainf commented 8 years ago

Hi Christian,

Firstly, I planed to connect MM7150 to a micro-controller (typically with arduino framework)... but my final goal is to connect it to an embedded linux system (raspberry, beaglebone or edison). Implementing HID protocole to arduino seems not easy, so connecting MM7150 to a linux system with linux HID driver is a good option for me. I read the thread https://www.raspberrypi.org/forums/viewtopic.php?t=152803&p=1001795 If I understand correctly, the recipe might be :

Am I right ? I would really appreciate if you share your files (DTS, HID definition), it could help many people. Thanks a lot, Sylvain

christian-nils commented 8 years ago

Salut,

I would say that you should be able to use it with Arduino, you would need to adapt Microchip's code to your board.

If you use a linux-based system, yes what you describe is correct. You should have a kernel which implements the device tree with bindings.

I will write a tuto about how to do it later, but for now, here are the steps I think of:

Hope it helps, and sorry for the brevity.

Christian-Nils

sylvainf commented 8 years ago

Thanks a lot for your reply ! It's a very good start for me. I'll try that next week !

sumotoy commented 8 years ago

I've ordered 2 board. Never arrived. Ordered another 2, just one arrived (after long emails exchanges with Microchip direct, they keep writing address wrong, damn). I'm currently update some lib and relasing a couple new then I will attach this one. I'm sorry, I should have the chip monts ago but they constantly delayed many times.

Serzhiv commented 8 years ago

Hi. Purchased this module. Very interested in working with him through the i2c interface. C impatience waiting for the results of your work ) since there is nothing in the examples. Only overloaded code from the manufacturer.

Serzh Iv

bycharly commented 8 years ago

Hi All! I purchased this module this week, and I am trying to interface it with PIC18F26K22 (64 Kb flash, 3 kb ram). I found two "working" examples, but oriented to PIC24. One is from Microchip, and the other from MikroE (based on Microchips example). Both are big big codes. I tried to make it shorter and simpler, but the code is still very big, it needs more memory than my PIC have. Please make me know if you success simplyfing the code!!! If I am lucky in the process, I will share code with you. Thanks a lot! Charly

christian-nils commented 8 years ago

@sylvainf Were you able to make it work?

Serzhiv commented 8 years ago

All attempts have so far proved unsuccessful, unfortunately (

akad90 commented 5 years ago

Hi All, Starting out with the MM7150 but finding the same challenges. Aware that this is an old thread but has anyone had any success with the MM7150 yet? Hoping to track down some simple code to work with an 8-bit PIC 18F4620. Cheers Alex

christian-nils commented 5 years ago

Hi,

I went quite far in the exploration, but not completely succeeded. I used the generic driver i2c-hid and activated different generic HID sensors in the Linux kernel, I was able to get some reads. But you needed to add a "quirk" to get the communication working (see https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/patch/?id=5cc5084dd9afa2f9bf953b0217bdb1b7c2158be1).

Anyway, I do not have much time to go in details, but I have a question though. the MM7150 is in its end of life, isn't there a better sensor that could work for your application?

/CN

akad90 commented 5 years ago

Hi,

Thanks for taking the time to reply - appreciate it.

We are trying to communicate directly with the MM7150 via i2c without any drivers. We are successfully powering, resetting and receiving both the report and device descriptors from the module.

We are however completely lost as to how to ACTIVATE the sensors via i2c.

Will continue to play.

To answer your question: yes, perhaps. We had already designed a PCB around this package. If we don't have any luck soon we will have to redesign around another sensor.

Thanks again.

Alex


From: Christian-Nils Åkerberg Boda notifications@github.com Sent: Sunday, 4 August 2019 8:26 AM To: sumotoy/MM7150 MM7150@noreply.github.com Cc: akadow alex_kadow@hotmail.com; Comment comment@noreply.github.com Subject: Re: [sumotoy/MM7150] Some news about your lib ? (#1)

Hi,

I went quite far in the exploration, but not completely succeeded. I used the generic driver i2c-hid and activated different generic HID sensors in the Linux kernel, I was able to get some reads. But you needed to add a "quirk" to get the communication working (see https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/patch/?id=5cc5084dd9afa2f9bf953b0217bdb1b7c2158be1).

Anyway, I do not have much time to go in details, but I have a question though. the MM7150 is in its end of life, isn't there a better sensor that could work for your application?

/CN

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/sumotoy/MM7150/issues/1?email_source=notifications&email_token=AFSJPEW3FCIRP3WIF4BWM6LQCXSV3A5CNFSM4CCYK3MKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3PVGRQ#issuecomment-517952326, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFSJPEX5K6TJ3NSXXP632U3QCXSV3ANCNFSM4CCYK3MA.

christian-nils commented 5 years ago

Hi @akadow,

Well, if you are I2C bit-banging or using plain I2C to activate the sensors of the MM7150, I may not be able to help you. I remember that there were a lot of long and complex things to implement to be able to do so (see the Application Notes).

In my case, to do not reinventing the wheel, I just activated the generic IIO sensors in the Linux kernel to get reads from the module. I know there were some issues even after that (I could not get continuous reading if I remember correctly).

Good luck! And if you decide to change to another Sensor Hub, please let me know what you went for.. I could not find an appropriate substitute!