June 11, 2014

Pong on a 'scope: Dicking around with XY mode

I'll start this entry like this:
The 'problem' with me is, that when I figure out how to do something, I keep expanding that, until it goes completely mad. What I'm talking about now is dicking around with the XY mode of a scope with a DAC.

Pong-o-scope.
After some more dicking around with drawing stuff with the XY mode, I rumbled upon my parts bin again, and found a pot. That made me think the junk I make appear on the screen is just a little bit too uninteractive, and after an hour or so, I wrote this Pong game. I know it sucks, it's buggy and glitchy at times, it looks awful, but that's just something I made once again, so I thought about slapping it onto my blog. Why not, right?

How not to breadboard 101
On the right you can see a couple of photos of my current setup. If you are any sane, you're probably looking for something to puke into now, because that's pretty much how NOT to breadboard 101, but it works, right?

So, in case you're as crazy as I am and you'd like to slap one together as well, here's a quick howto:

What you need:


  • an Arduino or something like that
  • an MCP4822 DAC
  • a couple of pots of a reasonable value (anything between 2k2-100k should be right)
  • a breadboard
  • and obviously a dual channel analog oscilloscope - it has to be analog, because the XY mode on digital ones doesn't really work for this stuff well.

How to slap it together:

Here's a fritzing sketch for ya:
And HERE's the arduino source code.

Here's a video of it in action:


Conclusion:

I've slapped this thing together in just about an hour or so, so don't expect anything very much polished as always, but that means there's a ton of space for improvement - I'll probably add at least one thing into this project later - sound. It's completely silent now, which kinda sucks.
Also, I'm using a pixel approach - which kinda sucks as well! I'll probably switch to vectors once I figure out how to draw these properly (facepalm)...

I hope you like this project.
Also, don't forget to leave a comment!

June 8, 2014

Nixie Clock: First Sparks

It probably wouldn't be a proper today's self-made electronics blog if I hadn't built myself a nixie clock, so I gave it a shot.

So this is the result:
It looks rather ugly IMO, but that's hopefully subjective. I'm using a couple of ZM1080T tubes there, because I just got those two and couldn't be assed getting something else, driven by a couple of classic 74141 driver chips I've salvaged somewhere. It's all powered from a 9V power supply connected to those two screw terminals. I don't have any schematic for this, built it off-hand pretty much with a help of some pinouts I found on the net.

The microcontroller there is the everpopular ATMega8, and I've even got an LM335 temperature sensor, so it shows temperature too!

How the hell can I show time on just two nixies? What kind of sorcery is that? Well, the sorcery's called decimal points, and each of those tubes has two. I'm actually using just one in each tube to indicate what's it showing. If the left one's on, it shows hours, if the right one's on, it shows minutes, if both are on, it shows seconds, if none is on, it shows temperature (Celsius!).

I have yet to figure out how to make the time properly user-settable, I even thought about making it radio-controlled, but I can't be assed either buying or brewing my own DCF77 receiver or something of that sort, so yeah.

Well, this is the project preview and I hope you like it!
Anyway, sorry for the picture and video quality, both was shot with my crap mobile phone.

I'm Not Scopeless Anymore!

Till now, all my measurement equipment consisted of a cheap sub $5 multimeter and a soundcard as a poor man's scope. That means, I were mostly blind for anything over say 20kHz, but mostly I were lazy enough not to set up the soundcardscope, so I were mostly limited to DC.

IT'S ALIVE!
But that has changed. I've got a new friend!

It's an old Philips PM3216 (good luck finding any info about that one!), a dual channel, analog oscilloscope which claims to go to whopping 35Megahurtz! Wowzers!

The seller actually claimed this scope was unable to turn on, so he sold it as broken. And if you try to google for a service manual for this scope, all you've got is a couple of ones in paper form on eBay, but I don't really know anyone who'd want to buy one. So, that meaned the scope's price went quite low - for about $20, instead of more typical $150+, which is what most scopes go for at a local auction site I bought this on.
The seller happened to live in the same city as I do, so I just went and picked it up, which means no postage and instant delivery, so I were quite happy about that.

When I went home by tram, I started to look at the scope a bit more in detail. The buttons looked ok, knobs felt great, and everything looked pretty darn nice, apart from a bit of a dust on the front panel, which is really nothing to worry about. The first thing that struck me was the lack of any power button!
So I started to look at the front panel a bit more - and then realized the ILLUM pot, right over the POWER LED has a marked position saying OFF, which other pots don't. It was in the same color as the 'power', and when I turned the pot, it felt like there's a switch attached to it! What a fool, that seller...

When I came home, I plugged it in. Turned the Illum knob, and it worked! I felt really happy, which is something that doesn't happen very often.
So I sat and started playing around with it. I realized I have no probes nor any BNC connectors, so what I did is I took a piece of copper wire, bent it 180 degrees, and slapped it into the middle of a BNC connector. It fits perfectly. So I'm using those as temporary probes. Where's the ground lead there I hear you ask. Well, there's a banana/wirescrew groundpoint on the front as well, so I just screwed a wire into that, and put it into a breadboard. Good enough for now. I'll make myself a pair of probes once I have the money for that.

What do you get when you combine me,
and Arduino, a DAC and an analog scope?
So then I wondered what to do with it. I rumbled for a while in my parts bin and found an MCP4822, which is an SPI, 12-bit dual channel DAC with a built-in reference. It also turned out there's an Arduino library for it out there, so I slammed it into my breadboard, whacked a couple of wires to it to the arduino and connected 'probes' to the outputs. Made the scope go XY-mode, and started playing around.

That ended up with writing myself a 'library' to draw some text on the screen! It's a pixel-based font, 7x5. You can see an example of it on the right. I ran into a little problem though - the arduino can't push much more than that to the DAC quickly enough, so anything more and you'd see some flickering on it, which doesn't really please the eye. I wanted to do some vectory stuff as well, but I couldn't really be bothered. The next thing I did was writing a basic Pong! game for it, but I don't have any pictures of that yet, maybe that would make for a next blog entry, check it out, it's the next blog entry.

If you managed to read this all, you deserve a cookie.

Hello world!

Hi there!


My name's Richard Kutina, I also call myself kutis at times (lowercase k) and I am, as you might've noticed, a (somewhat) lonely mad (wannabe) engineer. Not really mad, but most people find me odd in some way, and not really an engineer, because I'm still a highschool student. (But I'll hopefully become one anyway!)

I'm mostly into computers (all sorts of - including retrocomputing, embedded computers and so on) and digital electronics, microcontrollers and that sort of jazz, and I generally try to stay away from RF or power stuff.

Designing electronics is probably the major one of mine current hobbies, I think. The other one I used to have was programming, and I still write some stuff in C (or so, but I can write a ton of other langs as well, and read even more) time to time, but that's nothing compared to the 'good ol' times'.

I've decided to start writing this blog, because I just wanted to have some place to dump my ideas into. And you know, a place where someone could actually see them might be nicer than just a chunk of paper, right?

So what should you expect to find here?

I kinda plan to post there progress reports of some of my random projects, random rants and crying sessions, maybe some reviews and all sorts of other stuff I hope you find at least a little bit interesting and/or worth the read, at least.
It would be mostly just me dicking around and writing some shit that doesn't even make sense, I guess... Who knows...