Saturday, April 11, 2009

Some usefull embedded silicon..

PowerQUICC™ II Pro processor with higher CPU performance, added functionality, and faster interfaces MPC8313E
ST Microelectronics STM32F103 Micorocontroller, with the high-performance, high-speed 32-bit ARM Cortex M3 core processor, executing at 90 MIPS, 512k of high access speed Flash Program Memory. Excellent alternative to any PIC or AVR controller.
Philips LPC2119 Micorocontroller, which is based on the high-performance 16/32 bit ARM7TDMI-S CPU Core, 128kb Internal Flash Program Memory

MCF51AC: Flexis™ 32-bit ColdFire® V1 Microcontroller board
Xilinx Spartan-3E FPGA ready made boards in different configurations available from Digilent

Will update this list should anything else of interest pop up..

Tuesday, April 7, 2009

KXPS5 twists and turns..

So the story is like this.. i wanted to read SPI data from an accelerometer through USB. Simple enough? Not really, first I grabbed one of FTDI solutions, namely FT2232L. I quickly pieced together the following contraption..


and ventured to install FTDI driver and build a program out of a sample provided by FTDI website. Everything worked flawlessly, communication to and from the chip was taking place as expected. Outer I/O pins would light up as i wanted them to, that is until I decided to write and read a simple byte in the MPSSE mode. That is utilizing inbuilt SPI hardware support by the chip. I quickly realized that the API that is exposed by ftcspi.dll is quite clumsy for my purposes and wouldn't let me to fine tune and time the protocol as i needed. I'm yet to find a successful implementation of SPI to KXPS5 using FTDI hardware SPI solution. Of course there's always a bit bang mode where i could have software simulated the SPI but failing to launch the first time I kind of felt low pressure in the fuel pipelines to continue with FTDI. One day I saw a sample which would go something like this. SPI_PORT = byte; byte = SPI_PORT;.. I couldn't believe it was that easy to read and write to it. Of course it was a microcontroller.. yeah one of those things where code is still code, small and straight forward. I quickly (pic)ked up a microcontroller chip and build the next following contraption..


After fine tuning a few things, and putting a MCHPUSB bootloader from Microchip USB framework for PIC18 (so i can fine tune a PIC program till i drop) i fired it up, uploaded a program and saw read outs form the KXPS5.

It worked!

Next step, visualize!! I used XNA framework and the examples from Microsoft. I downloaded a free 3D model from TurboSquid spend some time debugging a few timing issues and the final result so far is like this. See it!! At least music is cool..;)

Monday, February 9, 2009

KXPS5 accelerometer, now and than..

I've been looking for a right accelerometer for more than a year. I did have this idea that it would be great to stack up these little guys against the gravi-force of our bubble and see the digits measuring the 3 dimensional tilt flicker on a screen. I went trough a number of choices. The venerable ADXL330 from Analogue Devices. Good, but..a bit pricey and requires 3 analogue to digital input, if having more than 3 connected might ran out of AIN inputs.Than of course STMicroelectronics LIS3LV02DQ this one pumps data trough SPI. I like, but.. still pricey.
Than there is Freescale Semiconductor MMA7455L good one, digital SPI or I2C all bells and whistles in order, and this one would've been my chose providing it only costs around 5 dollars on digikey but wait.. crawling over ebay, totally spaced out as usual, i came across this. Behold KXPS5 series accelerometers by Kionix. And wait there's more, there's a savior out there helping people to get acquainted with this technology at a very reasonable price his ebay tag is crodnet and the page on the web crodnet.co.uk.. unfortunately at the time of writing the page seems to be inaccessible, but i hope it should be an easy fix. So there.. the package of the unit is not friendly, it is LGA14 and 0.8 mm thin.. some fear and ran when see. But, wait.. it is not that bad.. have a look at the pictures.. all done by somewhat steady hand.


Using low melt, non clean solder and very fine tip of a ESD safe soldering iron at a controlled temperature point. (I personally use AOYUE 937).. but wait, there's more you can even mount it on a PCB..


again, all hand made using presensitized boards and a scaled down transparency. Than you put some solder, flux and than you bake.. more about it next blog entry.

Sunday, January 25, 2009

Cheese!!!

Often you find yourself bouncing off a fridge back to a stove back to the fridge... open look inside.. yogurt, frozen semi prepared bricks of heavily processed space food, what IS it? Ah, its a dead bird frozen in space-time iced cube, no turning back, blue slopes of shaved skin goosebumps.. no appetite you say? Wrong! Have a go here:

RUSSIAN TABLE


this is a jump you can and should afford, this will remind you the time you heard stereo.. ah.. not that old? Ok how about this, it will remind you the first time you heard 12.1 3D sound penetrating the depth of your inner ear while comfortably floating in a null-graviton chair looking at a holographic projection of Connan the Barbarian. Wait a minute, this is not 2035.. well you got the idea, at least try this food, hope you will not be disappointed.

Tuesday, January 13, 2009

X-Ray dissasembling manual or a part 2..

