Project Snake

An area for asking questions, making suggestion, share ideas and place circuit examples.
User avatar
superryan94
Posts: 53
Joined: Sat May 09, 2015 5:59 am
Location: Rotterdam The Netherlands

Re: Project Snake

Post by superryan94 »

I managed to make Snake move the way it should be^^
But now that I'm working on the apples I get to a problem. I want to make an instable oscilating circuit for a randomizer. But I am not allowed to make an oscilating circuit. Do you happen to have some randomizer examples that I can use to make it?

PS: I have an idea but that would take a massive amount of time an a huge amount of gates with possibly will result in a circuit that is to slow to work properly.
User avatar
admin
Site Admin
Posts: 417
Joined: Sun Jun 14, 2009 10:53 pm
Contact:

Re: Project Snake

Post by admin »

You can use sensor to generate random values.
User avatar
superryan94
Posts: 53
Joined: Sat May 09, 2015 5:59 am
Location: Rotterdam The Netherlands

Re: Project Snake

Post by superryan94 »

Can you give a little explantion on the sensor? I can't make a randomizer with only 1 output with it.
Image
It will give a lot of apples when I do it like this. And if I make a demultiplexer for it it will be one with 840 and gates whits I think is a little big...
User avatar
admin
Site Admin
Posts: 417
Joined: Sun Jun 14, 2009 10:53 pm
Contact:

Re: Project Snake

Post by admin »

I am not sore about what you need. But you can use the sensor to give random number for row and column where the apple is located. If this doesn’t answer your question please give more information on what you need.
User avatar
superryan94
Posts: 53
Joined: Sat May 09, 2015 5:59 am
Location: Rotterdam The Netherlands

Re: Project Snake

Post by superryan94 »

I have already figured out how it works. My randomizet is now a lot smaller than I initially would design it. Thanks for saying that the sensor is an output and not an input:)

But now I have another question. Why is my circuit oscilating?
It should be a stable flipflop like randomizer...
Image
User avatar
superryan94
Posts: 53
Joined: Sat May 09, 2015 5:59 am
Location: Rotterdam The Netherlands

Re: Project Snake

Post by superryan94 »

And if it doesn't oscilate it's a real attack on my clock speed.
Image
With randomizer
Image
Without the randomizer
User avatar
admin
Site Admin
Posts: 417
Joined: Sun Jun 14, 2009 10:53 pm
Contact:

Re: Project Snake

Post by admin »

Can you please share your circuit here?
User avatar
superryan94
Posts: 53
Joined: Sat May 09, 2015 5:59 am
Location: Rotterdam The Netherlands

Re: Project Snake

Post by superryan94 »

Sure
Attachments
Problem circuit.CircuitProject
(633.43 KiB) Downloaded 1028 times
User avatar
superryan94
Posts: 53
Joined: Sat May 09, 2015 5:59 am
Location: Rotterdam The Netherlands

Re: Project Snake

Post by superryan94 »

Did you already have time to look into it?
User avatar
admin
Site Admin
Posts: 417
Joined: Sun Jun 14, 2009 10:53 pm
Contact:

Re: Project Snake

Post by admin »

I did not figured out how to make it oscillate, so I hope you can give a hint, but looks like performance investigation will take a bit longer.
Post Reply