Исследование мелодий на МК Padauk

К микроконтроллерам Padauk я давно присматривался. Острой необходимости в их использовании у меня нет, но очень интересовали. В какой-то момент этот интерес взял верх, и я решил попробовать что-нибудь сделать на них. Если посмотреть репозитории с примерами Free PDK, то все делают простенькое проигрывание мелодий. Я не стал долго размышлять и тоже решил сделать проигрывание мелодий, но с одним условием — чтобы небольшая мелодия проигрывалась на самом дешевом и простеньком МК, таком как PMS150C или PMS150G. Я постараюсь вспомнить всё, с чем столкнулся: от программатора Free PDK, обновления поддержки PlatformIO, создания отладочной платы под PFS154 и PMS150C (с адаптерами), музыкального брелока с PMS150G и платы с ATtiny13 — до разбора алгоритма для написания мелодий, которые можно ужать в 1 КБ памяти, а напоследок попробуем снимать значения c АЦП PFS122 и регулировать громкость музыки средствами PWM.

https://habr.com/ru/companies/timeweb/articles/983716/

#padauk #arduino #pms150c #pfs122 #pfs154 #pms150g #attiny13 #пищалка #музыка #timeweb_статьи

Исследование мелодий на МК Padauk

К микроконтроллерам Padauk я давно присматривался. Острой необходимости в их использовании у меня нет, но очень интересовали. В какой-то момент этот интерес взял верх, и я решил попробовать что-нибудь...

Хабр

<ミャンマー(ビルマ)情報>

いえね、この時期(4月)、ミャンマーでは国の花である #パダウ#Padauk )が
あちこちに飾られます。
飛行機(国内線)に乗ったとき、さりげなくこの花が飾られているのを見た時、
なぜか心が和みました。
はい。

I've been #turning some of my trademark Japanese influenced bowls this week for special birthday pressies. The colour in this particular chunk of #padauk is amazing. The richest I've ever seen & more than worthy for the lovely 90yr old lady who's going to receive it! There's a 1934 halfpenny set into the base ☺️

Осваиваем 3-рублёвые микроконтроллеры PADAUK

Тайваньская фирма Padauk по праву считается производителем самых дешевых корпусных микроконтроллеров. Большим функционалом они не обременены, но несложные задачки для простых устройств могут выполнять.

https://habr.com/ru/companies/timeweb/articles/786266/

#timeweb_статьи #микроконтроллеры #Padauk #электроника #программатор #FreePDK #STM32 #CMD #SDCC #CodeBlocks #VS_Code #гитхаб

Осваиваем 3-рублёвые микроконтроллеры PADAUK

Тайваньская фирма Padauk по праву считается производителем самых дешевых корпусных микроконтроллеров. Большим функционалом они не обременены, но несложные задачки для простых устройств могут...

Хабр

The Three Cent Motor Controller

If you follow the world of small microcontrollers you will certainly be familiar with the usual fare of Atmel, ARM Cortex, PIC, and others. But these aren't the smallest or cheapest devices, below them is an entire category of grain-of-dust microcontrollers with minimal capabilities and at rock bottom prices. Maybe the most well known are the Padauk series of chips, whose PIC12-like architecture can be had for literal pennies. These are the famous 3 cent microcontrollers, but despite their fame they have a bit of a reputation in our community for being difficult to work with. [Ben Lim] dispels some of those ideas, by Padauk-enabling a motor and encoder from a printer to make a three cent motor controller.

The Padauk doesn't have on-chip peripherals such as SPI, instead its IDE provides bit-banging code to do the job. This and some PID motor controller code makes for a straightforward task on the little chip, and with the help of a probably considerably more expensive MAX14870 it can drive the motor. For the curious, the code can be found in a Git Hub repository. There may be more accomplished motor controllers to be found, but we doubt you'll find one with a cheaper microcontroller.

Want to know what the fuss is about with the Padauk? Our colleague [Maya Posch] has you covered.

#microcontrollers #motorcontroller #padauk #positionsensor

The Three Cent Motor Controller

If you follow the world of small microcontrollers you will certainly be familiar with the usual fare of Atmel, ARM Cortex, PIC, and others. But these aren’t the smallest or cheapest devices, …

Hackaday

Hands-On: Whiskey Pirates DC29 Hardware Badge Blings with RISC-V

The Whiskey Pirates have once again dropped an excellent electronic badge for DEF CON 29. This is, of course, unofficial, but certainly makes the list of the hottest custom bling seen so far this year.

I'm not able to make it to the con in person, but the Pirates sent over one of these badges anyway for an early look. It's gorgeous, and peering into the circuit board it would be easy to think that the chip shortage ain't got nothin' on #badgelife. But this was possible only because of some very creative parts sourcing, and a huge dose of inspired design work.

The Aesthetic

I usually begin with an overview of the hardware, but come on, this thing looks spectacular! Let's talk about the aesthetic. This is one of the more polished looks for a hardware badge, akin to the Queercon 15 badge which used PCB faceplate and back, separated by edge-lit acrylic. [TrueControl] sandwiched the PCB between two sheets of acrylic, one that serves as a faceplate with both etched and translucent areas, and a clear backplate that carries the side-firing RGB LEDs to where they can be seen.

