Bongofish

Screen Tablet malarky => Tablet Conversion to USB => Topic started by: Tymnus on June 14, 2011, 12:27:32 AM



Title: Converting Wacom UD-1212-R from Serial to USB
Post by: Tymnus on June 14, 2011, 12:27:32 AM
Hi folks. I am purchasing a "vintage" Wacom UD-1212-R from ebay. It will cost me about $10 plus shipping. Under direction of the Great Wizard Bernard, and his "waxbee project" I will be modifying this 12x12 board from a 12v serial version to a 5v USB interface.  

I will also be purchasing a Teensy USB Development Board ($16) to create the interface (http://www.pjrc.com/store/teensy.html (http://www.pjrc.com/store/teensy.html)) and an Axiotron Studio Pen - also from ebay - to replace the original pen. This pen will cost me between $10 - $30 depending on which model I go with.

This Wacom board can work off the USB 5V (power provided from the Teensy board). I can directly connect the (internal) serial signals to the Teensy 2.0. (TX/RX).  No extra electronics and circuitry required.

Estimated end cost for the board and supplies to modify, hopefully well under $100

I will document the experience here as the parts arrive and as I move through the modifications. I will include photos and any guidance and troubleshooting help I receive from Bernard or other folks wiser than myself! ;)






Title: Re: Converting Wacom UD-1212-R from Serial to USB interface
Post by: bernard on June 14, 2011, 03:31:58 AM
::) peanut-butter-and-jam-sandwiches! Pof! USB plug magically sticking out!

Ok, I'll try to summarize electrical interface in this post.  

Warning: This mod will permanently disable the external serial & power connections. Playing with electronics is not without risks. You can break or burn anything including your fingers.  :)

It might look complex/intimidating, it isn't really. There are only 4 wires going to the Teensy and 2 others staying on the controller board. There is just a lot of text and explanation, that's all. :)

Please read it all before doing anything.

