Random Rants

Stuff. Interestingly boring
RSS
  • Home
  • Latest Comic
  • Archive
  • Beer Making
  • About Me / Contact
May17
happy

Sega Mega Drive (Genesis) to PC converter using an Arduino Uno

by Alasdair on May 17, 2012 at 7:25 pm
Posted In: Electronics

 

So I’ve been thinking about doing an electronics project for awhile, but I’ve never been too sure what to do. So when a friend suggested a retro gaming night I thought why not make a Sega Mega Drive to USB converter using one of these Arduino Unos I’ve been hearing so much about.

I bought one and was reading up about using the Uno as a USB HID device. All websites seemed to suggest that I’d have to reprogram the Uno board’s USB->Serial converter which I didn’t want to touch and one of the goals was to have the ATMega328 chip on a little board powered via the USB. So I searched the web some more and I stumbled across this little gem Practical Arduino Virtual USB Keyboard project.

With haste I bought the components required to make the USB circuit and wired the whole thing up using the breadboards in my starter kit, wires everywhere; I plugged it in ……. “Windows does not recognise this USB device” …… bah!

I searched the internet again and found one person having the same trouble, he said that the electronics store he had bought his from gave him 1W zener diodes and it just didn’t work. I checked mine they were 0.5W which is apparently the border line but they were all I could find. I then stumbled across 0.3W 3.6V Zener diodes but they were really small surface mounted packages which would make soldering fun! I ordered these (I now have 50!) and soldered them onto my project board and they worked a treat! yaaaay!

I followed the wiring diagram on the Practical Arduino webiste but instead of putting the 2k2 Ohm resistor into DIO5 I put it into the +5V line and it works just as well.

Then I added the chip mount onto the board and also the 16MHz crystal just wiring it straight into the ATMega328 chip seems to work fine but sites suggest putting capacitors to stop various electrical oddities.

Finally, I added the DB9 connector onto the board, I did have alittle trouble with this and that is the reason for all the brown wires. I did originally have it placed closer to the chip but my dodgy newbie soldering or something caused nothing to be read correctly from the controller. :(

Eventually, I got it working :)

 

The software side of things is alittle bit more interesting. With the VUSB library the ATMega328p pretends to be a USB keyboard so each button press pretends to be a keyboard press. I could’ve and probably should make it an actual USB Gamepad but since I had code that already worked as an input that 99.9999% of emulators could read I decided to just go with that.

The VUSB library I used however sends the key event then immediately clears the input so it looks like a quick key down then key up event to the OS which in turn looks kind of like Rapid fire mode while playing the game. To fix this I Added KeyDown and KeyUp functions which filled in the USB Descriptor with the current buttons down then if any are released they are cleared from the USB Descriptor.

*phew* an interesting and nice starter project. I am starting to think what my next project will be :D I have put more pictures below.

Thanks for reading!

  Comment
Mar03

Hmmmm! Beer

by Alasdair on March 3, 2012 at 11:51 pm
Posted In: Beer

Cowboy Golden Lager is done, clean crisp taste. Best of all IT LOOKS LIKE BEER! :D and is DRINKABLE!

Still needs some more fizz, but I’m told that will come with time, it needs about 20 days or so in the bottle. So far its been 14.

 

  Comment
Feb18
happy

Trying new paper.

by Alasdair on February 18, 2012 at 9:47 pm
Posted In: Drawings

 

So I’ve been unhappy with the way my scanner has been scanning in the drawings I’ve done. It seemed to be picking up the ruffness of the paper and also it didn’t seem to be taking the ink as nicely as I’d seen in other artists drawings. So I had a read around the internet and in my Drawing Cartoons book and found I needed smooth cartridge paper. So I took a drive out to the range and picked up some cartridge paper and tried again.

I had bought a valentines card for the wife and it was a card by the excellent Tim Whyatt and I love his style, so I’d thought I’d try drawing a character from the card. I was most pleased with the result and the scanning looks much better a comparison can be seen below:

Old Paper New Paper

Scanned in image with ruff paper

So, what I’ve learned today is that paper type really does count and you shouldn’t just pick up and buy the first thing you see in the art shop!
Anyway, I have some beer to bottle. so I’m off to do that!
Cya,
Ali

  Comment
Feb13

I’m still going……

by Alasdair on February 13, 2012 at 10:21 pm
Posted In: Drawings

but it is pretty hard! Trying to find a news article and ALSO finding the time! suddenly I have this thing called a social life :S which just makes doing things harder! I’m still trying to find the time to do these and here is the proof!

IMG_20120213_210911_small
IMG_20120213_210919_small
IMG_20120213_210928_small

IMG_20120213_210940_small
IMG_20120213_210950_small
IMG_20120213_210958_small


The blank one is because I couldn’t find any news for Sunday! :( MUST TRY HARDER!

 

  Comment
Feb07

Day 7: Bristol Eye and the closed shops.

by Alasdair on February 7, 2012 at 10:47 pm
Posted In: Drawings

I was driving into work last week and I heard a news story about the new “Bristol Eye”. The gentleman was saying “No one is really sure what you’ll see at that height as no one has been that high in that area”. This morning I hear another news article about 1 in 4 shops are closed on Bristol high streets, too easy? Probably.

As I’m drawing these I am trying to do different kind of styles, like today instead of being so precise with the colour; I’ve decided to “scribble” in the colour with my tablet, it creates a nice effect I think. 7 Days in and I really am just enjoying this, I  couldn’t care less if I am not perfect with lines I’m sure I’m capable I mean I did this and that’s not too bad right?

  Comment
  • Page 1 of 3
  • 1
  • 2
  • 3
  • »

Latest Comic

Pages

  • About Me / Contact
  • Beer Making

Categories

  • Blog (11)
    • Android (1)
    • Beer (1)
    • Blender (1)
    • Drawings (5)
    • Electronics (1)
    • Misc (1)
    • Uncategorized (1)
  • Comics (3)

©2011-2012 Alasdair MacLeod | Powered by WordPress with ComicPress | Subscribe: RSS | Back to Top ↑