Close
0%
0%

Jolly Bones

A buttons add-on for the Adafruit Hallowing board.

Similar projects worth following

Like "joy sticks" only more grim.

  • Scrapped

    deshipu06/07/2019 at 16:22 2 comments

    After assembling one of the prototype boards and programming it with the code from #D1 Mini X-Pad Shield, I proceeded to write the CircuitPython code to test it. This is what I came up with:

    import board
    import busio
    import digitalio
    import time
    import displayio
    
    
    vcc = digitalio.DigitalInOut(board.A5)
    vcc.switch_to_output(value=1)
    gnd = digitalio.DigitalInOut(board.A2)
    gnd.switch_to_output(value=0)
    time.sleep(0.25)
    i2c = busio.I2C(sda=board.A3, scl=board.A4)
    i2c.try_lock()
    buffer = bytearray(1)
    print(i2c.scan())
    while True:
        try:
            i2c.readfrom_into(0x10, buffer, start=0, end=1)
        except OSError:
            print("error")
        else:
            buttons = buffer[0]
            print(hex(buttons))
        time.sleep(0.5)

    First I enabled the power pins, then the I2C bus, and then just read the buttons in a loop.

    Unfortunately all I got is a string of errors with an occasional 0x40 among them. It looks like the 7mA that the GPIO pins of SAMD21 are supposed to provide is not enough to reliably power the attiny24, together with all the pullup resistors. I really have no other explanation.

    At this point I could redesign the PCB to use the regular feather pins on the back of the hallowing, but I would need to make it a complete feather footprint, because the power pins are way up at the top. And then the PCB would be quite large and not that interesting. So I decided to scrap this project.

  • Wait for your Prototypes Kids

    deshipu06/07/2019 at 13:55 0 comments

    And here are the "production" PCBs that I finally ordered, because the prototypes were taking so long and what could possibly go wrong, right? Well, they are going straight to the trash now. (Also, I meant to order black ones, and made a mistake.)

  • The Curse

    deshipu06/05/2019 at 08:02 0 comments

    After many adventures, I finally received the PCBs from @oshpark, and was able to check how they fit:

    And of course I put the resistors where they would collide with the hallowing. A new version it is, then.

    I still need to assemble this one, to at least test if there are no other problems — better to catch as many mistakes at once as possible.

  • A Bit of Delay

    deshipu05/09/2019 at 11:26 0 comments

    The PCBs have a little bit of a delay, it will probably take another two weeks.

View all 4 project logs

Enjoy this project?

Share

Discussions

davedarko wrote 04/13/2019 at 12:39 point

okay nice, but what color will you get them in? 

  Are you sure? yes | no

deshipu wrote 04/13/2019 at 13:24 point

Well, the prototypes are obviously purple, but if I decide to make more of them for sale, then it will be black to match the Hallowing itself.

  Are you sure? yes | no

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates