03/28/2019 at 19:26 •
The hardest problem in computer science isn't integer factorization, and it isn't proving P != NP. It isn't the knapsack problem, the boxcar problem, or rotating a red black tree on a whiteboard. The hardest problem in computer science is naming things. The last loop you wrote used 'i' as the control variable so don't talk to me about how hard naming things in code is.
There has been a lot of confusion about the naming scheme of subsequent versions of the Shitty Add-On standard. First it started off without a version, then it immediately jumped to V.1.69bis. It's almost as if the people in charge of this are idiots, they don't know what they're doing, or these naming schemes are just gigantic immature jokes. I assure you, all of these are true. Here's the naming scheme for future versions of the Shitty Add-On standard.---------- more ----------
Bis and Terds
The most confusing aspect of the Shitty Add-On V.1.69bis is the use of the word bis at the end of the name. This comes from the ITU-T V-series recommendations, specifically the V.22bis and V.32bis specifications. The logic behind these names comes from Latin; bis means 'repeat' or 'twice'; when the protocol ends in 'bis', it's the second version of the protocol.
This was extended for a few V-series recommendations that had a suggested third version of the protocol. The suffix 'ter' comes from Latin for 'three times', so eventually you get V.32ter, but since the early 90s were the coolest, they called it V.32terbo. Because it sounds like 'turbo'. Because 'turbo' means it's faster. Because someone got the fish instead of the chicken and it was 'turbot'. Here's the relevant press concerning the V.32terbo standard:
Yes, modems actually shipped with the V.32terbo standard printed on the box:
But what about the next standard after that?
Going by the current pattern of just slapping a Latin suffix on the end of a number, the fourth revision of a standard would use something like 'quater'; Latin for four times. Logically, the standard after V1.69terbo would be V1.69qua or something. That's not cool, though; 'terbo' is a much cooler word than 'qua', and we have to keep increasing coolness. Again modem manufacturers in the 90s provide us with an answer. V.EVERYTHING
This naming system will continue; since V.EVERYTHING is the set of all sets and contains itself, we must pick something else for the fifth revision of the standard. V.ASYMPTOTE or V.SINGULARITY is a possibility, but I'm inclined to call it V.Cthulhu. This standard will add a standard for add-on to add-on communication, so it's sorta like Kubernetes, and I already bought cthulunetes.com, so we're just going to go with that.
The naming scheme so far is:
This list will be appended as required, and once we can comprehend something more than something that is incomprehensible.
02/25/2019 at 01:58 •
I would like to preface this by saying this is not the official, final release of the Shitty Add-On V.1.69bis standard. There are a few things still being worked out, especially concerning the function of the two additional pins. However, AND!XOR has already published some reference designs for a SAO using an I2C EEPROM, identical to the Tide Pod SAO of last year. Additional functionality that should be possible will be fleshed out in the future. The reason this is standard is being published now is because it’s better to put things out into the world than wait until something is perfect.
By all accounts, the Shitty Add-On standard is a success, but it was not perfect. Mechanically, standard 2x2 headers aren't very strong, and that goes doubly so if you're using SMD male headers on the add-on. Not many people used the I2C bus, but there were a lot of people that wanted to extend their WS2812 or APA101 RGB LED strings.
A standard isn't a standard unless there's a better one, so now the community of badge makers has settled on a newer, betterer standard for Shitty Add-Ons. It's Shitty Add-On V.1.69bis (SAO.69), and it vastly increases the capability of the Shitty Add-On standard while retaining backwards compatibility.
- A New Connector!
Badges use 2x3 female (non pinned) headers, 0.1” pitch. Similar to last year, but 6 pins. It is highly suggested that badges use through-hole connectors, lest SAOs rip off your pads. These may be keyed, but through-hole 2x3 keyed connectors are either impossible to find or absurdly expensive. The thing you want look for to find a keyed badge connector is, '2x3 Pin 6 Pin With Polarizing Key'. eBay will turn up results for that, but you can only buy 100 at a time. AliExpress reportedly has them, but they're $0.40 USD / piece.
The best connector. It's unobtainable. I own 75% of the world's supply.
Needless to say, the keyed badge connector is rare, expensive, and difficult to find. However, it perfectly solves the problem of Add-Ons coming loose. These connectors have been verified as fitting a standard IDC shrouded header. Use the best badge connector at your own risk.
Add-ons use a 2x3 male, pinned, shrouded connectors. These are actually some of the cheapest and most ubiquitous connectors available, and if you have a device that has an AVR ISP header, this is the same connector. As with the badges, it is highly suggested you use a through-hole header for mechanical strength.
- A New Pinout!
The pin out for SAO.69 is exactly the same as last year's version, with the addition of two 'GPIO' pins off to the right. These will be used for various add-on types, support for addressable RGB LEDs, and serial connections.
Of course, we expect most badges to only use power, and even here we have specifications: Maximum power draw by a Shitty Add-On is 1.1 millihorsepower. If a Shitty Add-on drives a GPIO pin, it MUST be through a resistor of at least 330 ohms. No signals may exceed 3.6V. For power-only add-ons, Utilize only VCC (3v3) and GND to do whatever you want. Other pins should be NC. Don’t exceed 1.1 millihorsepower draw on your SAO.
With the addition of two new pins, we have some options for serially-addressable LEDs. For WS2812 (or NeoPixel) LEDs, badges can support WS2812-based SAOs by outputting a WS2812 datastream from the badge to an SAO to sync or drive an RGB pattern. Badges can either connect the end of their existing WS2812 strand’s data line to GPIO1, or connect a badge GPIO to GPIO1 to send a datastream meant purely for the SAO strand. Note that if you're extending the badge's strand of WS2812s, remember to add ~10 more to your 'strand length'.
For APA102 (or DotStar) LEDs, drive them similar to how WS2812 works, except with two pins. GPIO1 is used for data (DO / MISO), and GPIO2 is the clock (CO / CLK). Badges may also directly connect the output of the last LED in a APA102 chain to this pin provided that the pin never exceeds 3.3V. If the APA102s are driven by a higher voltage (e.g., 5 volts), a voltage divider may be used on the badge-side to bring the output down to 3.3V. SK9822 LEDs are basically the same as APA102.
Serial/UART data is also kinda supported, but using serial on an SAO is generally a bad idea. The main reason for this is that some badges will have multiple SAO ports, all using a single bus for all pins. This means when utilizing serial, someone would have to standardize a common “badgebus” language on top of serial to differentiate a target between multiple SAOs on the same serial bus, lest there be crosstalk, etc. This is similar to what is required for nodes in pub/sub use cases like MQTT. Notes on the implementation of serial include:
- A SAO should not send output to the SAO TX pin (GPIO2) until it has received input from the badge first.
- GPIO1 will be data from the badge to the SAO (badge TX, SAO RX)
- GPIO2 will be data from the SAO to the badge (badge RX, SAO TX).
- A default baud rate of 115200 is recommended.
- Remember that use of serial at all will require working with a badge maker as it requires both hardware and software support on the badge side.
And It's Backwards Compatible!
Although we hope the new mechanical spec will give us more resilient add-ons, there are already thousands of these add-ons deployed. SAO.69 is backwards compatible with existing add-ons! Badges still get female headers, and add-ons still get male pins. SAO.69 standard just adds two pins to the right.
There has been some talk about adding a shitty mechanical standard, such as a 3mm hole for zip ties, or somewhere an M3 bolt could be added. While this would be a fantastic for loose add-ons, the shitty 'do what you want' option works better for us.
Is this the best standard? No, not at all. That's where the Shitty Add-On standard gets its name. There's no way to tell if a Shitty Add-On supports WS2812, APA102, or serial connections. There's some talk of a resistor-based voltage divider between VCC and GND, connected to GPIO1. This could, in theory, be used to query a badge to detect if it's a WS2812, APA102, or Serial connection. We have no idea how this would work yet. Alternatively, we could add an I2C Flash chip onto each badge, with a tiny bit of data saying what the badge is. Again, Shitty Add-On Standard.
02/24/2019 at 18:23 •
With the release of a new specification of the Shitty Add-On standard, it only makes sense to build developer's tools. To that end, we would like to release the following hardware:
The Shitty Add-On Developer's edition puts two Shitty Add-On V.1.69bis headers on a Raspberry Pi hat. The board is self-documenting using the standard Raspberry Pi GPIO pinout, and includes a few neat features. There are two buttons and a single LED. As the guy who programmed a few hundred Tide Pods with a Blockchain last year, let me assure you, this is a necessary feature.
This Raspberry Pi Hat is a shared project on OSHPark, and it is released under the IDGAF license.
08/25/2018 at 13:58 •
Before the Shitty Add-On standard, there were several independent conference badges with their own hats and add-ons. The 2016 Queercon badge came with hats, powered by two small expansion ports on the top of this cuttlefish badge. The expansion ports provided power, ground, and an I2C bus on a 1x4 connector, giving these cuttlebadges unicorn horns, an emo haircut, or a top hat studded with LEDs.
In 2017, there was an obvious need for a standard for badge-addons, with even more standards created. Luke Jenkins published the MiniBadge standard for SaintCon, an impressive standard that implemented 5V, 3V3, I2C and SPI in less than a square inch. The results were impressive, with more than a dozen minibadges being built for the main SaintCon badge.
Finally, we come to the 2017 / DefCon 25 AND!XOR badge which featured Hunter S. Rodriguez and a Futurama Brain Slug.The schematic for this Brain Slug is very simple, just an ATtiny85 microcontroller and a handful of WS2812b LEDs. It's blinky, it's bling, and since every board house can do green solder mask, you can make a Brain Slug PCB pretty easily. Only about ten or so of these Brain Slugs were ever made (although the Gerbers are right here so knock yourself out), but it was a precedent for add-on bling.
DefCon 25 came and went, and a few lucky people walked away with Brain Slugs. Some time around February, 2018 -- the time of Chinese New Year, because that's obviously the best time to start any sort of electronic project -- a few members of the Badgelife collective started asking a few questions. The previous two years of badgemaking showed everyone add-on badges were a thing. The future would have minibadges, or other weird PCBs hanging off the big badges. What if there were a standard for Badgelife add-ons? What if these pieces of indie electronic art could host Brain Slug-like add-ons from multiple creators? The AND!XOR badge really only supplied power to the Brain Slug, but adding holes for pin headers on a badge is effectively free. The only thing you need for this is for the entire group to come to an agreement on a standard pin out.
After literal minutes of discussion, we had a standard. it was decided that the Shitty Add-On pinout should include 3.3V, Ground, and an I2C bus on four headers arranged on a 0.1" grid. The badges would have female sockets (or just through-holes), while the add-ons would have male pins. This is the first, and only, official documentation of the electrical and mechanical specifications of the Shitty Add-On standard. No one followed the standard, but everything worked out in the end.
Why do I say no one followed the standard? Because I'm an idiot. After using Microsoft Paint for three minutes, I whipped up a quick board that would supply power to four Shitty Add-Ons. It's the Shitty Add-On Totem, available on OSHPark. This board is as simple as it gets, with two AA battery holders and four 2x2 headers. The design is pretty clever; two of the headers are rotated 45° clockwise, the other two headers are rotated 45° counterclockwise. This means more add-ons will fit on your totem.
Because the first publication of the Shitty Add-On standard was.... lacking... I whipped up a quick improvement. The headers (now self-documenting on the PCB with the addition of a silkscreen circle) were copy and pasted from the OSHPark render of the Totem. This, unfortunately, is the documentation everyone used. No, the headers were never meant to be rotated forty five degrees, I was just lazy and didn't rotate what I copied and pasted from the OSHPark render. But even if the mechanical properties of the Shitty Add-On header were incorrect, at least everyone got VCC, GND, SDA, and SCL in the right place.
The foundation was set for inter-operations between badges and add-ons. The standard was finalized in February, with Def Con a mere six months away. Dozens of PCB artisans would create their own Shitty Add-Ons. The Official Def Con 26 badge supported the Shitty Add-On standard. The best estimates of the production of badges per Def Con attendees say this: At Def Con 26, there were approximately 25,000 attendees. There were approximately 50,000 badges and add-ons that supported the Shitty Add-On standard. By any measure, Shitty Add-Ons are a successful standard. Hundreds of different Shitty Add-Ons were created. Most of them had LEDs. One was a game of people eating Tide Pods on the Blockchain.
04/06/2018 at 20:44 •
Want to make your own add-on but all you have is a pile of through hole components and some ideas? Or maybe you're a l33t soldering machine, capable of soldering 200+ pin BGA packages to proto boards. Look no further than the #badgelife DC26 shitty addon development board.
Of course you should know this meets the extremely high quality standards that all shitty addons are required to meet. Quality is so high, these are not tested prior to production.
02/14/2018 at 01:02 •
This is a 'totem' that will hold four add-on badges as implemented in the DC26 shitty add-on standard. There are provisions for two AA batteries (optional, if you want to power them externally), a lanyard hole, and a 1x4 header breaking out VCC, SDA, SCL, and GND. Basically, it's the shittiest thing you can imagine.
How does this connect to Badge add-ons?
There you go. Gerbers available in this project. Also available as a shared project on OshPark: https://oshpark.com/shared_projects/uYwa5w3S