Raspberry Pi2 with GrovePi+ and Grove Gesture

Applications/questions using Raspberry Pi with Seeed products, please post it here.

Moderators: violet, jessie, yexiaobo

Post Reply
roujesky
Pre-kindergarten
Pre-kindergarten
Posts: 5
Joined: Tue Nov 24, 2015 4:40 am

Raspberry Pi2 with GrovePi+ and Grove Gesture

Post by roujesky » Tue Nov 24, 2015 4:47 am

I just got a GrovePi+ and a Grove Gesture. I cannot seem to find an example for this configuration with my Raspberry Pi 2. Is there some code out there? Preferably C/C++, but anything will do.

thanks!

kavi
Staff
Staff
Posts: 305
Joined: Tue Dec 09, 2014 12:06 pm

Re: Raspberry Pi2 with GrovePi+ and Grove Gesture

Post by kavi » Tue Nov 24, 2015 8:24 pm

The library link ,examples and documentation is available in the following wiki link

Thanks and regards

roujesky
Pre-kindergarten
Pre-kindergarten
Posts: 5
Joined: Tue Nov 24, 2015 4:40 am

Re: Raspberry Pi2 with GrovePi+ and Grove Gesture

Post by roujesky » Tue Dec 01, 2015 1:35 am

So, I guess the answer is that it is up to me to port the library to Raspberry Pi 2? All I see is Arduino and Seeduino code? Has anyone gotten this to work with my configuration?

thanks!

roujesky
Pre-kindergarten
Pre-kindergarten
Posts: 5
Joined: Tue Nov 24, 2015 4:40 am

Re: Raspberry Pi2 with GrovePi+ and Grove Gesture

Post by roujesky » Wed Dec 02, 2015 11:57 pm

I am making some progress, but I cannot read register 0x43. All it returns is 0's. Attached are 3 files. They are ported from the arduino example. also, is a screenshot of the results. I am printing a counter, followed by the register I am trying to read, and then the results of the read. You can see that I am successfully reading the registers 0 and 1 which means the device is ready. But, no matter what gestures I do, it reads 0's in register 0x43. Not sure what I am doing wrong. Can someone take a look and tell me what I am doing wrong?
thanks!

Seems to not let me upload cpp files, so zipping all files into a zip.....

User avatar
loovee
Elementary-3
Elementary-3
Posts: 353
Joined: Fri Nov 02, 2012 9:15 am

Re: Raspberry Pi2 with GrovePi+ and Grove Gesture

Post by loovee » Tue Dec 15, 2015 9:56 am

Hi,

I have seen your software code.

The software library I used is normal in the Arduino.

Please refer the following steps to check:

(1)Don't use the "paj7620SelectBank(BANK1);" function
in the main function, and don't use paj7620WriteReg to
write the register.
Only use paj7620Init(); at the beginning, and use
paj7620ReadReg(0x43, 1, &data); in the loop.

(2)"#include <wiringPiI2C.h>"
Please check whether there is some I2C operation error
in the third party software.

(3)Use Grove - Gesture in the Arduino to prove that
hardware is no problem.


Enjoy the process!

Post Reply