Remove this ad
avatar

ritehunter

Moderator
Founder
Ancestor

Posts: 1,076 Member Since: 6 April, 2013

Lead

22 May, 2014 09:00:35

Tags : :

Hello! Ritehunter here to teach you about Analog Electrics.
If you are searching for a specific Topic then use the Find Command to search for what you are searching for.
I Now Added Spoilers For Easier Reference.
If You Can't Read Them, Tell Me So I Can Remove the Spoilers.
Spoilers Don't Work smiley: frown
In case I wrote any Misinformation here, please inform me As Soon As Possible.
Then I will fix it as quickly as I can.
Also, I might improve this post quite a bit by adding pictures, so in case you are still confused, don't fret.
The pictures are on the way.

Starting off this guide, here is a list of the Electrics that receive or give off Analog Signals.
  • 4-Bit Counter  MN3LIUH.png 
  • Memory Bank  OzBT4sx.png 
  • Truth Table Circuit  3KOGBZY.png
  • Real Time Clock  2NaMIIK.png
  • Random Generator  PKCn9bP.png
  • Digital To Analog Converter  4Ze9r00.png
  • Analog To Digital Converter  anL2Uil.png
  • Sound Generator  rrFKKEV.png
  • Pressure Plates  q229i2l.png UZ57fqF.png
  • Battery  0Q2vHxX.png
  • Photo Diode  Acvs2mM.png
  • Motion Detector  ap2SgAR.png
  • 4-LEDs  q9fnAzt.png
  • 7-Segment Displays  jKSoL1T.png
  • The Standard Logic Gates (NOT, AND, OR, and XOR)  bQPZD8l.png  N7QOoOm.png  kyHMmQI.png  NEPC1BJ.png

Hang on! Light Bulbs, LEDs and other things you haven't listed can still receive Analog Signals!
Whoa there. What I mean is that the items listed have special functions that are Analog Based.
To answer your concern,
All other Output Devices (Light Bulbs, Detonators, Doors, Trapdoors, Christmas Trees, Gates, Signs, and Gunpowder Barrels) can and will receive an Analog Signal as long as said Analog Signal has a Voltage of 0.8 or higher.
However, all other Input Devices (Switches, Buttons and Targets) will give off a Voltage of 1.5 when activated.
Furthermore, the Standard Logic Gates seemingly (and ironically) don't follow any logic when it comes analog signals. More information about those in 

Huh?
You will understand soon enough smiley: happy
Alright, enough of my babbling, let me give you an overview of what the Analog Signals are in SurvivalCraft.

  • Analog Signals are a range of voltages ranging from 0 Volts (V) to 1.5 V
  • On the other side of the rainbow, Digital Signals are either ON, giving the maximum voltage(1.5 V), or OFF, giving no voltage(0 V)
  • Each Voltage is assigned a Hexadecimal Value. 0V to 0.9V is given the numbers 0 to 9 respectively, while 1.0V to 1.5V is given the letters A to F respectively.
  • Almost all of the Analog Devices (The Exception being the Random Generator) have a Maximum of 5 connections. The First Four being the Four Directions and the Fifth only accessible via the back by placing the Device on a Wire-Through-Block
  • The only gate here
  • I do not recommend that you use Analog Electronics if you are new to SurvivalCraft. They can be confusing to use.


Let me show you the easier ones first:

SES7GCJ.png
4-Bit Counter
  • This is one of the most Basic Analog Devices 
  • It Counts Bit by Bit. smiley: tongue
  • The Counter increases or decreases in Voltage Output depending on input
  • The Output Side is on the side with the the "C"
  • The "-" Side decreases Voltage Output
  • The "+" Side increases Voltage Input
  • The Backside (If placed on a Wire-Through-Block) will reset the entire Device to give off 0V
  • The Underside is an Overflow Indicator (More on that Later)
  • The Counter can and will loop. The order goes from 0V (0) to 1.5V (F) then back at 0V or the other way around if you go back too much
  • After looping, the Counter will give off an Overflow Indication
  • The Overflow Indication is a Digital Signal (Meaning it is only ON [1.5V] or OFF [0V] )
  • You can use the Overflow Indicator to provide more than the 16 values provided by linking it to other 



