blog.world3.net

Retro Adapter re-design

09/07/2009 – 23:47

I changed the design again >_<

The main reasons for the change are not wanting to have to drill lots of holes in the cases and wanting to reduce the amount of external components required to support certain controllers. You can now plug Neo Geo pads in directly thanks to having both 9 pin and 15 pin connectors. Having a 15 pin connector makes supporting things like PC Gameport devices easier too.

The AVR has been upgraded to an ATmega168. 16k flash ROM and room for a boot loader, so firmware updates are possible over USB. There are also more I/O pins available.

Finally, the USB port has been done away with in favour of a captured cable. The USB spec says you must have a captured cable for USB 1 devices anyway, and now a USB port won’t easily fit. Since the cable is flexible it also means drilling holes is a lot easier as they don’t have to be exact. The only potential issue I can foresee is strain relief.

Seeed Studio is doing a special offer with 30% off, so I’m getting prototypes made up.

By mojo | Posted in avr, electronics | Comments (0)

Firefox 3.5 tweaks

30/06/2009 – 18:34

Firefox 3.5 is out, and there are some new tweaks I like to have for it.

Disable add-on version checking to enable add-ons which are not compatible with Firefox 3.5:

1. Go to about:config
2. Right click, select New > Boolean and enter extensions.checkCompatibility as the name.
3. Set value to False

This allows you to carry on using extensions while the authors update them. Things may go wrong so be careful using this setting. You can still see which extensions have not been updated in the Add-ons Manager as they have an exclamation mark on their icon.

To disable the tab drop-down and the new tab button, add this to userChrome.css:

.tabs-container .tabs-newtab-button,
.tabs-alltabs-button
{display: none !important;}

By mojo | Posted in software | Comments (1)

iGo 8/Amiga voice commands.csv format

21/06/2009 – 23:53

Having recently acquired a sat nav I have been experimenting with iGo 8 and Amigo. Both have their particular charms, iGo 8 is highly configurable while Amigo has a clearer display but few customisation options.

One thing that bothers me about both of them is the way they announce every turning three times. Once at 800m (“after 800m prepare to turn left”), then again at 300m (“after 300m prepare to turn left”) and again at 100m (“after 100m turn left”). That seems a bit excessive to me – the 800m and 100m announcements would be fine. The solution is to take the Voice_eng-uk-f3.zip and modify it.

Inside the zip file there is commands.csv, which dictates how iGo speaks to you. I couldn’t find much info on the format, just some outdated stuff for iGo 2006 scattered over some forum posts, so I decided to try and figure it out myself. Luckily, it was not too hard!

iGo uses subroutines for building up the speech. For example, near the top you have:

"code","distance","vocal/iconid","text"
"slight_left","call bear BEAR_LEFT-M BEAR_LEFT-E",3,
"slight_right","call bear BEAR_RIGHT-M BEAR_RIGHT-E",4,
"straight","call c_straight CONTINUE_STRAIGHT-M CONTINUE_STRAIGHT-E",0,
"exit_left","call exit EXIT_LEFT-M EXIT_LEFT-E",24,

Then later on you have all the templates for “bear”, “c_straight”, “exit” etc. The two uppercase words after the “call ” bit are the two voice files, one for when the command is the last one and one for when there is more to follow (her voice goes up a bit so it sounds natural).

Then later on we have:

"template c_straight",,,"01_Continue straight situations"
,"100[then]*03_c_straight","THEN %2","01-5 Then continue straight."
,"300[then3]","*03_c_straight","01-5 Then continue straight."

First number is the distance. The item in square brackets is the conditions which iGo uses to pick the right thing to say. For example, [then] is for situations where iGo says “do something and THEN CONTINUE STRAIGHT”. These are built in to iGo. The first one is “then” and the second one is “then3″.

After that comes the optional ID. For the 100 line, the ID is “*03_c_straight”. The 300 line does not have an ID.

The third item is what to actually say. The words in capitals are the names of the .ogg sound files to say. The %2 refers to a parameter passed by iGo, which in this case is presumably “CONTINUE_STRAIGHT” (i.e. the name of the .ogg file, less the -e/-m which iGo adds automatically).

Now looking at the 300 line, we can see that the third item is “*03_c_straight”. That refers to the ID of the 100 line, in other words it’s just saying “use the line with ID ‘*03_c_straight’ for ‘300[then3]‘ as well”.

The forth line is just a comment, it has no effect on what is spoken.

,"100[then2,X>1]*06_turn_2","THEN TAKE %X %2","02-47-52 Then take the %X %*. (X>1)"
,"100[then2,!X]*05_turn_2","THEN TURN-SH %2","02-77-81 Then turn %*. (!X)"
,"100[then1,X=1]*07_turn_2","THEN TAKE_THE_NEXT-SH %2","02-65-70 Then take the next %*. (X=1)"
,"100[then1,X>1]","*06_turn_2","02-47-52 Then take the %X %*. (X>1)"