So, you're happened to be inspired by a home build radiation emitting device and quickly slap one together connecting thick, high voltage, glowing red carbon wires to a post world war tube rectifier engulfed in to an aluminium foil. Your eyes are shining your palms are shaking.. quickly plug it in, plug it in.. not so fast. Step away from the contraption and listen here carefully. X-rays are a form of electromagnetic radiation. Light is a form of such radiation, as well as radio-waves are, the difference is been in the frequency of these waves oscillation. When dealing with radio-waves we are talking about 1.50E5-1.2E10 Hz or approximately 500 meters to 10 centimeters in wavelength. When looking at light we absorb somewhat in between infrared to ultraviolet frequency in range of 1E12 to 1E16 Hz, this is approximately in range of 1 millimeter to 7 nanometers of a wavelength. This covers not just visible spectrum but some of what we rather can feel radiation, it includes infrared (immediate burn sensation) and ultraviolet (not so immediate but more severe burn sensation). What was found and than theoretically tied up to mathematical derivations is that the higher the frequency the more energy is packed in a single quanta of such radiation also known as photon (Max Planck). X-Rays, which in the frequency spectrum positioned well above the ultra violet radiation gulping up some 1E17 to 1E19 Hz range, in fact are a bunch of quite energetic photons, racing with the speed of light, each carry a pack of energy which when absorbed on collision is capable of inflicting living tissue atoms ionisation. Lets go slow here, in our made up universe atoms consist of a positively charged nuclei surrounded by negatively charged electrons. The electrons are bonded to the nuclei by electromagnetic force. This force is by power of 3 stronger than the gravitational force, so strong the force is that it binds together materials such as for example tungsten carbide or say one of the toughest material on earth aggregated diamond nanorods. And yet this force is not infinite in its wisdom and can be broken. In fact you do it every day, say by ripping off paper for instance. Wow, call me simple, X-Ray! Well not quite. In the case of ionisation it goes deeper than a simple crack in the material. You see when you tear a material apart it brakes the bonds between molecules, bonds that are formed due to an uneven charge distribution within a molecule itself. (more on it some time later, when your head stops hurting). This does not destroy the molecules it just separates them apart. On the other hand when a photon is absorbed by an atom it energises an electron that oscillates around atoms nuclei and possibly makes such electron jump to a higher energy level or even become so exited that it abandons its nuclei to wonder off leaving the atom "broken" or ionised. If enough atoms are broken the whole chemical composition of made up by these atoms molecules changes. This in turn, for example, can upset a superfine balance inside building blocks of living tissues, proteins. And than instead of you, proteins are starting coming together in a form of little Frankensteins and that's my friends is very little fun. So there.. go drink cold beer and leave X-Ray machines to professionals.

Monday, January 12, 2009

Dream on..

A few computer games, I vividly remember enjoying, did not have a powerful 3d engine. Majority of them didn't have the 3d engine at all. I attribute it to "it is always best imagined rather than seen" factor. May be we are in denial about the actuality of our existence? Is our imagination a happy place where we escape from mundane reality? Cutting a blubber of this innuendo short. If you're getting a kick by looking at a little man made from x and 0 sliding, as if ruining, across ==== floor and if you are as asphyxiated in the head as I am have a go at this game, the Ragdoll Cannon and have your otherwise used to better the world hours burn. (By the way, Ragdoll Cannon has nothing to do with an xo man running ==== floor, go figure..)

Thursday, January 8, 2009

X-Ray, call me simple "Death"-Ray

So.. you sit there spaced out, bored.. what to do.. what to do.. oh, i know, how about building an X-Ray machine!! That should be fun, fun, fun!! Now before you read any further.. get it in to your brain, it is dangerous, it brings lots of problems to you, your neighbours, pets and surrounding bacteria.. it involves parts and subatomic particles which guess what? Can kill you! One of them slow, some of them can fry you pretty fast.. So if you are yearning for a healthy dose of radiation better sign up for a regular check up at your nearest dentist office..

But, nevertheless.. nevertheless.. you might be somewhat surprised, as I initially was, that you can build a pretty solid X-Ray emitting device right there, in the convenience of your house. All parts can be fabricated or readily acquired from various suppliers and even more, the actual "how to" has been available to us, mere mortals, for some 40 years or so. First published in The Scientific American Book of Projects for The Amateur Scientist circa 1960, its been widely disseminated all over the Internet. The question remains though, has anybody out there was brave enough to reconstruct the device and test it? So what do you need to build this monster? You need a high voltage source, we are talking 35-65 kilo volts. In the article the voltage is generated by a vibrator (don't get me started..) a capacitor and a charged-discharge coil.. i say we are step up from 1960, these days you can get high voltage in a bit more efficient way.. no, your microwave transformer in its almighty power will not cut it, it only produces 2-5kv.. you need 10 times as much, what will do is a fly back transformer together with its glue logic. It's normally found inside CRT TVs or computer monitors. Expect those available in large numbers all over the country at the dump near you, as soon as we switch to digital over the air transmissions. Or you can get one already made and mailed to you from, say Information Unlimited or United Nuclear HV power supply. By the way if you happened to be short of an X-ray emitting vacuum tube United Nuclear X-Ray Tube has one of those together with the blocks of lead. Which you have to amass in big numbers to surround yourselves and your loved ones with should you decide to seat out a "nuclear winter".

Having said that, I once again, would like to remind you that having your portable x-ray machine is dangerous. Don't run to me crying saying that you got a bo-bo growing inside your head the size of a tennis ball. I have nothing to do with it, you have been warn. Also if you stick your fingers in to a power point it is equally bad, just to make sure you know this one as well.