Programming the Smart Backsplash - Writing Code for the Puya PY32 Microcontroller

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 มิ.ย. 2024
  • In this video I cover programming the Puya PY32 microcontrollers for the RGB lit glass tile backsplash project. Each group of two tiles in the backsplash will have a circuit board with a ten cent Puya PY32 microcontroller. The microcontroller will monitor two microphones, one on each tile, to determine if a tile has been tapped. It will then relay the amplitude of that tap to the processor that is controlling the LEDs, allowing patterns to be programmed from the touch feedback.
    We'll start by recapping the general concept, give a brief description of how NeoPixels are commanded, then walk through the software and configuration. The microcontrollers are programmed in C using the Keil uVision IDE. I end the video by showing the prototype, two tiles with a circuit board and LEDs that have been mounted.
    Check out the previous video in the series where I introduce the concept in detail: • LEDs, Microcontrollers...
    00:00 Introduction
    01:31 Project Recap
    03:03 NeoPixel Operation
    04:50 Software Overview
    06:15 Peripheral Configuration on the PY32
    08:12 How I Implemented the Code
    14:09 The Test Apparatus
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 16

  • @user-lx9eg4yv5p
    @user-lx9eg4yv5p 3 หลายเดือนก่อน +3

    Finally someone talking about the fantastic PY32!!! Definitely following & subscribed for more!

    • @AllTradesZach
      @AllTradesZach  3 หลายเดือนก่อน +2

      Thanks! It is really a shame how little there is out there, just the original blog post and a couple forum threads. My next video will talk about the PY32 in depth and show how easy it is to get started.

    • @user-lx9eg4yv5p
      @user-lx9eg4yv5p 3 หลายเดือนก่อน

      Cant wait to see it! Still having some growing pains with the PY32 myself so I'm sure it'll be of help!@@AllTradesZach

  • @user-lx9eg4yv5p
    @user-lx9eg4yv5p 2 หลายเดือนก่อน

    Part 3 when?!?!

    • @AllTradesZach
      @AllTradesZach  2 หลายเดือนก่อน +1

      I just posted a video on specifically on the PY32, if you're specifically wanting more of the tile backsplash project I'm afraid it will be another month or so. It's been a busy month with work travel, taxes, and my editing computer going out for warranty repair.

  • @HeathLedgersChemist
    @HeathLedgersChemist 3 หลายเดือนก่อน

    Innate or inanimate objects?

    • @AllTradesZach
      @AllTradesZach  3 หลายเดือนก่อน

      I was going for inane, but it was a bit hard to understand. Inanimate would have been a good choice though!

  • @oskimac
    @oskimac หลายเดือนก่อน

    i know probably your writing code skills are above average, and maybe you are one of those "i don't use arduino" guys. but unless those super cheap chips are supported by the arduino ide and the community, they never will be adopted like the atmel or esp, even the stm ones. it's a shame that brands don't put some effort in that.

    • @oskimac
      @oskimac หลายเดือนก่อน

      its not a critics to you. is just an obvious observation. i would love to be able to use them.

    • @oskimac
      @oskimac หลายเดือนก่อน

      104 subs???? i just hit that button. i cant believe . 104? i must be reading wrong. it must be at least 104k

    • @oskimac
      @oskimac หลายเดือนก่อน

      the channel seems to be growing steady since i commented!

    • @AllTradesZach
      @AllTradesZach  หลายเดือนก่อน +1

      I'm not a " I don't use Arduino" guy per se, but I do tend to gravitate toward stm32 nucleo boards, mostly due to familiarity and the wide range of options. Like probably most of us I got my start with an Arduino uno, and will still go for one to get started easily.
      I personally think that there's a sort of continuum of programming difficulty for embedded devices and there can be good reasons to go to more complicated languages/devices. That's actually one of the reasons I like the PY32, because unlike some of the other cheap microcontrollers you're not stuck with assembly or some obscure tools, they behave pretty much like the stm32 parts and can use a $10 debug probe for programming. So while yes, I agree it's not Arduino easy, it's not bad.

    • @AllTradesZach
      @AllTradesZach  หลายเดือนก่อน +1

      I know, I honestly can't believe how much attention this video has gotten!