[Kudly] End TP

Yo,

Today I finished the TP. My problem with  lwIP was that after reading the buffer, the connection is closed. So I reinitialized it and it worked.

After that, I activated a debug option and I had to redo all my callback functions. For the buttons and the trimmer, as I did my own functions, I just changed chSysLock to chSysLockFromIsr. For the usb, I had to create an other thread and to wait for an event.

Bye 🙂

 

Julien

[Kudly] A strange end with lwIP

Hi,

This morning, we continued the pcb design : it is almost the end 😉 We also went to buy our cuddly bear (you can find a picture on Dimitri post). It is so cute.

I continued the TP too. I did a request on the server of the school. To do so, I used lwIP librairy. I had a lot of troubles. To finally kind of successed but the result is really strange.

I use dhcp to obtain an ip address. The first problem appear hear : if I do it directly, the soft stops. If I add chThdSleepMilliseconds… it works. I do not understand why.

Secondly, I can only do one request : the second tcp write gives an error. If I try to reconnect to the school server, the program stops and never start again.

I have no real idea of why it is doing such a thing. I will continue to look for the solution 🙂

Ciao,

 

Julien

[Kudly] Athens & Coe.

Hola,

I spent an entire week in Madrid and it was difficult to continue the project. As the entire team had Athens courses, it was possible to work together only the evening. Moreover, our PCB software was in Paris, in a406, we had to wait people who are still in Paris to come to the school to continue and correct the PCB. However, I tried to do all the papers stuff but I regreted I was not enought useful.

I tried to continue the stm32 TP but as I had no ethernet access, I only read the lwIP documentation and wrote the code. However, I was not able to test my program. Of course, it won’t work but I hope my work this week-end will be quicker.

Concerning my Athens course, it was very bad and I learnt nothing. If I knew, I would not have come to Madrid…

See you,

 

Julien

End usb and buzzer

Holà,

These last days, I finished the buzzer and the usb implementation.

First, I did the buzzer which was a simple pwm. As it was quick to do, I played “Au Clair De la lune ” with it.

Next, I did the serial over the Usb. It was harder for different reasons. The usb Was longer  to configure. The copied some codes that already existed but I tried to understand what I did. Then, I had a problem in my code with an extern variable which caused a lot of troubles.

To finish, I combined the two functions to create a piano keyboard controlled by my computer. Before leaving the room, I tried to find a function to wait inside an interrupt but I had not enough time.

Next week, I will be in Madrid for the Athens week. So it will be difficult to work. But I take my board 😉

Hasta luego!

 

Julien

[Kudly] A start with ChibiOs

Hi,

I began the stm32 project and here is what I did.

After blinking some leds, I needed to use a PWM in order to control their brightness. First, I tried to find functions already made. The problem was that the leds are connected to a port linked where the timer is specific to some stm32f4. So, as ChibiOs tries to be the more general possible, I had to implements new drivers for those timers. I used ChibiOs sources to understand what was done with the other timers and I finally succeeded in controling the leds.

Then, I implemented the buttons features : when a button is pressed, a led is turned on. As I knew where to look for, I directly found the right module and it worked quickly. I tried to do an anti-rebounce but I not quite sure of the way to do it. Next, I implemented the trimmer potetentiometer. I initialized an ADC channel and I started conversions. I have some problems not fixed yet : I do not know why but after a while, the conversion stops and only returns 0.

I return to my code,

 

Tchou,

 

Julien

[Kudly] Begin of the PCB

Hi !

Yesterday, as we nearly finished the list of all the components, we began the design of the PCB. After a while to understand how expediation PCB works we started to add all the components and to calculate the resistors, capacitors,… It is very difficult because we do not know really what to do but we are progressing !

I also began to use Chibios. I turned on some leds and now, I trying to do PWM. I saw there are predefined PWM configurations for some timers but not for all. I think I will need to configure the timers (10, 11,13,14) by hand.

Ciao,

Julien

[Kudly] Before the first presentation

Hi,

Last night, we almost completed our first presentation for ROSE. We did the product presentation, the techs we will use and we planned the different tasks. Even if it is hard because it is difficult to evaluate how many time a task will take, we tried to find something the most homogenous possible.

Finally, we thing that Wi-fi is a good choose for our bear because we need a speed sufficient enought to stream audio and we would like to connect easily Kudly to the internet. Bluetooth is slower and with that technology, we needed to add a bluetooth hotspot to connect the bear to the network.

We also abandonned the idea of the led screen as it will consum to mush. Instead, we will simply put leds to make Kudly more attractive and to be able to implement some pedagogic games (color regognition for example).

You can also follow us on twitter if you are interrested : https://twitter.com/KudlyProject

 

Bye,

Julien

LED SCREEN

Hello !

For our little bear, we would like to add a led screen. We are looking for something flexible and not too big. We would like to put something like 16 leds and the size should be around 12 cm. We found different things :

–  there are very few 16*16 led screen. Here is an example : http://www.seeedstudio.com/depot/16×16-RGB-LED-Matrix-w-WS2812B-DC-5V-p-2011.html. It is $90.

– we thought that may be we can use leds strips to recreate the screen. They seem a bit expensive. We have 3 bears to do so we need something like 800 leds on the screens and the best density for a strip was 144/m like this : http://www.adafruit.com/products/1507. 5 meters are 300€.

 

Any idea ?

 

Julien

 

Project choice

Hi,

Yesterday,I finally decided which project will take most of my time during the next mouths. With Damien, Dimitri, Marc and Antoine, we are going to make a connected cuddly bear.

This morning , we met to decide the possible fonctionalities we can implement on our bear : health control, a learning program, easy communication with the parents… We began to think about how communication can be done. Some solutions appeared : BLE, Wifi, Zigbee,… We have some problems. We need the lowest energy consumption possible, the possibility to communicate between different bears, not too much waves for the baby, streaming sound/video/photo,… We wonder which solution will be the best.

Moreover, we would like to add a screen. We have two possibilities : an LCD screen or LED screen. We think that LED screen is better because it is harder to break.

We will now begin to think about the PSSCs and the PCB making.

Ciao,

Julien

Archilinux – Done !

Hi everyone,

After a painful night, I finally succeeded in installing Arch. I installed it three times before understanding all the problems I encountered. However, I learnt a lot of things. As most of the installation is done manually, I was able to observe the different steps in the process. I also learnt how to connect to the internet thanks to commands line, to install xorg and a graphical environment.

First, I tried to keep the dual boot with windows but without success. I need to keep searching about grub to understand how to add windows to the loader. I still have my former windows partitions somewhere (over the rainbow…)

Ciao !

Julien