Strange Electronics Question

Feel like posting Off Topic? Do it here.

Moderator: MaxCoderz Staff

Post Reply
User avatar
thegamefreak0134
Extreme Poster
Posts: 455
Joined: Mon 23 Jan, 2006 10:09 pm
Location: In front of a Computer, coding
Contact:

Strange Electronics Question

Post by thegamefreak0134 »

I'm working on a project for my school and I have a very very strange issue. I'm using a micro controller to drive a small car, and as an added feature, we've set up a turret on the top that can fire BBs. We've decided, in honor or retro, to control this turret using an NES controller, with the only real drawback being that we have to run around behind the car because we can't find a wireless NES controller, on account of they never made one.

</rant>

Anywho, I've got the microcontroller communicating with the NES contoller fairly well. the problem is, it only works when I have the data line for the NES controller hooked up to an oscilloscope. If I take that out and try to run it, I get no signal from the controller. To my knowledge, an oscilloscope is not supposed to interfere with the connections, only monitor them. I will admit that I do not know enough to really say that with any certainty. The end result is that when we try to run the car without looking at the lines, it behaves as though we aren't pushing any buttons.

Has anyone ever run into a problem like this before? It's so odd, because we put a lot of work into getting this far. Is there perhaps something that the oscilloscope is providing to my circuit that I am failing to reproduce?

I can send pictures if necessary, but I'm afraid it will be a smidgeon difficult to get a schematic up without help, I don't pretend to know how to draw one.

Thanks a bunch, this is veeery strange.

-thegamefreak
I'm not mad, just a little crazy.

DarkNova - a little side project I run.
User avatar
tr1p1ea
Maxcoderz Staff
Posts: 4141
Joined: Thu 16 Dec, 2004 10:06 pm
Location: I cant seem to get out of this cryogenic chamber!
Contact:

Post by tr1p1ea »

Could the problem be power related?
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."
Image
Image
User avatar
thegamefreak0134
Extreme Poster
Posts: 455
Joined: Mon 23 Jan, 2006 10:09 pm
Location: In front of a Computer, coding
Contact:

Post by thegamefreak0134 »

We have considered this, as we've got a strange power setup to begin with. The Microcontroller on the car has a power supply, and the NES has its own. I don't *think* we were crossing between the two, but it's difficult to know, I'll have to check on it tomorrow. If I had it set up like I think, they were sharing a ground, which now that I think about it might have done strange things. I guess I get to send a picture tomorrow, as I'm not entirely sure what's happening.

-thegamefreak
I'm not mad, just a little crazy.

DarkNova - a little side project I run.
User avatar
benryves
Maxcoderz Staff
Posts: 3089
Joined: Thu 16 Dec, 2004 10:06 pm
Location: Croydon, England
Contact:

Post by benryves »

I'm not sure why NES controllers are so popular for this sort of thing, as they do overcomplicate the issue somewhat (most other joypads of the era were just switches in boxes rather than having exotic control circuitry in them). Anyhow...

The two circuits should share a common 0V, and the voltage that the NES controller is outputting (and running from) should roughly match that of the microcontroller. I don't know how the NES controller signals to the NES itself, but you should have a pull up or pull down resistor on the microcontroller's input. I can't really suggest much more without a schematic, I'm afraid.
Post Reply