• Me and @JGreen (@jsjgreen on Twitter) had a go at a demo for his GCSE Technology classes (for John Port School) yesterday - it's showing how a Microcontroller can use inputs to control outputs in order to do something useful...

    https://youtu.be/Jxz2aHnxqpI

    It's just a MeArm, Adafruit TCS34725, and one of the original Espruino boards...

    • The MeArm is on C4, B15, B14 and B13
    • WS2811 LEDs are on B5
    • TCS34725 is on B8(scl) /B9 (sda)

    And that's it - the arm just runs through a set of keyframes that are stored in an array that tell it how to move to pick up the token and place it in front of the sensor, and once the sensor has had time to average out the colour it then chooses from 1 of 3 sets of movements, which determine where the token is dropped.

    Source code should be attached - it's a bit too big to inline, but mostly because of the comments!

    Thanks to @DrAzzy for the TCS3472x module - docs for it will be on the website in the next day here


    1 Attachment

About

Avatar for Gordon @Gordon started