Serial Monitor Without a PC

serial01

A serial monitor is an easy way to debug your projects. As we step through code, it’s nice to see a “Hey! I’m working, moving to next thing!” across the monitor, and not so nice to see nothing – the result of a bug that needs debugging. This has always meant needing a PC loaded with your favorite serial terminal program close at hand.

Most of the time this is not an issue, because the PC is used to compile the code and program the project at hand. But what if you’re in the field, with a mission of fixing a headless system, and in need a serial monitor? Why lug around your PC when you can make your own External Serial Monitor!

[ARPix] built this fully functional serial monitor based on an Atmega328 and a 102 x 64 LCD display. While it doesn’t have a keyboard port like this microcontroller based serial terminal, tact switches allow access to the user interface to start and stop the reading and set the baud rate. The Atmega328 has 2K of SRAM, which is needed for the project. Apparently, 1K was not enough to handle all the data. All code, schematics and a very well done parts layout are available, making this sure to be your next weekend project!

 

 

 

Comments

  1. Z says:

    I’ve resorted to using LEDs to try to debug somethings in the absence of a serial monitor. This would have helped…

  2. Mike Lu says:

    I just use a tablet and a USB to RS232 adapter.

  3. I want one of these with a 5+” backlit display!

  4. HalfNormal says:

    That is what my Palm lll is for!

  5. bryan says:

    hp100lx for the retro win ;)

    or really, a netbook or tablet or …

  6. jpnorair says:

    I use an iPhone for this, with a custom STM32-based dongle. Apple doesn’t make it easy, though. Android might be easier.

  7. Simon says:

    I generally use one of these: http://databoy.netfirms.com (DataBoy).
    It is a cartridge for a gameboy that gives it rs-232 comms logger/analyzer capabilities. istr that it only has a 24kB buffer, but it is very handy for debugging relatively simple problems. The limited buffer is only a problem every so often.

    Questions got raised when we bought a few GameBoys for the R&D department :)

  8. Trui says:

    I just use my laptop. Usually, debugging requires rebuilding and uploading the code anyway.

  9. ortarock says:

    I was going to complain about the use of a “LCD display”, but apparently Mouser sells them under exactly that description… *sigh*

    • chrisj says:

      I say LCD display all the time, never really thought about it before. Still can’t seem to stop myself from saying pin number and ATM machine. Cool project though, I need to start making stuff again. I miss the serial terminal and the satisfaction of getting your code debugged and everything working the way its suppose to.

  10. But… how will you fix the bug once you find it by watching the debug stream? I mean, this little thing won’t allow you to code on it!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 94,104 other followers