# Hooking up a IO Pi Plus (MCP2307) board

**URL:** <https://discourse.zynthian.org/t/hooking-up-a-io-pi-plus-mcp2307-board/11109>\
**Category:** Hardware\
**Created:** [February 22, 2025, 11:06am UTC](https://discourse.zynthian.org/t/hooking-up-a-io-pi-plus-mcp2307-board/11109 "2025-02-22T11:06:46Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rotil66](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/r/cab0a1/32.png) [@Rotil66](https://discourse.zynthian.org/u/Rotil66)\
**Post date:** [February 22, 2025, 11:06am UTC](https://discourse.zynthian.org/t/hooking-up-a-io-pi-plus-mcp2307-board/11109/1 "2025-02-22T11:06:46Z")

</div>

Hi There,

Is there somebody who knows how to connect a IO Pi Plus board to Zynthian.  
and with what wiring configuration. I can’t figure out how to het it to work.

If I type i2cdetect -y 1 in the terminal I can see that on adress 20 and 21 the 2307 are found.  
I would expect that if in the I choose V5 in the wiring config and hookup the INTA and B (of thr IO plus) to the corresponding pins (29,31 traced back on the PCB layout of the Zynthian mainboard)  
Things should be working. but there is no raction on any pin of the board.

Thanks !!

 ![AB-IOPIPLUS_1-1400x1050w](https://discourse.zynthian.org/uploads/default/original/2X/e/eb7926cf933429292fd8b6cfe05669ee0944c5d8.jpeg)

---

<div class="post-metadata">

**Author:** ![wyleu](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/wyleu/32/514_2.png) [@wyleu](https://discourse.zynthian.org/u/wyleu)\
**Post date:** [February 22, 2025, 11:28am UTC](https://discourse.zynthian.org/t/hooking-up-a-io-pi-plus-mcp2307-board/11109/2 "2025-02-22T11:28:38Z")

</div>

> **[IO Pi Plus 32 Channel Raspberry Pi Port Expander](https://www.abelectronics.co.uk/p/54/io-pi-plus?srsltid=AfmBOoqylXk8T4vcHqhyAQ9_ln_I-5UKLxyIB9-4ITSgp7AzvTEvMHZM)**
>
> Expand the available digital GPIO pins on your Raspberry Pi with the IO Pi Plus 32 channel Raspberry Pi port expander from AB Electronics UK

This board? hook up the i2c wires to the correct pins on the pi. (3 and 5}. And psu (+5v pin 2 or 4) and gnd You should then be able to run i2c\_detect -y 1 and see if the chips are detected.

I’m still documenting encoder connection so this probably develop into the mc23017 section of the wiki…

---

<div class="post-metadata">

**Author:** ![Rotil66](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/r/cab0a1/32.png) [@Rotil66](https://discourse.zynthian.org/u/Rotil66)\
**Post date:** [February 22, 2025, 11:56am UTC](https://discourse.zynthian.org/t/hooking-up-a-io-pi-plus-mcp2307-board/11109/3 "2025-02-22T11:56:21Z")

</div>

Hi Wyleu,

I was expecting you to answer, as the pin-out wizard 🙂  
I checked in the terminal and I can see that adress 20 and 21 are detected.

Since this is a kind of the same setup as the original controlboard. I have traced back the connections and found that int 1 and 2 are on pin 29,31 of the PI and int 3 and 4 are on pin 11,13 of the PI. So I connected these to the int pins on the IO Plus.

I would expect that if I select the V5 wiring preset that the rotaty’s should be working thru the IP Plus but there is no reaction on any of the pins. Which is a bit weird.

Am I thinking wrong here ?

---

<div class="post-metadata">

**Author:** ![Rotil66](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/r/cab0a1/32.png) [@Rotil66](https://discourse.zynthian.org/u/Rotil66)\
**Post date:** [February 22, 2025, 1:37pm UTC](https://discourse.zynthian.org/t/hooking-up-a-io-pi-plus-mcp2307-board/11109/4 "2025-02-22T13:37:25Z")

</div>

Hi Wyleu,

I found out that I wasn’t thinking wrong. But from all the rotary’s I have lying around I picked a broken one to test 🙄. I can get the Rotary’s to work when I hook them up the same as they are on the control board and connect the INT correctly (as on the controlboard) and load the V5 preset in the config.  
With good wiring it works like a charm now.

 ![Zynthian with IO PI Plus pinout](https://discourse.zynthian.org/uploads/default/original/2X/9/92b3036a4f975aaa88b1cc3ae3aec2fa316cd571.png)

The pin numbers in the last colum are the pins on the IO PI Plus.

Bus 1 on the IO PI Plus is for the switches. I haven’t had time to figure out thd pin yet.

---

<div class="post-metadata">

**Author:** ![wyleu](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/wyleu/32/514_2.png) [@wyleu](https://discourse.zynthian.org/u/wyleu)\
**Post date:** [February 22, 2025, 3:33pm UTC](https://discourse.zynthian.org/t/hooking-up-a-io-pi-plus-mcp2307-board/11109/5 "2025-02-22T15:33:27Z")

</div>

Just in the pub after a bracing (totally knackering) walk round Tatton park. Everybody is busy reviewing pictures so I’ve got my phone out more news as we get it.

 ![17402383450064604081203866461729](https://discourse.zynthian.org/uploads/default/original/2X/b/b46a16383173ee11bf0cb694273a087c7db0d707.jpeg)

---

<div class="post-metadata">

**Author:** ![Rotil66](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/r/cab0a1/32.png) [@Rotil66](https://discourse.zynthian.org/u/Rotil66)\
**Post date:** [February 22, 2025, 6:03pm UTC](https://discourse.zynthian.org/t/hooking-up-a-io-pi-plus-mcp2307-board/11109/6 "2025-02-22T18:03:24Z")

</div>

Best place 🍺🎉

---

<div class="post-metadata">

**Author:** ![wyleu](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/wyleu/32/514_2.png) [@wyleu](https://discourse.zynthian.org/u/wyleu)\
**Post date:** [February 23, 2025, 11:13am UTC](https://discourse.zynthian.org/t/hooking-up-a-io-pi-plus-mcp2307-board/11109/7 "2025-02-23T11:13:32Z")

</div>

> [@Rotil66](#):
>
> it works like a charm now.

Excellent!!

Which leaves two essential issues to address [Firstly](https://wiki.zynthian.org/index.php/Talk:Zynthian_Wiki_Home),

But far more importantly,

What are you going to do with the second 23017…?  
Are you about to do your own zynaptik to process switches and LED’s or are you going to add more encoders?

You’ll get a lot less rook soup if you say encoders and you’ll be drowning in the stuff if you say nothing!

You can tell I’m stiff and grumpy from the walk and the fact I didn’t read the thread properly , so

you’re all on an extra ration tonight . . .

---

<div class="post-metadata">

**Author:** ![Rotil66](https://discourse.zynthian.org/letter_avatar_proxy/v4/letter/r/cab0a1/32.png) [@Rotil66](https://discourse.zynthian.org/u/Rotil66)\
**Post date:** [February 23, 2025, 3:41pm UTC](https://discourse.zynthian.org/t/hooking-up-a-io-pi-plus-mcp2307-board/11109/8 "2025-02-23T15:41:15Z")

</div>

To be honest,

I had all the suff lying around and used it for testing if this was something to go on with.  
But since I’m pretty lazy 🫣, I think I just order the Control board and use this, solves al the problems. I already traced the contacts so it should not be difficult to use this without the mainboard.
