[HeRos] IR range control, 2 days left before final presentation ;)

Hi,

The last days have been very intense. Our project has been evaluated on Monday, so me and my group spent the entire week-end finishing some feature and getting the code clean and in order for the presentation. The presentation went well, even if we had a minor bug (fixed in 5 minutes), won’t happen again in a presentation :/ But after correcting this our project was working well, we could play a basic HeRos game 😉

I implemented during the week end a new way to send the IR. I was using a PWM to generate the IR frame, now we are also using another one to deal with the power of the IR shots. This permits us to control the shot power and so its range. Now we are able to limit the range of the global shots, making the gameplay more fun !

Now we are focusing on the presentation we are going to make on Friday. It will be an important moment for us, the achievement of 2 intense months, and we want to share our excitment for this project with everyone, hope we’ll make a good presentation !

We have still a lot to do : Videos, presentation, final tests, Hackster page project to complete, but we’ll make it !

[HeRos] New Design to lead the HL diode emissions

Today began terribly. We had 2 PCBs that just couldn’t communicate with Pololu and we didn’t know why. Then this morning another one got wrong. We analyzed what was coming from the Serial Port of our PCB that was supposed to communicate with the Pololu and saw that the signal just couldn’t increase up to 3.3v anymore when it was emitting a signal. The P transistor has fried. Alexis helped us solving the problem by adding a pull up resistor to have a correct signal. This worked pretty well on the first 2 PCBs that were damaged, but not on the 3rd one.

HeRosCanon

After this bad morning, I spent the day working on IR matters. In fact our HL diode  (used for direct shots) is not enough directive. This is a problem because you could fire another HeRos even if you didn’t aim correctly. I was thinking about a special cylinder printed in 3d to direct the IR but it appears the IR goes through the material used by the 3D printer (PLA). I was seeking new material to make a cylinder when Alexis told be a simple 4 color pen could be able to direct the IR. I tried it and it worked perfectly, now your direct shot are precise.

Capture d'écran de 2015-04-18 01-10-03

I changed the design in function and then studied the range of our IR shots. Global Shots are received up to 3,5 m and direct shots up to 10m, so this will make it for the game.

We also tried with Eric to see if it was possible to play in the dark with our HeRos, the result is quite fun :

 

[HeRos] Tests with the first Design and IR configuration

These last 2 days I worked on designing the armor of our PCB. I printed it during yesterday’s night, and this morning I spent a lot of time in order to make the PCB fit in the armor because the armor a bit too small (1-2 mm). I finally found a way and i have been able to test the PCB within the armor.

The IR global emissions worked very well, but I had some trouble with the HL diode supposed to fire direct shots. In fact at the beginning the shot could miss even if the 2 HeRos were close. The problem had been solved by re-emitting the shot. Now when you fire a direct shot, 2 frames are sent (but don’t worry it’s still count as one shot when you’re hit ^^).

We have also another problem. In fact the HL diode, even with a lens, doesn’t emit in a straight way. We’re trying to find a way to solve this problem, maybe we’re going to print a cylinder that would permits to lead the IR.

Now let’s print the 2nd version of the design to have it for tomorrow 😉

[HeRos] IR working well, now taking care of the design

Hi,

During the end of last week, I spent most of my time improving the IR part of our project. Now everything’s working great, each frame received is sorted in order to see if it has not been already received by another receptors in the previous milliseconds. Frames are then send to the phone via Wi-fi or to the computer through the serial usb.

Today was a great day, we have been able to stream video via wi-fi to the smartphone !! It was so cool to see our little HeRos hanging out on the table and streaming video with its camera ! Soon we’ll have everything ready to start playing with our Heros 😉

I spent most of the day designing the look of our HeRos. I had to remember how to use Solidworks (I used it 2 or 3 times in preparatory school) but it was fun to imagine how our little baby’s style 😉 Here is a picture, enjoy 😉  :Capture d'écran de 2015-04-13 20-27-21

[HeRos] IR still in progress

Hello, it’s been a while since my last post (before the week-end).

So this week-end I work on the IR sensors and emitters. I finally found  a way to receive what my IR emitters was sending. I could send any 16bits frame I wanted, and command the HeRos in function.

But today when we revised the IR part in group, I saw why my code worked but why it wasn’t done the right way. In fact my emissions wasn’t correctly implemented, and my timers wasn’t precise enough. Sam explained me the right way to get IR emissions sent properly, and also how to receive them, but I have to admit I didn’t understand all the reception part, it’s been 2h that I’m trying, I still do not see how to receive the signal correctly. I’m actually having trouble deciding where to reset the timers and where to make my comparisons between time in the code.

I’m going to finish to clean the emissions part of the code, and will see tomorrow for the reception parts, I would be able to ask Sam for precisions about what he explained me this afternoon.

 

[HeRos] Demo & IR

Hi everyone,

Today was a good day 😉 We first went to Sigma Designs. The discussions were interesting. They presented us the company, the project they are working on, and also their contribution to the project as hardware and software programmers. I also learn how they design their product, how they test it. I particularly liked the presentation about the security issues in their project .

This afternoon I kept working on the IR receivers. I moved forward, I now see exactly what signal is coming from the IR receiver, and i’m currently working on it on my STM32board, fortunately week-end is coming and i’m going to have more time to design this feature 😉

[HeRos] IR not working yet

Hi,

Today was quite difficult. I’m taking care of the IR transmission between the HeRos PCBs. Presently I have the IR emitting diodes working, but the receiving diodes are not correctly configured. I welded one of these on my STM32F407 to be able to use the analyser to understand better what signal it receives.

It’s a bit disappointing not to see his code not working, but it was cool to see new features working on our project thanks to my partners. I need to take some time to make the IR receivers work, and it will be fun to be able to shoot another one’s Heros.

[HeRos] let’s begin to have fun

After the intense challenge we had on Friday, i had many things in my head to clarify and to assimilate, but this was clearly a good experience, a good way to learn how to think an issue, and how to solve it.

Today we worked on the basics of our project. We first wrote our board.h, fortunately all information was quite easy to find in our documents.

I then installed the library needed to run the pololu’s program, and tried some test to run Flo’s program to command the pololu.

Now I’m working on the IR diodes, I’m implementing some basic features to command them, can’t wait to test it on our PCB !   I also worked on the IR protocol, there were things that needed to be added to our wiki  in order to implement the code.

[ChibiOS] Lwip ready for challenge

Today I worked on the TCP/IP using Lwip and Netconn API. I didn’t have to time to implement the dhcp but I have my board working using a static IP, so i can made connections to telecom-paristech.fr and receive responses, and i can send them to the my computer via the serial usb.

Now it is time to get some sleep, in order to get ready for tomorrow’s challenge.

[ChibiOS] Structuring everything

Last days coding on the STM32 with ChibiOS wasn’t easy. I had to clarify all my code in order to get it work correctly. I knew my code had some troubles in part, or functions to implement better / more efficiently, and i didn’t do right away in order to move on some news features because we have to finish in 2 days. I now see clearly that it wasn’t a good idea, and the more I was waiting the more difficult it was to solve that old code’s problem.

By revising everything that needed it, I saw clearly why things wasn’t working like I expected, and after some time, my code was working like it was supposed to, every thread, function, was in the right file, called correctly from other files.

I now have my ADC and my serial usb working, and I’m beginning the TCP/IP by reading code from the demo and docs from the internet.