AEFeinstein / Super-2020-Swadge-HW

The hardware for a hardware badge (Swadge) for Magfest 2020
https://swadge.com/super2020/
GNU General Public License v3.0
5 stars 2 forks source link

Add some pads to circuit board #21

Closed bbkiwi closed 5 years ago

bbkiwi commented 5 years ago

Summary Make it easy to add more LEDs and other audio input. I envision doing this to use the swadge later to make flashy things.

Technical Spec For more LEDs need breakout to pads of RX, +5, +3.3, GND (I don't think there is any standard connectors for strips (and none for rings) Audio in: not sure exactly where to add input.

I imagine anyone want to do this would reprogram the firmware, but (at least) for some mode, it may be possible to have NUM_LIN_LEDS be a parameter that can be changed.

AEFeinstein commented 5 years ago

The first thing to remember is that the Swadge is primarily targeted at normal Magfest-goers, not hardware hackers. Adding unpopulated pads to continue the LED daisy chain is easy enough. I have two concerns.

  1. Do the LEDs really need both 5v and 3.3v? They're currently using only 3.3v.
  2. The regulator only has 1A output. A WS2812B can draw 50mA at full brightness. Assuming 8 LEDs onboard and no other peripherals drawing current, a user would only be able to safely add 12 more LEDs. Would it be reasonable to only have a pad for data out, and require the user to supply power to the rest of the strip?

A separate audio pad is easy enough too. A separate switching mic jack probably won't be worth the cost of the part.

  1. Would you want that before the amp and filter circuitry, after, or somewhere in the middle?
  2. Would it be acceptable to say "cut the trace to the current mic" to use an external mic? We can add holes too so that the cut trace would be easily reconnectable with a wire.
bbkiwi commented 5 years ago

Hi Adam, I understand about the target audience. I'm just a 74 year old retired mathematician who likes to play with flashy lights :-) However it is fun to be able to help in someway with this even though I will never go to a Magfest.

I am envisioning powering a longer strip with +5V out of the micro USB, although as you say the 3.3V could allow for a small number of additional lights. Thats why pads for +3.3, +5 and GND would be convienient.

For various CC projects with the nodemcu, I usually power via +5. I also use lots of techniques mentioned in this article: https://learn.adafruit.com/sipping-power-with-neopixels/insights Quite bright and interesting displays using 60 LEDs can be done that draw less than 500ma. (I have on occasion blown up a regulator when my programming 'safeguards were wrong). Let the hacker beware :-)

  1. Re audio, I was thinking of probably connecting an instrument pickup. I'd leave it to more experts to decide where this might be best. I'm not sure how much the gain can change with AUD_PWR. So probably somewhere in the middle. DFT32.c is sensitive to aliasing effects so any high pass filtering is helpful. https://github.com/cnlohr/colorchord/issues/89
  2. Yes I think "cutting" and "holes" would be fine.
bbkiwi commented 5 years ago

I didn't mean to close - pushed the wrong buttom

AEFeinstein commented 5 years ago

Retired mathematician! I never knew. And I see you have a copy of Matlab! I only have Octave :(

Exposing both 3.3V and 5V pads sounds fine. You seem to know the risks, and I think this is mostly for you, and maybe some other intrepid folk.