VGA Output From A PIC18

In the maker world, it’s the Arduino and ESP32 lines that get the lion’s share of attention. However, you can do fantastic things with PIC chips, too, if you put the dev time in—it’s just perhaps less likely another maker has done so before you. A great example is this VGA output project from [grecotron].

A PIC18F47K42 is perhaps not the first part you would reach for to pursue any sort of video-based project. However, with the right techniques, you can get the 8-bit microcontroller pumping out the pixels surprisingly well. [grecotron] was able to get the chip outputting to a VGA monitor at a resolution of 360 x 480 with up to 16 colors. It took some careful coding to ensure the chip could reliably meet the timing requirements for the standard and to get HSYNC, VSYNC, and the color signals all dancing in harmony. Aiding in this regard was that the chip was clocked with a 14.3182 MHz crystal to make it easy to divide down from all the internal timers as needed. Supporting hardware is light, too—primarily consisting of a VGA connector, a couple of multiplexers, and resistor ladder DACs for the color signals. Files are on Github for those interested in deeper detail on the work.

VGA output is possible to implement on all kinds of microcontrollers—and even a bunch of raw logic if you know what you’re doing. If you’re pursuing your own video output wizardry, be sure to let us know on the tipsline.

Tricked-out Barbecue Will Make You Do A Spit Take

[Strn] and his friends love to barbecue no matter what it’s like outside. But something always seems to interrupt the fun: either it’s time to get up and turn the meat, or the music stops because somebody’s phone ran out of juice, or darkness falls and there aren’t enough flashlights or charged-up phones. He had the idea to build the Swiss Army knife of barbecues, a portable powerhouse that solves all of these problems and more (translated).

Most importantly, the E-Mangal rotates the skewers for even cooking. It does this with a 3D-printed worm gear system driven by the heater flap actuator from a car. After 25 minutes of slow rotation, a voice announces that it’s time to eat. [Strn] and friends will never hurt for music options between the pre-loaded tracks, Bluetooth audio, FM antenna, USB, and SD options running through a 3W amp. Two USB lights illuminate nighttime barbecuing, and the 10 Ah battery can do it all and keep everyone’s phone charged. For safety’s sake, [Strn] included a half-liter water tank to extinguish the coals via jet stream. Everything is run by a PIC18F, and it can be controlled at the box or through a simple web interface.

We love the look of this barbecue controller almost as much as the functionality. The sturdy stance of those short, angled legs give it a mid-century appliance feel, and seeing all the guts on display is always a plus. Grab a turkey leg and take the tour after the break.

The E-Mangal has a thermocouple in the coal box to measure the temperature, but there’s no direct control. If you’re more interested in temperature options than entertainment, here’s a project that micromanages everything on the grill.

Continue reading “Tricked-out Barbecue Will Make You Do A Spit Take”

A Sound And LED-tastic Tricycle Shopping Cart

What do you get when you take a massive number of LEDs and combine them with a shopping cart and a bicycle? An awesome rave-mobile created by [kramerr]. He’s even taking it one step further by making the electronics solar powered.

[Kramerr] controls the LEDs with multiple WS2803 LED drivers. Three PIC18F4550s control the WS2803s over SPI. He devised a neat way of exciting the LEDs from music by using a pair of graphic equalizer display filter chips, MSGEQ7s, to drive the PICs to create patterns. A USB input also allows the PICs to display song titles or other information.

leds and boards

The mechanical design is as impressive as the electronics. The rear half of a bicycle is welded to the frame of the shopping cart with the cart’s handle used for steering. The shopping cart’s rear wheels are replaced by small bicycle wheels.

But [Kramerr] wasn’t done. He built his own solar panel since he couldn’t find one to fit the size requirements. The panel consists of 26 cells connected in series to provide 1A at 13V on a sunny day. A solar charge controller keeps a standard 12v lead acid battery ready to power the tricycle cart.

And there is still more! There is a sound system driven by a Raspberry Pi. The Pi also drives the USB inputs when [Krameer] wants to display song titles or artists instead of the audio patterns.

