11.29.07

First Rain Data

Posted in PhD An Acoustic Disdrometer at 10:15 pm by philwinder

Im in the middle of writing the Optical Disdrometer data sorting code, and I have managed to get the first image out of it.  Excel looks the best, but damn, why didnt Microsoft add an “export current chart to image” function.  I had to find some VBA and put it in a macro.

The code needs to go through another rewrite before its nice and tidy.  Also need to put some failsafe’s in to make sure that the data doesnt trip over itself (E.g. try and overwrite data).

 First Rain Data

Algorithm Comparison

Posted in PhD An Acoustic Disdrometer at 2:50 pm by philwinder

Suprise result here.  Drum roll please….
It turns out that the FMinSearch algorithm was the quickest by about a factor of 2!  Finally got the lsqnonlin function working by messing with the options.  The profiles of the results are shown below:

FMinSearch Profile (2.189s)
FMinUnc Profile (4.355s)
LSqNonLin Profile (3.577s)
mmFSolve Profile (Custom user’s file) (5.814s)

Slight Speed Increase

Posted in PhD An Acoustic Disdrometer at 10:07 am by philwinder

Speeded up the code slightly (0.2s to be exact) by changing the peak detection routine.  This new one has come from a PDF entitled “Writing Fast Matlab Code” by Pascal Getreuer in 2006.  Below are a local copy of the PDF and the profiles of the slower and faster code.

Writing Fast Matlab Code PDF
Slower Peak Detection Profile

Faster Peak Detection Profile

11.28.07

Moving from a square to a circular tank

Posted in PhD An Acoustic Disdrometer at 4:08 pm by philwinder

EDIT: Scratch this, it turns out, it wasn’t that at all. Implemented the ideas below, and it still didnt work. Couldnt figure out why. Had a break, a cup of tea, and noticed that vista was starting to get sluggish. Did a customary restart, restarted Matlab, and boom. Back down to 2 seconds. Weird.

Once I had got the code working and solving correctly, it was time to move to a circular tank. This would help to mitigate many reflections, since there is hardly any sides for p-waves to directly bounce off into a hydrophone. This should have been quite an easy thing to do in the code, but it turned out it wasnt.

Firstly, after debugging all the silly errors mainly relating to the Order checking routines and variables, the fminsearch to a stupid amount of time to complete. Where it once took 5 seconds, it now to 50. I couldn’t figure it out, and I thought that it was an error in the code. But I came to realise that it was because the initial estimate has just become a lot worse. In the square version, with hydrophones in the corners, there was a quadrant for each hydrophone, and the estimate was placed in the middle of this quadrant. In the new layout, there are now cake sliced quarters of a circle, with the hydrophone at the edge. Using the estimate as the position of the hydrophone (like before) means that half of the data will be more than double the distance away from the initial estimate. This is like placing the estimate for the square tank on one of the walls, rather than in the middle. Therefore, for now, I will place the estimate somewhere in the middle of the centre and the outside hydrophone.

Attached are PDF’s of the Profiler from Matlab.

Profile for the circular tank simulation
Profile for the square tank simulation

11.24.07

Few more ideas

Posted in Future Project Ideas at 7:09 pm by philwinder

Once I’ve finished with the current robot, I would love to get into some sort of UAV design, something like the 4 rotor Helicopter designs ive seen on the internet (see bottom for references).

I’d also like to continue building the EFPD.  Possibly place it on a robot that would run away when someoe got close.  Make a super-small version on a proper pcb.  Another idea is to attatch it to a ring of lights.  When someone walks past then they would light up in sequence.  It would look so cool up the stairs.

Could also integrate it into the landing lights, or maybe the main downstairs lights so that they turn on when someone comes past.  Cool.

11.22.07

Next Things to do for the ZBot

Posted in ZBot at 9:40 pm by philwinder

Well after a long period where I had no access to my electronic equipment, the time is nearly upon me to get it all back out (just in time for the christmas holidays!). Heres what I need to do:

  • Go over the IR code and change/rewrite if nessecary
  • Change the IR diodes to radial types
  • Hot Melt Glue the whiskers on rather than sticky pad.
  • Have a look at the circuitry and implement anything I have recently learnt
  • Implement PID Control ( Found a great link here)
  • Investigate/Simulate/Create Phased array Sonar (Almost a project in itself) (Got all the bits)
  • Integrate and EFPD?
  • Investigate zigbee and see if its worth it. (I had seen a website where an xbee module was connected to a USB via an FTDI chip - cant find it now)
  • Anything else I cant think of in the process…

Damn Multilateration

Posted in PhD An Acoustic Disdrometer at 8:50 pm by philwinder

Over the past couple of days I have been battling with solving the multilateration equations.  Today I got them working in the guise of a numerical solution using matlabs fminsolve function.  It took a while to figure out how it worked, but when it did, it worked straight away.  The next thing was to throw some real data at it, and this is what has taken much of the day up.  There must be still something wrong in the main routine, because I am sure that the numerical solutions are ok.

Either way, it takes for ever.  The idea was to take an abitrary set of 3 pulses to test the fourth and iterate over all combinations.  Then we keep the iteration that provides the smallest (acceptable) error.  The problem with this is that when the rain rate gets up, then it is inevitable that 10+ pulses appear in the same time window.  Now, for 10, there are somewhere around 200 combinations of 1-10 in sets of 4.  The fminsearch takes somewhere around 10ms to compute, so 200*0.01 = 2s.  This is only for one set of 4, and thats even if it works out in the end.  So when we have maybe 100 pulses, simulation times get loooong.

There are two ways around this, firstly just dont use the estimation. Secondly find another way.  What we could also do with the final device is when the rain rate does get too high, then just raise the threshold and ignore all the smaller drops.

I’ll email kevin tommorow and see what he thinks.

11.21.07

Paris Confrence and a few bits

Posted in PhD An Acoustic Disdrometer at 4:37 pm by philwinder

Got back from the Paris IPC9 confrence now and overall it was a pretty good experience.  I felt really nervous though when I was actually giving the presentation.  I thought it went quite badly, but others said it ok; probably being paranoid.

When I got back ive continued with the code, mainly trying to get the multilateration sorted.  Its turned out to be a right pain.  I cant seem to solve the equations.  I tried to do it analytically, but I couldnt find a way.  Kevin said to try it numerically which I will try shortly.

Also, finally got a laptop.

11.08.07

TAR meeting and more…

Posted in PhD An Acoustic Disdrometer at 9:30 pm by philwinder

Had the TAR meeting today, someone called Michiel Postema, was chairing the meeting with Paulson.  Exccentric is not the word.  They said the report was good.  Background was a bit diluted.  Paulson loved the presentation layout.  Practised the presentation again; took about 20 mins but I spent too long describing bits.

Rewrote the generation code, was very messy and I think there were a few problems.  Also rewrote the check arrival order function.  It works ok now, but it doesnt actually delete anything.  Just checks that there is 4.  We are still getting a pretty high error rate, so I think it would be beneficial to go through it one more time to get those errors down.  Once that is done, then it is about time to start the estimation routines we were talking about the other day.

11.07.07

Finished the presentation

Posted in PhD An Acoustic Disdrometer at 9:03 pm by philwinder

Finished the presentation, do need to practise it a bit more.  Got paulson to look at it.  Altered some of the content, but likes the look.

« Previous entries