Categories

Makahiya, Week 19.5

Hi,

The presentation will take place on Friday and we are working to prepare them. During the last days, I continued to track bugs and finalize the code for the server and the card. I also worked on the mechanical aspects, I did some soldering for the first time of my life and the result wasn’t very beautiful.

We tested everything on a real plant and it works quite well, we can even interface it with the outside, I even created a Twitter account where we could tweet when a leave is touched (the account is @Makahiya1)

Until Friday we will finish the preparation of the plants (we will use two) and code some scripts for the presentation

Tanguy

Makahiya, Week 19

Hi,

During the last days, I continued testing the capacitive captors. It appears that when they are far from the transformer of my laptop four of them don’t saturate and it was quite easy to detect touches with a threshold that didn’t seem to depend on the location, but the four others saturate and we need a metallic contact to detect anything.

I also made some tweaks and debugging to the server and merged everything in the branch master.

Now we will have to equip a plant, decide the scenario of the presentation and find what to do with the touch detection (only use four or try something to have 8 working).

Tanguy

Makahiya, Week 18.5

Hi,

Since last time, I worked on the touch detection because the captors began to behave strangely. First, they saturated when no touch was detected. So it was easy to adapt the code as we only have to detect if the captor is saturating. But then it became harder to have the captor not saturating, so the touch has to be quite strong and it seems it can’t work below the leave as intended. But the weirdest thing is that if I unplug the transformer of my laptop, although the board isn’t connected to him, the captors always saturate, with some exceptions when touching the coaxial cable with something metallic.

Now, the card has every coaxial cable soldered to it, and the behavior is the same with every cable connected to one of the two sensors, the other sensor saturates most of the time but randomly it doesn’t for a short time.

The problems probably have something to do with mass plans around the plant, so we will have to figure a solution to be able to exploit the sensors.

Tanguy

Makahiya, Week 18

Hi,

We wanted to be able to send commands from the server to the plant. We didn’t expect to face a lot of problems, but there were some : I sent booleans as True or False when Sylvain expected 1 or 0 when reading the commands, there were some problems with database requests and we decided to add a synchronization between the database on the server and the plant when the plant is set on. I had to do the according modifications on the server side.

I also tried to improve the touch detection algorithm : i decided to not use the data directly but to use 1/(data)² as according to the datasheet it should be proportional to the measured capacity. I tried to compare new values with the mean of the last values, and if the difference is to big, I conclude that there is a touch. It seems to work quite well after fixing the coaxial cable to the plant, but after some point it works quite badly but goes better when re-fixing the cable, so we will see how it works when putting cables on the real plant used for the demo.

I also prepared the servomotors, they are now ready to be used to shake the leaves.

Now, we will have to put every mechanical part of the project on the real plant and to end interfacing everything together.

Tanguy

Makahiya, Week 17.5

Hi,

On Monday, we received the PCB and we began using them. I had no problems having the Bluetooth work on our cards, but I had to do some debugging with the LEDs and the timer (I hadn’t tested it before). I burnt a LED in the process, but now it works and then I also managed to move the servomotors, we are now able to shake a lieve of the plant.

Now we have to bind commands sent by Wi-Fi to those actions, but that shouldn’t be that much of a problem.

Tanguy

Makahiya, Week 17

Hi,

During the end of this week, I did what I expected, that is continuing to integrate features on the dev branch and thinking about how to bind a string to a servomotor and where to put the optical fiber on the plant.

Then, we found some bugs in the new features that Sylvain added on the server and on some usages of the websockets that I hadn’t tested until now so I fixed them.

Monday, we will receive the PCB and we will see what needs to be fixed.

Tanguy

Makahiya, Week 16.5

Hi,

During the first part of this week, I began with adding the servomotors to the PWM driver. I thought it would be easier, but we are lacking timers. We need in total 24 PWM outputs for the Leds and the servomotors and we have only 6 timers to do it, but one of them must be used for the system ticks, which leaves only 20 channels. So I had to use virtual timers for the servomotors.

I also began integrating some features on our demo code, we won’t have our PCB before Monday, which is quite annoying. I also tested the possibility of streaming music with Bluetooth instead of Wi-Fi as we have difficulties to make it work, but I could transfer files at only 9 kilobytes/second which isn’t sufficient.

Until the end of the week, I will continue integrating other branches that are ready and think on mechanical aspects of the project.

Tanguy

Makahiya, Week 16

Hi,

This Friday, I added higher level functions to control the LEDs so that it would match the commands that the server will send. I also did some modifications with the server to avoid some bugs when the user passes inconsistent values or if the plant disconnects.

Next week, we should finally receive our PCB, in the meantime I will add other functionalities to the test code that we will flash on our cards to see if it works and then we will see what needs to be corrected.

Tanguy

Makahiya, Week 15.5

Hi,

This week, I expanded the test code for our card by adding a driver for the LED’s that should handle both hardware and software PWMs (we couldn’t put every LED input on a pin that allows hardware PWM). But I didn’t test it because we still don’t have our PCB, we should have it next week.

I also fixed some bugs regarding the websockets on the server : there was a problem when the plant tried to speak when no client listens and it is now also possible to send commands to the plant directly from the webpage without connecting to the server through a websocket.

Tanguy

Makahiya, Week 15

Hi,

 

during the end of this week, I managed to have a communication through Bluetooth, now it is like if I had a Serial port over Bluetooth. I also wrote a board.h for our card and it seems that the refactoring I did with the server code fixed the problems I had noticed before the holidays.

This week, we should receive our PCB, so we will have to integrate everything.

Tanguy