There are at least four hacks in this project each worthy of applause. [Karmeer] deserves an ovation for doing all of them in one project. If you are looking for less bling and less pedaling may we direct you to this powered, riding shopping cart.

Some rave music and lights via video after the break.

Continue reading “A Sound And LED-tastic Tricycle Shopping Cart”

THP Entry: Atomic Space Time

LCD featuring HaD logo

Accurate time is all around us. Streaming down from satellites thousands of miles in space, UTC time information is at all of our fingertips. You just have to know how to reach out and grab it. [hkdcsf] not only knows how to do this, he does it in style.

Tipping his hat into The Hackaday Prize contest, [hkdcsf]’s atomic clock is masterfully crafted. Not only does it get time information from GPS satellites, it also has the ability to grab the infomation from the DCF77 transmitter. And if ever it’s in a position where neither signal can be found, an RTC crystal keeps the time and date accurate.

His design is based on a PIC18F25K20, and bristles with so many features that it might make you dizzy. So be warned – you might want to be in a seated position before taking a look at this project. [hkdcsf] does a great job at detailing exactly how his clock works, and his efforts to provide this level of detail will surely help other hackers to add similar features to their future projects.


SpaceWrencherThe project featured in this post is an entry in The Hackaday Prize. Build something awesome and win a trip to space or hundreds of other prizes.

Continue reading “THP Entry: Atomic Space Time”

A Wedding Cake Made Out Of LEDs

[Andrew] wanted to do something special for his wedding. Since he and his fiance [Missy] decided on a cupcake wedding cake, [Andrew] decided to wow his guests with an RGB LED cupcake holder.

The tiers of [Andrew] and [Missy]’s cupcake holder are made of acrylic laser etched with a damask pattern. These tiers are supported by a cylinder embedded with RGB leds that provide edge lighting for the acrylic panels. The effect is a series of permutating lights that illuminate the cupcake holder with every imaginable color. On the top of the cupcake cake, there’s a great cake topper made of frosted and laser cut acrylic that has the same color fade effect as the cupcake holder.

On the electrical side of things, the cupcake holder has 44 LEDs on all it’s levels. FETs driven by a 40-pin PIC18F control all the LEDs and the whole piece is powered by a computer power supply.

It’s an awesome build, especially considering it was finished just days before the wedding. After the break, you can check out a few more videos showing off the beauty of [Andrew] and [Missy]’s wedding cake.

Continue reading “A Wedding Cake Made Out Of LEDs”

Overbuilding An ITunes Rating System

Even though iTunes and it’s song rating system has been around for over a decade now, [Steve] still hasn’t gotten around to assigning ratings to his vast library of MP3s. We can’t blame him – who wants to pull up iTunes every four minutes and assign a star rating to each song individually? To solve this interface problem, [Steve] set out to design a hardware song rating interface that fell down the rabbit hole into development hell.

The build started off simply enough – just an Arduino attached to a few buttons that sends data to a Cocoa app which rates the current song. Everything was working wonderfully until [Steve] restarted his mac and the COM ports went to pot. Wanting a ‘plug-and-play’ solution, he did away with the Arduino-based build and started designing a USB device that would display the current iTunes track and provide hardware buttons for rating the current song.

The current build is based around a very capable PIC 18F4550 micro. After looking up the USB HID protocol, [Steve] had some boards fabricated. He’s keeping us waiting on a final build report, but with the amount of work that went into this project, we’re sure it’ll be a winner.

Dot Matrix Clock On The Way

sdc10183-1024x768

[Kevin] sent in his almost finished open source dot matrix clock. Sporting a hefty 40 x 16 display powered by a PIC 18F he has complete pixel by pixel control of the graphics. Combined with with a triple buffer he is at least able to output 15fps, with planned 30fps. While this has great potential for a clock, what about going further? Twitter updates, chat messages, weather updates, the current airspeed velocity of an unladen swallow; it will be tough to beat the competition without some more features. Either way, its an awesome project and we can’t wait to see it completed.