qHoRu7l.png
7-Segment Display
  • The Easiest-To-Use Output Analog Device
  • It even Displays Things using its 7 Segments smiley: laugh
  • All its sides are Input Sides
  • It gets Voltage of the Connection and then Displays its equivalent in Hexadecimal Values
  • The Hexadecimal Equivalents are as follows:
  • 0V = 0
  • 0.1V = 1
  • 0.2V = 2
  • 0.3V = 3
  • 0.4V = 4
  • 0.5V = 5
  • 0.6V = 6
  • 0.7V = 7
  • 0.8V = 8
  • 0.9V = 9
  • 1.0V = A
  • 1.1V = B
  • 1.2V = C
  • 1.3V = D
  • 1.4V = E
  • 1.5V  = F



I9nDhQZ.png
4-LED
  • The  more Complicated Output choice
  • The Design is the one with 4 squares in it. smiley: wink
  • It shows the Voltage in a Binary-esque Fashion
  • The Top Left is the 1st Bit
  • The Top Right is the 2nd Bit
  • The Lower Left is the 3rd Bit
  • The Lower Right is the 4th Bit
  • The Previous Bit must be Lit first Before the Next Bit is Lit
  • Once the Next Bit is Lit, Said Bit will Unlit Itself
  • You would Understand this Better if you Know Binary
  • If you don't know binary, Don't use this unless Required
  • Out of all the Analog Inputs, This Device (As well as the Photodiode and Motion Detector) can be placed  on the Floor or Ceiling



ayRFjzZ.png
Motion Detector
  • Kinda Self-Explanatory but...
  • Detects if you move here smiley: roll to here
  • It Outputs a Signal when the Player is Within its Visible Range
  • It can also work as a Proximity Detector
  • The Voltage Output changes depending on how close the player is to the Detector
  • Maximum Linear Distance is 9 Blocks
  • Its Line of Sight Area looks like an Oval / Eclipse (Picture later once I fix some things)



O1V6keC.png
Photo Diode
  • Gives a Signal Based on the Amount of Light on its Block
  • What? Expecting a Running Gag every Second line? Not here. smiley: indifferent
  • This Device can change its Output if the Amount of Light changed



rKhXPAi.png
Random Generator
  • It gives a random Voltage Input
  • RANDOM DANCING! Wait, we can't dance? Sorry smiley: ohwell
  • This Generator has two modes, Synchronous and Asynchronous
  • By default, the Random Generator is in Asynchronous mode
  • Asynchronous Mode = It will always give a Random Voltage Output every While
  • If you Attached a Connection on the "^" Side of the Device (Or Clock Input) , You have Toggled its Synchronous Mode 
  • Synchronous Mode = It will change its Voltage Output if the Voltage of the Clock Input is 0.8 V or Higher
  • No the other sides don't do anything. Only the Dot Side (Output Side) and the "^" side (Clock Input)



hQpoLAT.png
Battery
  • Gives a Constant Voltage that You can Set
  • No Jokes Here Folks smiley: frown
  • If you Approach the Battery, The Sneak Icon will Change to an SD-Card Shape. Press it to Change the Voltage that it gives
  • Yes, the Battery gives that Voltage Indefinitely.



Xfh0tPs.png
Pressure Plates
  • Gives a Voltage Based on the weight of an Object
  • Great for Knowing how much Weight you gained from Eating all that Fatty Bacon smiley: devil
  • That was a Joke, your Weight is Constant in this Game
  • The Player's Weight always gives off 1.2V
  • Blocks and Items have their Own Weight
  • However, All Objects in the Game give at Least 0.8V Worth of Weight on the Pressure Plate
  • All the Animals have Weight as well
  • A Weight Chart will be Added Soon



Those are Easier-To-Understand / Basic Analog Devices.
The Pictures below are the More Complex ones and I require more TimeaIqw6YB.png and SpaceRTWVhmp.png to write about them.