There are many ways of connecting the power and serial signals with varying levels of difficulty/cost/risk. This post only talk about the coolest/cheapest/riskier one. It permanently destroys the tablet external power & serial interfaces. (An "extreme" alternative solution wouldn't even need to open the Ultrapad case: it would be costly but also the safest for the tablet).   NOTE: such a solution exists and was done by Sicarus http://forum.bongofish.co.uk/index.php?topic=1993.msg17274#msg17274

Test
Like I said, this will break functionality. So if it does not work, you cannot "go back" to what it was before. It is thus important to know that stuff works (as much as possible) at every step.  For example, if you have the board in your hands try it to see that it works before.  If you do not have the pen, wait to get the pen before proceeding for the mod. You need to know it works before.

By trying I mean to (find a way to) power up the board and touch the tablet with the pen (both with the tip and eraser) and try the sideswitches. The "Led" should blink accordingly. If you see this, you are in pretty good shape.  If you do not have the power adapter to try this, then you have no choice but to skip this and try to hook the ground and power and do that test.

Test the Teensy alone
Simply connect it (with a usb cable) to the computer. You should see the led blink. This is the built-in software that paul programmed just before sending it to you. Of course, disconnect from computer before doing the soldering.

Multimeter
This can be done without a multimeter or continuity tester, but it is always better to have this type of tool around to check on every soldering. You can double-check if you connected to a nearby circuit by error or stuff like that.

Explanation of the mod

Serial Signals

There are 6 serial signals. They are not all needed. They go through a serial driver chip, the MC145406.  Here's the pinout of the chip (with the voltages while powered with no serial cable).

[attachment=1]



Table 1

Combined pinout of the serial cable up to the "TTL side" of the MC145406 (PC-DB9 is on the computer). The teensy understands the TTL signals. So we are essentially replacing all this.

------ Serial Cable ------   ----- MC145406 ---------- --Teensy-----
PC-DB9   Dir.   DB9-Tablet   RS (CP)    Dir TTL (CP)
-------- ---    ----------   ---------- --- ---------- -------------
 2-RXD   <--      2           7 (CP135) <-- 10           D2 (RXD)
 3-TXD   -->      3           6 (CP136) --> 11           D3 (TXD)
 8-CTS   <--      4           5         <-- 12 (CP145)
 7-RTS   -->      5           4         --> 13
 4-DTR   -->      6           2         --> 15
 5-GND            7          *** Ground Plane    
 9v..12v          8          *** Power
 6-DSR   <--      9           3         <-- 14 (CP148)


 Pins not listed are N.C. (Not Connected)



Table 2

Summarizes the modification:

                    MC145406 (removed)
Teensy      Board   Dir TTL side   signal
--------    ------  --- ---------- ------
D2 (RXD)            <-- 10         (RXD)
D3 (TXD)            --> 11         (TXD)
GND         Ground
            N.C.    <-- 12 (CP145) (CTS)
            Ground  --> 13         (RTS)
            Ground  --> 15         (DTR)
            N.C.    <-- 14 (CP148) (DSR)

VCC         IC102 left leg pad (near C106)




Overall view of the mod:

[attachment=8]

Note that in this case, the teensy is positioned for the picture, normally you have to find a secure spot that would fit in the case.  (BTW, I removed the switch because it would become irrelevant & actually confusing and to make space for the teensy board (removed by cutting the 3 legs then pulling it - it was glued to the PCB).

The fun part

#1: GND
The teensy GND (ground) signal needs to be connected to the "Ground plane". (lots of places to solder on the board).  NOTE: the board has a little coating and it might be required to scratch the surface a little to access the metal.  

#2: 5V
This is the IC102 black square component (TA7805F -- the 5V voltage regulator). Either you find a way to remove it or you just cut the left leg (the one near C106). This is where the 5V needs to be injected. Note that for soldering a wire, you could hook yourself anywhere that trace is going, and in particular on the right leg pad of C107 (near the + sign) or in one of the vias (i.e. the holes).

[attachment=5]

Teensy (viewed from the back):
[attachment=2]
[attachment=6]

#3: Test
At this stage it would be important to test your tablet, the next step is more delicate and thus it would be nice to know that (most of) the board works fine before digging into this.

Essentially with the GND and VCC plugged in (black & red wires in the pictures) plug the teensy USB cable. (start with the small connector on the teensy, then finish with the connector on the computer).  The first time you do this is called a "smoke test". If you see your computer powering down instantly, pull the plug right-away, something is badly connected.

#4: Remove the MC145406
Best is to use a Dremel to cut all the legs then carefully unsolder all dangling legs on the board without lifting/breaking the "pads" (the pad is the metalic thing on the board where the chip legs are soldered to). If a pad (that is required in the modification) is broken just follow the trace and find another place on the board to solder your wire on.  

[attachment=3]
[attachment=4]

The most important serial signals are RXD/TXD (pin 10 and pin 11). The others are either ignored (CTS/DSR) or must be grounded (DTR/RTS).

Detail soldering:
[attachment=7]

#5: Ground DTR and RTS
These are pin 13 and 15 -- the two bottom yellow wires in the pictures. Now that the MC145406 chip is gone, these are now "floating" (electrically), and should be grounded. This is also important because the UD board might decide to not send any serial data if the floating TTL value decides to go high. Follow the table 2 and the pictures to decide how you are going to do this.

When I say "grounded" I mean connect to the ground (or negative side often seen depicted with the color "black"). There is a lot of "ground" connections on the board -- we call this a ground "plane". It actually covers all the "unused" areas of the PCB.

There are a few holes (called vias) that are big enough to fit a bigger wire gauge. I picked two of them below.

Make sure the other pins (like 16, 14 and 12) are not touching the wires. This is probably one of the most delicate soldering part of this mod.

#5: RXD and TXD
These are pin 10 and 11 respectively. Use a longer wire for those as they must go to the Teensy. Check table 2 to know which goes where on the Teensy.

Notice that the MC145406 pads must not be stressed (or they will "lift") so the two wires are held securely by going through a hole at the top of the board (see pictures). You can do it anyway you like, but try to make sure there is (and will be) no stress on the MC145406 pads, these are fragile.  EDIT: you cannot use the same holes to secure the wires if you want to re-use the same case since a piece of the actually goes through those holes to "hold" the board.  If you remove the power switch there are 2 round holes hidden under it that could serve this purpose as well.

NOTE: if you have 28 gauge wires (smaller than the ones I used for this mod), you can fit the wire in tiny vias (holes) that connects to the pad and solder there. It would typically be more solid as a soldering point (using a smaller wire by itself is more fragile thought if you move it back and forth -- that is a tradeoff).

Soldering tip:  position the wire as shown and make sure it is held down in position on top of the pad. Then simply apply the soldering to the wire and it will "fall" to the pad and everything will solder. It does not take much to hold the wire. Make sure there is as little stress as possible on the wire and soldering joint. Plan the wire final shape and position beforehand.

#6: Test
Do the same type of test just to be sure nothing major is broken. At this point, it is not expected that the mouse is moving (we need to do the firmware part for this), just that the led blinks when you operate the pen.

Next step is the software (WaxBee) -- see post below.


Title: Re: Converting Wacom UD-1212-R from Serial to USB interface
Post by: Drewid on June 15, 2011, 01:54:45 PM
Well - I have a spare UD1212 tablet, and I could really do with it running in Windows 7  so I'm going to have to give this a try. ::)


Title: Re: Converting Wacom UD-1212-R from Serial to USB interface
Post by: bernard on June 18, 2011, 05:31:52 PM
Using waxbee config utility, pick (File->New from template), select the "UD-1212-R to Intuos2 XD-1218-U" template, then select Firmware -> Program device. Connect the teensy usb cable (if not already connected) and press the little button on the Teensy.  Once finished, unplug/replug the USB connection.  You should now have an Intuos2!

[attachment=1]

Get the distribution package here: http://code.google.com/p/waxbee/ (http://code.google.com/p/waxbee/)  

Note: if your system is not Windows 64 bit, the "program device" will not work (yet). The programming is done differently (please read the readme.html file in the distribution package).


Title: Re: Converting Wacom UD-1212-R from Serial to USB interface
Post by: Tymnus on June 20, 2011, 06:48:21 PM
Quick update: As of today, all of the necessary parts for this project have arrived! Now... to get my tools together and begin. I will do my best to photograph the process.

Thank you Bernard for the excellent guidance. I feel pretty confident to move forward.

Cheers!
Tymnus


Title: Re: Converting Wacom UD-1212-R from Serial to USB interface
Post by: Tymnus on June 21, 2011, 10:01:57 AM
Ok... jumping in tonight. It's finally cool enough on this hot summer's night to fire up the soldering system. I am fairly intimidated about "Dremeling" the legs off of the 'MC145406' so I think I will try to de-solder and remove without cutting.

(***After a long time***)


That took forever!!! I should have used the Dremel. However, all is well that ends well. I maged to desolder without damaging anything. (I think.)

Not to start attaching the wires.  


Title: Re: Converting Wacom UD-1212-R from Serial to USB interface
Post by: bernard on June 21, 2011, 01:43:32 PM
Cool! :)

Dremel:  Yeah, it is a bit scary. You have to carefully cut the legs "close" to the chip "box" to stay away from the PCB as much as possible. Unsoldering everything is very difficult because the chip won't lift until all is desoldered -- at least on one side.  Some might get away with a fine cutter or a sharp exacto knife.

I will add a few guidelines to the post for "testing as you go". It is always better to check stuff at each step (as much as possible) to not be stuck at the end wondering why the "whole" thing is not working. Since we are "destroying" stuff a little, you cannot "go back".


Title: Re: Converting Wacom UD-1212-R from Serial to USB interface
Post by: bernard on June 25, 2011, 05:34:11 AM
Here's a picture of how the UD-1212-R case could be modified to fit the Teensy:

[attachment=1]

1- I removed both the DB9 and power switch
2- there is no holes on the teensy for screws, so tie-wrap we use. It is very sturdy. I drilled holes for the tie wrap.
3- The led on the Teensy is visible (if needed in case of troubleshooting)
4- The reset button is accessible (to re-flash a new version)
5- I used a big, transparent heat shrink tube (2:1 shrink ratio, diameter 18). Did a hole for the button (else the shrink tube kept it pressed down!). Cutting this hole is difficult to do cleanly. **note on this below
6- The USB cable can be changed without opening the case
7- This is not perfect: I should have done a little groove at the bottom of the case for the tie wrap to be a bit more flush. I mean, without the special UD-1212-R angle "shims" installed, the tie-wrap creates a very subtle bump and the tablet does not sit super-straight on the desk.



**Just got an idea: I should have put a little ~1mm shim on the button while heating the heat shrink tube. In such a way to be able to pull it out afterwards.  That would essentially "reserve" the space for the button to stay "unpressed". Then when one needs to press it, you just press through the plastic.  No need to cut a little hole like I had to do.



Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: Tymnus on June 29, 2011, 04:49:23 AM
My Fellow Bongoloids,

We have lift off!!! I followed all instructions posted here by Bernard... as best as I could with my rusty soldering skills. I did make a couple of boo-boos while soldering - but managed to make all of the necessary connections anyway.

Tested with my meter to be sure. After installing the latest Wacom Drivers, my Wacom UD-1212-R is powered though the USB and is recognized as an Intuos2!!!

Awesome!!! If anyone else wants to try this... I highly recommend!

~Tymnus


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: Tymnus on June 30, 2011, 07:05:41 PM
Update: A couple of issues.

1. There is an intermittent issue with the tablet becoming inactive at random intervals. I will be mid-stroke, and the pen will cease to move the cursor. I can regain control by clicking anywhere in the top row of numbered menu buttons on the UD-1212-R. Once touching anywhere in that region, control is regained over movement of the cursor.

It also seems that when this occurs, if I wait about 10 seconds control will return. This problem occurs in photoshop, corel, and within any regular windows 7 navigation. Seems indiscriminate of software.

2. When using Artrage, the pen will not draw to the canvas. I will begin a stroke but it will remain fixed in a single position where I first touched the canvas, leaving an ever darkening spot until I lift the pen again.

I have checked my solder points and they all seem ok. I have also kept an eye on the device manager to see if the device disapears or something like that when this occurs. I see no changes there.

Interestingly, when I run the diagnose feature from the Wacom Tablet Properties interface I notice that I get the message "Proximity: Out" whenever the problem occurs. Strangely  - the tablet seems to see the pen as the light on the Wacom still changes color in response to the pen - even though there is no movement.

Thanks for tuning in... I will try to keep you posted. That's all for now. 



Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: bernard on July 01, 2011, 03:38:26 AM
This might just be a bug in my software. We can certainly work that out. We can turn on the debugging features and I can work with you to try to pinpoint the issue.  I will try again myself here with my UD-1212-R to see if I have a similar problem. I am sure we can fix this relatively easily. :)

EDIT: mine appears to be rock-solid. (?)  I tried drawing in Art Rage for 15 minutes and it worked without a single glitch.

EDIT2: we found the issue. It was that the serial tablet reports only when the pen moves or something changed in the button/pressure status (which I is normal).  On the other hand, the wacom USB tablets continues to send packets even if nothing changed. The Wacom driver seems to not like it when no more packets are coming in -- it is interpreted as a "hum, no packets in the last 60 ms, it must be dead! So let's end the stroke right now".  So in version 0.8 I implemented an "idle time" protection that simply "repeats" the last packet that was sent when no activity occured "within a stroke". There is a new option to set the number of ms to wait before repeating the previous packet. That solved it wonderfully for Tymnus!


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: Tymnus on July 09, 2011, 10:02:50 AM
Well rub it in!  ;)

Mine is still suffering with its random freezing issue. Thanks for the updates to the software, and working with me on the debugging! Sorry I have been absent a bit... I have been a bit distracted by life, work, and of course by the fact that I received a package from China with my controller kit from NYCtouch!!! I will post some photos of my little monster soon!!!

