@diyelectromusic@mastodon.social avatar



Simple DIY electronic music projects - #Arduino, #RaspberryPi #MIDI, #synthdiy, where music and #STEM overlap. Home of the #LoFiOrchestra and follower of #MakersHour.

Blog: https://diyelectromusic.wordpress.com/@diyelectromusic.wordpress.com

Videos: https://makertube.net/accounts/diyelectromusic

This profile is from a federated server and may be incomplete. Browse more on the original instance.

deshipu, to random
@deshipu@fosstodon.org avatar

If you were told to design a programming language that makes it as easy as possible to implement undo functionality for applications written in it, how would you go about it?

@diyelectromusic@mastodon.social avatar

@deshipu create an instruction like the Uno reverse card that changes the direction of the instruction pointer and makes execution run backwards...

@diyelectromusic@mastodon.social avatar

@deshipu I didn't say it would be easy :)

diyelectromusic, to RaspberryPi
@diyelectromusic@mastodon.social avatar

I've written up how to get 8-channel sound (quad stereo) out of four GY-PCM5102 modules using the four-lane I2S support on a Raspberry Pi 5.


@diyelectromusic@mastodon.social avatar

And hopefully I now have a test build of that supports this too.


diyelectromusic, to dontpanic
@diyelectromusic@mastodon.social avatar

The sun is truly glorious on this Glorious 25th of May and Towel Day.


@diyelectromusic@mastodon.social avatar

Best I can do for Terry Pratchett is not a Discworld, but this...

But then any are always welcome :)


@diyelectromusic@mastodon.social avatar

@Extelec I might do some of the tracks from the Crosgrove Hall animation for Soul Music one day ... they are basically a genealogy of pop and rock music! :)

diyelectromusic, to random
@diyelectromusic@mastodon.social avatar

For a minute I thought I'd found my DX100 wire to board connectors - I thought they were a Molex mini-lock, but alas no.

So, not JST XH, not Molex...

I'm still trying to find them - various "identity this connector" sites have not turned them up.

2.5mm pitch (not 2.54) and flat pins, not square... any ideas?

Seem to be pretty common on Yamaha DX era synths from what I can see.

More here: https://diyelectromusic.wordpress.com/2024/03/18/diagnosing-and-attempting-to-fix-a-yamaha-dx100-part-2/

NanoRaptor, to random
@NanoRaptor@bitbang.social avatar

What are some numbers in your field that anyone else in the field would identify without even thinking about it, but folk outside may have no idea. Just the numbers, no explanations. Yet.

105 148 210 297 420 594 841 1189

@diyelectromusic@mastodon.social avatar

@whophd @NanoRaptor
Thanks for that - what a great rabbit hole to fall into. I love the idea that SQR(2) is a preferred number...

I can also recommend the Penguin Dictionary of Curious and Interesting Numbers...

(btw - this all makes me think about the Interesting Number Paradox which is a fun read if you've not come across it already :))

@diyelectromusic@mastodon.social avatar

@siracusa @NanoRaptor 31250 for me...

diyelectromusic, to random
@diyelectromusic@mastodon.social avatar

I have my ESP32 hacked, modular, educational, thing making noises!

It's a bit noisy, and I'm still messing around with the code (no MIDI yet, and not sure how I want to combine the two oscillators if at all), but the basic features seem to be working.

The key aims were cheap, DIY buildable, knobs and wires, link to breadboards, but still gets over some basic concepts of analog synthesis...

Quality or reliability of output was never a goal ;)


zeh, to random
@zeh@mastodon.gamedev.place avatar

This WonderMark hits hard in the creative feels https://wondermark.com/c/1548/

@diyelectromusic@mastodon.social avatar

cc #MakersHour

I can't help thinking this relates to some of our questions from time to time :)


gsuberland, to random
@gsuberland@chaos.social avatar

you ever do that thing where there's some property or behaviour you're generally aware of but generally just ignore as not being particularly consequential, and then you design something where that property is a limiting factor, so you study it in a lot of detail and then become cursed with the knowledge that you really should be accounting for it pretty much everywhere

@diyelectromusic@mastodon.social avatar

@gsuberland "While I'm still confused and uncertain, it's on a much higher plane, d'you see, and at least I know I'm bewildered about the really fundamental and important facts of the universe."
"I hadn't looked at it like that, but you're absolutely right. He's really pushed back the boundaries of ignorance."
"They both savoured the strange warm glow of being much more ignorant than ordinary people, who were only ignorant of ordinary things."
-- Terry Pratchett

diyelectromusic, to random
@diyelectromusic@mastodon.social avatar

Wow - that's a lot of bits (at least for me) :)

Finally going to start soldering up one of my pcbs...

@diyelectromusic@mastodon.social avatar

