Jump to content
  • 0

Does HAT for Raspberry work for OrangePi Pc Plus ?



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.



Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0



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 ! :-)



Ps: compiled on Armbian

Link to comment
Share on other sites

Help us fund some #badass gear for our continuous integration build framework

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.

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.

  • Create New...