Anyhow... as for ArtRage, I realized that everything seems to work fine except for the airbrush tool. It just freezes in one location drawing an ever darkening dot as if I were staying in one location. But I am actually moving all around attempting to make lines. The other tools seems to work well.

More soon!
Tymn


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: luxeomni on August 11, 2011, 03:09:47 AM
i succesffully turn a ud1212r into a intuos 2 thanks to Bernard and waxbee !

Just did couple of tests in photoshop, no problem. I'll try to see if i get problems in long sessions.

The only issue is that the pen seems a little weak, i can't pull my hand very high without losing signal very quickly, i ll soon receive axiotron pens, so i ll test with them too.


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: bernard on August 21, 2011, 03:39:32 AM
Hey! Cool to know this is getting used more and more!  Was there any glitches you went through?  Or stuff you that was not clear enough the first time around?


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: xuz on August 23, 2011, 06:33:46 AM
Hi bernard and folks,

I have XD-0608-R intuos 2 serial version that I want to convert to USB.
I've used it since windows 98 to ME to XP to Vista to 7 x64, through about 5 computers. Installation since Vista has been on frustrating.
I've had it with these #!#$!%!#$ on this !$!#%!$! plane!!!



--- I do not want to hijack this thread. If I am, kindly let me know, and I'll start a new XD-0608-R thread ---

So I opened it up. Couple things to note.

1) The 5V regulator is the same, so that part is easy.

2) The communication chip on  UD-1212-R is MC145406
On XD-0608-R it is ADM202JRN.

I am not too sure but it seem likes it's taking internal TTLs and pumping it up to RS232 level.
Would you help me with wiring that'd make ADM202JRN be compatible with teensy?
Also, would the waxbee program work for XD-0608-R or may be it won't?

Another question is, I don't have teensy, but I do have a generic USB to UART Bridge.
(Silab CP2102) I usually use this to interface with my standard microcontroller (ATMEGA from atmel).
The interface is pretty similar to teensy. (6pins, RXD, TXD, GND, Reset, 5V, 3.3V)
Would this USB/UART bridge work just as well?

This was answered in http://forum.bongofish.co.uk/index.php?topic=1930.0;prev_next=next#new
Just sent in the order for teensy.

Thanks for any hint in advance. I have to say, I'm pretty encouraged by other folks' success with UD-1212.





Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: bernard on August 23, 2011, 01:30:01 PM
There is already a XD-0608-R thread with all the internal details and hook points. http://forum.bongofish.co.uk/index.php?topic=1928.0

The question about using an "UART-USB bridge" was also answered in more detail here: http://forum.bongofish.co.uk/index.php?topic=1927.msg15014#msg15014


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: luxeomni on August 27, 2011, 02:25:13 AM
Hi Bernard, ( c 'est jeremie le magicien ;)).

I've got a problem using the axiotron pen on the converted UD1212R. Everything is working fine with the original U-1212r Stylus, but when using the axiotron stylus, i ve got some random clicks and double clicks, drag etc. The strange thing is that on the " status" LED from the tablet everyhing is normal, only blinking green when pressed, but on my desktop on windows ive got clicks and double clicks, but it moves fine, and when i actually press it click normally.


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: bernard on August 27, 2011, 02:52:50 AM
Maybe try to tune the pen -- the tune potentiometer is typically under the side switch -- I am not sure how to dismantle that pen -- I think someone did that pen precisely -- would have to search that.   The side switch typically you can just "pull" out.  A small flat screwdriver will be needed to turn the pot. Rotate it a tiny little bit and try to see if the pen is better or worse. Remember the original position because if that pot has no effect, it might actually have an effect when something is activated and you are not activating it (pressure, a button, etc.)  So put it back as close as possible to where it was.

Do you have the same problem with the eraser as well?   The eraser is a completely separate pen -- when you have an eraser on your pen, you actually have two, completely separate, pens (well, with the UD-* and tabletPC technology at least).

http://forum.bongofish.co.uk/index.php?topic=1721.msg12959#msg12959   This is not the Axiotron pen, but it helps to see something similar.


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: luxeomni on August 27, 2011, 03:23:28 AM
yep, i tweaked the knobs and it worked, i have to do it to the eraser side too because i got the problem on the two sides ;).


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: bernard on August 27, 2011, 03:33:29 AM
if both had the same problem maybe that means they were tweaked to a frequency that is not exactly yours. That means other people might get into the same issue.


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: muda on September 13, 2011, 04:04:47 PM
(http://farm7.static.flickr.com/6066/6144245610_35c2d70163_z.jpg) (http://www.flickr.com/photos/sauliusle/6144245610/)



I am getting this screen whenever I try upload new fw to teensy. What I do wrong ?  All is soldered and board green light reacts to pen input. (http://www.flickr.com/photos/sauliusle/6144245610/)


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: bernard on September 13, 2011, 04:13:00 PM
This is an internal DLL loading issue.  This used to happen with older version and if you were not running Java 64 bit version. I am supposed to have fixed this.  You have the latest WaxBee version? Are you running Windows 64 bits?  if so, are you running Java 64 bits?



Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: muda on September 17, 2011, 09:33:11 PM
Used newest version and all worked nicely. Enjoying new born Wacom now.

Big thanks Bernard.  Great job !


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: bernard on September 18, 2011, 01:11:06 AM
Very cool! Yet another happy customer. 8)


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: red_five on November 21, 2011, 10:39:57 PM
I just ordered my Teensy, and am eagerly awaiting it's arrival. I have a UD-1212-R Digitizer II, and I've already done most of the prep work on the tablet driver board, except that I haven't yet removed the 5v regulator near where the instructions say to solder the +5v supply from the Teensy. I have also ordered a USB mini-B to standard B panel-mount jack; my thought is to attach the Teensy directly to the driver board where the serial port and power switch used to be (with appropriate insulation), and extend the cable to the back of the tablet using the panel mount. I also plan to hook up an external reset button to mount near the new USB jack, then cover up the original holes for the serial port and switch.

As I was looking around the driver board, I noticed that mine has a 2-pin connector on the right side of the board, about 1/3 of the way up from the power switch. One pin is grounded, and the other pin seems to hook into the 5v rail of the driver board, except that it goes through the voltage regulator. Once I remove the regulator, I might see if I can jump pads 1&3 and try to inject 5v through that connector. It might be a bit easier to deal with.


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: bernard on November 22, 2011, 02:40:52 AM
welcome red_five,

That "power" connector seems indeed promising. I found that it was more trouble dealing with it than soldering the power directly. There are many spots on the board to inject the 5V power and thus it is a no brainer.

Post some photos! :)

Do you know what is the ROM version of your UD-1212-R?  (normally it is written on a white sticker on the EEPROM chip -- UD1212 xxxx)



Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: red_five on November 22, 2011, 06:01:35 AM
The ROM version looks like 14200. I've already removed the serial port, the power switch, and the MC145406, but still need to pull the 5v regulator. I've confirmed that the tablet still powers up using USB power only, and seems to detect the pen as well. I tore up one of the necessary pads as I was desoldering the MC145406, but I think I've found vias and alternate solder pads, so hopefully I can still make it work.

Bernard, I saw that you've started work on making the button strip work on the 1218, and I would be interested in helping continue that, and port it to the 1212 too. Once I've gotten my Teensy and have finished the wiring, of course.

Oh, and here's a pic of the current state.
[attachment=1]


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: bernard on November 22, 2011, 06:31:46 AM
btw, are you doing a Simtiq or just converting a tablet? 

button strip:  Yeah, I started doing something about Buttons that is not done (and it not going very fast I must admit). Question here what do you like to do exactly with the button strip?   Do you want to piggy back onto the ultrapad "built-in buttons" or define arbitrary regions (within the active area) to "create" virtual buttons?  I assume you would want to map them to the Intuos2 buttons so it is configurable in the Wacom driver.  The UD-1212 and UD-1218 models have a "built-in" button strip. The intuos2 tablets do not have that, they just have a "sticker" on top of a section of the active area: It is "mapped" to virtual buttons within the Wacom driver. The more recent models, I believe, completely dropped the button strip in favor of hard buttons/keys. So you can use fingers to press on them in parallel to using the pen. (no need to move the pen all the way up to access those menu strip).

