All posts by Jeff

Electrical engineer, tinkerer, maker.

Blogs, blogs, blogs

Some interesting electronics/microcontroller/hacker themed blogs I’m reading these days:

My favorites:

And some new (to me) blogs:

That’s it for now.  If I missed any good ones, I’d love to hear about them, leave a comment or contact me.  You can access all of the blogs I mentioned (and a couple more) from the blogroll to the right.

PIC Microcontroller RGB Video – Animations!

Update: For those who are interested in seeing how this is done, I have posted schematics and source along with some technical details about this project.  Click here to learn more.

After two days of straight coding, this is the result – two more aliens and an animation routine that toggles between 2 images for each alien and changes aliens every n frames.  The alien selection routine is implemented as a state machine and uses way too many instructions, but fit within a blank line of video so I called it good.  The hardest part again was maintaining a constant number of clock cycles regardless of the program flow through the display loop.  This is required to maintain the video timing and keep the LCD happy.

I also changed the image lookup table routine so that the image to be displayed is loaded during the blanking interval above the top of the visible screen.  This makes the pixel display much more efficient during the field but at the cost of a bunch of memory.  Now instead of execution time during the horizontal line limiting the max resolution, it’s memory instead…  sometimes you can’t win.  If I encoded color more efficiently the memory limitation would go away.

I need to clean up the code and add some more comments, but I’ll post the source in case anyone else is interested in learning how to generate RGB video with a PIC or wants to try a similar project.

Update: The LCD display I am using is a Sharp 4L-U4EB I bought surplus years ago.  I haven’t been able to find any more of them since, does anyone have a source?

Here are some still images showing the animation sequence for each alien.  Click on each for a bigger version.

Still images from space invaders animation Red!

Still images from space invaders animation Green!

Still images from space invaders animation Blue!

Previous posts related to this project:

https://mightyohm.com/blog/2008/09/space-invaders/

https://mightyohm.com/blog/2008/09/generating-analog-rgb-video-with-a-pic-microcontroller/

Also check out my flickr set, PIC Microcontroller RGB Video.

Bre Pettis | Living the DIY Dream

Bre Pettis (formerly of Make Magazine’s Weekend Projects) is hosting a new TV show that premieres on the History Channel later this month.

I’m really excited.  I just found out that my TV show pilot, called History Hacker is going to air on the History Channel on Friday, September 26th at 9PM. This photograph, which is also the current header of my blog was shot during filming of the show. I’m on set in my infinity workshop and that’s a decent sized Tesla coil.

Over the course of the show I learn about the inventors and inventions of the past and then hack the inventions together out of stuff in my closet.

History Hacker
Friday, September 26, 2008
9PM
The History Channel

Bre also has a new blog where you can check out what he’s up to, including his involvement with Etsy and uber-hackerspace NYC Resistor.

Bre Pettis | Living the DIY Dream