At the end of each of the cross-bones there is a black rectangle. At first I thought these were some kind of IR reflectance sensor, but they're actually button caps. It looks like they've been cut out of acrylic of a thickness sized perfectly to be flat with the faceplate. They been superglued to the momentary push switches on the board.

The look of these caps is awesome. The function is a bit rough though, as the throw of the switch is very shallow. I did accidentally pop one of these off, probably by pressing too much on one end. A dab of glue has fixed it right back up.

An OLED display shines through the forehead of the faceplate. The badge acts as a nametag which can be customized from the menu. One of the nice touches is that [TrueControl] once again used his fancy firmware trick that tilts the letters of your name to match the angle of the badge. Pretty slick!

Tearing Down the Hardware

You have to be ambitious to get a good look at the populated board since it's normally covered by an acrylic plate and the AAA battery holder. After desoldering that and removing the Torx head screws we are left with a really beautifully assembled board.

We find some creative part sourcing at work here. The main chip is a GigaDevices GD32VF103 (PDF datasheet) which is a RISC-V core (not to be confused with the GD32F103 which is an ARM Cortex-M3). [TrueControl] speculates this may be the first #badgelife project to feature a hardware RISC-V core -- the 2019 Hackaday Supercon badge had a RISC-V software core running on an FPGA. Also on board are a PDK13 (one of the Padauk chips -- take a look at [Jay Carlson's] guide we featured a while back) and there's an 8051-based USB chip (CH552T PDF datasheet) near the bottom of the board for debugging.

There's a hard power switch to one side. I also find two top-down USB ports next to the battery holder. I tried each of them; one enumerates and powers the badge, the other doesn't enumerate but it does power the badge. When probing on the serial ports I saw characters echoing back but haven't explored much beyond that.

The two RGB leds that make up the eyes appear to be flickering and I suspect there's some data transfer happening there. If you look closely at the circuit board near the button on the bottom right bone, there is a two-pad footprint and a cutout in the faceplate clears the way for it. It's possible this is some type of light sensor, although It may simply be an IR LED as I would expect a receiver to have three legs.

There's another trick at play here, which is how to inexpensively source the OLED screens. Looking closely at this one you can see the hack that allows the tails of the pin header to be bridged to some pads on the PCB. These modules are cheap and abundant, but have you ever tried sourcing bare screens and placing your own components to drive them?

Yet Another Superb Offering from the Whiskey Pirates

The most important aspect of making a hardware badge is easily found in this one: passion. Pandemics and chip shortages be damned, [TrueControl] executed on great ideas and got this one over the finish line. The electronic design is quite interesting, and the look achieved reaches a level that everyone will geek out about.

The package arrived with several versions of the face plate. I'm honored that he took the time to etch my name into not one, but three of those plates. And take a look at that part of it -- it didn't end with the etching, those letters are filled with white paint to make them stand out.

If you're at DEF CON 29 this year, keep an eye out for people wearing these. That's the Whiskey Pirate crew, and they're a blast to hang out with. Hopefully I'll have the chance to do so again at DC30!

#cons #reviews #badgelife #ch552 #defcon29 #electronicbadge #gd32fv103 #hardwarebadge #padauk #pdk13 #riscv #whiskeypirates

Hands-On: Whiskey Pirates DC29 Hardware Badge Blings With RISC-V

The Whiskey Pirates have once again dropped an excellent electronic badge for DEF CON 29. This is, of course, unofficial, but certainly makes the list of the hottest custom bling seen so far this y…

Hackaday

RCA Plug Plays Sixteen-Minute Chiptune Piece, All by Itself

Frequenters of arcades back in the golden age of video games will likely recall the mix of sounds coming from a properly full arcade, the kind where you stacked your quarters on a machine to stake your claim on being next in line to play. They were raucous places, filled with the simple but compelling sounds that accompanied the phosphor and silicon magic unfolding all around.

The days of such simple soundtracks may be gone, but they're certainly not forgotten, with this chiptunes generator built into an RCA plug being both an homage to the genre and a wonderful example of optimization and miniaturization. It's the work of [girst] and it came to life as an attempt to implement [Rob Miles]' Bitshift Variations in C Minor algorithmically generated chiptunes composition in hardware. For the first attempt, [girst] chose an ATtiny4 as the microcontroller, put it and the SMD components needed for a low-pass filter on a flex PCB, and wrapped the whole thing around a button cell battery. Stuffed into the shell of an RCA plug, the generator detects when it has been inserted into an audio input jack and starts the 16-minute piece. [girst] built a second version, too, using the Padauk PSM150c "Three-Cent Microcontroller" chip.

This is quite an achievement in chiptunes minimization. We've seen chiptunes in 32 bytes, Altoids tin chiptunes, and an EP on a postage-stamp-sized PCB, but this one might beat them all on size alone.

#musicalhacks #asm #attiny4 #avr #chiptune #lowpassfilter #padauk #pwm #rca

RCA Plug Plays Sixteen-Minute Chiptune Piece, All By Itself

Frequenters of arcades back in the golden age of video games will likely recall the mix of sounds coming from a properly full arcade, the kind where you stacked your quarters on a machine to stake …

Hackaday