[Kudly] The show must go on

Hi everyone,

I have find out what the weird bugs on hte I2C were. A pull-up resistor was deconected, and because of that the SCL pin was all the time low (And the STM32 thank that the bus was all the time busy…). Now that the resistor is back, the I2C bus works fine, and thus the IMU works fine. After discussion with Samuel, we have decided to disabled gyroscope, and set the rate of refreshing accelerometer data to 1.25Hz (in order to save power). We will detect if there was a move by analysing the change on absolute valors of the acceleration on the 3 axis. After some test on the card, it seems to work well, we will try with the card on Kudly as soon as possible 🙂

I have also worked with Marc on the ausio streaming. He’s in charge of the wifi part (recuparating datas from the server), and I’m in charge of the codec part (transform the datas in audible sound). After a lot of trouble, we have succed to recognize the should we should hear, but with a bad quality. We think it’s because the codec does not receive data fast enough. We will try tomorrow to have a better sound quality… But now it’s time to sleep 🙂

Good night,

Dim

[Kudly] Going into IMU

Hi everyone,

As Antoine said is his previous post, we (normally…) have finished the work on the codec ! Now there is proper control of sound (we can stop playback, adjust volume, encode with a time pre-defined or until we want to stop…), we are able to measure audio level (but we will have to do new tests as soon as we get the new pre-amplified microphone), and we write the code the do the full-duplex (encoding and decoding) for the streaming via wifi.
Now I start to work with the IMU : I’m able to write and read registers of the IMU, but I think the data are not good (if we believe the IMU, the ambient temperature is 80°C…). As I’m writing, I think the problem is perhaps because of the fact that the MPU9150 need a multiple write on the I2C bus, and for now I write byte by byte…. Hope I can debug it before going to sleep !

 

Have a good night ,

Dim

[Kudly] Kudly is able to hear !

After Antoine post (Kudly is able to speak), we manage to encode data from the microphone. We take a bad microphone, but now Alexis give us a electret microphone and it works !
We take the data from the micro, the codec encode the sound in OGG Vorbis, and we stock it on the SD card. For now there is a lot of noise, but I think the settings can be optimized.

Dimitri, happy 🙂

[Kudly] A long day…

Unfortunately, the code for the codec, written before we received our card, does not work… We are not capable of reading registers of the codec (and thus we can’t know if writing is good…). Tomorrow Alexis will soldered extra pins so we will be able to analyse what is going through the SPI bus (the one used to send and receive data from the codec).

On the other hand, usb is implemented (but works on 2 cards out of 3).

Good Easter,

Dimitri

[Kudly] Flashing the cards

Hi,

Today was a great day ! We receive our PCBs with components slodered on it, and we flashed our first program on Kudly boards 🙂

But there was a problem with the led connectors, and we figured out how to fix it at 11 P.M (and we needed a soldering iron), time when a security agent asked us to leave A406 room. So for now we just have one led for the entire group, so it’s a little hard to test the code we have written… Tomorrow, the tests will begin !

Good night,

Dimitri

[Kudly] Codec, here we are !

Hi everyone,

With Antoine, we began the work on the audio codec, to ensure one of the most important feature of Kudly (the streaming audio). In order to do what, we read the datasheet, and code the initialisation of the codec, and functions to write/read in registers, and send data via SPI bus. But we will have the card tomorrow, so for now the code has not been tested : hope everything is gonne be alright….

See you,

Dimitri

[Kudly] Communication challenge & PCB

Hi everyone,

Yesterday was the day of the communication challenge ! It’s was a great coding day, but stay focus all day long was quite difficult (we should have taken more pauses, but we wanted to go as fast as possible…). I’m glad of what I did, even though my code was note very clean, and I made silly mistakes.

For the TP, I used DHCP to get an IP adress, but in the challenge we needed to use a static given IP. And I lost an 1 hour to configure the DNS… After that, I also lost time on the step 3 (the step where we had to answer question), because I believed that we had only 10 seconds to send the request with the answers, so I use the serial USB for writing on the keyboard the answers, and I spend an hour trying to answer the 5 questions… But there was no time limit to answer the questions, and we could have multiple try for one serie of questions….

Because of all the time lost, I had only 1 hour (at the end of the day, less focused that at the begining…) to configure the SPI and the LCD screen. Finnaly, I achieved to send data with SPI, and print something on the screen, but not the image with the token to achieve the step….

We also see with our own eyes our PCB ! What a great thing !

Have a good WE,

Dimitri

[Kudly] TP_STM32 : done !

Hi everyone,

I have finaly finished the TP on the olimex board : now, I can download an html web page throught my card 🙂 Ready for the challenge…

Concerning Kudly, Alexis sent us photo of the PCB (the production is finished) : hope we will soon get it in our hands !

Dimitri

[Kudly] PCB, finaly !

Hi,

As my team mates have said, it’s done, we sent our PCB to production (and receive the first photo 🙂 ) !

Beside Kudly, we will fce the programmation challenge on friday… On my part, I have to do the network part (I have just began to read about the TCP protocol, and some documentation about netconn), and solve a mysterious problem : when I enable a specific channel on a PWM to light a specific LED, the WakeUp button is set in “both edges mode”, but when the channel is not ennable, the button is set (as written in the code) in “rising edge mode”… A little bit of black magic (for now 😉 ) that I will try to understand !

Dimitri

[Kudly] He’s here…

Hi everyone,

It’s been quite a long time since my last post, but i’m still alive (and still working…)

Because of Athens week, it’s was more difficult to progress (team mates were in Madrid and Warsaw), but we were (very) late on the schematic. Finaly, we have our final schematic (approved by Alexis), and he’s helping us right now for the placement of composant on ExpeditionPCB.

I also progressed on the TP : now, PWM, ADC, Serial by USB and buzzer are working !

Dimitri and Kudly

20150323_221352