Author Topic: Woohooo - I am so good!  (Read 1556 times)

0 Members and 1 Guest are viewing this topic.

Offline isatis

  • Duke
  • *******
  • Renown: 624
  • Infamy: 78
  • cRPG Player
  • ink+water showing their true potential!
    • View Profile
    • le Clan des Cochons!
  • Faction: Le clan des Cochons!!
  • Game nicks: Cochon_Furtif_Isatis
  • IRC nick: Isatis
Re: Woohooo - I am so good!
« Reply #30 on: January 15, 2014, 01:47:01 am »
+1
That make me remember my last electric and magnetism course in my final practice exam!

But we had less amateurish material of course!

Because free education in Québec is like that of course!

:P
So the new response to ranged ragers is not "get a shield", it is "learn to chamber ranged nub!"
visitors can't see pics , please register or login

Offline Molly

  • King
  • **********
  • Renown: 1860
  • Infamy: 693
  • cRPG Player Sir Black Rook A Gentleman and a Scholar
    • View Profile
    • For the glorious Khorin...
  • Game nicks: Molly
Re: Woohooo - I am so good!
« Reply #31 on: January 15, 2014, 09:51:42 am »
+1
Well, it's not like I couldn't use better equipment cuz there is none. Instead I use the old and cheap stuff cuz it fits my purpose.
Though I probably should switch the oscilloscope for a faster one. That 1µs/div is already the lowest it can display... :?

what exactly is your job called molly?
I'll be an Electronic Engineer specialized in Microelectronics and -systems. In theory I am able to design a chip, fabricate it in a clean room, make an ASIC out of it, design a circuit for the system using the ASIC, fabricate the PCB, test the circuitry. Personally, I specialize on circuit and PCB design, including testing and "quick'n dirty"-software design :) I'm the hardware dude basicly.
I am still studying on the "old" German diploma which is a bit higher set than a Master degree.


The actual application I am working on is this:

visitors can't see pics , please register or login


We have an array of piezo-sensors on a plane-wing which is used to measure the structural integrity of the wing itself. It works roughly like this: you send out a pulse of a certain waveform through the wing which gets picked up by the sensors. Depending on the measurements the sensor did, you can relay information about the structural integrity of the wing. That's more or less the whole idea without going into the details.

That waveform in the picture is the test signal that has to be achieved. The big challenge is to get it fast enough. On the picture it runs with something around 10kHz (don't remember the exact frequency anymore) but what we actually want is something between 150kHz and 250kHz.
Creating the waveform on a microcontroller is rather trivial. All I had to do is to re-create the waveform with a math-program (I am using Mathlab for this) and then generate discrete values for it. Basicly, a huge row of numbers that follow the form of the function. I wrote myself a little script for it where I can specify how many cycles I want, how many discrete values it generates. Then I convert those into hexadecimal values, save them in a certain format and upload them as a lookup table to my microcontroller.
With that lookup table all set, I just call a for-function to put one value after the other on the DAC (digital-analog converter) of the µC.
That was done rather quickly, took me about a day to get the above output.

I realized that it wasn't even closely to the frequency I had to achieve tho. Although the µC (XMEGA256) is a really potent one and runs with 32MHz, it wasn't fast enough to handle the for-function and the digital-analog conversion at a speed anywhere near I would need it.

I played around with the discrete values, mainly using less cycles and less values overall which resulted in this:

visitors can't see pics , please register or login


As you can see, compared to the first picture, it has very visible steps now but the frequency was barely raised.

I decided to change the circuit. Now I am not using the internal DAC (digital-analog converter) of the µC but an external ASIC instead. Well, in theory it should be way faster and I am confident it will be in the end but right now I am just getting bullshit values out of it.
The setup is now that I use 8 output pins of my µC on the ext. DAC as a bus. Everyone with a bit of an background in digital technology knows the order of the binary bits.
All I do now is to read the value from my look up table which comes next and put it onto my output register (1 Byte) which is connected to the ext DAC. Unfortunately the output of the DAC is complete garbage and I have no idea why :D

The bits seem to have the wrong analog values when the DAC generates the voltage. The DAC does a conversion but those values are all wrong and inconsistent...

That's where my actual challenge is right now. Creating that pulse was just a surprising "side quest" to appease the other institute involved in the whole project :D

The all dominating challenge is the frequency. It sounds rather unspectacular but it is actually everything but trivial. Speed is always a challenge in electronics :wink:


Who's not bored by now? :D
 
When west germany annexed east germany, nobody moved a finger too.

Offline Tovi

  • Earl
  • ******
  • Renown: 387
  • Infamy: 251
  • cRPG Player A Gentleman and a Scholar
    • View Profile
  • Faction: OdE
  • Game nicks: KrisTovi
Re: Woohooo - I am so good!
« Reply #32 on: January 15, 2014, 08:59:38 pm »
+2
I tried to fix my electric fryer but I failed.  :oops:
visitors can't see pics , please register or login

Offline no_rules_just_play

  • King
  • **********
  • Renown: 1401
  • Infamy: 384
  • cRPG Player Sir White Rook A Gentleman and a Scholar
    • View Profile
  • Faction: HRE; Peasants United; Burg Krems
  • Game nicks: CapraAegagrusHircus_HRE; no_rules_just_play_HRE
  • IRC nick: norulesjustplay
Re: Woohooo - I am so good!
« Reply #33 on: January 15, 2014, 10:10:10 pm »
+1
I had to use mathlab last year when I did bio engineering, fuck that thing was a bitch :D