So make sure you understand really what you want in terms of menu strip/side commands.

What OS are you running btw?

This is open source software and I welcome anyone to contribute. I can certainly give out hints on what we could do to achieve your goal.



Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: red_five on November 22, 2011, 06:57:19 AM
I'm just converting a tablet to USB, not trying to build a simtiq. I'm running Ubuntu 10.10. If it's possible, I'd like to see if I could activate the built-in buttons on the UD-1212, though defining arbitrary regions within the active area might be useful for an idea I had related to Ardour, but that's just pie in the sky for right now.

The built-in buttons include some standard application functions (cut, paste, open, save, etc.), abs/rel mode switch, pressure change, and some that look like they can be remapped on the fly (when using the original Windows software, no doubt). At this point, I'd just be happy to have the tablet working and add the buttons later.

BTW, I did just get the 5v regulator removed and a jumper soldered onto it's former connections. Hooking that 2-pin connector to USB power worked very nicely. Pic later; it's time to shut down for the night.

EDIT: Here's a pic with the 5v regulator removed and replaced with a jumper, enabling test powerups using the 2-pin connector and a hacked USB cable.
[attachment=1]


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: bernard on November 22, 2011, 02:33:38 PM
Awesome!  I remember vaguelly there was what looked like a 0 ohm pad to "jump" the regulator entirely.  One way of the other, there are so many ways to connect the USB 5V.

Note: The Waxbee config utility should, in theory, work from Ubuntu, but not the programming part. That is no real issue, you can always use Paul's Teensy Loader utility to do the programming portion. (unless you would donate some time to compile a binary .dll for this community  ;) ).   In anyways, tell me the status of that.


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: red_five on November 26, 2011, 06:52:13 AM
Success! I got my Teensy today, and got everything put together. I configured and loaded waxbee as soon as I opened the package. Paul's Teensy loader did the trick very nicely.

1. I decided to go with a mounted panel jack, rather than zip-tie the Teensy to the back of the shell. My Dremel had the necessary holes created in short order.
[attachment=1]

2. When I removed the MC145406, I was able to see that pin 15 had a trace which contained a test point. So I jumped that test point to the nearest ground via, then jumped together the pads for pins 13 and 15. Sorted!
[attachment=2]

3. Time to wire up pins 10 & 11 to D2 and D3 on the Teensy, respectively. I had mentioned previously that I damaged the pad for pin 10. So I soldered the lead to the correct side of the SMD resistor on that pathway. Pin 11 was intact, so I had no trouble with that.
[attachment=3]

4. Driver board and Teensy complete! Mounted the Teensy in the space for the former serial port with some double-stick tape, which also helps keep the 2 data leads secured. The power test harness I made for use with that 2-pin connector was also mounted to the appropriate locations on the Teensy.
[attachment=4]

I had to remove some plastic from the shell base for the panel mount jack on the outside, and inside for the short pigtail to the Teensy. Then I got everything put back together, hooked it up to my laptop, and proceeded to draw this in the GIMP!
[attachment=5]
(I never said I was an artist...)

I've noticed a few things during my first use:
1. Because waxbee masquerades as an Intuos, I lose access to the top 48px or so of my screen when my pen goes into the hardware buttons area. I'm sure I could adjust the config to resolve this.
2. The eraser acts like another pen, often with a larger brush than I'm using for the drawing end. (It seems this confusion only happens in GIMP. Xournal, a simple drawing/journal program, actually recognizes the eraser just fine.)
3. Even though the waxbee config indicated it was configured for the larger of my dual screens, it actually works across both monitors. This makes all my horizontal strokes come out longer than I actually draw them.

Once I reassembled everything, I noticed that the Teensy's reset button was well within reach of an appropriate tool inside the opening for the former serial port. However, I may eventually close up that hole and the one for the old power switch, and install a nice little momentary reset switch into the extra hole I accidentally made for the panel jack.

All in all, I'm pleased with how easy it was, even considering that I tore up one of the necessary solder pads when I removed the MC145406.


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: bernard on November 26, 2011, 05:52:54 PM
The top 48 pixels of the screen is not accessible?  Works perfectly here.

Aspect Ratio:

