Arduino Teaches Old Coder New Tricks
The Project
Now that I had invested a lot of time into learning the Arduino system and the Atmel microcontrollers, I wanted to take the next logical step: move a design from the breadboard to a printed circuit board. Some interesting projects exist in this area, such as Fritzing, which is designed to facilitate doing exactly that. It's a clever project and you should check it out, but I took a different path—using the gEDA open-source Linux software suite for printed circuit development.
I looked at my inventory of parts and started thinking of what I could create that wasn't already readily available. I settled upon the LCD display. The displays being used in Arduino projects were interfaced with a lot of I/O pins and code space, neither of which are in great supply on the Atmel chips. I felt that if I could create a same-size daughter board that I could attach onto the back of the display and put the smarts into the board that would communicate with the LCD display via an ASCII serial interface, I would have something useful that didn't exist in the marketplace in an affordable form. This is commonly called a serial LCD.
Being somewhat of an old-timer, I spent a lot of time using and coding for the DEC VT100 display terminals upon which the ECMA-48/ANSI X3.64 standards are based. I felt that if I coded the daughter board to turn an LCD display into a tiny, affordable DEC-VT100, I would have something reasonably unique and useful. Serial-driven LCD displays do exist, but they typically have proprietary protocols, and some are rather expensive. As far as I have been able to determine, there exists no open-source (software and hardware) serial LCD display with VT100 protocol. I found my project!
Gathering the Parts
I selected parts for the VT100-LCD project, such that the parts would be as affordable as possible. In fact, I purchased all the parts from two sources, eBay and Digi-Key, based on cost. Table 1 shows the required materials to build one vt100lcd. Costs are shown on a per-item basis; however, I purchased most of these items in quantities of five or more.
| Part | Qty | Source | Cost |
|---|---|---|---|
| 1602 HD44780 LCD | 1 | eBay seller (China) | $2.95 |
| Atmel ATtiny84 | 1 | Digi-Key ATTINY84-20PU-ND | $3.01 |
| Switch, tactile FSM4JH | 1 | Digi-Key 450-1650-ND | $0.80 |
| Socket, IC, 14-pin | 1 | eBay seller (USA) | $0.15 |
| Header, 1X20, Female, 2.54mm | 1 | eBay seller (China) | $0.39 |
| Header, 1X40, Male, 2.54mm | 1 | eBay seller (China) | $0.20 |
| Resistor, 330 ohm, 1/4W | 1 | eBay seller (Thailand) | $0.02 |
| Resistor, 10k ohm, 1/4W | 1 | eBay seller (Hong Kong) | $0.02 |
| Pot, trim, 5k, RM-065 | 1 | eBay seller (USA) | $0.30 |
| Capacitor, .1uf, ceramic disc, 50V | 1 | eBay seller (Hong Kong) | $0.05 |
| Transistor, 2N3906 | 1 | eBay seller (Thailand) | $.01 |
| Diode, 1N4148 | 1 | eBay seller (Thailand) | $.01 |
| Total: | $7.91 | ||
| Optional Parts | |||
| Commercial PCB | 1 | Panel Aggregator | $7.43 |
| Capacitor, 22pf, ceramic disc, 50V | 2 | eBay seller (USA) | $0.40 |
| Crystal, 20MHz, ATS200-E | 1 | Digi-Key CTX1105-ND | $0.64 |
Schematic Design
To design the circuitry for the VT100-LCD, I chose gschem of the gEDA Project by http://geda-project.org. This suite includes not only the schematic design program but also a PCB layout program, as well as various helper programs. A number of schematic/PCB design software programs exist, but I'm focusing on the open-source software of the gEDA Project by geda-project.org here. Other open-source projects that run on Linux, include KiCad, as well as several commercial products, the most popular of which is Eagle PCB by CadSoft, which runs pretty well under WINE.
gschem is fairly straightforward, and many functions are intuitive, but a few, useful but arcane commands necessitate printing out a cheat sheet (hey, I'm getting older and I can't memorize all of those keystrokes). Yes, although gschem is a GUI program, useful keyboard shortcuts appear nowhere in the GUI's menus. This is especially true of the PCB layout program that I discuss later.
The process consists of inserting electronic component symbols into the schematic drawing either from the built-in library or from your private library and then connecting the pins by drawing traces. I highly recommend reviewing the gEDA Project's on-line documentation before starting your own schematic. There are a few tutorials on the Web about using the gEDA suite, and Stuart Brorson wrote a tutorial article in the November 2005 issue of Linux Journal (see Resources).
I created two versions of my VT100-LCD project: one using the eight-pin ATtiny85 microcontroller and another using the 14-pin ATtiny84 microcontroller. The schematic for the ATtiny84 microcontroller version is shown in Figure 2.
Figure 2. Schematic for VT100LCD e/w ATtiny84
Edward Comer is retired from the telecommunications industry, having worked for the real AT&T, BellSouth and Numerex Corp during a 30-year career.
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Sponsored by AMD
Built-in forensics, incident response, and security with Red Hat Enterprise Linux 6
Every security policy provides guidance and requirements for ensuring adequate protection of information and data, as well as high-level technical and administrative security requirements for a system in a given environment. Traditionally, providing security for a system focuses on the confidentiality of the information on it. However, protecting the data integrity and system and data availability is just as important. For example, when processing United States intelligence information, there are three attributes that require protection: confidentiality, integrity, and availability.
Learn more about catching the bad guy in this free white paper.
Sponsored by DLT Solutions
| Dynamic DNS—an Object Lesson in Problem Solving | May 21, 2013 |
| Using Salt Stack and Vagrant for Drupal Development | May 20, 2013 |
| Making Linux and Android Get Along (It's Not as Hard as It Sounds) | May 16, 2013 |
| Drupal Is a Framework: Why Everyone Needs to Understand This | May 15, 2013 |
| Home, My Backup Data Center | May 13, 2013 |
| Non-Linux FOSS: Seashore | May 10, 2013 |
- Dynamic DNS—an Object Lesson in Problem Solving
- Making Linux and Android Get Along (It's Not as Hard as It Sounds)
- Using Salt Stack and Vagrant for Drupal Development
- New Products
- Drupal Is a Framework: Why Everyone Needs to Understand This
- Download the Free Red Hat White Paper "Using an Open Source Framework to Catch the Bad Guy"
- Validate an E-Mail Address with PHP, the Right Way
- New Products
- A Topic for Discussion - Open Source Feature-Richness?
- What's the tweeting protocol?
- myip
2 hours 27 min ago - Keeping track of IP address
4 hours 18 min ago - Roll your own dynamic dns
9 hours 32 min ago - Please correct the URL for Salt Stack's web site
12 hours 43 min ago - Android is Linux -- why no better inter-operation
14 hours 59 min ago - Connecting Android device to desktop Linux via USB
15 hours 27 min ago - Find new cell phone and tablet pc
16 hours 25 min ago - Epistle
17 hours 54 min ago - Automatically updating Guest Additions
19 hours 3 min ago - I like your topic on android
19 hours 49 min ago



Comments
medical assistant
Medical Assistant programs and medical assistant classes are now online at St. Augustine School of Medical Assistants.
Now offers a nationally accredited and certified medical assistant program online.
St. Augustine School of Medical Assistants is a provider of online medical assistant programs and medical assistant courses.
Thank you for teaching us
Thank you for teaching us this trick. This trick is very useful.
Jasa SEO
You stirred my curiosity
You really did. Never been interested in playing with hardware stuff. Been a web developer for years, never looked into hardware programming and Arduino and stuff like this. Now I want to learn it lol
Good writeup on this, keep up the good work mate
Cheers,
Hosting Dude
I want to learn Arduino
I want to learn Arduino projects. maybe by reading this article can help me. tempo
medical assistant job
medical assistant job description
Check out: medical assistant
Check out: medical assistant job description
Thanks for share this
Thanks for share this article. I think Arduino projects is amazing. berita Indonesia
Nice one
Thanks for sharing your ideas and thoughts, i like your blog and bookmark this blog for further use thanks again…
It didn't take very long to
It didn't take very long to remove the mental cobwebs and get into the elegant simplicity of the Arduino Project. Years ago, when I built microprocessor projects, the underlying system code always was the problem. Before I actually could write my application, I had to develop or adapt systems-level code to interface the application-level code with the underlying hardware. Cleaners London
hello
I discovered your blog so far ... much information to improve our space! So thank you and have a nice day!
voyance en direct
The link to the source code
The link to the source code and design schematics just refers to the google code homepage :)
Nice!
What a great article!
Are you familiar with Instructables.com? They have many Arduino projects. I think this would be a great submission.