To Be Written Guides (In Order) :
  1. Digital-To-Analog  & Analog-To-Digital   4Ze9r00.png  anL2Uil.png
  2. Truth Table Circuit  3KOGBZY.png
  3. Real Time Clock  2NaMIIK.png
  4. Sound Generator  rrFKKEV.png
  5. Logic Gates   bQPZD8l.png  N7QOoOm.png  kyHMmQI.png  NEPC1BJ.png     [Finished!]
  6. Memory Bank  OzBT4sx.png 
  7. Misc. Analog Things 3jtLLvU.png
X3DHWKu.pngqTwwNM7.pngoHCbMrM.pngO1dXTer.pngIvIeg9U.pngqd1XfM2.pngdV1rn7c.png


Last Edited By: ritehunter 25 May, 2014 08:18:38. Edited 4 times

Quote    Reply   
Remove this ad
Remove this ad
avatar

ritehunter

Moderator
Founder
Ancestor

Posts: 1,076 Member Since: 6 April, 2013

#5 [url]

22 May, 2014 09:04:11

Logic Gates ( NOT, AND, OR, & XOR )

Much Unlike with Digital Signals, 

Analog Electronics and The Standard Logic Gates Are Not As Straight-Forward.
The Only Logic Gate That Does Not have a Change in Function is The Delay Gate Which Still Delays the Signal.
Also, If anyone is able to Find out the General Pattern for The Logic Gates, Please Say So in The Comments,
Since The Logic Gates (Except NOT, Fittingly) Don't Follow an Understandable Pattern. (Except Graphically when Tabled)



Anyways! Let Us Ease into This With:

m3nfWxO.png
NOT Gate
  • The Not Gate is now, in Simple and Technical Terms, An Inverter
  • Instead of 0 to F, The entire spectrum goes F to 0
  • As an Explicit Reference, Here is the Designations:
  • 0 1 2 3 4 5 6 7 8 9 A B C D E F
  • to
  • F E D C B A 9 8 7 6 5 4 3 2 1 0



qd1XfM2.png
  • The AND Gate is your Starting Gate That Has A Bit Of Dodgy Logic To Analog Signals
  • So Far, I Have Concluded The Following Logic For This Gate:
  • If Both Inputs Have the Same Voltage, It will Give Out Their Voltage.
  • If Both Inputs Have a Voltage of 0.8+ (or 8+), The Voltage Output will also Be 0.8+
  • Effectively, It Still Does its Job but The Results Are Varied and Seemingly Without Logic
  • Inception stuff when divided by 4
Here is a Table of the AND Gate Inputs and Their Output:
Sk8ibcA.png

Look At the Table as a Whole then Divide the Table by 4.
Then Divide by 4 again, and Again and Again.



ddI1UuF.png
OR Gate
  • Concluded Logic:
  • If Both Inputs Have the Same Voltage, It will Give Out Their Voltage.
  • If At Least One Input Have a Voltage of 0.8+ (or 8+), The Voltage Output will also Be 0.8+
  • Effectively, It Still Does its Job but The Results Are Varied and Seemingly Without Logic
  • Inception stuff when divided by 4

Here is a Table of the OR Gate Inputs and Their Output:
6b3Levt.png

Looks Like The Graphic Reversal Of The AND Gate Huh?



MlTQTOq.png
XOR Gate
  • Concluded Logic:
  • If Both Inputs Have the Same Voltage, It Won't Give a Signal (0V or 0)
  • If Only ONE Input Have a Voltage of 0.8+ (or 8+), The Voltage Output will also Be 0.8+
  • Effectively, It Still Does its Job but The Results Are Varied and Seemingly Without Logic
  • Inception stuff when divided by 4
Here is a Table of the XOR Gate Inputs and Their Output:
iEykcxP.png

Makes a GREAT Sudoku Puzzle.

Last Edited By: ritehunter 24 May, 2014 10:21:08. Edited 2 times.

Quote    Reply   
avatar

ritehunter

Moderator
Founder
Ancestor

Posts: 1,076 Member Since: 6 April, 2013

#8 [url]

24 May, 2014 10:27:13

UPDATED!
Logic Gates are Now in The Guide.
I Planned to Do Them in Order But I Already Have all the Information I Can Get From It Already so *Shrug*
Please Comment If I Need To Make The Tables Bigger.

Quote    Reply   
avatar

Stanimus

City Founder
Old Timer

Posts: 1,340 Member Since:19 July, 2014

