Computer handwriting recognition is very cool by itself, and it’s something that we’d like to incorporate into a project. So we went digging for hacker solutions, and along the way came up with an interesting bit of history and some great algorithms. We feel like we’ve got a good start on that front, but we’re stuck on the hardware tablet sensor itself. So in this Ask Hackaday, we’re going to make the case for why you could be using a tablet-like device for capturing user input or doing handwriting recognition, and then we’re going to ask if you know of any good DIY tablet designs to make it work.
When [Andrei] first got his Raspberry Pi he wanted to make it a standalone computer right away. This means the normal input devices like a mouse and keyboard, but also some type of display. To avoid waiting for shipping he ended up using a cheap vehicle backup camera screen from the local big box store. It worked great, and recently he decided he would try to convert it to run off of 5V power to simplify his setup. While snooping around inside the device he discovered an unused resistive touch overlay and figured out how to get it to work.
What tipped him off is the small four-conductor connector which wasn’t hooked up to anything. He carefully soldered wires onto the flexible circuit traces, then generously covered them in hot glue to help prevent movement from breaking the rigid connection. To get this working you need to measure the resistance between the conductors. Most of the time we figure the RPi GPIO header can be used directly, but for this task an intermediary is necessary. [Andrei] went with a small Arduino clone board. A bit of trial and error was all it took to get the connections right and to iron out the code which translates the values into coordinates.
[Chris] just posted his latest tutorial which shows you how to read position data from a resistive touchscreen. These devices are fairly simple, and since they’re used in a lot of consumer electronics you can pick one up for a few bucks. This looks like it is overstock for an old Palm device.
The interface is simple, there’s just four conductors on the tab at the top of the overlay. But connecting to these is a bit of an issue since you can’t really solder directly to them. [Chris] ended up using scotch-tape to hold wires in place, with a paperclip to keep them presses against the conductors. Those conductors are used in pairs, with a positive and negative lead for the X and Y axis. To take a measurement you use I/O pins to connect voltage and ground, then read the voltage that makes it to the gound side using an ADC. This works because the point that’s being pressed on the screen acts as a variable resistor for the circuit. Data for the two axes must be read in separate operations so that the positive voltages don’t interfere with each other.
The nice thing is that once you’ve got it working with a small screen it is easily scaled up. In fact, the 23″ touchscreen used on this Android hack is just another 4-wire resistive device.
You can see a video demonstration of [Chris’] test rig embedded after the break.
If you’re looking to build a really big Android tablet the trick is not to start from scratch. [Peter] pulled off a 23″ Android Tablet hack using a collection of easily acquired parts, leaving the hard work up to hardware that was designed to do it.
He didn’t really build a tablet, as much as he built a big touch-screen add-on for one. He already had a couple of inexpensive tablets on hand to play around with. One of them has an HDMI out port, which let him easily push the display onto a 23″ monitor. He knew the tablet was a 4-wire resistive touchscreen, but he didn’t know if other touchscreens with the same number of connectors and be directly swapped and still work. To test this, he cracked open a second tablet device and connected its touchscreen to the first one’s hardware. When he was met with success it was time to source a couple of 23″ touchscreen overlays to test with the external monitor. As you can see in the clip after the break, it works like a charm!
[Peter] was inspired to write about his experiences after seeing the 23″ Android tablet video in our recent links post.
[Jane] wrote in to let us know about the touch-based synthesizer she and her classmates just built. They call it the ToneMatrix Touch, as it was inspired by a flash application called ToneMatrix. We’re familiar with that application as it’s been the inspiration for other physical builds as well.
A resistive touch screen in the surface glass of the device provides the ability to interact by tapping the cells you wish to turn on or off. Below the glass is a grid of LEDs which represent sound bits in the looping synthesizer track. Fifteen shift registers drive the LED matrix, with the entire system controlled by an ATmega644 microcontroller. Although the control scheme is very straight forward, the jumper wires used to connect the matrix to the shift registers make for a ratsnest of wireporn that has been hidden away inside the case. Check out the demonstration video after the break to see what this looks like and sounds like when in use.
This collection of touch sensor information should be of interest to anyone who liked the simple touch sensor post from Thursday. That was a resistive touch sensor and is covered in detail along with AC hum sensors that trigger based on induced current from power lines around you, and capacitive touch switches like we’ve seen in past hacks. Each different concept is discussed and clearly illustrated like the slide above. [Giorgos Lazaridis] has also put together individual posts that build and demonstrate the circuits. We’ve embedded his resistive sensor demo video after the break and linked to all three example circuits.
We never thought about it before, but having the controls on the bottom of a clock is a bit of an inconvenience. [Alex Whittemore] mutes the LEDs on his clock each night and after a while, decided he should make the mute button into a touch strip on the case. You’ll remember that the Bulbdial clock uses colored LEDs to create the effect of a sun-dial, casting colored shadows for each hand of the clock. It makes sense that this would put off a pretty good amount of light at night. [Alex’s] original thought was to use a capacitive touch sensor but complexity and cost were in his way. What he ended up with is a resistive touch switch based off of two metal strips. He used metal repair tape but suggests copper foil as he was unable to solder to tape. When your finger touches the two strips it completes the circuit for the base of a transistor, which in turn grounds the mute button on the clock. Cheap, simple, and illustrated in the video after the break.