Categories

Makahiya – audio codec, Flexinol and LEDs

Hi everybody,

This week is fully dedicated to the ROSE project so I had time to work on several aspects of it.

The audio codec was the most time-consuming one because I spent hours trying to understand why I wasn’t able to play music on the board. As Tanguy said, I managed to have the I2S work last Sunday afternoon but it was no the end of my problems. Because yes I was able to talk to the codec but we didn’t understand each other. I explored several ways in order to understand what I was doing wrong. I expected that the problem was related to sampling frequency because that part isn’t clear to me: I don’t clearly understand which signal corresponds to what value. But it wasn’t that. Samuel found a code he used for the 2014 communication challenge and that was able to communicate with the codec. I adapted this code to the new version of ChibiOS and it worked !! I still have to change a bit this code in order to use the I2S driver that was added in ChibiOS in the meanwhile  (it uses DMA, so it’s better than doing it by hand on the microprocessor). And I also found a software codec made for running on embedded systems and that is able to decode ogg files. With this 2 infos, we validate the choice of the CS4344 as our audio codec (as Alexis suggested us to do).

I also made some tests with the Flexinol and our banana tree, in order to see if I was able to move the leaves. And the result was very disappointing… So I tested with a simple motor and a wire and it worked very well. With this solution, the result is really convincing (according to me at least). When I showed it to Alexis, he approved my choice: we’ll abandon the Flexinol and use servomotors instead.

Finally, I tested the most powerful LED we have (the one which was abandonned few weeks ago) with the optical fiber, to see if the light was visible even during the day (because with the other LEDs, it’s only visible by night). And it is, so we decided to add one powerful LED to our product in order to make some flash visible even during the day (to signal that you’ve just received a message for instance). We take only one of them, because they need a very high current (up to 2.8A each).

During the second part of this week, we want/have to finish the schematic and the placement/routing of the PCB. Tanguy will probably do most of the job on this part. So I will try to improve the communication with the CS4344 and test the software codec.

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>