[Kudly]Last run !

Hi,

Today, we solved a lot of problems.

First, I finished the streaming part of my project. I faced problems with communication speed, queues and data loss. I finally found a way to configure all these parameters. Now I need to integrate it to the rest of the program. I could be cool to have it ready for Friday presentation.

Next, we had some problems with wifi. They were here for a long time but it never appeared before. To do events and mailboxes on chibios, we used the *_DECL way of declaring it. The problem is that it seems to declare static variables. So, it did not work in others files all the time : sometimes it works, sometimes it fails…

Ciao,

 

Julien

[Kudly]Big day for us

Hello !

Today was a BIG day for us, first of all we presented a “final” prototype to Alexis and Samuel. Our Kudly was supposed to take a picture when we take Kudly’s hands in ours, but during the demonstration, the picture hasn’t been sent to the server and we couldn’t show the picture on it. We still don’t understand why it happened, but today we will work on it and will find the weakness. We copped with an other problem, the same as the picture, in the demonstration we were supposed to encode a sound and send it to the server but the transmit didn’t happen … But the rest of the demonstration went well, and it motivates us for friday. During the afternoon, we also had a test on all courses we had since the beginning, on tutorials from my teammates and a practical training. I’m really mad at me because my preparation really wasn’t the right one, and furthermore, I lost a lot of time on implementing something that I should have implemented a long time ago Grrrrr too many regrets. Tonight my moral is low but I’m sure that a full night of sleep will be very efficient ! Good night all 🙂

[Kudly] First deadline

Hi,

Today we had the first deadline : we prensented our project. It almost respected PSSCS but it’s always missing streaming to server.  We used the wifi module in streaming mode and successed to receive data from server and play it on speaker but we have some issues with it to send data from microphone to the server. We will try to fix it before the last presentation.

Bye.

[Kudly]Presentation day

Hi,

Today, we presented our project to Sam and Alexis. Our kuddly bear has different functionalities.

First, we did a game for the child that teaches his the colors. He has to regognize the color printed in one ear to push the pow of the side of this color.

Next, we did a program that teaches his the alphabet. It says the alphabet and ask to repeat. The sound is recorded and sent to the server. The parents can consult it later.

Then, you can hug you bear and it does a sound and turn on the leds.

Finally, you can take a photo and send it to the server.

We still have some bugs to fix : no data were sent to the server while we were presenting our demo. One again, Murphy is here 🙂

Ciao,

 

Julien

[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] Temperature sensor and sewing

Hey !

Since two days I work on the temperature sensor with I2C protocol but I have some problems with it. When I try to configure the registers of the sensor, my function i2cMasterTransmit which returns an error number 4 but I don’t understand why, sometimes it works and sometimes not… I debugged during 3 hours but didn’t find  any lead but I will be maybe more efficient tomorrow with a fresh brain. Yesterday, I also sewed a hook and loop in the Kudly’s back, now we can open his back and put the card in and close it after (the pictures below). Tomorrow morning I will try to fix my I2C problems and then help my friends on the streaming. We will do also a brainstorming to plan how Kudly will use its features, all his intelligence.

Good night !

20150414_214548

20150414_214555

[Kudly] Connected teddy bear

Hi,

Today and yesturday, I worked on http post with our wifi module. Now Kudly is able to download or to upload a file from server. It’s also able to read instruction on a xml web page to control LEDs for example.

We spend some time debug streams reading with the wifi module. In fact when data (one or more) are ready a polling command returns 1, when stream is closed (reading is finished) it returns “command failed” and when the buffer is empty but there is other data that is coming it return 0.  So we looped until the polling return a fail or 1 but it blocked half time in this loop because, according to us, we asked too fast the wifi module so it couldn’t close the stream when there is no following data. To fix it, I add a timeout on this loop.

Bye.

[Kudly] Server, websockets, streaming and couture

Hi,

Today I have done a lot of differents thing.

First,  worked on the server and the web application. For now, there are really few html pages. However, we would like to send care data such as temperature to the server. So, I found a way to print these data. I did a charts with amCharts. It was quite easy and the result is ok. Next, I added a streaming function. As I am developping an app with play framework and scala, I used Iteratees and Enumerators. I need to try more deeply this function because I am not sure of the result. This streaming is using websockets. As you are communicating bytes and not string, the header was different. That caused some problems.

I tried to help some people to fix bugs. Now, file downloading and uploading work. We are still waiting for websockets to try the streaming.

I also did some couture. I fixed sensors inside the bear and we found a way to open and close the bear quickly. It is good enough for what we want to do.

Ciao,

 

Julien

[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] Audio streaming

Hello !

Today we worked with Dim on the audio streaming, we tried to encode and decode at the same time using mailboxes but we didn’t test it because we need to use the mailboxes used in the wifi functions, so we will test it tomorrow with Dimitri and Marc (we are crossing our fingers). Furthermore, we added a function which allows to detect the volume and set on a LED depending upon the sound volume. I think we will not be able to detect if there is a baby cry or not because it looks like to be an extansive  signal processing and we are not expert of it , but we will detect loudly sounds like baby crying.

Streaming is coming ! (At last)

Bye