Spinning fozzie demo - New Torture test version
ozpropdev
Posts: 2,793
Here's a little demo that gives the Cordic and Hub a workout.
Output is 256x192 pixel greyscale NTSC.
Tested on A9 board, should work on DE2 too (Confirmed).
The Cordic resolver is amazing!
New Cordic/Hub torture test version - Uses 16 cogs (12 running cordic) (15 blasting hub)
Can be easily modified from 1 to 12 cogs.
Latest Version fozzie_7_v13.zip - 5th November 2016
Output is 256x192 pixel greyscale NTSC.
Tested on A9 board, should work on DE2 too (Confirmed).
The Cordic resolver is amazing!
New Cordic/Hub torture test version - Uses 16 cogs (12 running cordic) (15 blasting hub)
Can be easily modified from 1 to 12 cogs.
Latest Version fozzie_7_v13.zip - 5th November 2016
zip
40K
Comments
...Any quick video available?
Very nice OZProp! Man, that's a lot of rotations / second!
@cgracey, it's a short clip, 11Mb. You should be able to fetch it on your phone.
Nice work
@potatohead
Thanks for the video.
Neat! Thanks for posting that, Doug. Good test, OzPropDev.
Thanks Tubular for the graphics tip/tweak.
Thanks Potatohead for posting a video.
Thanks Bob and Chip.
Cheers
Brian
dittoes all around. I tried this a while back nearly went blind trying:)
Keep your powder dry on this issue. Once we have sdram support, everything can be pre-calculated and stored as image sized look up tables. This kind of routine is necessary for us to use the P2 as an image stabilizer. Right now, the speed issue would cause a bit of a constraint... depending upon how complicated the stabilization issue becomes. The faster the better, of course:)
Wonderful stuff.
Rich
but the first use of the stabilizer will probably be as a feedback source to the gyro's on our favorite quad-copter:)
As a Robotics/Mechanical Engineer, I'll shamelessly admit that most of this is over my head. But you can bet that as soon as it's available internally, we'll begin working on integrating the P2 in to the ELEV-8 Flight Controller. As far as image stabilization is concerned, processing may be able to compensate for roll/pitch/yaw (though I prefer using a gimbal), but any camera will still require vibration isolation - the vibrations are at such a high frequency that they distort the image within a given frame (hence the "jello" effect).
Vibration tolerance is always an issue. As you know, the type of camera and the speed are critical. The only one that I know that is inexpensive enough, has the right kind of shutter, and is fast enough is the one that Parallax sells:)
I have satisfied myself that blurring isn't as much of an issue as I originally would have thought. I'm working with largely static images right now. Once we have SDRAM working and I've had a chance to see it all work together, I'll buzz you again. In the meantime talk to Phil about it. His camera isn't perfect(nothing ever is:), but it might get the job done.
I ran some checks with the power meter attached, there seemed to be only 17 milliWatts increment per cog (1 cog 4.37W, 11 cogs 4.67 watts), which seems incredibly low to me.
Initially it looked like 30 milliwatts per cog but the red leds and their associated resistor consume about 13mW when lit to indicate that cog is active.
I'm measuring the AC so it includes some small losses in the switchmode PSU, as well as some losses due to WS2812B leds still remaining lit from the bootup test code, but the incremental amounts should be valid
Looks good
Yes. That's what I'm trying to say. You are right, it can be done without rotating pixels... but pixel rotation will give you about a 10x improvement if you are doing the correlation right. Either way, the P2 will be able to handle it:) A major entertainment company called me a liar when I showed them the results in a different context.
I don't have Phil's camera, but I'm about to fix that situation. If you could borrow one and put it on a quad and get some typical images... that would be fabulous.
You have sparked my memory... and thank you for that:)
Rich
Yes. That's what I'm trying to say. You are right, it can be done without rotating pixels... but pixel rotation will give you about a 10x improvement if you are doing the correlation right. Either way, the P2 will be able to handle it:) A major entertainment company called me a liar when I showed them the results in a different context.
I don't have Phil's camera, but I'm about to fix that situation. If you could borrow one and put it on a quad and get some typical images... that would be fabulous.
You have sparked my memory... and thank you for that:)
Rich
Thanks for the power numbers.
I was curious on number of cogs to power usage.
A9 surface temp seems to be sitting at around 40 degrees C.
@rjo
Some interesting ideas there.
Actually none of the programs I tested (ntsc, vga, all cogs blink, smart pin serial) broke 5 watts
I think I might have read your routine backwards... tomorrow will tell:)
This looks a lot better if you make this change to cancel the colorburst reference:
If TV's don't see the colorburst, they go into to nice greyscale mode.
Thanks. I hope to have the ROM code done tomorrow, so we can get a more final FPGA image out.