Your tablet model has an aspect ratio, the intuos2 model has an aspect ratio and your screen has an aspect ratio. Potentially all different. You have to take all 3 into consideration when doing the mapping. If the Intuos2 aspect is different than your tablet aspect (your tablet is a 12x12 thus it is "square"), then you cannot let Wacom do the aspect ratio computation for you since it has the "wrong" physical values (i.e. cropping the active area to fit your screen aspect ratio).  In the config, you could reduce your tablet active area in height to fit the intuos2 aspect ratio, then in the Wacom driver, you could tell it to keep proportions -- which might crop your active area even more. You can alternatively do your own double-cropping computation and maximize your tablet surface. (don't use "keep proportion" in the wacom driver).



Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: red_five on November 26, 2011, 05:58:55 PM
I noticed in the waxbee raw configuration that it had a top Y setting of 1200. Also, since this is a UD-1212, the button strip on the top is actually counted as buttons, not as active tablet area. So should I be able to edit the top Y value, perhaps increasing it? As far as the Wacom driver is concerned, I just installed it with whatever default values it uses; I haven't changed any of the settings it uses.


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: bernard on November 26, 2011, 06:06:41 PM
UD-1212:  You cannot reuse the button strip as active area. The tablet reports "button clicks" in that area, not pen positions.  

Intuos2:  Contrary to the UD-1212, the button area (1.2 cm from the top, hence the 1200 value) is reported by the tablet with pen position and thus makes it an "active area".  BUT the wacom driver (in Windows / Mac) is interpreting it as buttons, that is why I had to map the active area "below" the button area.  NOTE: on Linux, the driver is not made by Wacom and may act differently.  You can try to simply put 0 instead of 1200 to see if the button strip is ignored in the ubuntu driver.  That might be why you have that 48px gap.

  


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: red_five on November 26, 2011, 06:14:32 PM
Thanks, bernard! Changing the top Y value to 0 did the trick. I have the full vertical space available now on my screen.


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: red_five on November 27, 2011, 05:11:12 AM
I realized something else, about GIMP. It is recognizing the stylus tip and eraser as separate devices, as it should. In reading several GIMP-related forums, I realized that the GIMP defaults the stylus and the eraser to the same tool, the paintbrush. You have to set the eraser to use the erase tool using a keystroke as the eraser is in contact with the tablet, or at least hovering in range.


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: red_five on December 03, 2011, 06:29:30 AM
Bernard, as I understand it, the UD-1212-R sends button presses as actual button IDs or something like that, while the Intuos2 sends coordinates which are mapped within the driver to correspond to a particular button. With that being the case, and the fact that the button area on the UD-1212-R is not classified as an active area like it is on the Intuos2, what are your thoughts on mapping the 1212's buttons to Intuos2 buttons? Do you think it's possible to translate the 1212's button IDs into specific XY locations that would correspond with Intuos2 buttons? In looking at your skeleton for supporting the buttons on the 1218, I wasn't really able to determine how you thought the button emulation/translation might work.


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: bernard on December 03, 2011, 08:32:22 AM
yes, that was the idea:  Essentially to "emulate" a simple pen operation to be recognized as the "same" button by the Wacom driver.  I already advanced on doing that and partially mapped the coordinates but some of the code is missing. Depending on the model of the intuos2, the mapping varies.  The button spacing is not all equal (especially on the right side of the intuos2 board).

The faked pen operation would involve a pen down and then a pen up at the center of the "virtual intuos2 button area". I also need to make sure that if there is already a stroke operation going on, to cancel it (and make sure it can be restarted after). That will break the ongoing stroke.

The idea is to support any type of "button input" -- including arbitrary rectangle areas on the original tablet configurable with WaxBee Config or to monitor specified Teensy pins to enable "real" hardware switches/keys. If you use a separate key, then the "current stroke" will be broken in two parts.

The intuos2 is, I think, the only tablet series that supports two devices at the same time (dual track) -- So in theory -- I could use a "second tool" to do that "button operation" without disturbing the original tool and its ongoing stroke. I have not played with dual track yet.


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: Drewid on December 05, 2011, 02:11:30 PM
So might it be feasible to have a rectangle that acts like a touch strip? Use it for brush size for example.


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: bernard on December 05, 2011, 05:15:34 PM
You mean have a region that could output a "variable" or "analog" value?  Awesome idea!

Well, the intuos2 does not have any "analog" thingy or touch strip -- it only has "buttons".  We would have to emulate a tablet that has something similar (Intuos4?).  (Another approach is to use a second Teensy and create another USB device -- that talks to the first one -- and act as something else that could do that touch strip functionality).



Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: xfactor on January 08, 2012, 07:55:55 AM
So I stumbled across this site, have a working UD-1212-R, read and re-read all the posts to feel comfortable enough to do the operation. Teensy arrives and hey, I even managed to unsolder the MC145406 w/o having to "dremel" it off the board. Everything is wired according to the pictures, solder work checks out fine. Any idea why I end up with "Human Interface Devices" instead of Intuos in both XP and 7 Device Managers? I ran the waxbee.jar, selected the 1212 to Intuos, ran Firmware/Program Device and pressed the button on the Teensy. The LED on the tablet toggles between green and orange but there is absolutely no cursor response. Totally stumped. :-\


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: bernard on January 08, 2012, 09:18:12 AM
Hello xfactor, stumbled and stumped.

First question: You have installed the Wacom drivers for the Intuos2, right?

"HID" (or Human Interface Device) is a type of USB device.  All mouses, joysticks, trackball, touch pads and incidentally Wacom tablets are HID devices.

The (normal) Wacom tablets "emulate" a standard HID Mouse so it "works without drivers". I skipped doing that in WaxBee, so you will have a mouse that never moves. But as soon as you have the Wacom driver installed, this "mouse mode" is no longer used so stuff should work normally.

There are many things we can do to troubleshoot your stuff. Answer the first question, and we will see if more is required to do.


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: xfactor on January 09, 2012, 05:06:02 AM
Thanks for the prompt reply! No, I hadn't installed the Intuos driver, however, I did so on both the XP and 7. I now see the Wacom drivers appear under the HID in the Device Manager. Both results are a mouse/cursor that never moves. At least the problem is consistent on both operating systems and appears to be isolated to the tablet. I'm ready to revisit the wiring. Btw, the on/off switch and serial port were both removed in the initial operation.


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: bernard on January 09, 2012, 06:14:06 AM
Take a global picture showing all the wires and then take a close shot of the different areas (Teensy, 5v regulator, around the MC145406, etc.).

It is good that you removed the power switch and serial connector. They just took space anyways.


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: xfactor on January 09, 2012, 06:30:37 AM
No prob on the photo shoot. I'll see about getting it done soon. Thanks again!


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: LastSix on January 09, 2012, 07:59:54 PM
I had the chance to test my tablet and have a similar problem to xfactor. The status light blinks whenever I use the pen, but the computer sees nothing more that a generic USB device.


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: bernard on January 09, 2012, 08:22:31 PM
Status light:  on the Teensy or the Tablet?

I assume you installed the Wacom Drivers for the Intuos2 and you properly ran WaxBee, pick the appropriate template and programmed your Teensy, right?

Take pictures the same way I asked for xfactor.


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: LastSix on January 09, 2012, 10:17:58 PM
Yes, I have Intuos2 drivers installed.

The light: on the wacom tablet.

As far as I know I programmed the teensy right.
I can try reprogramming it again.

(http://img577.imageshack.us/img577/4900/waxbee.jpg)

I can take more if needed.


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: bernard on January 10, 2012, 02:39:19 AM
Well, the idea was to see the detail of the soldering. I understand that you have hot glue in there, but try to give me a chance of seeing something, I may get lucky and see something wrong (?)

------------

the next thing to do is try the debug mode. Run the HID listen utility ( http://www.pjrc.com/teensy/hid_listen.html ). From waxbee, find and program a "Debug" template for your tablet. Copy me what you see in the hid listen output.


------------

When checking the connections, (using a multimeter in continuity mode) check that there is no cross-overs as well -- to do that with the hot glue, you can try to probe nearby vias or pads that are connected to the same pins or nearby pins.

Tell me which is which between the green wire and the white wire on the Teensy side?

------------

After that next thing to do is to try to check the serial port. Watch out, dense info following. (I should copy that to a sticky topic instead of repeating myself over and over!). So download the virtual serial port driver .hex file from here http://code.google.com/p/waxbee/downloads/list. Reprogram the Teensy with this .hex file (using the Teensy Loader from http://www.pjrc.com/teensy/loader.html). Then follow the instructions here http://www.pjrc.com/teensy/usb_serial.html to properly setup Windows to use it.  With this, you will be able to talk directly to your tablet (if well connected).  Now get yourself RealTerm set the baud rate to 9600, No parity, 8 bits, 1 stop bit, Display as Ascii, Half Duplex. Open the "COM" port number that the virtual serial driver installed.  Make sure you power off and power on the tablet so the baud rate resets to 9600 bauds.   To know the COM port that is currently present in Windows, go to device manager and look open the "Ports (COM & LPT)". You can watch it as you unplug and re-plug the USB cable.  When you set a certain baud rate speed,  the usb driver outputs "9600" or "19200" or "38400"

Some commands to try out:

~#

and

~C

also try to move the pen. If you see nothing, try starting it with the command "ST". If you see binary gibberish appearing when you move the pen, then you can switch to Hex+space mode.


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: LastSix on January 10, 2012, 11:27:31 PM
Yeah, sorry about the glue, the idea was to insulate the solder or something like that.

Wires: white is TXD; green is RXD

HID Listen: played with the pen and everything was a variation of this

Waiting for device:...
Listening:
- Enter prox =Pen

[USB Packet - In Range packet, eraser=0]
 -Exit prox
[USB Packet - Out of Range packet, (all zeros)]
proxOutTrigger()
 -Enter prox =Eraser

[USB Packet - In Range packet, eraser=1]
 -Exit prox

[USB Packet - Out of Range packet, (all zeros)]
proxOutTrigger()
 -Enter prox =Pen

Serial test: RealTerm wont work on 64x or something so I used a program called HyperTerminal

~#UD-1212-R00 V1.5-4
I don't know if it was the program but ~C didn't seem to do anything
Moving and using the pen did result in random gibberish.


I tried the tablet on a 32x XP and had the same result. I also noticed I can't adjust tablet settings unless it is plugged in, so it kinda knows something is there.
Would a faulty transmission wire to the teensy cause such symptoms? I know the tablet is getting power and at least communicates on some level.

I may need to re-check soldering. If needed is there an alternate solder point for the number 11 foot on the mc145406?


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: bernard on January 11, 2012, 01:00:08 AM
You have to press enter after most commands like ~C

binary gibberish -- is "normal" when moving the pen. Well, normal in the sense that it is binary. To see if this is really random or not, turn the display to Hex+space, you should see the data in "hexadecimal form". Copy me the output.

When in debug mode, when you moved the pen, did it appear to " match " the text you saw? (out of prox is when the pen goes out, eraser=1 is when you use the eraser, etc.)

It is a bit strange that you appear to be able to "talk" to the tablet -- yet something does not work. You said you installed the intuos2 drivers.  You picked the UD-1212-R to XD-1212-U (intuos2 12x12) template, right?


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: LastSix on January 12, 2012, 03:06:19 AM
Waxbee seemed pretty straightforward, I programmed it with the right template, inside and outside waxbee.

Alright, got RealTerm working.
~#UD-1212-R00 V1.5-4
~C15240,15240

Hex log for RealTerm corresponds to:
pen hover from upper left to lower right diagonally
pen out
pen in
pen touch in center
pen buttons and then eraser in center

Hex Dump
http://pastebin.com/raw.php?i=uBfMGgr3

Would a damaged connection result in partial communication, or a completely non-functional wacom?
Like if the RXD was okay but the TXD was damaged.


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: bernard on January 12, 2012, 04:15:12 AM
Your serial connection appears to be perfect. Binary data appears good (at a glance). Your tablet model is exactly the same as mine (same EPROM version).  USB connection is fine since you got all that data.

So... it should work!?!  There isn't much to it frankly. Are you sure you have the Intuos2 Wacom drivers in Windows properly installed(?).  If you program your board (in UD-1212-R to Intuos2 12x12 emulation), can you run the Wacom Tablet Properties tool?  if so, can you go into the About... dialog and then into the "Diagnostic" dialog?  Then do you see something in there while moving the pen? You should see the X/Y position in mm and the % pressure if you touch the pen, you should see the button 1/2 when pressing the side switches or using the eraser, etc. Do you see all that activity?  If yes, something is wrong with the driver setup since all the data is getting there.

That Wacom configuration tool is what you see in the control panel I believe but you can run it standalone as well. Typically located here: "C:\Program Files\Tablet\Wacom\Professional_CPL.exe".  If you cannot run it (because it does not find a proper tablet) try usbview.exe (http://www.ftdichip.com/Support/Utilities/usbview.zip)

---

In RealTerm, you could try the following command, and then the "binary dumps" should turn into 9 bytes (instead of 7 bytes) it will also change for 19200 bauds (you need to re-open the port at that speed to continue seeing something tangible). This will better test the serial, but chances are it is all fine. With version 1.3+ you have access to Tilt data and this is what these 2 extra bytes are for (your version is 1.5-4).  Each packet often starts with "E0". You can count the number of bytes in a packet by looking up E0 or a similar value.

~*F203C810,000,00,2540,2540


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: LastSix on January 13, 2012, 03:05:00 AM
So, I tried different versions of the wacom drivers and even tried the tablet on someone's mac laptop, but nothing worked.


I noticed you released waxbee 0-11 about two days ago and downloaded it (was using 0-10c). I loaded up my teensy with a template; and now... I have basic tablet functionality.
I haven't tested much or calibrated anything, but the utility is tracking pen tilt, pressure, ect. The eraser also registers as a pen tip so far (that normal for waxbee+axiotron pen?).

Bernard you have been a great help and I am just as confused as you are.


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: boomandvibe on January 13, 2012, 04:38:28 AM
Hello guys. I have followed the guide and finished connecting Teensy to the Wacom board but when I plug in the USB, none of the two LED lights turn on.

They worked fine before. Teensy showed orange light, and Wacom showed orange-to-green light whenever I used the pen.

I tried plugging Teensy in and ran the waxbee config utility and when it asks me to press the button on the Teensy, I press the button but nothing happens.

Is my Teensy dead? Did I accidentally broke a component with soldering iron? I barely even touched the board, and I managed to put solder very quickly in for like a couple seconds....

What should I do?


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: bernard on January 13, 2012, 05:48:44 AM
@LastSix:  Now that the diagnostic utility is registering the pen, does it finally move the mouse??  For the eraser, I do not remember (I am far from home at the moment and can't try it out). Axiotron pen is the same as all the ultrapens, there should not be a difference.  It is possible that in 0.11 we introduced an issue with the eraser (I am not saying that we did, I am just saying that it is possible that we did since we played in a sensitive area of the code that handles tools and the eraser is one of the tool). For now, let's focus on the basic pen if possible.

------------

@boomandvibe: I am not sure what you followed, but I try to mention to always test stuff along the way, never do all in one shot. (so you know your last step was the wrong one when something does not work). Like, you test your board before altering it. Then solder the Ground and 5V and test to see if the board still reacts normally with the pen (led) and then do the serial connections mod. You can test at each step as well. You can test it with a multi-meter to see if you actually see 5V coming out of the teensy VCC?  If not, unconnect it all, you may have a short in there?

Please, take a global photo showing all the wires at once and then detailled photos of the various soldering areas, clear enough so we see what's there. I might see something you do not see. Also, make sure you test your soldering connectinos using a multimeter -- including testing that it does not connect nearby circuits.

If you run usbview (link (http://www.ftdichip.com/Support/Utilities/usbview.zip)) and you then connect/disconnect the Teesny, do you see anything appearing/disappearing? You should see some sort of device. If you press the teensy reset button, you should see it change as well.


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: boomandvibe on January 13, 2012, 06:14:34 AM
I don't have a camera to take pictures with. My sister lost the battery charger for it twice and I haven't bothered to get another one. I'll get the charger asap.

I used the USBview but I don't see anything changing. The computer's not recognizing at all. The led light on Teensy is dead. It won't turn on. Is it supposed to be like that?


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: bernard on January 13, 2012, 06:17:04 AM
nope.  You have multi-meter?  Test if you get 5V.  (probe DC voltage between VCC and GND)


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: LastSix on January 13, 2012, 06:33:36 AM
Yeah, as mentioned the tablet is working as it should now with 0-11 (unlike 0-10c). I don't know to what extent because I haven't had time to fool around with the settings much. I may yet find a way to fix the eraser. So far I have just tried the pen in photoshop.


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: boomandvibe on January 13, 2012, 07:58:38 AM
nope.  You have multi-meter?  Test if you get 5V.  (probe DC voltage between VCC and GND)

my multimeter says 0.45V. I just read your other post. What exactly am I looking for to find the culprit on the teensy board? Should I desolder all the wires from teensy then try plugging in? How do I find what's wrong on the board using the multimeter?


UPDATE: I removed all the wires and plugged teensy into pc and led shows up. Thank goodness. Ill go step by step.

UPDATE2: I'm the stupidest person in the world. Previously, I've soldered 5v to RST. I mixed up the position of VCC with RST. lights turn on now. Will update more once I finish software. Sorry bernard

UPDATE3: I installed Intuos2 driver and it WORKS!!!!! I'm really crying right now. I spent 13 hours trying to get this work. WAHHHHH.

One thing though, the eraser doesn't seem to be working.  Also, how should I set the tablet area so that when I lay Dell 1503fp 15 inch monitor on top of it, the region will match up? having hard time setting the top to bottom area.


(http://i.imgur.com/ykgqe.gif)


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: xfactor on January 13, 2012, 03:53:59 PM
Hi Again! Don't know how it happened but my tablet now works! I finally got some free time and decided to take the requested pix. Not wanting to give up I decided to reload/rerun the Waxbee.jar/File/New from template - Firmware/Program Device - Press button on Teensy - Unplug/Replug USB. Mind you I've done this many times before but all of a sudden there I am moving the pen across the board and the mouse/cursor is moving! Now, as time allows I'll be testing it in a couple of programs.

Since I took the time to take the pix I might as well upload them.

[attachment=1][attachment=2]

This is great! Can't wait to start experimenting with it!




Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: boomandvibe on January 13, 2012, 09:08:32 PM
I'm having a problem with tablet pen detection. The tablet won't detect the pen when LCD is on top of it. My LCD is Dell 1503fp, the original build.

The LCD is just too thick. The pen's range dies at about 2/3 of the LCD's thickness.

I tried tweaking the potentiometers on the pen but there's not much improvement except the pen is acting worse without LCD. (Random clicks)

There are 3 screws of potentiometers. Do you know which one does what?


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: bernard on January 14, 2012, 02:39:19 AM
The only thing I know about playing with the pots is that you should carefully remember their initial position  (taking a picture might help) and play with one at a time.   I do not know which is which (all pens are more or less different).


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: bernard on January 15, 2012, 05:44:41 AM
@boomanvibe:

Ratio: You have to pick the right template:  a UD-1212-R is better "emulated" to a XD-1212-U ! (not a XD-1218-U).

Eraser not working:  That's a regression in WaxBee 0.11.  Update to WaxBee 0.11a.


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: Dragon on January 15, 2012, 07:02:29 AM
The only thing I know about playing with the pots is that you should carefully remember their initial position  (taking a picture might help) and play with one at a time.   I do not know which is which (all pens are more or less different).

Try using my Jitter Monitor (http://forum.bongofish.co.uk/index.php?topic=2052.msg16344#msg16344) to get a sense of small changes in jitter as you adjust pots.


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: Monode on July 24, 2012, 03:41:53 PM
Hi,

I joined the forum to get information - Me and a mate have 5 Wacom A3 talets between us. I have a UD-1218 and a Quantel Henry version I pulled out of a skip in London's Wardour St. 13 years ago and oddly, my mate help start the company that was throwing them out - though we never met until recently.

Okay, so the question; I have the tablet (9 pin D connector) to power supply (Cat5 connector) cable. Can someone supply us with a pinout from the Cat5 to the PC's serial connector so we can test these tablets.

If you are in London maybe we could meet up?

Thanks


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: bernard on July 24, 2012, 04:01:52 PM
Welcome! I am in Canada.  

This pinout is available in this forum. There are diagrams et al.  The first one to post this info was Tanassi.  Here's one link I found:  http://forum.bongofish.co.uk/index.php?topic=1427.msg9104#msg9104



Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: Adam Schabtach on October 05, 2012, 06:28:56 PM
Another success story: I successfully retrofitted an old UD-1212-R with a Teensy 2.0. I haven't spent much time actually using it yet, but the current Wacom software recognizes the tablet correctly. I'm running Windows 7 x64.

After some thought about mounting the Teensy, I ended up removing the power switch and using a strip of that double-sided foam mounting tape to stick the Teensy to the Wacom PCB, with the USB connector pointing outwards. This isn't the most rugged solution, obviously, and I can't push the button on the Teensy easily, but it will do for now.

Thanks a bunch to all of the folks who have contributed to this project. I'm pleased as punch to have my Wacom working again.

--Adam


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: bernard on October 05, 2012, 07:03:09 PM
yay! Happy that it works for you. 8)  ...oh and Welcome!   Good idea for mounting the teensy.  This board is so small there are no holes for screws, so making it sturdy to allow a mini usb connection is a bit annoying. And the problem of the button is another thing.  Can you take a photo of the result?


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: Adam Schabtach on October 06, 2012, 08:55:27 PM
Thanks for the welcome. Here are a couple of photos:
[attachment=1]
[attachment=2]
I'm glad that you asked for them. When I looked into the case before taking the photo, I noticed that I hadn't seated the main PCB correctly over one of the pegs on the case, and the PCB was slightly bent! Not good in the long run. So, since I had to open the case back up anyway, I took a photo of the modified board.

Probably the easiest way to deal with the button is to drill a hole in the bottom of the case.

--Adam


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: bernard on October 07, 2012, 01:31:13 AM
Nice job!  I like where you got your main ground from.   

Drilling a whole for the button is actually a good idea -- It can be small and you could press it using a non-metalic stick or large enough to fit the finger tip.


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: Markos on October 29, 2012, 08:06:48 PM
Can I also use one of these two ATMEGA32U4 boards?
http://www.ebay.com/itm/Leonardo-Nano-Pro-Mini-ATmega32U4-Support-Arduino-IDE-1-0-1-Bootloader-Ready-/360492013744?pt=Vintage_Electronics_R2&hash=item53eeff98b0
http://www.ebay.com/itm/ATMEGA32U4-Leonardo-Nano-Pro-Mini-Support-Arduino-IDE-1-0-1-With-Bootloader-/130784048638?pt=LH_DefaultDomain_0&hash=item1e735635fe

These are cheaper for me (shipping is 10 dollar for the Teensy). Or are there even cheaper models I can use?
I guess only the ATMEGA32U4 chip is supported by Waxbee? Or also some other chips?


edit
crosspost with the Waxbee topic: http://forum.bongofish.co.uk/index.php?topic=1993.msg17382#msg17382


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: bernard on October 29, 2012, 08:15:45 PM
Only works with the same chip. Just a detail with the non Teensy ones: the bootloader is different so you will need to flash the .hex file as a separate step using whatever tool that can do it in for this board. In theory it should work but I never tried myself. There is a very good chance it works actually.


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: Blastered on November 28, 2012, 03:06:20 PM
Hi there this in my first post,

i have an UD-1218-R (working). it has a serial port so it does not run with win7 x64. i have checked the tutorial titles but there is not a title says "converting UD-1218-R from serial to USB" so my question is should i follow UD-1212-R tutorial (which feels like the right one) or GD-1218-R?

thank you.

Rasim.


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: bernard on November 28, 2012, 06:57:32 PM
Follow UD-1212-R -- the control board, I believe, is the same (just the content of the EEPROM is different -- the 'removable' chip with a white sticker on it -- we do not care about that one). 

GD-1218-R is a completely different beast.

To be sure, compare the pictures of the boards to see if it matches. If it does, tell us and we can update the information in the relevant threads.  Luckily for you, I've added support for UD-1218-R in the latest WaxBee. (waxbee 0.12a)


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: Blastered on November 29, 2012, 08:06:53 AM
I have checked the board in my UD-1218-R and it is same as UD-1212-R as you said before. so after 16 days of wait, my teensy order has arrived, i have done the modifications as shown here, installed the waxbee and wacom drivers. My wacom now works in win7 x64.

But there is an issue; when i move the pen, cursor follows my movements but when i want to stroke a line with the pointy side it does smth like that (----      ------         --------   ---) but eraser side works fine. i think my pen has some issues :/

Anyway thank you all for your hard work and kindness for sharing those usefull informations

[attachment=1]


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: bernard on December 31, 2012, 06:23:39 AM
Probably you need to tune the pen.  There are hidden potentiometers inside.  You have to find a way to dismantle the pen without breaking it (difficult) -- typically the pots are under the side switch which is removable (but ****easily**** breakable) you have to force the right way else it breaks.


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: Amerlander on February 20, 2013, 02:46:13 AM
Is it necessary to remove the MC145406? ( http://forum.bongofish.co.uk/index.php?action=dlattach%3Btopic%3D1930.0%3Battach%3D4436%3Bimage )
Or can I also leave it where it is and just connect the cable to the pins? It would be much easier, especially because I have no tools to remove it softly.


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: bernard on February 20, 2013, 03:37:31 AM
It is certainly not ideal. I wouldn't risk it.

Instead of removing the chip, you can always cut out the pins that are meant to be connected with a wire. To cut, you can try to use a sharp knife (like a utility knife) -- be careful!  Beware that some of the pins are connected on the 5V and you do not want to "bridge" the pins. In other words, make sure the pins do not touch each other as the chip will remain somewhat active (because some pins will stay connected).  Try to pass a piece of paper between the pins if unsure. 

Frankly, it is much better unsoldering it all (or simply cut it all).

Good luck!


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: DOCa Cola on May 18, 2013, 12:10:26 AM
Thanks for the guide!
For inspiration, here are pictures for my converted board.
I have desoldered the d-sub connector and put a usb b connector in its place. This feels more sturdy than using a micro usb cable directly in the Teensy.
[attachment=1]
I first had removed the ON/OFF switch, too. However i noticed it is also being used to align the board in the case. Therefore i have put it back on the board. It now serves as Reset switch for the Teensy, so it isn't that useless. I have cut the traces on the board for the switch of course. Initially i had planned to expose a separate push-switch for the reset function.
The chip on the board is desoldered too, but the pins are (as described) really fragile. I have secured the soldered cables with electric tape. I still had to be very careful when soldering those cables.
I have put the Teensy on top of the two chips in the middle of the board. I simply used double sided tape for that. It is a thicker foam like tape. So there is still space between the chips and the Teensy.
[attachment=2]
Quite happy overall. Tablet works perfectly.


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: Blastered on May 18, 2013, 10:44:56 AM
 :o Respect


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: bernard on May 18, 2013, 10:38:44 PM
great stuff!

I did not know the switch had a mechanical usage(?)  I removed mine completely and I did not see a problem(?)


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: DOCa Cola on May 18, 2013, 10:54:57 PM
Thanks! :) Wouldn't have been possible without waxbee.

Yes, the switch locks the board into position. At least i think it has a more tightened fit than without it. But probably not that important. :)


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: DD on April 21, 2016, 07:57:19 PM
Hi, I don't intent to "resurrect" this old thread. Just want to "report" another success and add some info which I think can be useful for Mac users who don't want to open their tablets in order to modify it.

I have used TabletMagic for many years. It worked well. But currently (PSCS4, AiCS4 + OS X 10.8/10.9/10.10/10.11), I'm not getting pen pressure support from it. Although TabletMagic supports pen pressure in Adobe CC under various versions of OS X, I don't have enough budget to "rent" the CC. So I've to make my tablet compatible with Waxbee to use Wacom's driver.

I read how a member named "Sicarius" made an adapter and like the idea.
http://forum.bongofish.co.uk/index.php?topic=1993.msg17274#msg17274
So I follow his guide with three exceptions:

- My MAX3232 runs dangerously hot at 5v, so the Teensy needs to be converted to use 3.3v.
https://www.pjrc.com/teensy/3volt.html

- I still use the tablet's original power adapter. So I don't need the LM2577 DCDC module.

- My connector is male Mini-DIN 8 (Mac serial port). So I have to find a female one. I've found that all the reasonably priced Mini-DIN 8 connectors on eBay have the position wrong for the holes in the middle row. They are equally spaced which is wrong. It would damage the pin-4 if forced to fit. Fortunately the correct ones are available on aliexpress at cheap price and some seller is selling 1 piece per lot.

With all the parts ready (Teensy 2.0 with MCP1825 regulator, MAX3232, and a female Mini-DIN 8 ), it is very easy.

(the Teensy has two sets of VCC/GND, use the one that is the most convenient for you)
[attachment=1]

[attachment=2]

[attachment=3]


Thank you.

PS. With the reduced voltage, the Teensy should run at 8MHz instead of its full speed of 16MHz. Fortunately Waxbee contains an option to select in the File > Raw Config Editing > CPU core clock.

The counterfeit Teensy boards from China don't work (it could only do the simple blink trick to fool you), you have to buy a genuine one from http://pjrc.com or their official distributors.


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: Aerendraca on April 22, 2016, 06:53:56 AM
Hi DD, excellent info and well worth bringing this old thread back to life! Im sure some will find it invaluable. Thanks.


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: bernard on May 06, 2016, 04:32:33 AM
Cool stuff!  ;D Care to tell us what tablet model you are hooking this on?

Yes, the CPU is rated at 8MHz when running at 3.3v, going 16Mhz is considered "overclocking". It works most of the time but if 8Mhz is good enough then stick with that.


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: DD on May 07, 2016, 01:27:56 PM
The tablet is a UD-1212-R using XD-1212-U emulation. I'm using it with OS X 10.9.5 and Wacom 6.2.0w4 driver.   :D

For the OS X 10.11.x, the 6.2.0w4's PreferencePane is not compatible with it, I can't set-up the tablet there. But its Wacom Tablet Utility is still functional. So there is a workaround. By backing up my settings to a file with the Wacom Tablet Utility while I'm still in OS X 10.9.5. Then boot into OS X 10.11.x, and use the Wacom Tablet Utility's Restore to restore the settings from that file.

By the way, I've not tried Intuos5 emulation with Wacom's newest driver which is compatible with 10.11.x yet. AiCS4 is not very compatible with the new version of OS X. So I'm not very motivated to do that.  :)


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: bernard on May 07, 2016, 06:19:25 PM
UD-1212-R is a nice tablet.

Is there a specific name for the "mac-compatible" mini-DIN connector?  You said most of them are of the "wrong type".   I'm asking in case someone else wants to search for this part. You mentioned aliexpress, can you get a little more specific? How can one distinguish one over the other when search for one?


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: DD on May 08, 2016, 12:53:27 PM
Actually the 8-pin mini-DIN connector Apple use(d) for serial connection is a standard one.

A standard 8-pin mini-DIN connector looks like this. Note the distance between pin 4 and pin 5.
[attachment=1]

But a wrong one looks like this. Note the equally spaced of pins 3-4-5. I wonder, may be, some manufacturers think the "correct" positioning is wrong and assume the pins should be equally spaced.
[attachment=2]

There are several "correct" ones out there but this one was the cheapest among them when I was searching. It is what I bought.
[attachment=3]

I bought it from a seller who was willing to sell 1 piece per lot because I just needed one.
http://www.aliexpress.com/item/Computer-Component-DIN-8-Mini-Pin-Female-S-video-Adapter-Sockets-Connnector/32218724304.html

PS. Have a look on eBay and see there are now more of them that get it right. Make sure before you buy it.  ;)


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: jackjameshoward on October 20, 2016, 01:43:28 PM
If I follow this thread should I be able to convert my UD-1218-R in the same way?


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: bernard on December 20, 2016, 08:45:02 AM
UD-1218-R and UD-1212-R are (almost) the same device. Control board is the same (or at least I didn't see a difference) so the conversion guides will work as is. The difference is in the firmware to handle the bigger board and as a consequence the Waxbee configuration.


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: momo on January 17, 2017, 01:55:48 PM
I just don't know if this thread is still alive, but I recently modified my old UD1212 serial to intuos2 USB emu based on this thread, although I have a trouble to make intuos2 driver recognize the original stylus pen. I am afraid I need an intuos2 compatible pen instead of the original. The tablet and functions are recognized well and status LED responses with the original pen.

OS is windows10, just for your info. At least, there are reports on the web that the intuos2 driver works on windows10, such that I speculate this is not due to driver issue. The driver I am using is 6.2.0w5.

Because of this trouble, I tried intuos5 emulation, but ended up with no recognition of the tablet at all, by the way.

I appreciate your kind help.

Thanks,
momo


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: DD on January 18, 2017, 12:12:01 AM
The driver not seeing the pen can be a sign that the tablet is not communicating with the Teensy/Waxbee.

The driver could be seemingly functioning even with only the Teensy unit connected to the computer without the tablet. And the pen still can interact with the tablet's LED even though it's not connected to anything.

You don't need a newer pen if the one you've is still good. I would try checking the soldering job.


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: momo on January 18, 2017, 11:17:29 AM
Hello DD,
I will check my solder again.
Thank you for your clarification and advice.
momo


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: zacpla on March 13, 2017, 09:49:33 AM
Hello Everybody,

A little bit lost in my deep french countryside, I am trying to convert my old serial UD 1212 r Wacom into an usb one.
Many thanks to Bernard, Red five, DOCa Cola and all the contributors for their explanations, who are very usefull.
I just want to ask two questions:
1. Is it possible to make that transformation using an Arduino pro-micro Teensy 2.0 compatible device as this one:
 http://www.ebay.es/itm/ARDUINO-PRO-MICRO-5V-16M-COMPATIBLE-ATMEGA-32U4-MICROCONTROLLER-BOARD-TEENSY-2-0-
2. May I use my old wacom pen or is it absolutely necessary to buy an Axiotron Studio Pen?

Best regards,

Christophe


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: Ertew on March 13, 2017, 10:35:26 PM
1. Pro micro and clones are incompatible with Teensya 2.0 There are two problems: pinout (different pin names, not big deal) and bootloader (arduino bootloader suck). Rest (uC, crystal, USB section) are almost identical.
I tried to program old WaxBee into pro micro. With success. But I need external programmer to do that. More info here: http://forum.bongofish.co.uk/index.php?topic=2556.0
Newer WaxBee version have smaller size thus You can use arduino bootloader that are inside pro micro. Just programming process are different. WaxBee can program teensy or generate hex file. You need manually call AvrDude with specific parameters. That's probably the most important difference.

2. You need working EMR pen. Original Wacom pen will be excellent as long as it working (moisture and time may destroy everything). Replacement pen may working too but I never played with that.


Title: Re: Converting Wacom UD-1212-R from Serial to USB
Post by: zacpla on March 14, 2017, 07:05:37 AM
Thank you for your prompt answer Ertew, I will try it and I will give a feedback on this ASAP