d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Abducts Electronics/project/development Thread
Prev18910111226Next
Add Reply New Topic New Poll
Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Feb 19 2014 06:21pm
Found my bunny ears I was looking for out in my shop stashed away. Went and took off the F connector and put some RG6 coax on it. I have yet to put a connector on the other side because I don't have any at the moment.

If I am correct it should be good to up to 80mhz or so.

Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Feb 20 2014 01:20pm
Been screwing around in gary's mod lately building cars and shit with semi realistic parts (going to design 4 link suspension today), but I was thinking that it would be cool if I could make a simple 4/8 but ALU to add things together.

I haven't looked inside gary's mod to see if it even has parts I can use as transistors, but I decided to open up my schematic drawing application and start making myself some logic gates. As a result here is a fully functioning OR and XOR logic gate which will be included in my ALU. I still need to design a few more logic gates but they're easy.

Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Feb 20 2014 07:23pm
Fixed up and finished my other 2 gates. I remade my OR and XOR gates to work with my other gates in a stream line fashion.

The NOR gate is a OR gate combined with a NOT gate on its output. This reverses all of the OR gates output. Meaning instead of turning on the LED if switch A OR B (or both) are enabled, the inputs actually disable the LED.

Also because of the new layout and setup of my gates I can now string them together more easily than before by simply hooking one gates output to anthers input.

Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Feb 21 2014 04:19am
Well I remade my gates as well as fixed my XOR gate yet again (It's finally working) and I put them all together into a make shift 4 bit adder. What it does is allows the user to input bits into the adder denoted by A and B for each 1 bit adder, and then depending if there is a carry it will carry the carry bit into the next adder until all 4 bits are added.



Lets break this down by looking at one of the full-adder gates. You have two inputs A and B and a CARRY, lets say A = 1, B = 0, CARRY = 1. A and B first XOR gate, and being the way XOR works(same inputs output 0, different inputs output 1), our gate outputs 1. This out then goes into another XOR gate along with our CARRY bit. Since the output was 1 and the CARRY was 1 this XOR gate outputs 0. Directly below the second XOR gate is a AND gate. It takes our output from our first XOR gate (1) as well as our CARRY bit, and the way AND works is if the bits are 1,1 it outputs 1, if they are not they output 0. In this case since our output was 1 and our CARRY bit is 1 this AND gate outputs 1. Below the AND gate is a second AND gate which takes our A and B inputs and puts them into the gate. Since A was 1 and B was 0, this gate outputs 0. Finally to the right of the AND gates is an OR gate. If any input of an OR gate is 1, it will output 1, so in this case we sent it 1 and 0 causing it to output 1.

So when adding 1 + 0 + 1CARRY, this full-adder outputted 1 and the CARRY flag meaning the sum was to large for it to fully calculate.

Here are some examples of what a single full-adder will produce with given inputs (if my math is correct its late :< ) C being input carry, A being first bit, B being second bit, O being output sum, OC being output carry:

Code
C 0 0 0 0 1 1 1 1
A 0 0 1 1 0 0 1 1
B 0 1 0 1 0 1 0 1
----------------------------
O 0 1 1 0 1 0 0 1
OC 0 0 0 1 0 1 1 1


String these together via chaining the carry bits to each other and you can make a fairly decent ALU for adding.



This post was edited by AbDuCt on Feb 21 2014 04:26am
Member
Posts: 104,692
Joined: Apr 25 2006
Gold: 10,485.00
Feb 21 2014 12:38pm

You always do things the hard way :D




Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Feb 23 2014 11:22pm
Quote (Ghot @ Feb 21 2014 02:38pm)
You always do things the hard way  :D

http://www.youtube.com/watch?v=LGkkyKZVzug



Lol I have respect for those guys. Making a simple XOR gate via transistors is hard enough but to do them with blocks like that... it's insane. Not to mention you need 2 XOR, 2 AND, 1 OR just to add 2 bits together.

Here I did an 4 bit Adder, 4 bit subtracter, and a 4 bit multiplier. Each one of those gates is a logic function, if I were to create each one of those gates by hand using transistors... yea I don't even want to think about it.

Here's my multiplier:


And here is my adder:


Don't have a picture of my subtracter but it's similar to the adder, except a few NOT gates were used to invert some inputs into the XOR and AND gates.
Member
Posts: 104,692
Joined: Apr 25 2006
Gold: 10,485.00
Feb 24 2014 03:51am
Here's a bunch of them...

http://www.youtube.com/results?search_query=16 bit alu in minecraft&sm=12

This post was edited by Ghot on Feb 24 2014 03:56am
Member
Posts: 104,692
Joined: Apr 25 2006
Gold: 10,485.00
Feb 24 2014 04:02am

...and even a 16 bit calculator with display :)

Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Feb 24 2014 05:32pm
My mcx -> female bnc adapters came in just now so later today once I recharge my laptop I will hook my SDR up to some high gain antennas and see what I get.

Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Mar 3 2014 12:22am
Quick and dirty wep packet cracking script I came up with in a pinch.

It is a wrapper around airdecap-ng which allows you to specify a single packet captured, and a pass phrase and it will attempt to decrypt the packet.

In simple terms this basically takes a password from a file, one per line, and submits it to airdecap until a correct wep psk is found.

Code
require 'pty'

IO.foreach('passwords.txt') do |line|
PTY.spawn "airdecap-ng -w #{line.unpack('U'*line.length).collect {|x| x.to_s 16}.join} a.cap" do |stdout, stdin, pid|
begin
stdout.each do |output|
next unless output.include? 'decrypted WEP'
break if output[-3..-3].eql? '0'
puts "WEP key found: #{line}"
exit(0)
end
rescue PTY::ChildExited
end
end
end

puts "Password not found... sorry"


This post was edited by AbDuCt on Mar 3 2014 12:43am
Go Back To Computers & IT Topic List
Prev18910111226Next
Add Reply New Topic New Poll