Clock Radio

Analog Filtering

Wed Nov 17 2021 11:52

So let's talkg about ANALOG FILTERING and how I fucked this up.

schematic of the audio filtering stage

continue →

IT'S ALIVE!

Wed Nov 17 2021 02:33

Definitely some audio distortion. I’ll have to track that down.

continue →

ESP32 and MicroSD

Tue Nov 16 2021 00:18

Got the ESP32 in and much to my relief, it works without issue. :)

continue →

Build Jig

Mon Nov 15 2021 14:04

I think this is the thing I'll be using the 3D printer most for. Just building jigs and small tools to help out with assembly. This is just a stand to hold the board while I work on it. It's got cutouts for the testing stuff hanging off of it, which works for both orientations.

continue →

Light Guide

Mon Nov 15 2021 00:50

I’m taking apart more bits of the clock radio that I’ll need. This is an open air light guide for the backlight. Three LEDs shine on a 45deg slope, and down onto this parabolic reflector to give even illumination. All from a piece of white plastic.

continue →

CP2102 Scavenging

Sat Nov 13 2021 16:17

This is the fastest way to get a CP2102 chip right now.

continue →

Battery Protection Bypassing

Sat Nov 13 2021 12:42

The resistor I thought was important in the BMS is irrelevant (at least as far as I can tell). Looking at documentation for the compatible and far more common DW01, the part that measures the current is the voltage across the MOSFETs. So it depends on the Rds(ON) of your MOSFETs.

continue →

Power Conversion

Sat Nov 13 2021 12:17

On the flip side of the board is the 5V step up. This is an identical circuit to what I used in the POWER PAK v2. The MP3414A delivers efficiency and way more current capacity than this board needs.

continue →

Battery Protection and Charging

Fri Nov 12 2021 12:19

Finally got some time to work on building the clock radio board.

continue →

Screws!

Tue Nov 9 2021 01:14

So... remember when I was talking about screw holes? I think the problem is that the screws I was using were not, in fact, M2 screws. They were M2.5.

continue →

Boards Are Here!

Tue Nov 9 2021 00:44

I’m gonna say that’s close enough.

continue →

Pixel Fonts

Mon Nov 8 2021 02:16

Did a little pixel font work. Just a blocky 5x5 font that looks good on a low-res display. Had a dickens of a time getting this video. Something about how the OLED refreshes was playing havoc with the autofocus. Had to use AF lock and set the exposure manually.

continue →

OLED Display Wiring

Sat Nov 6 2021 21:41

There’s not much I can do before the boards arrive Monday so I figured I’d square away the wiring on the display.

continue →

Testing 3D Printed Screw Holes

Fri Nov 5 2021 18:26

Doing some test prints to see how accurate screwholes are.

continue →

Boards Finished

Sat Oct 23 2021 01:26

I think I've finally got the clock radio board where I want it.

continue →

Volume Potentiometer

Fri Oct 22 2021 15:43

Jumpers mean never having to say you're sorry.

continue →

Karaoke!

Mon Oct 18 2021 14:09

I'm in the design stage where I sit and stare at the design and try to figure out why it won't work. Self-review, I guess.

continue →

MicroSD Jack and Mute Circuit

Fri Oct 15 2021 15:28

Parts came in. One of the things I wasn't sure about was this micro SD connector. It's a Molex part but the documentation is unclear about how the card detection works. See if you can figure it out.

continue →

Initial Board Design

Fri Oct 15 2021 03:17

continue →

USB-C jack

Wed Oct 13 2021 01:41

Doin' some whittlin'.

continue →

ESP32 DTR/RTS Boot Selection and Reset

Tue Oct 12 2021 13:34

The DTR/RTS boot programming is actually worth talking about. The ESP32 and friends enter boot mode by pulling a GPIO low on boot. Inspired by the Arduino method of using the DTR signal to reset the chip, ESPs have an even weirder method to control both an IO pin and the reset line.

continue →

Parts

Tue Oct 12 2021 01:56

I just ordered parts for the clock radio. Somewhat optimistically, as I haven't finished the board layout. Stocks are dwindling faster than they're replenishing, and it's looking like if I waited until I finished, some of these parts might not ship until late November.

continue →

Speaker Specs

Thu Oct 7 2021 17:05

I looked up the specs on the speaker.

continue →

Battery Test Fit

Thu Oct 7 2021 11:34

Doing some test fitting. It seems like there’s baaaaaarely enough room to fit an 18650 where the radio coil used to go.

continue →

Active Audio Filtering

Wed Oct 6 2021 13:48

I love the engrish you find on some electronics sites.

continue →

OLED Display Works!

Tue Oct 5 2021 02:51

continue →

Trying Bluetooth Again

Fri Oct 1 2021 22:13

I love this song so much.

With the proper ESP32, Bluetooth A2DP works!

continue →

Bluetooth

Fri Oct 1 2021 22:13

So the C3 only supports Bluetooth LE. It can't do regular Bluetooth Audio.

Well that pretty much kills that idea. I'll have to use the regular ESP32.

continue →

Testing OpenMPT

Fri Oct 1 2021 21:03

Hm. I don't think OpenMPT is going to work.

ld: DRAM segment data does not fit.
ld: region `dram0_0_seg' overflowed by 111504 bytes

continue →

Testing libXMP

Fri Oct 1 2021 01:24

So what I'm learning about libxmp is it's not designed for memory constrained systems.

continue →

FLAC Decoder Test

Thu Sep 30 2021 01:36

Something... has gone wrong

continue →

Project Goals and the ESP32-C3

Wed Sep 29 2021 14:58

This project started with me wanting to make a bluetooth speaker in a clock radio. I figured why not use an ESP32? And if you're going to use that, why not add more features?

continue →

MP3 Decoding with Helix

Tue Sep 28 2021 02:22

It’s kinda working!

continue →

Sine Wave Glitches

Sun Sep 26 2021 23:26

So I've been struggling with this I2S thing for a bit. It just isn't working properly. It seems like it's almost working but not quite. I can see something that looks like a sine wave but it's all glitchy.

continue →

Glitch Sounds

Fri Sep 24 2021 17:49

So I was trying to play a sine wave over I2S and I accidentally made some sort of generative soundscape.

I should probably read the datasheet but this is too cool.

continue →

SD Card Hacking

Thu Sep 23 2021 14:25

So I'm connecting a SD card socket to my ESP32-C3 dev board, just to see if I can do some basic SD card reading. The SD library doesn't really explain what pins to use but there are designated pins for SPI so I connect it to those. Doesn't work.

continue →

Switch Matrix

Thu Sep 16 2021 22:43

I'm mapping out the buttons, switches, mounting holes, etc. on this main board so I can design a replacement. I thought it was going to be awkward to use three more individual GPIOs for the three buttons on the main board, when the buttons on the bottom board are conveniently matrixed.

continue →

ICF-C713 Power Circuitry

Wed Sep 15 2021 02:44

I’ve been poking at the power circuitry on this clock radio. I’m not totally sure how it works but it’s different and interesting.

continue →

I picked up a clock radio...

Mon Sep 13 2021 12:30

I picked up a clock radio at a garage sale last weekend. Here it is, partially reassembled for demonstration purposes.

The Sony ICF-C713

continue →