Here is another good example. The first line defines “*06_turn_2″. From the comment we can see that X is the turn number, e.g. the 3rd turn on the left/right. It is used twice, once in the definition (“[then2,X>1]” – i.e. then2 and more than the 1st turn) and again in the speech part where %X produces “the second”/”the third”/”the forth” etc. Finally %2 is “left”/”right”, but from the comments it is also implied that it can be “sharp left”/”sharp right”.

So, it’s quite a complicated system to work with, because everything is referencing other stuff. The good news is you can just remove lines you don’t want, but of course you do have to be careful when removing a line with an ID to either remove all other lines which reference it or to change their references to something else.

My guess is that iGo probably have some software which displays all this stuff in a big tree on screen to make editing it easier. Still, we can do it by hand :)

By mojo | Posted in software | Comments (0)

eBay no-brand media centre remote control review

01/06/2009 – 10:11

I have been looking for a suitable remote control for my media centre for a while now, and decided to take a chance on a £25 2.4GHz remote control with built in optical track ball from eBay:

remote

I was worried that it might be a bit cheap and perform poorly, but was pleasantly surprised by how well made it is. It fits nicely in my hand and the trackball is accurate. The mouse button placement could be a little better. Many of the media keys just work in Media Player Classic Home Cinema, and I set up mapping for a few others like skip forwards/backwards.

One slight disappointment is that the remote does not seem to be able to power my PC on. It may be due to the PC itself – the BIOS only supports power on by keyboard. Some systems support power on by USB device or mouse, which might do the trick.

On the subject of the desktop, I increased the font size setting in Vista to 120dpi and them manually increased a few here and there. I also selected the largest possible mouse cursor. On a 106cm screen I can read everything from two or three meters away.

Overall I’m very happy with this remote. It seems to be reliable, robust and very usable.

By mojo | Posted in hardware, windows | Comments (0)

Another delay starting apps fixed

31/05/2009 – 20:53

I found the source of another delay when starting apps. I have both English and Japanese keyboard layouts installed, and the English one was modified to put the apostrophe next to the ‘1′ key (like an Amiga keyboard).

For some reason, this started to cause apps to take a moment or two to start. I removed the modified English keyboard, logged out, logged back in again and re-installed it. The delay dissipated.

I investigated the problem a little further and some people report that running “sfc /scannow” fixes it too. The sfc program checks all system files are the original versions, and if they are not it replaces them. It looks like the non-standard keyboard file is causing some kind of delay as Windows checks it over. I read somewhere that Windows will check certain files and programs for compatibility issues by loading them into a special process and seeing if they crash before deciding whether to allow it to be used as-is or with some compatibility hacks. It’s only a guess but I have a feeling it must be something like that.

By mojo | Posted in software, windows | Comments (0)

Remove application start delay caused by Application Experience Lookup Service

29/05/2009 – 21:17

I noticed that apps seemed to take longer to load than they used to. When opening a program, there would be a slight pause (maybe 1 or two seconds) and then it would seem to start normally. I eventually tracked this down to the Application Experience Lookup Service service.

This service checks programs for compatibility when they are started using a database. This check is what creates the delay. By simply disabling the service, it cam be removed. Disabling it does not cause any problems generally, although may in theory case certain applications not to work as Windows cam no longer introduce hacks to make them compatible. The service was first introduced for Server 2003 SP1, then XP x64 and finally Vista and Windows 7.

By mojo | Posted in software, windows | Comments (0)

Retro Adapter V2 PCBs arrived!

19/05/2009 – 19:41

The first batch of PCBs is here, and looking good!

PCB 1 PCB 2

Spot the deliberate mistake :) It’s not a problem though, you can easily read the backwards text.

By mojo | Posted in avr, electronics, microcontrollers | Comments (0)

Damn you, SNK and your Neo Geo pads!

12/05/2009 – 14:35

Yesterday was really, really annoying.

I built a prototype of the Neo Geo adapter board. Took about an hour. Plugged it in, realised all the button mappings were wrong. Looked at the 74hc157 datasheet again and noticed that I had connected all the multiplexing backwards. That means the schematic and PCB are both wrong… Built a NOT gate out of an NPN transistor to invert the data select line on the prototype.

All looks good except that the down and left d-pad directions don’t work.

Checked all relevant connections. Re-flowed a lot of solder just in case of dry joints. Gamepad clicks nicely so sounds like the switches are okay, but a multimeter test proves otherwise. Google the problem, see that it’s pretty common, in fact 75%+ of these pads suffer from the same issue. Turns out SNK used switches that re-define the meaning of “cheap and crappy”.

Apparently you can open the switches up and clean them. They ever never designed for that though, so it’s not easy. Tried it anyway, after all what do I have to loose? Ended up with mostly-working-if-you-push-hard-enough d-pad which doesn’t click in either of the repaired directions, making it feel rather weird.

I wish I had bought a Neo Geo joystick instead now, but it was too large to bring back from Japan with me. Should have posted it.

