Scrap Mechanic

Scrap Mechanic

Not enough ratings
Analog Electronics Mod By Shinevision
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
46.746 MB
23 May, 2018 @ 2:23pm
24 May, 2018 @ 8:19am
5 Change Notes ( view )

Subscribe to download
Analog Electronics Mod By Shinevision

Description
In this mod there will be tons of Analog items!

Analog sensors:
Accelerometer - Measures the velocity and outputs an analog value based on that.
Potentiometer - A block where you can specify its analog output using a file in `Scrap Mechanic/Release/Potentiometer_Value.json`.

Analog Logic like:
OpAmps/comparators,
Digital To Analog Converter,
Analog To Digital Converter.

//Coming Soon//
Gyroscope --To measure angles (XYZ).
Analog Signal to engines signal converter

///WARNING///
Connecting Analog stuff to engines will make them go SUPER FAST, even at low speeds, you have been warned ;)
I guess that could also be a good thing/handy?

Instructions for use:

Digital To Analog Converter (DAC)
This block takes the amount of inputs and divides that over 1024 (This mod's "Voltage" resolution). For example, if you connect 4 switches, and you turn on 2, the "Voltage" is 512 (1024 / 4 * 2 = 512) 4 = number of switches/logic connected, 2 = number of inputs on.

Comparator
This block has 2 Analog INPUTS, if the SECOND input "Voltage" is higher than the first input "Voltage" then it turns ON. (if you have a DAC that outputs 512 as the first input, then as the second input a DAC with the output of 1024 it will turn on because the second input's value is greater then the first input).

Potentiometer
To set the value go to: Scrap Mechanic/Release And open the file called Potentiometer_Value.json Open it and edit the value to whatever you want!

Accelerometer
(Velocity To Analog) This block converts velocity to an analog 1024 range. The number after the name means the sensitivity so for slow moving objects use the 50, for things that go super fast, use the 100.
(There are 2 Accelerometer block. 50 and 100)

Always ON/OFF Bit (FOR DAC)
This block is always on/off, and is useful to set DACS to their correct value without being reset by a lift.

Analog To Digital Converter
Popular Discussions View All (1)
10
13 Jun, 2018 @ 4:46pm
Suggestions
shinevision
20 Comments
Sem 20 Mar, 2022 @ 6:54am 
Does this mod allow acceleration (realistic)?
And, is it possible to make the directional control as for a joystick?
SometimesitsnotMinecraft 19 Jul, 2018 @ 3:33pm 
The signal to engines can you add a block that starts at a very low 0.00 decimle point and wont go abouve 1.0 the max an engine can recive then we can just set an engine to max power and use that block as a throtle tho im sure its possible to do with existing blocks maybe i havent looked to hard at it
ZeroHour 6 Jul, 2018 @ 2:01pm 
has the gyroscope been added yet?
SometimesitsnotMinecraft 23 Jun, 2018 @ 1:13am 
How are thing progressing? any new updates coming up in the futer?
SometimesitsnotMinecraft 6 Jun, 2018 @ 4:43pm 
Thanx for your reply and i understand about the work your doing no one expects you to halt things to do special fixes and i personaly dont see anything wrong with leaving it but seriously do you really belive this crowd will use anything for the forces of good? they are going to wreck the world if they can and so they should lol its there map not your problem if they burn it down they were fairly warned lol
shinevision  [author] 6 Jun, 2018 @ 4:18pm 
But i guess i wont block it if people like it, so i dont really see a reason to block it i guess? there is a danger of creation flying away because of the massive power i guess, but i guess it could also be used for good?
shinevision  [author] 6 Jun, 2018 @ 4:17pm 
It..... does. i actually wanted to block it, because max power normally on a engine is 1, so if you feed a engine 1024. its basically the power you set it at * 1024, AKA Super fast, but yes. it does work with engines as far as i know. so the engine should go faster the faster the accel... goes. im heavily in a update proccess for this mod, so i cant really release a quick fix or stuff because everything is getting worked on at the same time, so ill just relase it as a big patch i think. that will also include the fix for thr recent removal of the sm.json API (you might get some errors ingame about that). so yeah. if you have any suggestions on cool items, please post them in the discussion, i would love to see some and add some, and thanks for using my mod, i really appreciate it :)
SometimesitsnotMinecraft 6 Jun, 2018 @ 12:46pm 
thank you does it have an effect on motor or thruster speed? as in speeding it up or slowing it down as its speed increases or decreases? because a block that can do that would be very usfull but im sure you thought of this and it is either difficult to do or not yet possible
shinevision  [author] 6 Jun, 2018 @ 12:43pm 
the Comparator, if the second analog input (for example the acceler...) is higher than the analog input of the first input (Like a DAC) then it will turn on. (Logic HIGH signal)
SometimesitsnotMinecraft 6 Jun, 2018 @ 11:57am 
what blocks are meant to recieve an output from the accelerometer im curiouse