Drop the beat - with guest John Park
S03:E23

Drop the beat - with guest John Park

Episode description

In this episode, Tod and Paul welcome John Park to the show. They discuss a floppy disk MIDI boombox, live-coding music, RP2350 as a mini-computer, and more.

Follow the show on Mastodon or Bluesky.

Show Notes

00:00 Intro

00:54 Floppy Disk Midi Boomboxes (John #1)

9:04 AlgoRave (Tod #1)

14:00 The RP2350 Mini-Computers are here

18:39 CyberBricks

24:28 KiCad cli and diff viewer

28:56 Commodore 64 Ultimate

31:48 Wrap-up

Download transcript (.srt)
0:02

Welcome to the Bootloader, I'm Tod Kurt.

0:04

And I'm Paul Cutler.

0:05

We're happy to welcome special guest John Park to the show.

0:08

But first, two housekeeping items.

0:10

Last episode, I incorrectly said that Andrew Clark was the creator of Supriya, the Python

0:14

API for SuperCollider.

0:16

I received a kind note and link to Joséphine Wolf Oberholtzer and her GitHub profile.

0:21

She has been developing Supriya solo since 2014.

0:25

I apologize and regret the error.

0:27

Second, Tod and I will be hosting a special live edition of the bootloader for CircuitPython

0:31

Day on Friday, August 15th.

0:34

We'll be chatting about and sharing some of our favorite CircuitPython projects and

0:37

features from the last year.

0:39

Check out the Adafruit blog and socials for more details, and we hope to see you there.

0:43

With that out of the way, John, welcome to the show.

0:46

Thank you so much for having me.

0:47

I'm a big fan of the show and it's exciting to be here.

0:50

Oh, thanks.

0:52

And what did you bring for us to share this episode?

0:54

All right.

0:54

I have a couple of things.

0:56

start with this first one, which is floppy disk MIDI boom boxes. I became

1:02

aware of these, I think, through a more modern DIY version, which I'll talk about

1:07

in a second, but that led me to do a little bit of research and looking

1:10

around, and it turns out in the 90s, a couple of companies, notably Roland and

1:16

Yamaha, and to some degree Casio, but the big ones being Roland and Yamaha, created

1:21

these music players that used floppy disks

1:26

and had MIDI files on disks that you could buy

1:29

and then later you could kind of put together

1:31

your own floppies.

1:32

And so they would have these pretty small MIDI files

1:36

which contain all the information for playing a song

1:39

on multiple channels of audio.

1:42

And then inside of the Roland one, for example,

1:45

they had a synthesizer, a little PCM synthesizer,

1:49

similar to some of their,

1:50

kind of based on some of the principles

1:52

of some of their bigger synths, like the D-50,

1:54

which was then sort of reduced down

1:56

into a little desktop synth called the MT-32.

1:59

And then they said, okay, let's take this idea

2:01

of being able to play MIDI on a little synth

2:04

inside of a box and feed it from a floppy disk.

2:08

Initially, I think the idea being for music students

2:11

and music teachers to be able to play a little arrangement

2:14

of a song, change the tempo, transpose the key,

2:18

remove or bring in different instruments. If you were practicing piano, you could drop

2:24

out the piano track on the original and just have the drums and the bass or whatever. So

2:28

they were kind of a little slightly cheesy because they're these, you know, somewhat

2:33

of the era synthesizers that who knows what the quality of the MIDI track you have going

2:40

into it is going to do. But then at some point in the more modern era, people realized, well,

2:47

We love listening to songs, particularly video game soundtracks, using sound fonts,

2:56

which I know Tod has talked about on the show before, which are these sort of pre-compiled

3:00

blobs of a whole bunch of instruments sampled. So you have a couple of different drum kits,

3:05

maybe, and eight different choices of bass to play, or maybe just one of these things,

3:10

maybe a grand piano that's been sampled, or maybe synths that have been sampled,

3:14

or other weird processed stuff.

3:16

The idea of being able to pop in a floppy disk

3:19

with a MIDI soundtrack from a video game

3:22

and then play it back on maybe an accurate rip

3:27

of a game console's sound font, or maybe not,

3:30

maybe it's some weird thing

3:32

that it shouldn't have been played on,

3:34

is just super, super fun.

3:35

So I became aware of, like I said initially,

3:38

this project called the MIDI Blaster,

3:40

which was made by someone who goes by the name

3:42

Luke the Maker. And there's going to be I think links in the

3:45

show notes, but I saw it first on Instagram, they've put

3:48

together a Patreon where you can go download all the files

3:52

necessary to build this sort of modern recreation of that type

3:57

of old MIDI player that uses a Raspberry Pi, it uses fluid

4:02

synth to be sort of the the MIDI player that can access all these

4:06

different sound fonts. And Luke the Maker has put together an

4:10

image that you can put on an SD card to play on your or to run on your Raspberry Pi that contains

4:17

a whole slew of great sound fonts. And I think there are some maybe some sample songs, but he's

4:21

also put together floppy disks that you can download the files, make your own floppies.

4:26

And so I've got a collection of them I've been putting together here, including

4:30

the four disc set of Final Fantasy VII soundtrack. I've got, in fact, I probably can't play these in

4:40

set up to play those. I have okay computer the full album by

4:44

Radiohead, which is just really fun to play back using like the

4:49

Glover 64 sound font, which is just goofy and weird or pick

4:54

some, you know, old synth, a Casio VL one that someone has

4:58

has put together a sound font for that actually, I think Luke

5:01

also offers some for sale if you don't want to build one, but I

5:04

built one including all the three printing files are

5:07

included and a nice bomb of the parts that you'll get for a little audio amp and a little

5:13

matrix display.

5:15

I have resisted the urge to go and buy an old vintage MT-80.

5:20

I came close on one that looked rusty and busted, and I threw a lowball offer there

5:24

that didn't work out.

5:25

But those actually didn't have the conveniences of picking different sound fonts, because

5:31

it was just kind of one synth engine built into the box.

5:34

They didn't have these nice displays

5:36

with the name of the song

5:38

and the name of the sound font or synth settings.

5:41

So I think kind of the modern one actually does one better

5:45

than the old ones as cool as those might be.

5:48

So that's the thing I've been playing around with

5:50

and really enjoying.

5:51

It runs with a little USB floppy.

5:54

So I bought, I don't know,

5:55

a $17 USB floppy drive on Amazon to shove in the thing.

5:59

And it's worked out surprisingly well.

6:02

I love that it uses real floppy disk.

6:04

That's so cool.

6:05

>> It is. I think I love

6:10

nostalgic old stuff that doesn't work.

6:12

This does work well, but you've got that moment when you pop

6:14

the disk in and it clicks and whirs and you wonder,

6:17

is it going to, right now it says no MIDI files on my display.

6:20

It's spinning up, it's searching the thing,

6:22

it takes 10 seconds,

6:24

15 seconds to see,

6:26

and I'm like, "Oh my gosh, it found a song."

6:27

Then I can go hit play and now I'll start

6:29

up with whatever sound font I've got picked.

6:31

floppy experience.

6:33

It is a real floppy experience. And I know that they've, Luke

6:37

the Maker has got some updates coming. Some other people have

6:40

reached out to help with some coding so that you'll be able

6:43

to right now it just plays one song, and then it's done and

6:46

then you forward to the next song. So they're going to add a

6:49

you know, be able to play through the full album, which

6:51

will be a really nice convenience, and some other

6:53

things with with an upcoming version on their Patreon.

6:56

I did watch the video that you shared. It's about 10 minutes

6:59

long. I think it's on the Roland. And I thought it did a

7:01

of explaining why you might want one, because I didn't quite get it at first from a tutoring

7:05

perspective, even though it's called the music tutor.

7:07

Yeah.

7:07

But the one thing that grabbed me was speaking of discs, he showed or demoed a bunch of 90s

7:14

pop music in MIDI format that you could buy on MIDI discs during the 90s.

7:18

Isn't that wild?

7:19

Yeah, it was crazy.

7:20

And I needed, I should have paused it to actually wrote down some of the album names and some

7:24

of the songs, but I was like, that was on MIDI?

7:27

I was just laughing.

7:28

So strange.

7:29

Yeah.

7:30

I've looked around on eBay just a little bit,

7:32

and they just might not be that prolific.

7:36

So it's up to you, make your own.

7:39

And you, of course, can print your own labels.

7:41

And Luke, the maker, puts out nicely designed labels

7:46

that mimic the album art, even though a floppy of it

7:50

may have never existed.

7:51

- Very cool.

7:52

- This Roland MT-80 is amazing.

7:54

It looks kind of like a boom box,

7:56

but it's got a floppy drive instead of like a cassette

7:59

or a CD hole.

8:02

And I'm a big fan of the MT-32,

8:04

which is the MP-80 is like a boombox version of MT-32.

8:07

MT-32 was my second synthesizer.

8:10

And it was amazing

8:11

'cause it could play multiple different sounds at once.

8:13

And it had decent-ish drum sounds and piano sounds.

8:16

And so, yeah, anything that's MT-32 descended

8:21

is got a soft spot for me.

8:23

'Cause it's like, "Oh, this little box,

8:24

"it can do so much."

8:26

- Oh, that's great.

8:27

Yeah, and I was reading also that they,

8:29

went one further and put a reduced set of it

8:32

onto a sound card.

8:34

So instead of like a Sound Blaster,

8:36

you could get this Roland SC-55.

8:41

And I believe there are some pretty popular,

8:43

well-known video games of the era

8:46

that were made with those sound cards

8:49

and then recorded if it was CD audio.

8:51

So you could be playing a game

8:54

that had the audio going through this whole pipeline

8:56

of this Roland MT-32 derived synth engine,

9:00

which is interesting.

9:02

- That's cool.

9:03

- That's a great pick.

9:04

Tod, what's your first one for us?

9:06

- All right, so my new favorite live music genre

9:09

is Algorave.

9:11

Well, it's a term that's been around since at least 2011,

9:14

according to Wikipedia.

9:15

I just recently came across it.

9:17

Basically, it's live coding dance music

9:19

in a live club audience.

9:20

But wait, you may think watching nerds twiddling on laptops

9:24

isn't quite live music.

9:26

I need to be right.

9:27

In the mid 2000s, I went to a few clubs

9:28

where people were playing on monomes,

9:30

those light-up, gridded mini controllers

9:32

that controlled sensor laptops.

9:34

But they were on music stands angled towards the audience,

9:37

so you could see the monome button lights

9:39

change with the performer's actions.

9:41

Made it much more engaging than just watching

9:43

a laptop user bop on their head.

9:44

Seeing computers unashamedly used

9:47

as live musical instruments was new too for me.

9:50

With the monome, you could see the performer playing,

9:52

see the device respond.

9:53

It brought the audience in,

9:55

showing them a little bit how the performance worked.

9:58

Later we got performances like Median's Pop Culture,

10:00

Sean Wasabi's Marble Soda,

10:02

on the Launchpad or Midi Fighter devices.

10:05

These grid devices had become displays unto themselves,

10:08

yet they were still distance with the audience.

10:10

You couldn't see what these button presses

10:12

were really triggering.

10:13

There's a laptop maybe off screen

10:15

or kind of hidden from view,

10:17

and you couldn't even see what programs they were playing.

10:20

Then there's live coding in Algorave.

10:22

Instead of hiding the laptop screen,

10:24

brought to the front. Live algorave performers project their laptop screens on club walls.

10:29

And it's not boring. These live coding apps look more like something out of a Hollywood

10:33

executive's idea of hacking rather than standard GUIs we're all familiar with.

10:38

Picture a screen of text. Seemingly random sections of it flash in time with the beat.

10:43

You see the performer's cursor move and position over some text. It changes. The screen flashes.

10:48

The beat drops. Under and above the text are visual representations of notes, the drums,

10:53

the audio waveforms being played,

10:55

making it difficult sometimes to make out the text.

10:58

This code that is somehow also music performance.

11:01

And then it scrolls again, changes, and the beat goes on.

11:04

It's really hypnotic.

11:06

Now you can see both the performer and instrument

11:08

they're playing, but the instrument is code.

11:11

That's Algorave and live coding more generally.

11:14

If you'd like to try out live coding

11:16

in your hand at Algorave, there are many apps to try.

11:19

I'll include links in the show notes.

11:21

Most are free and open source.

11:22

Several I mentioned back in bootloader episode 2 back in October 2022

11:27

The one I've been using a lot these last several weeks is called strudel

11:31

It runs in the browser and that's a lot of fun any any time you ever you have access to a browser

11:37

You can do a little live coding session an artist who's working primarily in strudel now goes by the handle DJ Dave

11:44

And I think I've posted both links links to both both Paul and John Park bugging them about DJ Dave

11:49

I remember DJ Dave using Sonic Pi a few years ago, another live coding environment, but

11:54

now she's all Strudel.

11:55

Her Strudel live sets project the Strudel live coding ruffle screen on multiple walls,

12:00

embedding you in the music code.

12:02

She's mostly active on Instagram, and you can learn some cool Strudel tricks from watching

12:06

her Instagram reels.

12:07

So I've included some links in the show that's about that.

12:10

So go ahead and check out some Strudel videos on Instagram or YouTube.

12:14

You can see the musical composition, the music compositional thinking happen in real time

12:19

as the person writes their strudel code.

12:22

It's a lot of fun.

12:23

I'm so impressed by the people that know coding and have enough knowledge of music theory

12:27

and music composition to do both at the same time.

12:30

It's crazy.

12:30

Under pressure.

12:31

Exactly.

12:34

Yeah, it's so cool.

12:35

You were sending, you sent me a link to it, not only performances by DJ Dave, but also

12:42

a little web snippet that you texted me.

12:44

And one of the things I really love about it

12:46

is the sort of active highlighting of elements of the code

12:50

that are currently doing something.

12:52

At least that's my understanding of it,

12:54

is you can more than just seeing a block of code

12:56

and listening, you're a little more active

12:58

in following what thing in the code

13:01

is doing a step at that moment.

13:04

- Yeah, it's a great debugging tool for both you,

13:07

it's a debugging tool for you, the writer of the stuff,

13:10

but also it helps the viewer kind of see what the song is doing.

13:15

Mm-hmm.

13:17

Yeah, I wonder if you can rent out the Madison Square Garden Sphere in Vegas to do a live coding conversion.

13:25

You know, I think she might be performing in Vegas soon.

13:27

Oh my gosh.

13:30

We could sneak into the one they have here in Burbank, the little trial space that they built.

13:35

Oh, yeah, totally.

13:37

Perfect their acts and try to do some strudel.

13:41

Why is it called that?

13:43

Any idea where the name came from?

13:45

I have no idea.

13:46

I think it's part of the Tidal project,

13:49

which is another live coding thing that's been around.

13:51

So I think it might just be like S to T.

13:55

Yeah, it's kind of like Tidal, but with an S.

13:57

I don't know.

13:59

Makes me hungry.

14:00

All right, Paul, what's your first one for this week?

14:02

Every year there's a joke in the Linux community

14:04

that this year will be the year of Linux on the desktop.

14:07

And it never happens.

14:10

But I think 2025 might be something different, the year of the microcontroller as a mini-computer.

14:15

This is because when Raspberry Pi released the 2350 chip, they released a 2350B version

14:21

which contains 48 GPIO instead of the normal 30, allowing for a lot more peripherals to

14:26

connect to the microcontroller.

14:28

Adafruit's been teasing us for months about their mini-computer, the Fruit Jam, which

14:32

they've been developing in the open and even have a product page up for it.

14:35

It features the RP-2350B, 16 megs of flash plus 8 megs of PSRAM, with the PSRAM helping

14:42

for emulation, a microSD card, DVI output, headphone output, 2-port USB-A host for keyboards,

14:49

mice or gamepads, 3 switches, and even more.

14:52

And if you've been following their development, they're up to a Rev-D version that I think

14:56

features a Wi-Fi coprocessor, though I don't see that on the product page yet.

15:01

But now a company named Olimex has beat them to the punch with a product and description

15:05

that doesn't leave a lot to the imagination,

15:07

calling it the RP2350 PC.

15:10

It too features the 2350B, 16 megs of flash

15:13

and eight megs of PS RAM,

15:15

but has four USB-A ports for USB host,

15:18

DVI and HDMI output, micro SD card, stereo out and in.

15:23

It's only 25 euros, which seems really reasonable.

15:26

It comes with a custom UF2

15:28

that looks to be running MicroPython,

15:30

and they market the Reload emulator

15:31

to run Apple II games and software on it as well.

15:35

There's a short manual that mentions their uext connector of which they've

15:38

developed some plug and play modules that use this universal extension connector.

15:42

They've also made the schematic and KiCad files available on

15:46

GitHub, which is a nice touch.

15:48

I looked at picking one up, but it was 23 euro to ship it.

15:51

And that's before any tariff.

15:52

So almost double the price.

15:54

I'm really excited for these.

15:56

If you can't tell, it takes me back to being a kid and plugging a computer

15:59

into a TV and programming basic, except this time it could be circuit

16:03

Python or micro Python like I mean I think one of the reasons why the all of X 1 is is much cuz gonna be much

16:09

Cheaper than the Adafruit one is because it doesn't have Wi-Fi

16:13

Right, I think that's that's I think I think more as as they were developing the fruit jam

16:18

I mean like JP might be able to speak to more of this

16:21

But it seemed like it's like well if we're designing something sort of a game console slash tiny computer

16:26

Shouldn't it also be on the internet?

16:28

So it's like how do you make it be on the internet?

16:30

you have to add the Wi-Fi. And I don't mean to put John on the spot and share any trade secrets.

16:35

I'm just excited about these. No, not at all. I don't think there are any secrets. But yeah,

16:37

so I have the Rev-A is the only one that I have here at my workshop, which did not have

16:44

the Wi-Fi and otherwise it's very similar other than some spacing of some things.

16:49

And I agree with you, it's exciting in a 1983 Apple IIe in JP's basement kind of way, because

16:57

It's so direct.

16:59

The project that I've started working on along with Tim,

17:03

Foamy Guy at Eddiefruit right now

17:05

is a little sort of video text generator

17:09

to just composite on top of other stuff.

17:13

And so I wouldn't do that with a Raspberry Pi

17:16

because it would be so cumbersome,

17:17

but this having no OS to speak of

17:20

and just booting instantly

17:22

and allowing me to do display IO things

17:23

to pop text in front of something

17:25

with a green screen background,

17:27

it's got the HDMI out and it's got a keyboard and mouse in.

17:30

So it does feel like an instant on super simple computer.

17:36

So I'm excited about it too for those reasons.

17:39

And the idea of it in general,

17:41

I think not just this Adafruit one,

17:43

but the OLIMX one looks really interesting.

17:45

And just that general idea of we are hitting a spot

17:49

where it's not quite as pulling teeth

17:53

to do computer like things

17:54

on a little microcontroller board.

17:56

Right. Yeah, and these and these things have the great like both both the fruit jam and the

18:01

This all the next thing and anything else that is like a micro controller based thing has the really nice

18:06

Feature of it just like old computers

18:08

They turn on instantly like nowadays we have to wait 30 seconds or whatever it is to take for computer to boot and that's cool

18:14

You know when you're learning about computers, but but it it definitely is the oh

18:18

I just want to goof around for a little bit like that with the buddies used to always do with my little Apple 2 was

18:23

I'd turn it on I type a few lines of basic and

18:27

Make something goofy appear on the screen and that would be like my 10 minutes of

18:31

Playing with the computer for that afternoon and now these these things had that we just turn them on and they're running

18:37

All right, John. What's your next one for us? All right, so my next one is a

18:43

Modular

18:44

RC toy

18:46

microcontroller sort of combination product called cyber brick and

18:51

And this comes from the Bamboo Lab people

18:55

who make the 3D printers.

18:56

And I have one of their 3D printers and love it.

18:59

I think it's really well done.

19:00

And the ecosystem around it is excellent

19:03

as far as support and documentation

19:05

and updates and things.

19:06

So I was excited to find out in their little maker supply area

19:11

of their store where they sell LEDs and things

19:14

that they encourage you to couple

19:15

with some of their pre-made 3D models.

19:17

I'd missed the launch of this,

19:19

that they have launched essentially a modern version

19:22

of a Lego Mindstorm type of idea,

19:24

which is modular electronics that are fairly plug and play

19:29

with some motors and some servos and some LEDs

19:32

and some buttons that communicate with each other

19:36

and communicate with your phone or your computer

19:39

to code them in a graphical environment.

19:43

Digging a little deeper, what these are,

19:45

I ended up getting a set of some of just the basic bricks,

19:48

But what they're really targeting and some of their kits

19:51

that you can get right out the gate

19:53

are meant for printing little RC cars and trucks

19:57

and forklifts and things that they've

19:59

got available for free up on their maker world,

20:03

I think it's called.

20:04

Get their models, 3D print them, and then couple them

20:08

with these modular electronics and motors and things.

20:11

And now you can build little toys

20:12

that you can control, which is pretty interesting.

20:15

I haven't printed any of those cars and things.

20:17

I just wanted to get the microcontrollers

20:19

and their little peripherals and start playing with them.

20:21

So what it looks like is a little ESP32,

20:25

I think C3 on these sort of general purpose controller

20:31

boards that you can code over USB-C and MicroPython

20:36

if you want, or just using their Bluetooth firmware,

20:41

you can code with this graphical environment.

20:44

And then they have a little carrier board or a shield

20:47

they plug into, which they call a transmitter and a receiver

20:51

shield.

20:52

As far as I can tell, they are not transmitters or receivers.

20:54

The shields, I think that's all handled

20:56

on the little controllers, which I believe are using ESP-NOW.

20:59

So they're a really smart use of ESP-NOW

21:01

to do this kind of remote control to gizmo.

21:06

The little carrier boards deal with things

21:08

like power boosting and motor driver and servo control.

21:12

and they have a bunch of little JST,

21:15

different sizes of JST connectors for hooking up NeoPixels,

21:18

hooking up motors, hooking up buttons and switches.

21:22

So really interesting.

21:23

It kind of straddles a line between straight up DIY,

21:27

hey, I wanna go to SparkFun or Adafruit or buy an Arduino,

21:30

versus a more closed system like Mindstorm,

21:34

which Lego is never sure

21:35

if they wanna be selling that or not.

21:36

So I think they're currently in a dark age of Mindstorm

21:39

as far as I can tell.

21:40

But this thing is really interesting.

21:42

I think it's Tod and I, in fact,

21:44

we're talking about maybe trying to get

21:46

CircuitPython onto it.

21:48

It seems like it could be a neat

21:49

just bit of hardware to hack around with.

21:52

I don't think they're entirely open source.

21:54

It's a little unclear which parts of what they're doing

21:56

are open versus closed.

21:59

But I think it's exciting.

22:00

They have a pretty big audience

22:01

and I think it puts some neat microcontroller DIY stuff

22:05

out into the world for people to play around with.

22:08

- And you're becoming an expert in ESP now

22:11

on CircuitPython too, so you can maybe

22:14

learn some of what it's doing underneath.

22:16

- I'm hoping to become good at it.

22:17

I would not use the word expert.

22:20

I'm very at the beginning of my using ESP-NOW,

22:22

but I'm digging it.

22:24

If you're not, by the way, for people who aren't familiar,

22:26

ESP-NOW is a really neat little peer-to-peer protocol

22:30

that uses the radio that's built onto these ESP32 chips,

22:34

but does not use the whole cumbersome Wi-Fi stack.

22:37

It instead can do either one-to-many, many-to-many,

22:40

one-to-one communications that are meant to be simple, small,

22:44

I think 250 bytes is the package size,

22:47

communication among things.

22:49

So a nice, simple alternative to try and do things

22:52

with like BLE or IR or other radios.

22:56

So that seems to be in a lot of light bulbs

23:00

and home automation products.

23:02

And now I'm becoming more aware of it

23:03

as something that we can program in CircuitPython

23:06

or Arduino on our little microcontrollers.

23:08

- I'm so glad you brought the Cyber Bricks to share.

23:11

I too missed the launch on this.

23:13

I remember seeing a year, year and a half ago

23:15

that Maker World had a kit you could buy

23:17

to make a little turntable.

23:18

And of course me being a big into records,

23:21

I looked at it and it wasn't the cheapest thing,

23:24

but they had the little servo or the motor

23:27

that would turn the record and then you 3D print it apart.

23:29

So it looks like they've really taken that idea

23:31

and run with it at a hundred miles per hour.

23:32

- Yeah, yeah.

23:33

You know, I should also mention one other,

23:35

since what you just mentioned is outside

23:37

of the RC car thing, another one that they have available

23:40

as a kit, I think it's not available right now

23:42

just 'cause they've probably sold through,

23:43

is a time-lapse camera module.

23:47

And it meant for probably your printer,

23:49

which a lot of printers have that built in.

23:51

But so they at least are aware,

23:53

this could be extended out to way more stuff

23:56

than just RC cars and trains and cranes and things.

24:00

And if you go, actually, if you go to the Maker World

24:04

or Bamboo Studio and look for search for models,

24:08

you will see a lot of stuff that users are making too,

24:10

including of course, there's an R2D2 kit on there,

24:13

there's a robot arm kit, bumper cars.

24:15

So people are making their own models

24:18

and then presumably their own profiles

24:21

to upload to the firmware on the board

24:23

so they do what you want to do.

24:25

- Well, that was a great pick.

24:26

Tod, what's your next one for us?

24:28

- All right, so did you know that you can use KiCad

24:31

from the command line?

24:33

Until recently, like the last 20 years,

24:35

I used Eagle to design circuit boards.

24:37

It was pretty great.

24:38

It was made better back in 2011

24:40

when the community, including Adafruit's Limor and PT,

24:43

convinced them to change their proprietary

24:45

binary file format to a text-based one.

24:48

This made integration with version control systems

24:50

like Git much easier and a stable of tools

24:52

to process Eagle files blossomed, making our lives easier.

24:56

When I moved to KiCad last year,

24:57

I was pleased to see it also had

24:59

a well-defined text-based file format,

25:01

script-based processing of KiCad designs,

25:03

both in the app and outside with standard practice.

25:06

This has enabled wonderful tools

25:08

like various image importers and exporters,

25:11

Stargirl's web-based KiCad viewer for the web,

25:14

organic round trace generators,

25:16

you can have those cool curvy traces from the '60s,

25:19

a manufacturer part number to KiCad footprint generators,

25:22

you can just put in a part number

25:25

and it'll generate a whole KiCad schematic symbol

25:27

and footprint for you,

25:29

and exporters for popular PCB fabs.

25:32

So it's really easy to get your board made.

25:35

But editing these KiCad files can be tricky,

25:37

especially if they're currently open by KiCad the program.

25:40

So I was really intrigued to learn about KiCad CLI,

25:44

a command line tool that ships with KiCad.

25:46

Using this tool, you can do the obvious things

25:48

like export Gerber files and drill files for PCB production.

25:51

You can also use it to import and export

25:53

schematic symbols and PCB footprints,

25:55

but you can also have it run ERC,

25:58

electrical rules check and DRC design rules check

26:02

on your schematic and PCB from the command line.

26:05

This is like a syntax and linter for your code,

26:07

but for circuit design,

26:09

it means you could add these to a GitHub action

26:11

to ensure you never check in a bad schematic.

26:14

This is pretty cool.

26:15

It's because as someone who has checked in a bad schematic

26:18

and then built a board from that and then realized,

26:21

"Oh, I ran the DRC, but I forgot to run the DRC

26:25

after I made the edit."

26:26

And this would have helped me in a couple of places.

26:30

The reason why I started looking at this whole KiCad CLI

26:34

is I wanted to do a visual Git diff of a PCB design.

26:39

The normal Git diff will show you

26:40

how your text is changed for code.

26:43

But for a vector art design like a PCB,

26:45

it's not really helpful.

26:46

And the tools that I found to do this

26:48

were either some part of a for-pay monthly service,

26:51

or I had huge dependencies and written

26:53

for old versions of KiCads.

26:55

I wasn't sure they'd work.

26:55

I kind of want to invest in a whole node type script install

27:00

or a whole Rust--

27:02

get Rust installed to make this one program work.

27:04

So using some tips from a KiCad forum post,

27:07

I made a very simple visual diff shell script

27:10

that only depends on having KiCad

27:12

and having a working web browser.

27:13

It works by calling KiCad CLI twice

27:15

to render two different versions of the PCB to SVG images,

27:19

and then some quick HTML CSS magic

27:21

to animate a crossfade between those images.

27:24

It's about 90% of what I want.

27:27

And with some changes to my Git config,

27:29

I can now do a Git diff for PCBs visually.

27:33

It's not a tool I'm gonna use every day,

27:34

but when I do need it, it's really handy.

27:38

- Yeah, Tod, that sounds really cool.

27:39

It's interesting, you showed that to me

27:41

and the ability to do a little cross wipe,

27:45

cross fade between them is a great reminder

27:48

of you can have all the tools in the world

27:50

trying to find differences,

27:51

but just you looking at it

27:52

and seeing a thing move or a trace not be correct

27:56

is really powerful.

27:57

In fact, it reminds me of when I worked in animation

28:01

at Disney, there were some similar scripts up at Pixar

28:05

in the rigging--

28:06

I worked in character rigging--

28:07

in the rigging group.

28:08

Just every night, automatically, all of the character rigs

28:12

would be animated through a little set of standardized walk

28:16

cycles and things.

28:18

A script would just diff them visually.

28:21

So if you just diff two animations on top of each other,

28:24

you can notice like, wow, I think, you know,

28:26

the elbow deformer or something changed in the code

28:28

somewhere in this huge pipeline,

28:30

because there were some pixels that showed up.

28:32

Like if you diff two images,

28:34

they should just be black, one on top of the other.

28:35

So they had a really clever way of saying,

28:38

hey, just flag me if you notice anything visually different

28:41

between these without, it's not computer vision or anything.

28:43

It's just literally, is there a pixel that isn't just black

28:45

on these two sandwiched images.

28:47

- Totally.

28:48

- So that reminds me of that,

28:49

being able to just swipe between your two PCBs,

28:52

you're gonna catch stuff.

28:54

- Yep.

28:54

All right, Paul, what's your second one for this time?

28:57

- Growing up as an '80s kid,

28:58

it seemed to me that there were two camps of those

29:00

who had an early computer.

29:01

You either had an Apple II, like John mentioned earlier,

29:04

or you had a Commodore 64.

29:07

Personally, I was lucky enough to have an Apple IIc,

29:09

but a number of my friends had the C64,

29:12

and now the Commodore 64 is back.

29:15

YouTuber Perry Fractic,

29:16

who runs an all things retro YouTube channel,

29:19

has announced via a video on his channel

29:20

that after seven months of negotiations,

29:23

he has a deal in place to buy the Commodore 64 brand

29:25

for seven figures.

29:27

He's created a public benefit corporation for Commodore 64,

29:30

which means that while it's not a non-profit,

29:32

it has been founded to preserve and promote retrocomputing.

29:36

And with that comes news that they're selling

29:37

a Commodore 64 Ultimate that you can pre-order now

29:41

and is supposed to ship before the end of the year,

29:43

starting at $300.

29:44

They claim it's the first new Commodore in over 30 years,

29:47

And that's because it's not doing software emulation.

29:50

They're using an FPGA to recreate

29:52

the actual Commodore hardware.

29:54

There's three models to choose from,

29:55

the basic beige edition, a starlight edition

29:58

that adds a translucent case with sound reactive LEDs,

30:01

and the ultimate founders edition,

30:03

of which there are only 6,400 made for $500

30:07

and comes with gold plated badges, gold keys, and more.

30:12

- Lasers, does it have lasers?

30:16

Each model does have an HDMI port,

30:18

built-in Wi-Fi and USB to bring it into the modern era.

30:21

They're able to play any of the original

30:23

Commodore 64 games and applications,

30:25

and the description even claims

30:27

that you'll be able to plug in old cartridges,

30:30

CRT TVs, or even disc drives.

30:33

I hope they pull it off.

30:34

That's a lot of $300 retro computers to sell

30:37

to get a return on investment on that seven figures.

30:39

- Wow.

30:41

- This is really cool, though.

30:44

I'm always amazed at how, what you can get an FPGA to do.

30:49

- Yeah, it's interesting.

30:49

When you look at the actual back of it,

30:51

it's got the original ports that it had.

30:53

So on the far right side of the computer

30:56

is where they've added the USB and some of the newer stuff.

30:59

And then the back, where the FPGA is, motherboard is,

31:04

it's set up to be just like the original Commodore 64.

31:07

It's pretty interesting.

31:08

- Wow.

31:09

Do you think it's time to finally take that trip

31:11

into Commodore 64 land as a former Apple guy?

31:15

- You know, I went through a phase

31:17

where I bought my first two computers.

31:20

My father actually gave me my first Timex Sinclair

31:22

that we had as a kid,

31:23

and then I went out and bought an Apple IIc.

31:26

During the pandemic, I ended up putting them both up

31:28

on eBay.

31:28

I tried the retro computing thing,

31:30

and it's just not for me.

31:32

The first time I heard the Apple IIc boot up

31:35

with that classic sound,

31:37

I was instantly a 10 year old again.

31:39

It was amazing how it took me back.

31:41

- And then bored five minutes later, right?

31:43

- Kind of, yeah, to be honest with you.

31:45

- That's how a lot of these go.

31:48

- Well, that's our show.

31:49

Thanks to John Park for joining us

31:50

and check out his weekly show,

31:52

John Park's Workshop on the Adafruit YouTube channel.

31:55

And don't forget that on August 15th,

31:57

Tod and I will be hosting a live edition of the Bootloader.

31:59

Check the Adafruit blog and socials for the time

32:02

and we hope to see you there.

32:03

Until next time, stay positive.

32:06

(gentle music)