Right computer, wrong speaker, wrong song

I found a tutorial to have the arduino generate some rough tones through a speaker, which I thought would be a good starting point to make sure my hardware works and that I test/modify/understand what the code is doing in a live environment. Using this I was able to get a spare Uno to play a melody on a piezo speaker I salvaged from a cooking timer, and then I was able to get the same tutorial to work on the NodeMCU, where I was using what will be the I2C data pin to drive the piezo. Next up I’m going to see if I can run that signal through the DAC and get it to generate the output to drive the speaker.

I have a tutorial open right now on how to use the Wire.h library, that enables I2C communications. As an aside, I’m happy to see that the second command listed in the article is for turning the connected microcomputer into a slave unit. This might be crazy useful for streamlining my inter-arduino communications, while leaving the serial bus open for uploading to google. I’ll have to investigate that later though; Priority one is getting a signal out of my DAC.

[insert wasted time here]

Not for the first time this site has purged a couple of hours of typing for reasons.
Good times

Don't have it in me to rehash everyithing I just wrote.

Am working in a text file to copy/paste right now because I don't want to risk having to write all this for the 3rd time after another "hiccup"

Short version - I'm giving up on the voice box

while trying to make sense of another page that wasn’t actually a tutorial, and refused to give working sample code to learn from.

No idea if what they said didn’t work because
1) they don’t know what they are talking about,
2) if I missed a detail / parameter that they didn’t list but still looked good enough to pass error verification
3) there’s a hardware issue

While troubleshooting the I found that instead of using the "world standard" libraries for I2C communications the voicebox team created a half dozen home brewed libraries to manage everything, and I don't have the time and patience to learn all of their nonsense right now on top of everything else I'm trying to learn (C+, Javascript, Serial communication, I2C communication, how to use a DAC to actually convert to analog) in order get this garden built.

Cannabal

Part time mad scientist, gardener, tinker and dreamer.

https://www.cannabalurges.com
Previous
Previous

Not my day for coding

Next
Next

Getting on the bus: I2C