Skip to main content

A kitchen table goes, another comes

I'm moving out of my appartment.

Since my kitchen table couldn't go with me, I left it, so you won't have the marvelous tablecloth full of little cakes anymore. :'(

Hopefully, in my room where my mother lives, my desk is an old kitchen table. So in the end, I'm still building stuff on a kitchen table, which is nice.

Comments

Popular posts from this blog

Anti-optimization, hardware crumbling apart, GitHub

Today, short post about deceiving software. Remember when last time, I said I had to do optmizations on my code ? Well I tried. And it went worse than I expected ! First, I tried to gather similar codes in some tasks, but it came out they were too heavy for FreeRTOS to handle them correctly, resulting in heap panic... So trying to enhance my code, I worsen it ! So I hard to roll it back. Then, I tried to implement real mutexes for some resources that are shared among the tasks, in particular the screen (and maybe the UART one day, but I can manage to use it only in one task, if I split it in several functions). When I though I understood it and implemented it correctly, it turned out to make the STM32 crash at bootup, and being non recognizable by my PC anymore ! So again, I had to rollback to the previous version. I'm still trying to figure out how to re-design my code, while keeping it runnable on that picky Blue Pill. You can FINALLY find my code on Github ! I suggest ...

Buttons and alarm

Now I have my buttons. And it didn't go smooth sailing. Before all, let's try to review what I want and how to do that : I want buttons to control the KaRadio. 6 buttons are enough. We will detail them a bit afterwards. I want my buttons to also set an alarm clock. This should stay visible, and should use the already implemented buttons to be modified and set. I want that any push in a button results in changes that are visible on the LCD screen. If the volume changes, I want to see it. If the station changes, well that's already implemented. First, I went to read the documentation on how to operate the GPIO. I knew I needed only to read digital states of the GPIO. At first, I found this document straight from Maple docs : http://docs.leaflabs.com/static.leaflabs.com/pub/leaflabs/maple-docs/0.0.12/libmaple/api/gpio.html It's quite dense, but there is some information. GPIOs must be initialized with gpio_init(), then you need to set their state to output or in...

Casing : the front

The student makerspace opened at my University. I wanted to try it out ! For the case, I found some wooden tissue box that would fit my needs. Actually it's a bit big, but better safe than sorry. The thing is, the cut in the middle is super handy to start cutting with a jigsaw. So I started working my little front panel for my alarm clock. First, I made a model on Solidworks, just to see what it would look like. Modelling helps having clear ideas ! For the front panel, there is four cuts, made from the middle cut that was originally present on the box (to let the tissues go out). 2 circular holes for the speakers, 1 big rectangular hole for the LCD screen, 1 smaller rectandular hole for the clock. Sadly, my 7-segments display never came, I guess it got lost, so I'll have to deal with the seller to try to have them send it again. :( For the moment, I didn't do any cuts for the buttons, but they will surely be on the top side of the box. This is because, whe...