By mojo | Posted in electronics | Comments (0)

Retro Adapter update 11/05/09

11/05/2009 – 14:39

The circuit board designs for the Retro Adapter have been finished and sent off for manufacturing at Seeed Studio. Hopefully everything will be fine and I can then do a larger production run, and start selling kits and finished units.

This is the first PCB I have had professionally made, and the first time I’ve tried to do a kit or sell anything. Fingers crossed all will be well!

As well as PCBs for the main Retro Adapter, I have designs for the individual controller adapters too. These are needed for controllers which do not use a 9-pin female sub-D type connector such as the Famicom/NES/SNES or PC-Engine, and for controllers which require extra circuitry such as PC Gameport joysticks, Atari Paddle controllers and Neo Geo controllers.

I’m still trying to work out the best way to do some of these adapters. PCBs make construction a lot faster than having to wire the connectors up by hand, but sometimes it’s unavoidable due to PCB mount connectors not being available (e.g. Sega Saturn / Playstation). Where PCBs are possible the question becomes how big to make them. Smaller PCBs save money on manufacturing but don’t fit in a case so have to be used “bare”, while larger ones cost more to produce but will fit in standard cases like a DB9 shell.

There are other issues still to be resolved. The way I am going to implement multi-taps is going to need some experimentation to find the best solution. At the moment I’m thinking that the best thing might be to use a dynamic HID config, and when a multi-tap is plugged in have the Retro Adapter disconnect, change the config and re-connect. The implementation of Atari driving controllers is dependent on emulator support and I’m waiting back to hear from the authors about that. I need to test out bootloaders as well for firmware updates, so I can add more controllers as I acquire them.

Things are moving along well and I’ve now proven that the modular design can cope with pretty much any controller imaginable. It is also possible to connect DIY controllers using a variety of methods, which could either replace the “pad hack” method or complement it by offering dual console/USB support.

By mojo | Posted in avr, electronics, microcontrollers | Comments (0)

I'm really upset with Subaru's attitude

08/05/2009 – 21:02

The government scrappage scheme for 10+ year old cars seems like a good opportunity to replace something that will probably need replacing in the next few years anyway. Sure, I could get another few years out of my Suzuki, but I won’t get £2000 for it and won’t get the 2.5% VAT reduction either.

I sat down and did my research. Spent hours checking specs, reading reviews, blogs and forums. Eventually decided I’d like a Subaru Justy. It’s a “Kei” car, a sort of taller super-mini. Having arthritis the extra height makes it much easier for me to get in and out, and it’s pretty spacious on the inside too. The 1 litre rubber band is economical, if not particularly exciting. The Twin Cam version really looks the part too.

So off I went to the local dealer, had a test drive and was impressed. I tried out the Suzuki Splash but was not particularly taken with it, and although I like the Mitsubishi Colt it doesn’t have that Kei car hight advantage. So, decision made, I check my finances and decide to accept a loan from my mum so I can give the dealer the full amount in cash, and avoid paying interest on a loan since Subaru are one of the few manufacturers not offering 0% finance. Actually, that last point should probably have rung alarm bells in my mind, but I figured Subaru are a performance oriented brand and so maybe didn’t think they needed to go that far.

Actually, it turns out Subaru won’t budge even an inch. The dealer told me that Subaru instructed them not to offer any discount what so ever to anyone taking up the scrappage scheme offer. That £2000 is supposed to be on top of any existing deals or offers. To add insult to injury, Subaru are keeping the £250 from the VAT reduction. This at a time when every other manufacturer is disparately trying to entice the customers by offering massive deals and nothing-to-pay-for-a-year-then-0% finance.

How the fuck Subaru expect to sell any cars is beyond me.

By mojo | Posted in idiots | Comments (0)
Page 5 of 13« First...«34567»...Last »
たとえ溺れても夢は夢でしかない
  •  

    March 2010
    M T W T F S S
    « Feb    
    1234567
    891011121314
    15161718192021
    22232425262728
    293031  
  • Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org
  • Categories

    • audio (1)
    • avr (13)
    • electronics (13)
    • genius (4)
    • hardware (14)
    • idiots (33)
    • Internet (10)
    • law (14)
    • microcontrollers (8)
    • networking (17)
    • politics (25)
    • privacy (18)
    • Retro Adapter (2)
    • security (16)
    • software (24)
    • Uncategorized (14)
    • windows (16)
  • Archives

    • February 2010
    • January 2010
    • December 2009
    • November 2009
    • October 2009
    • September 2009
    • August 2009
    • July 2009
    • June 2009
    • May 2009
    • April 2009
    • March 2009
    • February 2009
    • January 2009
    • December 2008
    • November 2008
    • October 2008
    • September 2008
    • August 2008
    • July 2008
    • June 2008
    • May 2008
    • April 2008
    • March 2008
    • February 2008
    • January 2008
    • November 2005
  • Links:

    Main site: world3.net

    Electronics: denki.world3.net

WordPress | Sandbox