Jump to content
  • 0

Does HAT for Raspberry work for OrangePi Pc Plus ?


kbmelati
 Share

Question

Dear All,

 

first of all,

 

i dont have any orange pi yet, want to have one, perhaps orange pi PC Plus. My main intention is to use as robotic experiment.

 

i have some questions:

- is orange pc plus GPIO compatible with raspberry one ?

- does shield / module for raspberry works in Orange Pi ?

- example : if i want to use "Pimoroni Explorer HAT Pro for Raspberry Pi", can it work in orange pi ?

 

sorry if these euqestion existed before and sorry if wrong forum.

 

thanks.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hello,

 

I have an Orange Pi Pc Plus, and a PIVOyager, it seems I2C buses (0 and 1) are inversed between Raspberry and OrangePi.

 

(Nb: It was my first go use/compilation)

 

I have created a $HOME/go directory

then I have put the whole project inside a ~/go/src/github.com/omzlo/ structure

I have modified the file device.go https://github.com/omzlo/pivoyager/blob/2ffcdd2ec77871184f2d02f180bd47b720af077a/device/device.go#L169

to change

bus := i2c.OpenBus(1)

to :

bus := i2c.OpenBus(0)

then compile with:

/usr/lib/go-1.10/bin/go build cmd/pivoyager.go

 

and it works ! :-)

pivoyager.png.8063587fdcbad21a6a589df5645d26a7.png

 

Ps: compiled on Armbian

Link to comment
Share on other sites

Donate and support the project!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...