#9 [url]

28 October, 2014 04:20:02

Nice work

WOW! Some nice work here.
I'm glad that I decided to check your guide out. Would you mind if I link to it from the wiki? You have more details here and another way of presenting the info. I found it particularly interesting your showing the fractal like nature of the gate outputs. They are some interesting patterns but, I think I'm getting a handle on them. - - -  It's a sequential bit-wise algorithm, I'm pretty sure. Starting with the msb. Check it out...

————————————————————
"[The future] is a place about 70 miles east of here - where it's lighter." - Laurie Anderson


Stanimus

Quote    Reply   
avatar

kaalus

Moderator
Fire Starter
Ancestor

Posts: 198 Member Since:23 November, 2011

#10 [url]

8 December, 2014 10:09:48

Logic Gates and analog signals explanation

Logic gates (AND, OR, NOT etc) work separately on all 4 bits of analog signal. It is as if you had 4 separate gates and fed them all the constituent 4 digital signals contained in the analog signal. Hope this clears up the confusion.

Digital devices use the highest bit of the analog signal only, so this behavior is transparent to them. They seem like normal digital logic gates as far as digital signals are concerned (the remaining 3 bits are ignored).

Quote    Reply   
Remove this ad
avatar

masseycrew1

Fully Fledged

Posts: 13 Member Since:18 February, 2015

#12 [url]

26 February, 2015 10:10:20

out of luck again.

I hoped I had found the forum with the info Ineeded but no post I months and the sound genorator is way down the list (

Quote    Reply   
avatar

KBClarinetBb

Scavenger
Full Fledged

Posts: 13 Member Since:27 December, 2014

#13 [url]

6 March, 2015 22:12:07

kaalus

Oh my gosh thx somuch I feel stupid for not knowing that its so simple it helps a ton thanks! :D XD :D
No seriously. How I was not able to figure that one out i dont know.

Quote    Reply   
avatar

Stanimus

City Founder
Old Timer

Posts: 1,340 Member Since:19 July, 2014

#14 [url]

13 March, 2015 01:55:28

Hey Clarinet,
Don't worry, I'm a well-experienced electrical engineer and I didn't quite get it. You can see that I responded months ago and practically stated it (in engineer-speak), but still it didn't quite solidify in the brain! Kaalus had to put it simply, before I went - "Doh! Of course!"
The human brain will often skip right over the simple explanation thinking, "it can't be that simple". For me, one glance at the pattern should have given me the answer, but. . .

(BTW, I played the contra-concert-bass clarinet one year in h.s. - that was FUN !!! )

————————————————————
"[The future] is a place about 70 miles east of here - where it's lighter." - Laurie Anderson


Stanimus

Quote    Reply   
avatar

Bobtron10

Survivor
Fully Fledged

Posts: 38 Member Since:13 March, 2015

#15 [url]

17 March, 2015 00:27:13

Writing data

How can I write a desired number to a memory bank I understand fully everything else it's this part that gets me.

Quote    Reply   
avatar

mgblitz81

Survivalist
Ancestor

Posts: 443 Member Since:22 May, 2013

#16 [url]

17 March, 2015 02:18:11

Bob, click the link in my signature. It'll take you to my collection of worlds i've created. You are looking for one called "Electricity Unleashed". It will show you step by step how to write to a memory bank.

____________________________________________________________________________________
For a complete list of all my electric projects, videogames, and tutorials click on this link:
http://survivalcraft.lefora.com/topic/19405016/Electrical-Projects-Videogames-Tutorials-Showcase-Thread

Quote    Reply   
avatar

Bobtron10

Survivor
Fully Fledged

Posts: 38 Member Since:13 March, 2015

#17 [url]

17 March, 2015 05:47:57

Start work

ONow I can start work on my music making machine for recording a song and playing it back. Are you a coder? If so what should I learn what language?!?

Quote    Reply   
avatar

dhruvjad

Scavenger
Full Fledged

Posts: 15 Member Since:12 June, 2013

#20 [url]

15 April, 2015 03:02:19

I hate physics

Lel, now in a game. This electrics thing is hard

Quote    Reply   
Remove this ad
Add Reply

Quick Reply

bbcode help