Phi-panel backpack face plate
March 24, 2012 2 Comments
This is an addition to the already awesome phi-panel LCD backpack. Now this option is available on inmojo.com
The picture explains everything 🙂
Arduino raspberry pi circuits programming python Linux and physics
March 24, 2012 2 Comments
This is an addition to the already awesome phi-panel LCD backpack. Now this option is available on inmojo.com
The picture explains everything 🙂
January 28, 2012 Leave a comment
You can use all custom characters on phi-panels as long as you are not using them in a long message, which uses custom characters to display the scroll bar on the right.
You can do the following:
When you need to use custom characters, follow the sample code phi_panel_big_show between lines 167 and 189. The last command in that function prints “\eZ~” to the panel to reinitialize the panel’s internal custom characters. Otherwise you will see your custom characters in place of the scroll bar 🙂
You will need the custom character definitions in your code as well so:
The code may be a bit messed up by the blog posting restrictions but you can find original code in the beginning and between lines 167 and 189 of the sample code phi_panel_big_show.
PROGMEM prog_char ch0[]={B110,B100,B100,B110,B100000,B1010,B10101,B10101,0};// cm
PROGMEM prog_char ch1[]={B11011,B10011,B11011,B11011,B11011,B11011,B10001,B11111,0};//Inverted 1
PROGMEM prog_char ch2[]={B10001,B1110,B11110,B11101,B11011,B10111,B100000,B11111,0};//Inverted 2
PROGMEM prog_char ch3[]={B100000,B11101,B11011,B11101,B11110,B1110,B10001,B11111,0};//Inverted 3
PROGMEM prog_char ch4[]={B11101,B11001,B10101,B1101,B100000,B11101,B11101,B11111,0};//Inverted 4
PROGMEM prog_char ch5[]={B10,B100,B1000,B10011,B100,B10,B1,B110,0};// /s
PROGMEM prog_char ch6[]={B100000,B100000,B100,B1110,B11111,B100,B100,B100000,0};//Up arrow
PROGMEM prog_char ch7[]={B100000,B100000,B100,B100,B11111,B1110,B100,B100000,0};//Down arrow
PROGMEM const char *ch_item[] = {ch0, ch1, ch2, ch3, ch4, ch5, ch6, ch7};
byte ch_buffer[10];
void demo_custom_char()
{
for (byte i=0;i {
strcpy_P((char*)ch_buffer,(char*)pgm_read_word(&(ch_item[i])));
Serial.print(“\eS”); // Start custom character sequence
Serial.print(i,DEC); // Indicate the custom character to create
for (byte j=0;j {
Serial.write(ch_buffer[j]|0x80); // Add a 1 to MSB to make sure the custom character definition is always beyond a numerical value of 31 to avoid a confusion with control characters.
}
Serial.write(‘~’);
}
Serial.print(‘\f’); // Clear screen
Serial.print(“Custom character “);
for (byte i=0;i {
Serial.write(i);
}
delay(5000);
Serial.print(“\eZ~”); // Reinitialize phi_prompt since the long message requires custom characters;
}
December 16, 2011 7 Comments
Every once in a while on the arduino forum, people ask about which serial LCD to buy so today I saw such a post again and wrote this reply. I am certainly biased towards this serial LCD issue as I make and sell the phi-panel family of serial LCDs and keypad panels myself but take whatever you consider as fair argument:
3 vs. 4 wires:
Some serial LCD comes with 3 wires, 5V, GND, and RX. Some comes with 4 wires, 5V, GND, RX, and TX. Some serial LCDs are just LCDs, i.e. an output device. So you don’t need to read back from it. This saves one line, the RX on your arduino. Some have both RX and TX for possibly these reasons:
Cost:
Some serial LCDs are cheap because they don’t have a processor on board. They are the I2C serial interface, which arduino can connect to. These are simply I/O expanders that give you 8 additional I/O ports, enough to run the LCD. The backpack has no intelligence. The arduino spends all the resources and does all the work and needs to drive the display with special libraries provided by the makers. I know of two sources besides ebay, adafruit, and our forum member fm. Since there is no processor on the LCD backpack, the solution is cheap.
The more costly serial LCDs have on-board processors that controls the display and in the case of my LCD backpack, also possibly senses other inputs, process them, or even run multi-tap input or other fancy stuff on the on-board processor so your main arduino doesn’t need to worry about those. Those are more expensive and frees up resources on arduino and are more or less swappable with other serial LCDs with on-board processors without ever needing special libraries. Among a few of the sellers, sparkfun, moderndevice, some ebay sellers, mine, etc. All have the same level of intelligence except for mine, which is also the lowest cost with most functions. That might explain why both sparkfun and moderndevice are not interested in carrying my serial LCD. 
So my logical conclusion is to buy the phi-panel family of serial LCD for the lowest price (except for fm’s I2C backpack) and best functionality. The rest of them in terms of functionality are about 5,000 lines of firmware code behind.
December 10, 2011 8 Comments
In a previous post, I discussed my journey to enclose my projects. I have been thinking about this question for a while. Recently I developed my serial LCD keypad backpack, specifically to make the difficulty of creating a user interface goes away. Now it needs to be mounted. So I devised a plan to create a physical user interface with appropriate project box for LCD projects. Here is a finished picture, not too bad, right?

My choice of enclosure has an advantage:the enclosure has a 9V battery compartment :). If you decide to not buy my serial LCD keypad backpack, then there will be 20 wires between the front panel and inside the box, 8 for the keypad, and 12 for the display. You may want to use a ribbon cable or jumper wires. If you do get the backpack, you only need 4 wires instead of 20 plus the programming is much easier with the backpack. So your choice.
First, get a precise layout of your display including the PCB boarder, screw hole and size, and display area. I suggest you print it out on paper or draw it on paper. Make sure you check the actual display instead of solely relying on the spec sheet, which could be different from your display.
If you got the serial LCD backpack, you can download this file and print it out. Cut out one display diagram. Read this spec sheet, maybe it’s the same as yours so you can also use this file. Whatever way you get the layout, use double sticky tape and secure it symmetrically on the front of the enclosure, leaving some space above it, maybe 1/4 inch or 6mm.
Now use the dremel abrasive disk and carefully cut along the inner rectangle, or the dimension of your display’s viewable area, not the entire black frame. You want to be careful not to over cut. You can try to cut from the under side to help you remove the window. Once you’re done cutting, use a knife to free the four corners.
I messed up the top edge of the box a bit by getting the spinning chuck too close to the edge. No big deal. Now you can use the dremal cutting tool to cut the four corners. Here is the under side.
Now use the smaller drill bit to drill guidance holes at the screw holes. Then use the proper drill bit to open the hole up for your screws.
Now remove the printout and excess material. Mount the LCD to see how it looks like.
Here is the back side:
See the standoff on the enclosure? That is why you don’t want to cut the window too high.
A closeup on how I mounted the display:
Basically from top to bottom: nut, display PCB, standoff, then screw on the other side.
Now cut a slot at the bottom of the box top to allow the membrane keypad connection to pass inside the box:
Just don’t cut too low. Leave about 0.5 inch or 12 mm.
Then carefully remove the backing of the membrane keypad. Pass the connector through the slot and stick the keypad on to the box:
Tada! A good-looking box that you can use for anything! I am planning to add a GPS module inside of it and run a GPS logger with it. Please see the phi-2 shield page for the GPS project code.
Now the under side:
As you can see, the connector comes back up to about the bottom of the LCD. This way you can connect the LCD serial back pack easily without stretching the cable.
Later I will add an LCD backpack to the box. The box has enough space to hold a full-size Arduino UNO and some other stuff, plus a 9V battery compartment so you are all set for an exciting project.
If you don’t have an LCD backpack, I suggest you solder a female header on the back side of the LCD so you can run simple jumper wires between the LCD and arduino. For the potentiometer and LCD resistors, solder them inline. Also use jumper wires to connect the keypad to arduino. You will only have 4 free arduino pins left. Total of 20 arduino pins – 2 serial programming pins – 6 LCD pins – 8 keypad pins = 4 pins left.
Otherwise, use the LCD backpack and the 4 included jumper wires. The backpack only uses 2 arduino pins.You will have 16 free pins on your arduino.
December 3, 2011 14 Comments
Face plates are coming out! These are white 3mm acrylic face plates made from laser cutting. I didn’t choose color since I thought I could just paint the white to any color I wanted. Well, I don’t really have a spray painting can :((
If you want to make them, just leave a message here. I’ll be posting the design file in a while.
This is the design file in Corel Draw 11 (super old version). It should export into the .svg file for laser cutting at ponoko.com with the 180mm*180mm service (cheapest) if you also have Corel Draw. Otherwise, download the .svg file. I am not sure what software to use to modify .svg if you want some changes though.
To make it, set up an account at ponoko.com and choose acrylic (3mm thickness suggested).
Contains 2 16×2 face plate, 1 20×4 face plate, and one arduino uno support.
Corel Draw file:
http://code.google.com/p/phi-panel/downloads/detail?name=phi-panel_faceplate_v3.cdr&can=2&q=
Exported .svg file:
http://code.google.com/p/phi-panel/downloads/detail?name=phi-panel_faceplate_v3.svg&can=2&q=
Suggested push buttons: EG1861-ND, caps: EG1882-ND, EG1881-ND, EG1880-ND. All these are digikey.com part numbers. These are the cheapest ones I could find.
Suggested spacers: M3 thread 8mm spacing and M3 screw: 25509K-ND, H742-ND.
November 21, 2011 Leave a comment
Since my success on phi-panels with integrated keypads, I’ve decided to make a serial LCD backpack as well. This backpack will support membrane matrix keypads and buzzer off board with all the same great features of the original phi-panels, just cheaper and more flexible if you want the serial backpack to make the least impact to how your project has been set up. Here it is:
At the moment, I only have 16*2 and 20*4 displays in stock but you should have no problem with 20*2 display and 40*2 displays. If in the rare occasion your display has double row pin holes, you can always solder wires between your display and the backpack.
You can set the size of the display over serial or on the on-board menu, with a 4*4 membrane matrix keypad.
This is the cheapest serial backpack out there. The I2C backpacks sold by adafruit etc. don’t have any processors on them so they will waste your arduino just as much time and FLASH space to operate as a parallel display. With the vast 24KB on-board firmware and functions, this backpack trumps any of its competitors!
I am offering these for sale on inmojo at the moment, although if you are interested in trading with me (I collect old CPUs, in the early 1990’s and earlier), I can trade with you as well. Read this post if you are interested in exchange:
October 22, 2011 Leave a comment
After a Phi-panel user (Daniel) has requested for more symbols on the multi-tap keyboard, I added all symbols to the keypad, why not? 🙂
Now the keypad has 7 symbols for each numeric key except for 9, with 6 symbols only. The symbols such as greater and less, brackets, parentheses, and curly braces, are all symmetrically located so if you get used to the pad, say memorized “(” is 5 presses on key “4”, then the “)” will be also 5 presses on the next key, “5”. Again all + – * / are located together on key 1.
On HD44780 displays, the ‘~’ and the ‘\’ are displayed as right arrow and the Japanese Yen (HD probably means Hitachi display). That’s unfortunate. Hope that would be a big deal for most of us.
New keypad:
Old keypad:
To update your panel firmware, please go to the google code download page to download the firmware and follow the steps in the wiki page at the code site for updating. If you have questions, leave them here so I can answer them. Thanks.
August 17, 2011 2 Comments
After getting feedback from arduino forum, I decided to add a new design to my existing phi-panel, a compact panel with a 16X2 display. Here’s a couple of concept pictures:
The compact version will be offered soon. I just sent out the PCB order. This version complements the full version, which is the following:
The compact panel will have to lose some features but I made an effort to keep all essential functions, minus the following:
1) Optional EEPROM. Since the display is small, I don’t expect anyone to read long articles on them so storing long messages on board the panel seems non-essential.
2) Optional 5V voltage regulator. To keep it compact, I dropped the voltage regulator, power barrel, decoupling capacitors, and power switch. This will make the panel compact enough.
3) Pin out for the additional 4 digital output from the second shift register, pin out for SPI bus and I2C bus are also not available, which I don’t think diminish any of its value.
I wish to find a smaller 20X4 displays since 16X2 is a bit small to fully appreciate the phi_prompt functions. On the bright side, it is really compact and still has all essential functions and fits everywhere a regular display fits so more project can incorporate this panel without having to redesign the project box. Also, the cost of the smaller display is also less so I will be offering this panel kit at $29.95. Only a few bucks more than the sparkfun serial LCD. They don’t have keypad, buzzer, LEDs. More importantly they don’t have anything firmware-wise to compare to my panel. If you keep Serial.print() stuff away, the sparkfun serial LCD will not display any info correctly past the first 16 characters. If you do that on my panel, you get auto line wrap, scroll etc. Plus all the interactive features.
June 25, 2011 Leave a comment
There is a neat way to connect arduino to your breadboard and avoid all those crazy and loose jumper wires: the phi-connect shield.
The phi-connect stackable version can be stacked below shields so you can benefit from both shield functions and a large breadboard and easy to switch projects in and out.
As you can see from the top to bottom is an arduino shield (phi-2 shield), phi-connect shield that passes all arduino connections to the breadboard via an IDE hard drive cable, and the arduino.
Now you know how useful an old IDE hard drive cable can be. But hold on before you star using just any IDE hard drive cable yet, because you need to get the right cable or otherwise puff, short circuits!
Here is why: newer IDE cables (aka 40-connection 80-wire ribbon cables) are made so that many of the connections are all connected together to ground. So if you’re not careful, you will short your circuit or at least ground some signals and make your project malfunction. So what kind of IDE cable should you use? 40-connection 40-wire cable. Make sure you could 40 wires on the ribbon. You can also use old floppy drive cables, which are 34 wires, so less connections.
Here is a comparison of 40-wire (left, often having 28AWG marked on it) and 80-wire (right, often having 30AWG marked on it) IDE cables, make sure use the 40-wire!!!
You can connect to an LCD easily with such a ribbon cable to arduino.
(If you look closely I actually used an 80-wire cable, which made my life much harder. Don’t do it!)
Here is the wiki page on this topic:
http://en.wikipedia.org/wiki/Parallel_ATA
Painful details if you want to know, why I don’t recommend 80-wire IDE cables:
OK, that “identical” look between the two versions (40-wire and 80-wire) could fool you and certainly did me about a year ago but after some serious problems with my very first try on an LCD I pulled out my multimeter and measured. Those pins “2,19,22,24,26,30, and 40” to are indeed all tied together, plus two pins are N/C too! The newer 80 wire ribbon cables are older 40 ribbon cables are 30AWG (thin wires) and 28AWG (thicker wires). A closer look will be enough to tell, although only if someone has one type at hand then they’ll have to read (hint: keyword 30AWG on cable) or count (hint:superfine permanent marker comes handy).
The media are no different, plain cables. But the connectors are very different if you pry them open. The oldie 40-wire version has two rows of sharp cutters ( I don’t have a name for the part that cuts through insulation and makes metal-to-metal contact). Top row is odd pins and bottom row is even pins (or the other way around if you hold protrusions on the connector downward. All those are individually connected to their female pins. If you open a connector on a newer 80-wire version, there are three rows of sharp cutters. Besides the top row (odd pins) and bottom row (even pins), the middle row is all interconnected one piece of metal. It cuts every other wires, plus those positions corresponding to pins 2,19,22,24,26,30, and 40 on the female connector. The “41-80” wires are meant to be every other wire on the ribbon cable and are also grounded for higher speed communication. They don’t make to the connector’s other side, only the first 40 do (minus 1 behind a mechanical key).
When I was designing my phi-connect shield for prototyping breadboard, I studied these two types of cables over and over with online materials and checked every ground pin with my multimeter and I decided to go with 40-wire cables for simplicity. Thicker wires and simple connection scheme against benefit of every other wire being grounded but complex connection scheme I made my choice. I think I did my homework.
April 24, 2011 2 Comments
After some long planning, prototyping and production, the phi-connect system is available for sale. This is a big time saver and headache remover for arduino users. Connect and disconnect your arduino from a project and switch to a different project in seconds. Please check out its own blog page for more details.
Picture:
Here is the list of online stores that sell the kits: