Brandon Roots
  • FILM
  • INTERACTIVE
  • ABOUT
  • CONTACT
May 9, 2022

Fractal Plant – Foiled by Registers

broots Homemade Hardware, ITP

Since receiving the PCBs and successfully soldering the board together I have been trying to rewrite code for the I2C port expander. This has been immensely difficult!

The Inkplate Arduino Library makes considerable use of an “Mcp” class, which is written to work with the MCP23017 GPIO expander IC. These chips are quite difficult to locate, I imagine due to the ongoing supply chain issues from COVID.

Mouser tantalizingly shows 100,000 of these chips on order scheduled to arrive starting in 2023! This is not soon enough!

So to make use of available parts I have been trying to rewrite the Mcp class to work with the part that I do have: the TCA9555.

These chips are very similar! Both operate over I2C, share the same address, and add 16 GPIO pins. But as I have learned they do not operate identically. To control the function of the pins both chips use registers that are written and read over I2C, and the mapping for the registers of these two chips are VERY different.

I have been fortunate to find a library for the TCA9555 from Rob Tillaart and between this and lots of referencing to the datasheets of these two chips can see a path forward. Unfortunately to rewrite the Mcp class to work with the TCA chip will take more attention and time than I currently have available.

For now I have been foiled by the registers. Hopefully this is something I will be able to sort out over the summer.

Fractal Plant – Beta Build

Related Posts

Fractal Plant – Beta Build

Homemade Hardware, ITP

Fractal Plant – Beta Build

The boards arrived! Amazingly within an hour of one another. Based on the experience I think that JLCPCB is a better value. With shipping OSHPark was $55.50 for 3 boards. JLCPCB was $26.36 for 10 boards. Aside from a higher cost OSHPark also left sharp bits of tabs around the edges of the boards which […]

Fractal Plant – Boards Ordered

Homemade Hardware, ITP

Fractal Plant – Boards Ordered

Over the last week I rerouted the traces in my PCB design. Following feedback during class that the auto-router feature in Eagle isn’t very smart I did manage to make some cleaner routing manually. As part of the process I went through each component and made sure they were placed a closely as possible to […]

Fractal Plant – Alpha Build

Homemade Hardware, ITP

Fractal Plant – Alpha Build

Designing this board took considerably more time than I anticipated. I thought I was in a good starting place by having two reference designs from previous projects that repurposed Amazon Kindle displays and controlled them with an ESP32, Inkplate 6 and EPDiy. My first hurdle was after realizing that both reference designs make use of […]

Recent Posts

  • Fractal Plant – Foiled by  RegistersFractal Plant – Foiled by Registers
    May 9, 2022
  • Fractal Plant – Beta BuildFractal Plant – Beta Build
    April 24, 2022
  • Fractal Plant – Boards OrderedFractal Plant – Boards Ordered
    April 18, 2022
Brandon Roots
Accessibility by WAH