@davidr That's the plan, but as it's an ESP32, it will only have a small range of just over 3 octaves. I toyed with the idea of scaling down a 0-5V range, but then decided I wanted the internal voltages to be real 1V/oct signals so I stuck with 0-3V3.

It isn't really designed to be integrated with anything else as such, but there is some (very limited) protection - based on things I've found online rather than any real understanding on my part (see my design blog post for details).

@diyelectromusic@mastodon.social avatar

@bytex64 Well, looking at them might be all I'll end up doing yet - I still need to finish the code (assuming the board actually works)

@diyelectromusic@mastodon.social avatar

Ok, so first major ramification of ignorance is forgetting that the ESP32 has Strapping pins - GPIOs that are internally pulled high or low on boot.

I've managed to choose three of them for my genuine analog inputs - whoops!

I think I can work around it, but it does mean that the pulldown resistors in my CV circuit aren't really working properly.

Any thoughts?

This the circuit - so what would an internal ~45K pullup/down add to this - should I just go for a stronger external pull-down?

diyelectromusic, (edited )
@diyelectromusic@mastodon.social avatar

Also, weirdly, although the docs imply they are pulled high or low on boot and suggests that this is only a temporary situation...

... I'm not convinced that is the case.

I think part of the issue is not knowing what the chip does, what the ESP32 module does under the "can" and what the DevKit itself does.

Anyone know anything about the Strapping pins? I'm not finding much Internet wisdom out there beyond what is already in the data sheets and this post: https://randomnerdtutorials.com/esp32-pinout-reference-gpios/

diyelectromusic, (edited )
@diyelectromusic@mastodon.social avatar

@eliasrm yes, I think I'll be ok on the boot front, but it is messing with my analog readings. I thought the pullup/down could be disabled in code, but so far I've not had anything work I think...

There was something about a silicon bug in the ESP32 meaning that they could only be enabled/disabled by using the rtc GPIO, but I tried that and it didn't seem to have an effect.

I need to do some proper controlled testing to see what is going on.

@diyelectromusic@mastodon.social avatar

@eliasrm Yes, I read about the recommendation after getting my board back ;)

Maybe in V2 then!

@diyelectromusic@mastodon.social avatar

Ok, so apart from the strapping pin issue which affects the three CV inputs, everything else appears to be working ok so far...

Now I need to get on and finish the firmware to join it all up! :)


@diyelectromusic@mastodon.social avatar

@eliasrm Yes thanks - I did do some initial tests, but wasn't sure it was actually doing anything. I need to have a proper look and do some dedicated tests so I understand what is going on!

@diyelectromusic@mastodon.social avatar

Turns out that the internal pullup/down resistors, whilst persisting into running code, do get disabled within the analogRead() mechanisms (despite what gpio_dump_io_configuration will tell you!), so I don't need to think about that once everything is up and running.

If you want to know the state of the pullups for a dual RTC/GPIO pad, you have to read the RTC status regs directly, not GPIO, as well as using the config regs.

This means that any spurious results now are down to my circuits :)

@diyelectromusic@mastodon.social avatar

@eliasrm Ok I think I understand what is going on... and I think all the code/ESP32 side is now known.

Any residual readings must just be noise on the lines I think.

Lots of gory details in this post here: https://emalliab.wordpress.com/2024/05/20/esp32-strapping-pins/

diyelectromusic, to SynthDIY
@diyelectromusic@mastodon.social avatar

I've started writing up my thoughts, design, and development thinking for an ESP32 based sort-of-educational pseudo-analog synth toy/hack/plaything meant to be used with a breadboard for extras.

I'm probably tempting fate by posting about it at this point, but I had several posts in draft so thought I'd hit "go" on them anyway.

When I get the actual boards back, if the posts all suddenly disappear, you'll know it was a bit of a disaster!


@diyelectromusic@mastodon.social avatar

The build guide is now up. Apart from the (ok, somewhat major and definitely annoying, but probably work-around-able) issue with the strapping pins, hardware wise all the bits seem to function.


@diyelectromusic@mastodon.social avatar

Ok, so everything for my ESP32EduModHackThing is now up on GitHub: https://github.com/diyelectromusic/ESP32EduModHackThing

And I've added a "part 3" to my blog series to described the firmware: https://diyelectromusic.wordpress.com/2024/05/26/educational-diy-synth-thing-part-3/

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • tacticalgear
  • thenastyranch
  • ngwrru68w68
  • magazineikmin
  • khanakhh
  • rosin
  • mdbf
  • Youngstown
  • slotface
  • everett
  • cisconetworking
  • kavyap
  • DreamBathrooms
  • anitta
  • InstantRegret
  • Durango
  • osvaldo12
  • ethstaker
  • modclub
  • GTA5RPClips
  • Leos
  • cubers
  • tester
  • normalnudes
  • megavids
  • provamag3
  • lostlight
  • All magazines