What do you do when you see a clock for sale for one pound?
You buy seven, of course.
Then you attach them to a board and there you go, a timezone array clock thing (I'm still not sure what these things are called).
The location labels are CNC routed out of a plastic that I took ages to source that has a white layer on top of a black substrate. It took ages, not to find it, but to find it at a reasonable price. It's really nice when routed, and has an old-school type of look to it. This plastic was used a lot in the sixties and seventies for labelling electronic equipment controls.
The whole thing didn't cost too much more than the bargain £7 for the clocks, either. The board is made from scrap and recycled packing case material, and I bought more of the expensive label material than I needed here, so I will use that on other projects.
Seven batteries is a not insignificant cost, either.
I recently fixed a canon Selphy 740 printer, (see here). As the repair was successful I then needed some more cartridges for it. It doesn't use ink, it uses a dye sublimation process (I think) that takes a multicoloured film and transfers the coloured material to the paper in a sequence of passes. The cartridges are pretty expensive, so I bought some non-original versions as they were a bit cheaper. All was well and I printed some photos with the replica cartridges. Then I tried another cartridge I had bought and it didn't work. I tried the first one again and it was fine. After a few prints I worked out that two of the three cartridges I had bought didn't print reliably. Oh dear.
I contacted the supplier but didn't really want to go through the hassle of returning the cartridges. The Canon cartridges were very reliable so I wondered if the replicas were mechanically slightly different. Could I take the film from the replica and put it into an empty Canon case?
The cartridge case clips together so it is simple to unclip it and get access to the film:
I then swapped the film over and clipped the Canon cartridge together again:
The Canon part had a metal rod holding the film down, the replica had a plastic rod. I don't think this could be the cause of the problem I saw, I think it's more likely that the ratchet mechanism that is used wasn't unlatching.
Does the transplant work? Yes it does:
It takes a while to swap the film, but you get the cost savings and you can print. You do need a few canon cartidges first, though, and I only have two.
OK, it's digital in that it's made of bits. From ebay. It's actually mechanical and uses a movement, case and strap from ebay and a couple of 3D printed movement rings to hold it all in the case. The current setup is this:
I bought really cheap parts, and had a few adventures along the way but I have finally got somewhere. I started by buying a Chinese movement that might be based on the ETA 2824, or not. I also bout a case which is better than I thought it would be, and a bracelet. I also bought some hands to fit on the movement. For some reason that I can't remember I part dismantled the movement, I can't remember why. There must have been a reason as I intended to just fit the movement in the case. Anyway, in the process I managed to shear a screw (left and thread, I though they were marked with three slots?) and lose a click spring. I have subsequently managed to make a click spring and replace the sheared off screw with a new one, and the movement works again.
While I was wondering if I'd ever fix the movement I bought another one (even cheaper than the first), as a replacement for the broken one. It was about £11 on ebay and I found out that that isn't really enough money to make a decent movement. The move expensive movement was £22 and that does seem to be enough, just). The cannon pinion never worked properly and the movement kept awful time, simply because the minute and hour hands weren't moving. I eventually gave up on this movement, I may have another go at getting it to work sometime.
At the same time as buying the second movement I bought a correct sized dial, which was very nice. Unfortunately the dial doesn't fit the dial mount on the first movement so I can't use it. I may get another one if I feel like it.
The dial is held in the case with a 3D printed ring, you can see it in the photo above. The movement is also held in place with a 3D printed ring. The case has a clear back, which I didn't deliberately look for, but turned out to be useful when I was sizing and adjusting 3D printed parts:
The movement is automatic, so should and does appear to wind itself.
So, this is an alternative to the digital watches I've been trying to make, and stalled on for the time being, it tells the time, doesn't need batteries and shows the date. That covers most of what I want it to do.
Wednesday, 26 February 2020
Bus Sniffing Replacement Display for Fx702p
I've had bad experiences with heat seal connectors in the past (Casio PB220) and wasn't very happy to find that a broken Casio fx-702p had a heat seal connection from its main PCB to the LCD. The display wasn't working and when I had a look at the connector it had broken tracks. After buying some conductive paint (water based carbon), I had a go at repairing the tracks. This was going well until I pulled the LCD end of the connector ribbon at one side and the connections to the LCD just ripped off. The ease with which this happened might have been a clue as to why the fixes I was doing with paint didn't seem to be affecting the bad display at all. It looks like the LCD connections were dodgy as well. Fixing the LCD end of the connections is not something I think I will have much success at, so I ripped the entire connector off.
This made repairing the device out of the question at the moment as I have no way to connect the LCD to the PCB. After a bit of thought I wondered about attaching a totally different display to the LCD connections and get display output that way. This is theoretically possible, but as the LCD signals are multi-level (essentially analogue) and there are a lot of them (dozens) it would be difficult to capture the data needed to rebuild the display. The decoding of the signals isn't trivial either.
So I had a bit of a think and decided that an easier way to get a display would be to attach a sniffer to the bus that the processor uses to talk to the display controllers. Then I could capture the data going to the display controllers and put that on an external display. The fx702p would not have it's original display but at least I'd be able to use it. Then I thought about what else was on the bus and it got even better. The RAM chips that give the 702p its memory are also on the bus, so I could snoop reads and writes to the RAM and have an idea about what the programs stored in the RAM looked like. And any other data in there. This was looking feasible and interesting.
After some wiring
I had a logic analyser attached to the bus and I managed to capture bus traffic:
This actually shows the message that the 702p displays at power on. The bus is four bit, though, so you only get nibbles displayed, and the 702p doesn't use ASCII for it's characters. The values starting 1 5 in the photo are the sequence:
1 5 4 4 0 4 3 4 8 5 F 0 F 4
If you turn these into bytes (reversing each pair of nibbles) you get:
51 44 40 43 58 0F 4F
If you check out a 702p character set map (such as this one http://www.pisi.com.pl/piotr433/fx702cod.png) you will see that these character decode like this:
51 R
44 E
40 A
43 D
58 Y
0F (space)
4F P
This is obviously the start of the 'READY P0' message that is displayed at power on.
Interestingly, this appears to be data sent to the display controller. When the CE lines for the RAM chips are examined, there appears to be no access to the RAM chips at all at start up. It looks like initialisation of the memory is done within the internal memory of the processor.
The next step was to use a logic analyser to decode as much of the display data as I could and then display it on the LCD. The final sketch uses interrupts to handle the bus accesses to the two display controllers and the main loop of the code to display the data.
My logic analyser has a slow 9600 baud connection for dumping traces, so using it to capture bus traces was time consuming when I was transferring the data from the analyser to a PC. Because of this I created a build option for the sketch that captured traces very similar to my logic analyser trcaes in the ISR. These traces are then decoded by the main loop and the data is displayed from them. This leads to a fairly large (2 or 3 seconds) delay before data from the ISR is displaye don the LCD, and also sometimes causes a trace buffer overflow and loss of cycles. It's a lot faster when looking at bus cycles, though, as the serial port runs at 2Mbps. In normal ISR mode I also dump display data over the serial port so whatever is displayed on the 702p is available as a serial data stream.
There's a video showing it working and some description here:
The connections inside the fx702p require some fiddly soldering, but several signals can be taken from test pads, which is easier than soldering to an IC pin (which some signals have to come from).
I connected the signals to the blue pill using a milled PCB which makes the wiring much simpler than point to point. The physical layout of the board and components was for ease of debug and there are logic analyser connectors which aren't necessary any more. The whole thing could probably be designed to be much more compact.
The fx702p is normally powered by two 2032 button cells, which poses a problem as that can give a maximum of 6V when fully charged. The blue pill is a 3V3 device with 5V tolerant inputs. I therefore power the fx702p from the 5V supply of the blue pill and make sure that all signals from the calculator are going to 5V tolerant pins. This keeps the signals from the fx702p within safe levels. The calculator seems to run it's circuitry at the battery supply voltage, there's no regulator.
The latest incarnation of the display uses a milled PCB to simplify the signal connection from the calculator to the processor.
The arrangement could be shrunk down, this PCB was a breakout board and has connectors for logic analyser signals, and was definitely not designed to be compact. I don't think the new electronics would fit into the case of the fx702p very easily, and I haven't seen a display that would fit in the space left by the old one. A better layout could be done though, and I may do that now I have the code and hardware essentially working.
Some sample displays. This is the power on display:
The 8 BB is part of a debug display of the annunciator data.
This is the MODE 1 display:
And this is a calculation ready to be evaluated:
There's some extra annunciators on that last display
When i got it the flanges that mount the lens to the camera had broken off. I suspected this was due to the lens and camera being dropped. Well, I can now confirm that if you drop this camera and lens combination the flanges do indeed break off. Because I have dropped it and they broke off from my 3d printed fix. Not only that, but I also broke the battery door catch, which is a small plastic part. The door is spring loaded and becomes very vulnerable to being snapped off if the catch doesn't work. So, two things to fix now.
The lens mount was a pretty simple fix, I printed another lens mount and did all the manual fiddling, and it worked as well as the first one. Excellent.
The battery clip was a bit harder. It doesn't have a flat surface to use as a bottom surface, and is quite small.
I decided to print the part at 100% infill and use support material. I was expecting to have to manually fit the part anyway, so removing support material is just part of that. I had green filament in the printer, so I used that. These are some prototype parts, and the final part together with an unbroken clip that I removed from another GF1 I have:
The final part I am now using is the one next to the real part. I had to thin down the body of the clip so it fitted in the space it had available for sliding. There is a spring clip that provides a latching action, I hand finished that area with a soldering iron as the printer couldn't manage a good version of that shape. It's the recess with the bar at the bottom of these parts. The part on the right has the raw 3D printed version and it's not any use at all.
Here's the clip in the retracted position:
And in the extended position:
The clip is a bit obvious in green, but it's a signal that it may feel different when using it.
It looks like my tumble dryer has an alarm built in to it that wakes me up about once a year. Last year it was a clacking clanking scraping sound (see here).
This year it's a thump thump-thump sound. (Sort of D in Morse code). OK, it's 1:30am so I don't get up, but try to sleep through it. After a couple of hours the dryer finishes its program and I get some sleep. Five o'clock comes round and I get up and investigate.
I've forgotten how to get the top off properly (just undo the side screws and the top comes off to the front. Don't undo the rear screws like I did. Again). To get the sides off I need to take the front panel off and to do that I need to take the bottom vent off. I forgot that it slides on these clips:
I finally have the top and two sides off and can now look for the D-thump. Turning the drum manually I can just feel a bump now and again. The rear bearings look fine, so I have a look at the rollers. They are fine too. Then I notice the drum has some black marks where something has stuck to the track the rollers run in.
I find that there's a big blob and several smaller blobs, which probably accounts for the D pattern of thumping. I scrape the blobs off with a wooden stick and re-assemble the dryer.
A quick test and the D-thump is gone. I have no idea what the black blobs were. At first I thought it might be material from the rollers, but they look fine, with no obvious missing material. Maybe something fell onto a roller and ended up smeared around the drum? I have no idea, but the dryer seems well again, which is good.
Saturday, 11 January 2020
More Magic Metallised Paper Experiments
I've been trying to make paper that works in the Casio FP-10 printer. See the previous post for attempts one to six:
Anyway, I was watching an episode of Wheeler Dealers and Edd mentioned that you use a conductive spray primer before you spot weld, sometimes. That was interesting as I had been looking for conductive spray paint. A quick google and it appeared that yes, this primer was indeed conductive due to either zinc or copper in the spray. Not only that but it as available at a local auto supply shop.
One trip to the shop later and I had a can of pretty expensive zinc spray paint. It was no problem to then spray a sheet of A4 paper:
When dry the surface is similar to the magic paper, and even shines up a bit if you rub the surface:
Unfortunately, even though I did measure some conductivity when drying, the paint seemed to not be conductive when dry. I did a couple of sheets with varying numbers of layers and ran some test strips through the printer:
As you can see, it's a bit messy and clogged the print head as the final product is quite thick. It also didn't work.
Attempt 6b
I then had an idea about testing the paper. I set up a PSU with 15V on it and attached one wire to the paper then dragged the other wire across the paper. This gave me an idea whether the paper would spark erode or not. The real Casio paper worked fine (as expected), but the only paper from my tests that worked was the 'gilded' aluminium one. Here's some scribbles I made, which are spark eroded. The black you can see is some paint I sprayed under the aluminium, just like the real paper.
Even though this manual test worked, it didn't print in the FP-10.