According to, the inspiration for building this camera came from photographer ’s work, which we have to admit is pretty cool. Stringing the three frames together as a GIF later results in an interesting illusion of depth and motion. What’s a Wigglegram, you say? We’ve seen them before, but the basic idea is to take three separate photographs through three different lenses at the same time, so that the parallax error from each lens results in three slightly different perspectives. And we can’t think of a better way to celebrate moving pictures than with a 3D printed trinocular camera that makes digital Wigglegrams a snap to create. Posted in Microcontrollers, Software Development Tagged AVR, GIF, image compressionĮveryone likes a good animated GIF, except for some Hackaday commenters who apparently prefer to live a joyless existence. All the code is on GitHub under a CC By 4.0 license. provides some sample code to display a GIF from program memory and an SD card. But he ports it over to the PyBadge, which is ATSAMD51 based. Animated, local color tables, transparency, interlacing, or GIF87a formatted images aren’t supported. The LZW lookup table is encoded as 12-bit pointers to earlier entries plus an additional pixel. Since the TFT he targets is a 5-6-5 color space, those 3-byte colors become 2 bytes. Along the way, uses little tricks to shave down the requirements. We had previously seen a minimal GIF decoder aimed at a Cortex-M0+ that required 24 K of RAM, but this technique is running on an AVR with just 12 K of RAM. of Technoblogy couldn’t find a GIF decoder that fit his needs, so he started writing his own. One solution is to compress the images, but then you need more RAM to decompress it, and that’s a whole other problem. Showing images on a TFT or OLED display with a small AVR microcontroller can be a challenge as it requires significant storage space.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |