Stormworks Basics: Transmission Tutorial #stormworks #tutorial

00:47:32
https://www.youtube.com/watch?v=rK-Iaw2JgVg

Resumo

TLDRIn this comprehensive Stormworks tutorial, the process of building a transmission system for cars and light trucks is demonstrated, focusing on gearboxes, their arrangement, and the calculation of gear ratios. The tutorial emphasizes the function of each gearbox and explains how the orientation affects the transformation of speed and torque. Viewers learn to replicate real-world gear ratios for an accurate simulation, while also covering the creation of a microcontroller tailored to manage manual transmission. Essential tips for managing ratios and improving vehicle performance within the game are shared.

ConclusΓ΅es

  • πŸ”§ Gearboxes are essential for adjusting vehicle torque and speed.
  • βš™οΈ The arrow on gearbox design indicates the direction of torque and speed trade-offs.
  • πŸ“Š Always multiply gear ratios when stacking gearboxes, don’t add them.
  • πŸ” Use real-life gear ratios from vehicles to improve accuracy in-game.
  • πŸš— The orientation of gearboxes affects vehicle performance significantly.

Linha do tempo

  • 00:00:00 - 00:05:00

    Introduction to building a transmission for cars and light trucks using gearboxes that have no torque handling differences, providing flexibility in design.

  • 00:05:00 - 00:10:00

    Explained the function of the gearbox arrow for directing torque and speed conversion, highlighting trade-offs between RPM and torque based on the arrow direction; pointed away for torque and towards for speed.

  • 00:10:00 - 00:15:00

    Details about gearbox ratios include default behavior and reverse functionality, including examples on using gear ratios for various applications like boats, and introducing the key differences in how ratios are calculated and stacked.

  • 00:15:00 - 00:20:00

    Stressing the importance of multiplying ratios for gearboxes instead of adding, followed by a demonstration using a chart to help visualize and calculate gear ratios efficiently.

  • 00:20:00 - 00:25:00

    Comparison with real car gear ratios using examples from cars like the Ford Fiesta and F-150, mentioning that the numbers in the game correlate closely with real-world scenarios with some adjustments for vehicle size.

  • 00:25:00 - 00:30:00

    Using real-life data to determine starting gear ratios, and setting up the gearbox configurations accordingly to achieve specified ratios along with some examples of what these configurations would look like.

  • 00:30:00 - 00:35:00

    Further detailed the transmission arrangement and incorporated forward and reverse functionalities, emphasizing the appropriate gear choices depending on the gear direction relative to the engine's arrow.

  • 00:35:00 - 00:40:00

    Constructing a comprehensive microcontroller setup for the transmission involving user inputs and automatic gear shifting logic for manual and automatics, ensuring conditions for triggering changes are thoroughly defined and utilized effectively.

  • 00:40:00 - 00:47:32

    Concluding the tutorial on transmission by linking the gearbox setup to an engine microcontroller, ensuring complete integration of the systems and ready for operational use, inviting questions and further engagement.

Mostrar mais

Mapa mental

VΓ­deo de perguntas e respostas

  • What is the purpose of the gearboxes in the tutorial?

    The gearboxes are used to adjust the torque and speed of the vehicle's transmission system.

  • How are gear ratios calculated?

    Gear ratios are calculated by multiplying the fractions of the gearbox settings instead of adding them.

  • What are the main points to remember about gearbox orientation?

    When the arrow points away from the engine, it converts RPS to torque, and when it points towards the engine, it converts torque to RPS.

  • How do you know which gear to use for different vehicles?

    You can look up the gear ratios for real vehicles online and replicate them in the game.

  • Can you stack gearboxes?

    Yes, multiple gearboxes can be stacked to achieve higher torque by multiplying their ratios.

Ver mais resumos de vΓ­deos

Obtenha acesso instantΓ’neo a resumos gratuitos de vΓ­deos do YouTube com tecnologia de IA!
Legendas
en
Rolagem automΓ‘tica:
  • 00:00:00
    hello this Captain Welcome Back to
  • 00:00:01
    stormworks Basics tutorial in this
  • 00:00:03
    tutorial I'm going to be going over how
  • 00:00:05
    to build a transmission for cars and
  • 00:00:07
    light trucks so let's go ahead and let's
  • 00:00:10
    get started all right so the first thing
  • 00:00:11
    we want to do is we're going to look at
  • 00:00:12
    our parts and so we have some gearboxes
  • 00:00:14
    here we have three different gearboxes
  • 00:00:15
    and one question that still people ask a
  • 00:00:17
    lot is are there any differences between
  • 00:00:19
    the three Gearbox and the answer is no
  • 00:00:21
    there used to be a difference where each
  • 00:00:23
    gearbox had a certain amount of torque
  • 00:00:25
    that it could handle before breaking uh
  • 00:00:27
    the devs removed that I think was a good
  • 00:00:29
    idea to remove that it made some sense
  • 00:00:30
    in the beginning but the issue is this
  • 00:00:32
    is this gives us more flexibility to
  • 00:00:35
    build whatever we want by having
  • 00:00:36
    gearboxes for example one by one so it
  • 00:00:38
    will do the same as a five by five so
  • 00:00:40
    three gearboxes are the same they all do
  • 00:00:42
    the same thing currently the only
  • 00:00:44
    difference is Aesthetics so let's look
  • 00:00:46
    at the basics of the gearbox there are a
  • 00:00:48
    couple things we need to think about
  • 00:00:50
    when we look at these gearboxes in game
  • 00:00:51
    so first thing we want to do is let's
  • 00:00:53
    look at the arrow as you can see we have
  • 00:00:54
    an arrow we can flip these one way or
  • 00:00:56
    the other and so there are some ways to
  • 00:00:59
    think about this so one one thing I'm
  • 00:01:00
    going to do is I'll take a modular
  • 00:01:01
    engine here and I'll just put a clutch
  • 00:01:03
    on here and this will show you what
  • 00:01:04
    direction the engine is coming from so
  • 00:01:06
    I'll actually just do
  • 00:01:08
    very simply we'll just show an engine
  • 00:01:10
    I'm not going to hook this engine up
  • 00:01:12
    it's just gonna kind of be a placeholder
  • 00:01:13
    to show you which direction the engine
  • 00:01:15
    is all right so that is our engine
  • 00:01:18
    and if we look at the gearboxes we have
  • 00:01:20
    an arrow on the gearbox and that is very
  • 00:01:23
    important to understand what is going on
  • 00:01:25
    so you're doing two things with gearing
  • 00:01:27
    one you're trading RPS which is speed
  • 00:01:31
    for torque which is power so what this
  • 00:01:34
    means is if the engine is turning many
  • 00:01:36
    more times it is creating a lot of
  • 00:01:39
    torque and in this case we're going to
  • 00:01:40
    be adding a wheel so we'll put a wheel
  • 00:01:42
    on there to demonstrate what we're
  • 00:01:43
    actually turning because that's going to
  • 00:01:44
    be a tutorial for cars and trucks and so
  • 00:01:47
    if we look at this when the arrow is
  • 00:01:49
    pointing away from the engine what we're
  • 00:01:51
    doing is we're trading the RPS of the
  • 00:01:53
    engine and we're converting into torque
  • 00:01:56
    power so RPS is speed torque is power
  • 00:01:59
    when the arrow is pointing toward the
  • 00:02:02
    engine what we're doing is we're trading
  • 00:02:04
    the torque of the engine for RPS you
  • 00:02:06
    don't get anything for free you have to
  • 00:02:09
    trade one for the other and so for
  • 00:02:10
    example if you wanted to keep trading
  • 00:02:12
    away your torque from your engine to get
  • 00:02:14
    more RPS speed you're eventually you're
  • 00:02:17
    going to need to add a bigger engine
  • 00:02:18
    I've talked about this in other
  • 00:02:19
    tutorials where eventually if increasing
  • 00:02:22
    the gear ratio well the arrows pointing
  • 00:02:24
    towards the engine causes you to go
  • 00:02:26
    slower it means you need more power in
  • 00:02:28
    the form of a larger engine these are
  • 00:02:31
    the important things to know is the
  • 00:02:33
    arrow pointing away from the engine
  • 00:02:35
    you're converting the RPS of the engine
  • 00:02:38
    to torque this is giving you more torque
  • 00:02:39
    this is good for trucks and when you
  • 00:02:42
    have the arrow pointing toward the
  • 00:02:44
    engine that is converting the torque of
  • 00:02:45
    the engine the power into speed all
  • 00:02:48
    right so that's one of the first things
  • 00:02:50
    you need to know about these gearbox the
  • 00:02:52
    second thing let's go ahead and click on
  • 00:02:53
    the gearbox we have two ratios per box
  • 00:02:55
    only two ratios we have an off ratio
  • 00:02:58
    that is the default ratio if we do
  • 00:03:00
    nothing to this gearbox it will be this
  • 00:03:02
    top ratio so for example if you're going
  • 00:03:04
    to run a boat boats generally don't
  • 00:03:05
    shift gears so if your boat has say a
  • 00:03:08
    9-5 gear ratio on there let's stick that
  • 00:03:11
    in there and you never plan on shifting
  • 00:03:14
    because boats don't shift their gears
  • 00:03:15
    generally there might be a couple cases
  • 00:03:17
    but most bones boats never shift gears
  • 00:03:20
    if you have a 9-5 gear ratio for your
  • 00:03:23
    boat and you never plan on shifting it
  • 00:03:24
    you can just leave that in there and you
  • 00:03:26
    never have to worry about swapping gears
  • 00:03:28
    you don't have to plug in the
  • 00:03:28
    electricity you don't have to do any of
  • 00:03:30
    that but we have two ratios nine five on
  • 00:03:33
    this and then we have other ratios here
  • 00:03:34
    and we'll go through the ratios really
  • 00:03:36
    quick one negative one that's your
  • 00:03:38
    reverse so that will mean for one
  • 00:03:40
    rotation of the engine we're gonna go
  • 00:03:42
    negative one uh at the wheel so you need
  • 00:03:46
    to consider it engine wheel now this
  • 00:03:48
    very much depends on which way the arrow
  • 00:03:50
    is pointing so again if the arrow is
  • 00:03:52
    pointing away from the engine this is
  • 00:03:54
    the default position for the gearbox and
  • 00:03:56
    so we look at the numbers here let's go
  • 00:03:58
    to a real simple one three to one so
  • 00:04:00
    what this means is for three rotations
  • 00:04:02
    of the engine on the left side here we
  • 00:04:05
    get one rotation of the wheel so when
  • 00:04:07
    the arrow is pointing away it is a three
  • 00:04:09
    one now if we look over here when the
  • 00:04:11
    arrow is pointing toward the engine this
  • 00:04:13
    is actually backwards all right so for
  • 00:04:16
    every one rotation of the engine we're
  • 00:04:18
    getting three rotations of the wheel
  • 00:04:20
    we're trading away the power of the
  • 00:04:23
    engine for more speed so if this wheel
  • 00:04:27
    if the the circumference of this wheel
  • 00:04:29
    is one meter for every one rotation of
  • 00:04:31
    the engine we're going to go one meter
  • 00:04:33
    forward so for if this is one RPS we're
  • 00:04:36
    gonna go one meter per second if the
  • 00:04:38
    circumference is one meter all right so
  • 00:04:40
    that's important to know so we have two
  • 00:04:42
    ratios here if we look here we have a
  • 00:04:44
    gear switch this will allow us to switch
  • 00:04:46
    from that first ratio to the second
  • 00:04:49
    ratio that's what we need to do there we
  • 00:04:52
    also have electricity we need to plug in
  • 00:04:54
    the electricity if we want to switch
  • 00:04:55
    this gearbox again the example I talked
  • 00:04:57
    about if you have a boat and you're just
  • 00:04:59
    using a 9-5 and you do not need to ever
  • 00:05:02
    shift your gearbox you don't need to
  • 00:05:04
    plug it in to the on off and you do not
  • 00:05:07
    need to plug in the electricity if you
  • 00:05:08
    never plan on shifting it with our
  • 00:05:10
    transmission here we're going to end up
  • 00:05:11
    shifting so we're going to need to all
  • 00:05:12
    right so the next thing you need to know
  • 00:05:13
    about these gearboxes is stacking the
  • 00:05:15
    gearbox so as you can see I've lined up
  • 00:05:17
    three of them pointing away from the
  • 00:05:18
    engine this is going to give us a lot
  • 00:05:19
    more torque again because they're
  • 00:05:21
    pointing away from the engine our wheel
  • 00:05:23
    is going to move slower but it's going
  • 00:05:25
    to be more powerful allowing us to move
  • 00:05:26
    bigger loads like say a truck what you
  • 00:05:28
    need to understand is how do I stack my
  • 00:05:30
    gearboxes and how do I multiply them
  • 00:05:32
    this is a big mistake I see a lot of new
  • 00:05:34
    players do is they will add the
  • 00:05:37
    fractions so these are essentially
  • 00:05:39
    fractions that's 1 divided by one is one
  • 00:05:42
    that's a one to one all right this is
  • 00:05:44
    six divided by five we can do the math
  • 00:05:46
    really quick here 6 divided by five
  • 00:05:48
    that's 1.2 to 1. so 1.2 turns of the
  • 00:05:52
    engine for one turn of the wheel that's
  • 00:05:54
    a three two three divided by two is a
  • 00:05:57
    1.5 as you can see they're stepping up a
  • 00:05:59
    little bit they're stepping up
  • 00:06:01
    incrementally nine divided by five
  • 00:06:03
    that's a 1.8 as you can see they're
  • 00:06:04
    going up a little bit each time here's a
  • 00:06:07
    two one two divided by one is a two of
  • 00:06:10
    course uh five divided by 2 is 2.5 3
  • 00:06:14
    divided by one three divided by one is a
  • 00:06:17
    three to one of course and so we have
  • 00:06:19
    these gearbox here so let's just do real
  • 00:06:22
    simple math here three to one three to
  • 00:06:24
    one
  • 00:06:24
    three to one so we remember we do not
  • 00:06:27
    add our fractions these are fractions we
  • 00:06:29
    do not add them we multiply our
  • 00:06:31
    fractions so this is a three three so
  • 00:06:34
    this would be three
  • 00:06:35
    times 3 is 9 times 3 is 27. so this is a
  • 00:06:40
    27 to 1 gear ratio so what this means is
  • 00:06:42
    for every 27 rotations of the engine
  • 00:06:45
    we're going to get one rotation of the
  • 00:06:48
    wheel so we need to understand that
  • 00:06:49
    first to understand how a transmission
  • 00:06:51
    is going to work you multiply your
  • 00:06:53
    fractions you do not add them so a
  • 00:06:54
    little bit more complicated one here is
  • 00:06:56
    3 times 3 is 9 9 times 5 is 45 45
  • 00:06:59
    divided by 2 will be 22.5 to 1 gear
  • 00:07:03
    ratio all right good so we understand
  • 00:07:05
    that we have to multiply these now we
  • 00:07:08
    also have to understand that if we have
  • 00:07:10
    them like this we're still multiplying
  • 00:07:12
    them and so we can understand this
  • 00:07:13
    really quickly let's go six five six
  • 00:07:16
    five and this one's pointing this way so
  • 00:07:18
    this would actually be a 5 6. so what
  • 00:07:20
    that would be is a 30 over 30 which is a
  • 00:07:23
    one over one so these cancel each other
  • 00:07:25
    out so you'll see people do this
  • 00:07:27
    sometimes where they're just you know
  • 00:07:29
    trying to kind of pull numbers out of
  • 00:07:31
    their hat it's better to them to do the
  • 00:07:33
    actual math on these but you still don't
  • 00:07:35
    multiply them out so let's go ahead and
  • 00:07:38
    I have a chart it's in a Google Sheets
  • 00:07:40
    chart that helps you do this where you
  • 00:07:42
    can set up your gear ratios and I'll go
  • 00:07:44
    ahead and show you that now all right so
  • 00:07:46
    here's a Google Sheets chart and I made
  • 00:07:48
    this up here and this will allow you to
  • 00:07:50
    use four gearboxes and put in all the
  • 00:07:53
    different ratios and again like I said
  • 00:07:55
    before this is just simple multiplying
  • 00:07:58
    fractions so here this gearbox is
  • 00:08:00
    pointing away from the engine so it's
  • 00:08:02
    going to be three rotations of the
  • 00:08:04
    engine for every one rotation of the
  • 00:08:07
    wheel in this case all right and again
  • 00:08:09
    let's say gearbox two we wanted to do a
  • 00:08:12
    three to one as you can see over here
  • 00:08:14
    it's starting to multiply them so it's
  • 00:08:16
    multiplying three times three that's
  • 00:08:18
    nine so it'll be three times three times
  • 00:08:21
    one times one is nine one times one
  • 00:08:24
    times one times one is one that's a nine
  • 00:08:26
    over one the reduced ratio is the same
  • 00:08:28
    nine to one if we went did something a
  • 00:08:30
    little bit more complicated here let's
  • 00:08:32
    do a five two as you can see that's a 15
  • 00:08:34
    to 2 or a 7.5 to 1 gear ratio so with
  • 00:08:39
    using this chart it makes a lot easier
  • 00:08:40
    you don't have to do the math yourself
  • 00:08:41
    as you can see this one's pointing away
  • 00:08:43
    away let's make one towards so this
  • 00:08:46
    would be pointing towards now you still
  • 00:08:47
    have to do this manually unfortunately I
  • 00:08:48
    can't do it because of limitations of
  • 00:08:50
    sheets but let's say you go in here and
  • 00:08:52
    you do a three to one now remember when
  • 00:08:54
    the arrow is pointing toward the engine
  • 00:08:56
    the fraction is going to be flipped so a
  • 00:08:59
    three to one now becomes a one to three
  • 00:09:01
    one rotation of the engine gives you
  • 00:09:02
    three rotations of the wheel okay so now
  • 00:09:05
    as you can see it's doing this
  • 00:09:06
    multiplication for me I don't have to
  • 00:09:08
    pull up my calculator do anything else
  • 00:09:09
    it's a 15 over 6 which reduces down to a
  • 00:09:12
    2.5 to 1 gear ratio okay good so we have
  • 00:09:15
    that all set up so let's do the first
  • 00:09:17
    step we should do when we try to build
  • 00:09:18
    the transmission for a car or truck and
  • 00:09:21
    that is instead of trying to imagine the
  • 00:09:24
    numbers ourselves or guess or spend a
  • 00:09:26
    ton of time just trying to test things
  • 00:09:27
    out let's look at some real cars that is
  • 00:09:30
    one of the easiest things you can do the
  • 00:09:31
    math is still math it doesn't change
  • 00:09:33
    because it's in a game there are a
  • 00:09:36
    little bit of differences for example
  • 00:09:37
    the wheels tend to be a little bit
  • 00:09:38
    bigger in game than they are in real
  • 00:09:40
    life so that will change some things but
  • 00:09:43
    the numbers are still pretty close and
  • 00:09:45
    the distances between the different gear
  • 00:09:47
    ratios are still very applicable because
  • 00:09:50
    again it's simple math and so let's go
  • 00:09:53
    ahead and let's look at some real gear
  • 00:09:55
    ratios for some real cars all right so
  • 00:09:57
    Ford is pretty good at posting these
  • 00:10:00
    user manuals for the cars and in these
  • 00:10:02
    user manuals it will show some gear
  • 00:10:04
    ratios and so right here there's a 2017
  • 00:10:07
    Ford Fiesta Ford Fiesta very small car
  • 00:10:10
    you know I've driven them before they're
  • 00:10:12
    very tiny and so one thing you'll notice
  • 00:10:14
    is because the car is small and light it
  • 00:10:17
    has a small motor but it doesn't need a
  • 00:10:19
    lot of torque it doesn't need a really
  • 00:10:21
    low gear ratio because it's a tiny
  • 00:10:23
    little car it's not hauling a lot it's
  • 00:10:24
    not like a big truck big trucks will
  • 00:10:26
    have like a 15 to 1 gear ratio in first
  • 00:10:28
    gear so about a 3.8 to 1 gear ratio
  • 00:10:31
    second gear is a two to one third year
  • 00:10:33
    is a 1.28 8.95 0.75 to 1 in fifth gear
  • 00:10:38
    all right so these are a ratio so we
  • 00:10:40
    don't have to try to figure these out on
  • 00:10:41
    our own we can go online and we can
  • 00:10:43
    figure these out all right so the next
  • 00:10:45
    website here this is the Ford F-150 Hub
  • 00:10:48
    so this is a light pickup truck so if we
  • 00:10:49
    look here we have a bunch of different
  • 00:10:51
    Transmissions here we have four speed
  • 00:10:53
    Auto five speed Auto we have some manual
  • 00:10:55
    transmission here here's a 5 speed
  • 00:10:57
    manual again you know some people think
  • 00:11:00
    a pickup truck is a big old truck it's
  • 00:11:02
    really not you know I've driven tractor
  • 00:11:04
    trailers before a pickup truck is
  • 00:11:06
    essentially just a car with you know
  • 00:11:09
    some badging on it you start to get into
  • 00:11:10
    some things like the f550s those tend to
  • 00:11:13
    be actual real trucks these are pretty
  • 00:11:16
    small trucks and so again as you can see
  • 00:11:17
    the gear ratios really aren't that much
  • 00:11:19
    different than that Ford Fiesta the
  • 00:11:21
    engine is more powerful
  • 00:11:23
    that's the only difference so the ratio
  • 00:11:26
    stay pretty similar but the engine is
  • 00:11:28
    just more powerful so like if we look at
  • 00:11:29
    this six-speed Auto here we have a 4.17
  • 00:11:32
    a 2.34 1.5 to a 1.1 a 0.87 and 8.69
  • 00:11:39
    all right we look down here we have some
  • 00:11:41
    manuals here three nine two two five one
  • 00:11:44
    four nine one and a point eight and then
  • 00:11:45
    these are your reverse gears here so
  • 00:11:47
    reverse gears you'll notice reverse is
  • 00:11:49
    pretty close to First and the reason is
  • 00:11:51
    pretty simple right an object at rest
  • 00:11:54
    wants to stay at rest and object in
  • 00:11:56
    motion wants to stay in motion
  • 00:11:58
    so a truck or a car when it's stopped it
  • 00:12:01
    needs a lot of torque power in order to
  • 00:12:03
    get moving and so that doesn't matter
  • 00:12:06
    whether you're trying to go forward or
  • 00:12:07
    in reverse and so forward and reverse
  • 00:12:10
    first gear and reverse tend to be very
  • 00:12:12
    low because that helps you get that
  • 00:12:14
    heavy Mass moving that is now stopped
  • 00:12:17
    and doesn't want to move as you start to
  • 00:12:19
    go as you start to move the vehicle it
  • 00:12:21
    is easier the object in motion will
  • 00:12:23
    sustain motion it's easier for you to
  • 00:12:26
    stay there so what you're doing is
  • 00:12:27
    you're effectively trading away your
  • 00:12:30
    torque
  • 00:12:31
    for more speed so you're giving up power
  • 00:12:33
    because you don't need it anymore and
  • 00:12:35
    you're trading for Speed all right so
  • 00:12:37
    that's why it's very challenging to
  • 00:12:39
    start in high gear you just don't have
  • 00:12:41
    the torque in order to get the vehicle
  • 00:12:42
    moving all right so we're going to use
  • 00:12:44
    some of these numbers and now we don't
  • 00:12:45
    have to make them up ourselves we can
  • 00:12:47
    start with that number and so we're
  • 00:12:50
    going to do is we're going to do two
  • 00:12:52
    facing away and two facing towards now
  • 00:12:54
    sometimes you need to change these
  • 00:12:55
    around but this is a pretty good start
  • 00:12:57
    here and what we're going to do is we're
  • 00:12:59
    just going to make these all pretty much
  • 00:13:01
    one to one
  • 00:13:03
    101s and as you can see those are all
  • 00:13:05
    1011 ones and we'll start with this
  • 00:13:08
    basis and then we're going to go into
  • 00:13:09
    the chart and what we're going to do is
  • 00:13:10
    we're going to use that information from
  • 00:13:12
    the internet we're going to use real
  • 00:13:13
    life gear ratios and we're going to plug
  • 00:13:15
    them into our chart and when you use the
  • 00:13:17
    numbers from in game to get our gear
  • 00:13:19
    ratios as close as possible to the real
  • 00:13:21
    life which we know works all right so
  • 00:13:23
    now looking back at this gear chart
  • 00:13:25
    which this will be linked in the
  • 00:13:27
    description this chart here and so if
  • 00:13:29
    you look right here we have what's
  • 00:13:30
    called desired ratio what this is is a
  • 00:13:33
    this is just a place for you to be able
  • 00:13:35
    to put in the ratios that you found
  • 00:13:36
    online or wherever you found them so in
  • 00:13:38
    this I'm going to use the Ford Fiesta
  • 00:13:40
    manual this is a
  • 00:13:42
    3.8421 gear ratio all right that's our
  • 00:13:45
    first gear for the Ford Fiesta second
  • 00:13:47
    one is a
  • 00:13:49
    2.03 so
  • 00:13:52
    2.03 to 1 gear ratio next one is going
  • 00:13:56
    to be a 1.28 again I'm just looking at
  • 00:13:58
    that chart that I already showed you
  • 00:13:59
    guys this is a 0.95 0.95 to 1 and we're
  • 00:14:04
    only going to make a five speed we don't
  • 00:14:05
    need to make a six speed here and so
  • 00:14:07
    this is going to be
  • 00:14:09
    0.7521 and we will just leave this one
  • 00:14:12
    black sixth gear we do not need we'll
  • 00:14:14
    just leave it blank
  • 00:14:15
    all right so this these are the gears
  • 00:14:18
    that we want to achieve all right and so
  • 00:14:20
    what I'll do is I'll turn these back to
  • 00:14:22
    one ones
  • 00:14:23
    and we'll start fresh so as you can see
  • 00:14:25
    this is going to multiply them out we're
  • 00:14:27
    one one so we want to get a 3.84 all
  • 00:14:30
    right now we again we need to understand
  • 00:14:31
    that each one of these boxes only has
  • 00:14:34
    two gears okay and so we're gonna do
  • 00:14:36
    here is this one's a way remember the
  • 00:14:38
    first two we'll go back to the game real
  • 00:14:40
    quick first two are way away the arrow
  • 00:14:42
    is pointing away from the engine then
  • 00:14:43
    it's towards towards all right so away
  • 00:14:45
    away towards towards so I put a little
  • 00:14:48
    box here this is just to remind you
  • 00:14:50
    which direction they're putting you
  • 00:14:51
    still have to manually enter this in
  • 00:14:53
    yourself but this will tell you this
  • 00:14:55
    will remind you so away away towards
  • 00:14:58
    towards that is the way we have it in
  • 00:15:01
    game that's we're going to set it up in
  • 00:15:02
    the chart all right so now we want to
  • 00:15:04
    achieve a 3.84 all right so let's go
  • 00:15:07
    ahead and let's put something here so
  • 00:15:09
    three to one so three to one that's a
  • 00:15:11
    little bit lower than or a little bit
  • 00:15:13
    higher of a gear than we'd like so we
  • 00:15:15
    want to get it down to 3.8 all right so
  • 00:15:17
    now gearbox two what we could do is we
  • 00:15:19
    could do a six five
  • 00:15:23
    all right there's a 3.6 let's go up even
  • 00:15:25
    higher than that right so the next one
  • 00:15:27
    is a three two
  • 00:15:29
    all right 4.5 so that is too high that's
  • 00:15:31
    fine because what we're going to do next
  • 00:15:33
    is this gearbox here our gearbox 3 this
  • 00:15:36
    is going to be our reverse so we're
  • 00:15:37
    gonna go rev for reverse
  • 00:15:40
    all right so that's going to tell us
  • 00:15:41
    this one's going to be our reverse I
  • 00:15:43
    usually just do it on three uh that's
  • 00:15:45
    just common practice for me you can put
  • 00:15:47
    it wherever you want but I usually put
  • 00:15:48
    it on the third gearbox and so each of
  • 00:15:51
    these is going to have two ratios we can
  • 00:15:54
    use we can use two ratios this one also
  • 00:15:57
    has two ratios but we know that one of
  • 00:15:59
    them is reserved for reverse and so
  • 00:16:02
    because of that what we're going to do
  • 00:16:04
    is all of these need to be the same
  • 00:16:06
    because the other ratio is reverse all
  • 00:16:09
    right so this one is pointing toward the
  • 00:16:12
    engine
  • 00:16:12
    and so we're going to do here is we're
  • 00:16:14
    going to do a six five we need that to
  • 00:16:16
    come down so I'll explain why I'm doing
  • 00:16:17
    it as you can see here 4.5 is larger
  • 00:16:20
    than that so we need to reduce the gear
  • 00:16:23
    ratio so this is pointing towards this
  • 00:16:25
    is make the ones pointing away from the
  • 00:16:27
    engine are making the number bigger the
  • 00:16:29
    ones pointing toward the engine are
  • 00:16:31
    making this number smaller okay and so
  • 00:16:34
    we're at 4.5 we need to get down to a
  • 00:16:37
    384 or as close as we can so we're going
  • 00:16:40
    to do here is a five six remember when
  • 00:16:42
    it's pointing toward the engine the
  • 00:16:44
    number is flipped there's a 3.75 to 1
  • 00:16:47
    Bingo that's pretty close that's
  • 00:16:49
    probably the closest we're going to be
  • 00:16:51
    able to get it but that's really close
  • 00:16:52
    that's point you know uh what is that
  • 00:16:55
    point
  • 00:16:56
    09 something like that away so that's
  • 00:17:00
    pretty pretty damn close there
  • 00:17:02
    all right so next one we want is a 2.03
  • 00:17:04
    all right so let's look at this again
  • 00:17:06
    here and let's go
  • 00:17:10
    let's try a three one
  • 00:17:13
    a three two
  • 00:17:16
    all right there's a four five then we
  • 00:17:18
    this one always now remember because
  • 00:17:20
    this is our reverse all of these need to
  • 00:17:22
    be six fives let's just go ahead and
  • 00:17:24
    we'll fill these all out to six five
  • 00:17:26
    okay
  • 00:17:27
    and so that will save us any uh uh
  • 00:17:30
    problem with screwing this up and
  • 00:17:31
    forgetting to do it these will all be
  • 00:17:33
    six five because it's pointing away from
  • 00:17:35
    the engine all right so we already have
  • 00:17:38
    some in there now so if we look there
  • 00:17:39
    we're at a 375 that makes sense of the
  • 00:17:41
    same is here we want to reduce it some
  • 00:17:43
    more okay so we can do gearbox four now
  • 00:17:45
    remember gearbox four is pointing toward
  • 00:17:47
    the engine let's try a three up remember
  • 00:17:51
    it has to be upside down so three two
  • 00:17:53
    2.5 let's go higher than that so that'll
  • 00:17:56
    be of nine fives our next ratio
  • 00:17:59
    there we go
  • 00:18:01
    2.08321 so that's pretty close to where
  • 00:18:04
    we want to be here that's within .05 of
  • 00:18:07
    the real gear ratio of the real car as
  • 00:18:10
    you can see we'd have to do all this
  • 00:18:11
    math ourselves the chart makes it easy
  • 00:18:13
    next one here we need to get to is a one
  • 00:18:15
    point uh two eight
  • 00:18:18
    all right so if we look here we're
  • 00:18:20
    already at a 0.83 so instead of going
  • 00:18:23
    back to a three to one we won't bother
  • 00:18:25
    we'll leave this as a one to one for now
  • 00:18:28
    all right the next ratio here we're
  • 00:18:30
    going to have to figure out as you can
  • 00:18:32
    see so by default this is at a 0.83 we
  • 00:18:35
    need to have this come up so these two
  • 00:18:38
    boxes here raise the ratio these two
  • 00:18:41
    will lower it so we need to raise the
  • 00:18:43
    ratio so we're going to go here and
  • 00:18:45
    we'll throw on a 3 2 just to see what it
  • 00:18:47
    does
  • 00:18:48
    1.25 look at that right in the money
  • 00:18:51
    that's within .03 of the ratio we want
  • 00:18:54
    excellent all right next one we're going
  • 00:18:56
    to do is fourth gear here so as you can
  • 00:18:58
    see this is already pretty close this
  • 00:19:00
    one needs to come up this one needs to
  • 00:19:02
    come down
  • 00:19:03
    all right so what we'll do here is
  • 00:19:05
    remember we have two ratios here so we
  • 00:19:09
    need to see what we want to use here so
  • 00:19:11
    this one needs to come up a little bit
  • 00:19:13
    so let's try a six five
  • 00:19:17
    there's a one to one perfect we're done
  • 00:19:20
    all right that is right where we want to
  • 00:19:22
    be excellent that is beautiful all right
  • 00:19:25
    so what we're going to do here is this
  • 00:19:26
    one needs to come down okay so to come
  • 00:19:29
    down on this one as you can see we used
  • 00:19:30
    a five nine here so there's one one
  • 00:19:32
    let's try the five nine
  • 00:19:34
    see what it does that is too low okay so
  • 00:19:37
    let's come over here and let's try the
  • 00:19:40
    six five
  • 00:19:43
    all right that's still too low so let's
  • 00:19:45
    try the three too
  • 00:19:48
    beautiful all right so we are now done
  • 00:19:51
    with our transmission you'll see how
  • 00:19:52
    quick and easy that is understanding
  • 00:19:54
    that the ones pointing away from the
  • 00:19:56
    engine are lowering your gear ratio now
  • 00:19:59
    I know these terms are going to be a
  • 00:20:00
    little bit confusing a low gear ratio
  • 00:20:03
    means that you have a lot of torque
  • 00:20:04
    Little Speed a high gear ratio means you
  • 00:20:07
    have little torque a lot of speed and so
  • 00:20:11
    the numbers when I say a low gear ratio
  • 00:20:13
    the bigger the number the lower the
  • 00:20:14
    ratio the smaller the number the higher
  • 00:20:17
    the ratio all right so that's uh that's
  • 00:20:21
    important to know but look at how close
  • 00:20:23
    we got to these ratios using the numbers
  • 00:20:25
    we have in game the chart makes it very
  • 00:20:27
    easy and quick to do these two pointing
  • 00:20:29
    away from the engine they will lower
  • 00:20:32
    your gear ratio giving you a bigger
  • 00:20:34
    number these two pointing toward the
  • 00:20:37
    engine they will uh put you in a higher
  • 00:20:40
    gear ratio making your number smaller
  • 00:20:42
    all right and remember each one of these
  • 00:20:44
    can only have two numbers so let's do a
  • 00:20:46
    quick check make sure we're only using
  • 00:20:48
    two numbers we are three one in gearbox
  • 00:20:50
    one and one one these are two numbers in
  • 00:20:52
    gearbox one three one one
  • 00:20:55
    three two six five
  • 00:20:58
    this one here because this one is our
  • 00:21:01
    reverse we have to put five six all the
  • 00:21:03
    way through
  • 00:21:04
    this one here it's pointing towards this
  • 00:21:07
    one is one one and five nine as you can
  • 00:21:09
    see we only use one one and five nine
  • 00:21:11
    beautiful so we didn't break any rules
  • 00:21:12
    we didn't go over the two ratios we're
  • 00:21:14
    allowed with our boxes in game and as
  • 00:21:16
    you can see we're very close to each of
  • 00:21:18
    the ratios these are very very close
  • 00:21:22
    all right as you can see all of these
  • 00:21:23
    ratios are very close this one's within
  • 00:21:26
    .06 of the real ratio this one is within
  • 00:21:29
    .05 of the real ratio
  • 00:21:32
    0.03 and this one is point zero five of
  • 00:21:37
    the real ratio and this one is about
  • 00:21:41
    0.009 of the real ratio so these are all
  • 00:21:43
    very close and we're good to go here all
  • 00:21:45
    right so next thing we want to do we
  • 00:21:47
    want to get this set up and we're going
  • 00:21:49
    to start building the microcontroller
  • 00:21:50
    for the transmission and so to do this
  • 00:21:52
    what we want to do here is we want to
  • 00:21:54
    look and we want to see which number is
  • 00:21:56
    most frequent now this one here all of
  • 00:21:57
    this we don't have to look at this
  • 00:21:59
    because remember we're not going up to
  • 00:22:01
    six gear
  • 00:22:02
    so if we go ahead and we look at this
  • 00:22:04
    here we could if we wanted we don't have
  • 00:22:06
    to if we go ahead and we look here we're
  • 00:22:08
    going to look what is our most frequent
  • 00:22:10
    number so again we're ignoring this here
  • 00:22:13
    so we look we have three one comes up
  • 00:22:15
    twice and one one comes up three times
  • 00:22:18
    so 1 1 is going to be our off position
  • 00:22:20
    three one is going to be our on position
  • 00:22:23
    so what we're going to do is we're going
  • 00:22:25
    to next put up here is when we want to
  • 00:22:27
    trigger these so this is just where I
  • 00:22:29
    usually put it is up here so I want to
  • 00:22:32
    trigger this one here and this one here
  • 00:22:35
    so I want to trigger uh gearbox one on
  • 00:22:38
    first and second gear so I want to
  • 00:22:39
    trigger it on one comma two so those are
  • 00:22:42
    the two times that I want to trigger
  • 00:22:44
    this now we'll end up doing it on
  • 00:22:46
    reverse as well but we'll talk about
  • 00:22:47
    that in a second
  • 00:22:49
    all right so here when do I want to
  • 00:22:51
    trigger gearbox two so let's see which
  • 00:22:53
    one's most frequent
  • 00:22:54
    3 2 happens every time except here so
  • 00:22:58
    the only time I want to trigger this
  • 00:23:00
    gearbox that I want to switch it over to
  • 00:23:02
    the other ratio is on fourth gear so up
  • 00:23:04
    here we're going to put fourth
  • 00:23:06
    next we're going to go here now this one
  • 00:23:09
    only will trigger for reverse I don't
  • 00:23:12
    know why this one formatted weird it did
  • 00:23:14
    all right so this one only triggers for
  • 00:23:16
    reverse now when does this one trigger
  • 00:23:18
    we count this we have one one comes up
  • 00:23:20
    three times so that's gonna be our
  • 00:23:22
    default position and five nine is going
  • 00:23:24
    to be your on position so that's in
  • 00:23:26
    second gear and that's in fifth gear so
  • 00:23:28
    we're going to put two comma five two
  • 00:23:30
    comma five all right so good so we know
  • 00:23:33
    that in order to get into first gear we
  • 00:23:36
    need to we need to trigger
  • 00:23:38
    um this gearbox on first gear
  • 00:23:41
    so this gearbox gets triggered on one
  • 00:23:43
    and two this one gets triggered on
  • 00:23:44
    fourth gear this one gets triggered on
  • 00:23:46
    reverse this one two five so let's go
  • 00:23:48
    ahead and let's make a microcontroller
  • 00:23:49
    for a transmission all right so I have a
  • 00:23:51
    blank microcontroller here and I'm gonna
  • 00:23:53
    go ahead and we'll click on it all right
  • 00:23:54
    so we're gonna go ahead and name this so
  • 00:23:56
    this is my five speed tutorial
  • 00:23:57
    transmission all right and so this one's
  • 00:23:59
    good for a small car we can put that too
  • 00:24:01
    small car okay uh you know like I showed
  • 00:24:05
    you the Ford Fiesta is not that much
  • 00:24:06
    different than the F-150 the difference
  • 00:24:08
    being the F-150 is much bigger more
  • 00:24:10
    powerful engine so even it though the
  • 00:24:12
    gear ratios are very similar the engine
  • 00:24:15
    is more powerful and so it can move that
  • 00:24:17
    heavier truck even though it is still a
  • 00:24:20
    small transmission the next thing we
  • 00:24:22
    want to do is we want to go to the logic
  • 00:24:23
    here and we'll start adding some notes
  • 00:24:25
    so what I'm going to do is we're going
  • 00:24:27
    to make a manual transmission you can
  • 00:24:28
    easily make this automatic later but I
  • 00:24:30
    prefer manuals we're going to work with
  • 00:24:31
    start with a manual I recommend starting
  • 00:24:34
    learning how to use a manual
  • 00:24:35
    transmission the reason is this if you
  • 00:24:37
    understand a manual transmission you
  • 00:24:39
    understand why you're shifting gears
  • 00:24:41
    when you're shifting gears then it makes
  • 00:24:43
    it easy for you to Tran to make your
  • 00:24:45
    microcontroller for an automatic because
  • 00:24:47
    you understand why you're shifting gears
  • 00:24:49
    okay so our input here is going to be
  • 00:24:52
    from our seat
  • 00:24:53
    and then what we're going to do is we're
  • 00:24:55
    going to start adding some nodes here so
  • 00:24:56
    we have in this case four gearboxes so
  • 00:24:59
    we're going to go ahead and make the
  • 00:25:00
    microcontrol a little bit bigger and
  • 00:25:02
    we'll add four gearboxes so this will be
  • 00:25:04
    G1 for gear one this will be G2 for gear
  • 00:25:08
    2. this will be G3 for gear 3. make
  • 00:25:10
    these outputs so they remember they're
  • 00:25:12
    going to flip the gearboxes so this is G
  • 00:25:15
    three and what I'm going to do is I'm
  • 00:25:17
    just going to go like this reverse so
  • 00:25:19
    this is my reverse gear and this is
  • 00:25:21
    going to be gearbox four so we'll go uh
  • 00:25:24
    output
  • 00:25:25
    G4 we'll end up making this bigger later
  • 00:25:28
    but uh this is going to be the
  • 00:25:29
    introduction to show you how to make
  • 00:25:31
    this transmission microcontroller and
  • 00:25:33
    then later we'll go through some other
  • 00:25:34
    stuff to work on cars but let's go ahead
  • 00:25:37
    and let's go into the microcontroller so
  • 00:25:39
    the next thing I'm going to do is I'm
  • 00:25:40
    going to organize these and this will be
  • 00:25:43
    g123 and G4 okay good so there are gears
  • 00:25:47
    now next thing we want to do let's go
  • 00:25:48
    ahead and put the seats we'll update
  • 00:25:50
    the microcontroller all right I'm gonna
  • 00:25:53
    go ahead and just uh we'll build a quick
  • 00:25:54
    base for this so this can sit and we'll
  • 00:25:56
    put a seat so let's go to up down and
  • 00:25:58
    we're going to do this gear shift
  • 00:26:01
    okay and we're gonna go reset 100 now
  • 00:26:04
    what this does is I'll show you with a
  • 00:26:07
    Dial Dial is a good way to test things
  • 00:26:09
    when you make it reset 100 percent
  • 00:26:12
    I'll show you the default Behavior first
  • 00:26:15
    so if we go here and up down before it
  • 00:26:16
    changes it was at 10 so is that reset 10
  • 00:26:19
    all right let's go ahead and plug the up
  • 00:26:21
    down into
  • 00:26:23
    the dial which I forgot to place
  • 00:26:27
    there we go let's plug this up down into
  • 00:26:29
    the dial and spawn it and let's look at
  • 00:26:31
    what this does I'm pressing the up Arrow
  • 00:26:34
    all right as you can see it slowly goes
  • 00:26:36
    up to one all right now I'm going to let
  • 00:26:39
    go and it will go back to zero now I'm
  • 00:26:41
    going to press the down arrow and it's
  • 00:26:43
    going to slowly go down to negative one
  • 00:26:46
    so the range is negative one to one
  • 00:26:48
    middle position being zero okay let's
  • 00:26:51
    quickly switch this over to what we want
  • 00:26:52
    which is we want reset 100 all right so
  • 00:26:56
    if we go in here and we press the up
  • 00:26:58
    Arrow
  • 00:26:58
    instantly it goes to one let go goes to
  • 00:27:01
    zero instantly goes to negative one so
  • 00:27:04
    what it does is it turns the up uh
  • 00:27:07
    button into a switch
  • 00:27:09
    and it turns the down arrow into a
  • 00:27:11
    switch and when we let go of it it goes
  • 00:27:14
    back to zero and this is how we're going
  • 00:27:15
    to make our gear switches all right so
  • 00:27:17
    let's go ahead and we'll go in here and
  • 00:27:19
    we'll start building this micro curl so
  • 00:27:21
    we're gonna start with our seat
  • 00:27:22
    and we're going to do here is going to
  • 00:27:24
    read a number
  • 00:27:25
    and this number is going to be
  • 00:27:27
    4. all right so if you ever have doubt
  • 00:27:31
    of what the numbers are come out here go
  • 00:27:32
    to composite
  • 00:27:34
    look at the seat as you can see it will
  • 00:27:36
    tell you what it is so it is uh 80 is
  • 00:27:39
    one WS is two three is Left Right 4 is
  • 00:27:42
    up down so that's where I got that from
  • 00:27:44
    we'll plug this into the microcontroller
  • 00:27:46
    and we'll go back in the microcontroller
  • 00:27:48
    all right so that's four so that's where
  • 00:27:50
    I get four from all right next thing I'm
  • 00:27:52
    going to do now remember one is going to
  • 00:27:54
    be the up Arrow so up arrow is going to
  • 00:27:57
    be to up shift into a higher gear down
  • 00:27:59
    is going to be to downshift into a lower
  • 00:28:01
    gear we're going to make essentially a
  • 00:28:03
    sequential gear shift now some people
  • 00:28:04
    say oh you know you can't shift to
  • 00:28:07
    whatever gear you want there are very
  • 00:28:08
    few opportunities especially in trucks
  • 00:28:10
    where you're going to be able to skip
  • 00:28:11
    gears you're generally going to go
  • 00:28:13
    sequentially to your gears uh you're not
  • 00:28:16
    supposed to be freewheeling either a lot
  • 00:28:18
    of people will Freewheel they'll they'll
  • 00:28:20
    stop their car at a stoplight in fourth
  • 00:28:22
    gear you're not supposed to do that
  • 00:28:24
    you're supposed to always shift down
  • 00:28:25
    from fourth to third to third to second
  • 00:28:28
    second to first you're not supposed to
  • 00:28:30
    Freewheel that is not proper procedure
  • 00:28:32
    and if you do it in a truck you're gonna
  • 00:28:34
    crash your truck you have to shift the
  • 00:28:35
    truck down so let's go ahead and next
  • 00:28:38
    thing we want to do here is we're going
  • 00:28:39
    to do a threshold gate here so we do
  • 00:28:42
    threshold so when we press the up Arrow
  • 00:28:45
    it's going to go one so we do one one
  • 00:28:47
    and that's going to trigger this when we
  • 00:28:48
    want to count up our gear next we're
  • 00:28:51
    going to do control CV and we're going
  • 00:28:53
    to make this negative one
  • 00:28:55
    negative 1. so when we press the down
  • 00:28:57
    arrow it's going to read negative one I
  • 00:28:59
    showed you on the dial that's what it
  • 00:29:00
    does okay good so that part is done next
  • 00:29:03
    thing we do is an up down counter so the
  • 00:29:05
    increment is going to be one so we're
  • 00:29:07
    going to count out how many gears we
  • 00:29:09
    have and each time we click the up it's
  • 00:29:12
    going to count up one gear every time we
  • 00:29:14
    click down it's going to count down one
  • 00:29:16
    gear pretty simple we're going to leave
  • 00:29:18
    the reset value at zero that's going to
  • 00:29:19
    be our neutral
  • 00:29:21
    next we're going to enable the clamp and
  • 00:29:24
    we're going to put our minimum value in
  • 00:29:26
    now it's not going to be zero it's going
  • 00:29:27
    to be negative one and that's going to
  • 00:29:28
    be for reverse reverse is going to be
  • 00:29:31
    negative one so you're going to go
  • 00:29:32
    you're going to start in neutral
  • 00:29:34
    if you want to go in reverse you're
  • 00:29:35
    going to click the down arrow it's going
  • 00:29:37
    to put it in negative one which is going
  • 00:29:39
    to make you go in reverse you click it
  • 00:29:41
    up once it goes to neutral
  • 00:29:42
    click it up again you're in first second
  • 00:29:44
    third fourth and in this case fifth
  • 00:29:47
    all right so that's going to go like
  • 00:29:49
    that so what we want to do here is next
  • 00:29:51
    thing we need to do is add a pulse now
  • 00:29:54
    if you press the up arrow and you held
  • 00:29:56
    the up Arrow it would go one two three
  • 00:29:57
    four five and you would be in fifth gear
  • 00:29:59
    you don't want that you want to click on
  • 00:30:01
    the up arrow and you want to be able to
  • 00:30:03
    hold that up arrow and it will not shift
  • 00:30:05
    till the next gear until you let go and
  • 00:30:07
    press it again so that's what a pulse
  • 00:30:09
    does so let's go ahead and we'll put a
  • 00:30:10
    pulse in there pulse
  • 00:30:12
    all right and so we'll go ahead and do
  • 00:30:15
    is we'll plug our 1 into the pulse we'll
  • 00:30:17
    copy this pulse Ctrl c v and we'll put
  • 00:30:20
    our negative 1 into the pulse the one
  • 00:30:24
    goes to the up the negative one goes to
  • 00:30:27
    the down this is our simple counter so
  • 00:30:30
    reverse is negative one in this
  • 00:30:32
    transmission we have five gears we just
  • 00:30:34
    made the five gears so there's five all
  • 00:30:37
    right and that's the start of that so
  • 00:30:40
    that's going to count our gears as we go
  • 00:30:41
    up and down it's going to count that
  • 00:30:43
    through so let's play with this really
  • 00:30:45
    quick let's go up on this we'll do logic
  • 00:30:47
    add a node we'll go number output okay
  • 00:30:52
    and this is our gear indicator all right
  • 00:30:55
    so this will show us what gear we're in
  • 00:30:57
    now you know some people need this some
  • 00:30:59
    people like this this is how you would
  • 00:31:00
    do it I don't really like it myself but
  • 00:31:02
    this is up to you guys so you put your
  • 00:31:04
    gear indicator there update that
  • 00:31:07
    and we'll go ahead and we'll plug our
  • 00:31:09
    gear indicator in so here's our gear
  • 00:31:10
    indicator we're going to hook that to
  • 00:31:11
    the dial now instead and let's go ahead
  • 00:31:14
    and see if this is working
  • 00:31:15
    so we're sitting in our seat we start at
  • 00:31:17
    zero I press the up arrow and I hold it
  • 00:31:20
    all right so notice if I didn't put the
  • 00:31:22
    pulse in I'm presently holding the up
  • 00:31:24
    Arrow it would go one two three four
  • 00:31:26
    five and it would count all the way
  • 00:31:27
    through the gears we don't want that I'm
  • 00:31:29
    going to let go of the up Arrow it's
  • 00:31:30
    going to stay at one I'm gonna press it
  • 00:31:32
    again and I'm gonna hold it
  • 00:31:34
    two
  • 00:31:35
    I'm gonna let go I'm gonna tap it three
  • 00:31:38
    tap it again four five all right we're
  • 00:31:41
    all the way up now I'm gonna go four
  • 00:31:43
    three two one zero and I'm gonna press
  • 00:31:46
    it one more time and we're in Reverse so
  • 00:31:48
    this is a simple counter that will allow
  • 00:31:51
    you to be able to uh count through your
  • 00:31:54
    gears using the up down arrows all right
  • 00:31:57
    so let's go ahead and we'll go back in
  • 00:31:58
    So as you can see that works so I highly
  • 00:32:00
    recommend use a dial this will help you
  • 00:32:02
    visualize how things are working in game
  • 00:32:04
    all right good so the gear indicators in
  • 00:32:06
    there all right so the next thing here
  • 00:32:07
    we're gonna do is we're going to set up
  • 00:32:08
    some thresholds and we're going to set
  • 00:32:09
    these thresholds up for the different
  • 00:32:12
    speeds we put here on our gearbox so
  • 00:32:14
    first one we're gonna do here is reverse
  • 00:32:16
    so that's negative one negative one next
  • 00:32:19
    one is going to be neutral now we need
  • 00:32:21
    to know neutral and the reason is this
  • 00:32:24
    again A lot of people are never going to
  • 00:32:25
    drive a manual car which I think is a
  • 00:32:27
    shame but when you when you stop at a
  • 00:32:30
    stoplight in a manual car you need to
  • 00:32:32
    push the clutch pedal in which will make
  • 00:32:34
    your clutch in game zero and the reason
  • 00:32:37
    is simple your engine needs to turn in
  • 00:32:39
    order to maintain compression and keep
  • 00:32:40
    running in game this is simulated by
  • 00:32:43
    needing to be above 2 RPS if you stop at
  • 00:32:46
    a stop lighting game
  • 00:32:48
    and the brakes are on on the wheels and
  • 00:32:50
    you do not push the clutch in and turn
  • 00:32:53
    it to zero what's going to happen is the
  • 00:32:55
    brakes from the tires are going to stop
  • 00:32:57
    the engine and the engine is going to
  • 00:32:59
    stall
  • 00:33:00
    this happens in real life you'll see
  • 00:33:01
    people stall uh coming off of stop
  • 00:33:04
    lights or stall stopping that means they
  • 00:33:05
    forgot to put the clutch in or they
  • 00:33:07
    didn't take the you know put the clutch
  • 00:33:08
    in enough and so we need to tell the
  • 00:33:11
    clutch to go to zero when we're in
  • 00:33:13
    neutral or when we're stopped the auto
  • 00:33:15
    clutch will do that for us but let's go
  • 00:33:18
    ahead and finish the rest of these so
  • 00:33:19
    we'll do control CV make this one one
  • 00:33:23
    okay and we have a five speed so it's
  • 00:33:25
    going to be five forward gear so we need
  • 00:33:27
    four more of these paste paste
  • 00:33:30
    paste and paste and we'll start
  • 00:33:32
    numbering these
  • 00:33:33
    this will be two two
  • 00:33:37
    three three
  • 00:33:39
    four four and this will be five five so
  • 00:33:43
    as we go up our in our up down counter
  • 00:33:46
    here or we go down on our down counter
  • 00:33:48
    this will tell us what gears we need to
  • 00:33:51
    shift in order to get these correct
  • 00:33:53
    ratios all right so those are all our
  • 00:33:55
    thresholds negative one for reverse zero
  • 00:33:58
    for neutral one through five for our
  • 00:33:59
    forward gears okay good next I'm gonna
  • 00:34:01
    do is Boolean here now you can use ORS I
  • 00:34:03
    recommend just doing the booleans and
  • 00:34:04
    the reason is this often many of us will
  • 00:34:07
    take our microcontrollers and we'll put
  • 00:34:08
    them on a different vehicle and we'll
  • 00:34:09
    just tweak them a little so instead of
  • 00:34:11
    completely redoing them we'll tweak them
  • 00:34:13
    a little bit and so if you want to turn
  • 00:34:15
    this into an eight speed or an 18 speed
  • 00:34:17
    transmission you can start with this
  • 00:34:19
    already partly done and by using these
  • 00:34:21
    booleans it allows you to have more
  • 00:34:22
    spaces and or only has two nodes this
  • 00:34:25
    Boolean has four you have another
  • 00:34:27
    Boolean over here as you can see which
  • 00:34:28
    has many more so we're going to use
  • 00:34:30
    these booleans we'll have a bunch of
  • 00:34:32
    empty nodes but this will allow us to
  • 00:34:33
    then configure our gearboxes differently
  • 00:34:36
    for different Vehicles so we're going to
  • 00:34:38
    go in here and we'll go to operators as
  • 00:34:39
    you can we have an or and we have x y z
  • 00:34:43
    and W so we'll do here is we'll do X or
  • 00:34:46
    Y or Z or W and so if any of these are
  • 00:34:51
    selected it will go out with this
  • 00:34:53
    because it's an or all right good so
  • 00:34:55
    that is our first Boolean all right now
  • 00:34:57
    what we want to do is we want to go back
  • 00:34:58
    and we want to look at our chart all
  • 00:35:00
    right so if we look at our chart we
  • 00:35:02
    already did this right we said that 1 1
  • 00:35:04
    is is the most popular option it's done
  • 00:35:06
    three times and so that's going to be
  • 00:35:08
    our off position so what we're doing is
  • 00:35:10
    we're trying to figure out when do we
  • 00:35:12
    turn these on so we already did this 3 1
  • 00:35:15
    is turned on on first and second so
  • 00:35:18
    first gear and second gear we turn on
  • 00:35:20
    gearbox one all right so here's gearbox
  • 00:35:22
    one we'll plug the Boolean in gearbox
  • 00:35:24
    one and as we saw with the chart first
  • 00:35:29
    and second and the reason I'll tell you
  • 00:35:31
    in a second why I'm leaving this open it
  • 00:35:33
    that's for the reverse we'll do reverse
  • 00:35:34
    later so we're going to leave that one
  • 00:35:36
    open okay
  • 00:35:37
    so that's gearbox one is done so we'll
  • 00:35:40
    copy this Boolean control CV now we need
  • 00:35:43
    to do gearbox two so let's go back to
  • 00:35:45
    chart all right so look in here the only
  • 00:35:47
    time we trigger gearbox 2 is we trigger
  • 00:35:50
    it on four so right down here fourth
  • 00:35:52
    gear so three two is going to be our off
  • 00:35:54
    position six five is our on position we
  • 00:35:57
    trigger that on uh gear four so we're
  • 00:36:00
    gonna come over here to gear four and
  • 00:36:02
    I'm gonna put that on the Boolean and
  • 00:36:03
    that goes to gear two now gear three
  • 00:36:06
    remember we only trigger Gear 3 on
  • 00:36:08
    reverse so gear three is gonna be
  • 00:36:10
    triggered on reverse pretty simple there
  • 00:36:14
    next thing we need to do is gearbox four
  • 00:36:16
    so we'll copy this boy and control CV
  • 00:36:18
    and again the reason I said these are
  • 00:36:20
    empty is if I need to switch this
  • 00:36:22
    gearbox up if I want to change my ratios
  • 00:36:24
    if I want to make it a truck if I want
  • 00:36:25
    to add more gears this gives me
  • 00:36:28
    flexibility I don't have to delete all
  • 00:36:30
    this and redo it I can just re-plug
  • 00:36:32
    stuff in all right so let's go look back
  • 00:36:34
    at the chart gearbox 4 here is triggered
  • 00:36:37
    on two and five so two and five are
  • 00:36:41
    triggered there so we'll go over here to
  • 00:36:43
    two
  • 00:36:44
    and five
  • 00:36:46
    and that is going into gearbox 4. so our
  • 00:36:49
    transmission is almost done now remember
  • 00:36:51
    I said I left the space for reverse we
  • 00:36:53
    need to figure out reverse now remember
  • 00:36:55
    object at rest wants to stay at rest we
  • 00:36:57
    need a lot of torque a lot of power in
  • 00:36:59
    order to be able to get our vehicle
  • 00:37:01
    moving but once it's moving we require
  • 00:37:03
    less power so we need to make sure that
  • 00:37:06
    our reverse gear is pretty close to our
  • 00:37:09
    first gear so let's go ahead and we want
  • 00:37:11
    to figure out how to set up our reverse
  • 00:37:13
    gear so it's going to be a little bit
  • 00:37:15
    different because remember this is going
  • 00:37:17
    to be a one to one so reverse is going
  • 00:37:19
    to be even lower than first which
  • 00:37:21
    actually you'll often find and that Ford
  • 00:37:22
    Fiesta that I was showing you guys
  • 00:37:24
    reverse is a 4.07 to one first gear is a
  • 00:37:28
    3.84 to 1. so reverse is even lower IRL
  • 00:37:31
    as well so what we need is we need the
  • 00:37:34
    same gears here as in first gear as we
  • 00:37:37
    have in Reverse so what we need to do is
  • 00:37:40
    it's pretty simple here the only thing
  • 00:37:41
    that's changing is this is our default
  • 00:37:43
    gear this is our default gear this is
  • 00:37:45
    our default gear the only one that
  • 00:37:46
    changes is first so all we need to do is
  • 00:37:49
    hook up the reverse to this first
  • 00:37:52
    gearbox here to make it a three one
  • 00:37:55
    that's it all right so here we go and
  • 00:37:57
    all we're going to do is take the
  • 00:37:58
    negative one and bingo plug it in right
  • 00:38:00
    there and that is it so as you can see
  • 00:38:01
    we are all plugged in
  • 00:38:03
    so reverse is going to be even lower
  • 00:38:06
    than first by a little bit like it is in
  • 00:38:09
    real life so reverse is our lowest gear
  • 00:38:12
    now you notice this one's not connected
  • 00:38:14
    that's fine this is going to go out to
  • 00:38:16
    our engine microcontroller this will
  • 00:38:18
    tell our clutch to go to zero when we
  • 00:38:21
    are in neutral that way you can rev a
  • 00:38:24
    neutral and it's not going to move the
  • 00:38:26
    wheels like it should
  • 00:38:28
    you know some people say hey you didn't
  • 00:38:30
    connect this one up one of these is
  • 00:38:33
    going to be the default position
  • 00:38:34
    remember we're only switching gearboxes
  • 00:38:36
    when we need to get the gear ratios
  • 00:38:38
    right there's always going to be one
  • 00:38:40
    gear ratio that is the default positions
  • 00:38:43
    we don't have to turn the gearboxes on
  • 00:38:44
    and off now you could delete this I
  • 00:38:46
    never do and the reason is this if you
  • 00:38:48
    need to go back and tweak your gears
  • 00:38:50
    let's say that your car is heavier than
  • 00:38:52
    you thought it was going to be and you
  • 00:38:53
    need to go even lower on the gears this
  • 00:38:55
    one might change second might be
  • 00:38:58
    defaults third might uh now have to be
  • 00:39:01
    connected so I leave it one of these is
  • 00:39:03
    always going to be doing nothing because
  • 00:39:05
    that's the default gear so let's go
  • 00:39:07
    ahead and look at third gear here so
  • 00:39:08
    here's third as again the third is
  • 00:39:10
    default position default position
  • 00:39:12
    default position default position we
  • 00:39:14
    don't need to switch anything so third
  • 00:39:15
    gear should be disconnected and it is so
  • 00:39:18
    we're all set all right so the next
  • 00:39:20
    thing we do is we're going to hook them
  • 00:39:21
    all up so G1 G2 G3 and G4 all right so
  • 00:39:26
    now what we need to do is we need to put
  • 00:39:27
    in the approp appropriate numbers here
  • 00:39:29
    so what we want to do is we want to look
  • 00:39:31
    at that chart all right so looking here
  • 00:39:33
    as you can see we only use three one
  • 00:39:36
    twice we use one one three times so it's
  • 00:39:38
    going to be 1 1 3 1 for gearbox one so
  • 00:39:42
    it's gonna be one one
  • 00:39:44
    three one gearbox two the default
  • 00:39:46
    position is going to be three two six
  • 00:39:48
    five three two
  • 00:39:50
    six five now this one is going to be six
  • 00:39:53
    five one negative one for reverse so six
  • 00:39:56
    five one negative one for reverse and
  • 00:39:58
    the last gearbox here as you can see
  • 00:40:00
    it's gonna be one one nine five so one
  • 00:40:02
    one nine five so those are all plugged
  • 00:40:05
    in all right so the next thing we need
  • 00:40:06
    to do is we need to hook this up to our
  • 00:40:08
    engine controller and this will tell our
  • 00:40:10
    engine when we're in neutral so what we
  • 00:40:13
    want to do here is we want to go to a uh
  • 00:40:16
    right on off pretty simple there and we
  • 00:40:19
    want to plug this into the right on off
  • 00:40:21
    when we're neutral and this will be sent
  • 00:40:23
    out to our engine so we'll add a node be
  • 00:40:25
    a composite output and I'll go here and
  • 00:40:28
    this one will go out to engine so we'll
  • 00:40:30
    go to logic and this will go to engine
  • 00:40:32
    micro and that'll be an output and so
  • 00:40:36
    this will get plugged up there and this
  • 00:40:37
    will tell our clutch when we are in
  • 00:40:40
    neutral right so the next thing we want
  • 00:40:42
    to do here is we want to integrate in an
  • 00:40:45
    auto clutch system here now this can
  • 00:40:47
    either go in the engine microcontroller
  • 00:40:49
    or this can go on the transmission mic
  • 00:40:50
    controller so this is my Pat car chassis
  • 00:40:54
    here so if we look here it is the pat
  • 00:40:57
    chassis that is on the workshop so you
  • 00:40:59
    can go ahead and check that out this has
  • 00:41:01
    engine and transmission all connected
  • 00:41:03
    together here as you see there's the
  • 00:41:05
    Tran this is the engine and here is the
  • 00:41:07
    transmission and so what we want to do
  • 00:41:09
    here is let's go ahead and let's look at
  • 00:41:12
    the engine microcontroller here again
  • 00:41:13
    you could go on there and you could take
  • 00:41:15
    this into micro controller if you would
  • 00:41:17
    want I have a bunch of microcontroller
  • 00:41:18
    tutorials and what we want to do is we
  • 00:41:20
    want to look at the auto clutch so if
  • 00:41:23
    you follow some of those tutorials you
  • 00:41:24
    can see how to do an auto clutch alright
  • 00:41:26
    so let's quickly go through the auto
  • 00:41:27
    clutch here and so if we look at our
  • 00:41:29
    clutch we have an up down counter now
  • 00:41:31
    these numbers change you can't just take
  • 00:41:33
    any of these components and put them on
  • 00:41:36
    any vehicle depending on the size of the
  • 00:41:38
    vehicle how you're revving the engine if
  • 00:41:39
    the engine is overpowered or
  • 00:41:40
    underpowered you're going to need
  • 00:41:42
    different numbers so you have your
  • 00:41:44
    increment here your increment is how
  • 00:41:46
    slowly or quickly the clutch goes in or
  • 00:41:48
    out this Auto feathers Feathering is
  • 00:41:51
    when you put the clutch in and out to
  • 00:41:53
    allow some of the engine power to go
  • 00:41:54
    through and reserve some to make sure
  • 00:41:56
    that your main above two RPS so we have
  • 00:41:59
    our increment here for this particular
  • 00:42:01
    car I have .005 every different vehicle
  • 00:42:04
    is going to be different if you notice
  • 00:42:06
    that the clutch is going into quickly
  • 00:42:09
    installing your vehicle you need a
  • 00:42:10
    smaller increment if you notice the
  • 00:42:12
    clutch is going into slowly and you have
  • 00:42:15
    ample power
  • 00:42:17
    then you're going to need a bigger
  • 00:42:19
    increment so this will have to be
  • 00:42:21
    adjusted your reset value is going to be
  • 00:42:24
    zero zero is your clutch all the way in
  • 00:42:26
    as if you put your foot on the clutch
  • 00:42:28
    pedal that's going to detach your engine
  • 00:42:30
    from your transmission which is going to
  • 00:42:32
    allow you to stop and not stall uh clamp
  • 00:42:35
    is enabled zero to one all right so what
  • 00:42:38
    triggers the the up on this so there's
  • 00:42:40
    two conditions when you want the clutch
  • 00:42:42
    to go in one you want the RPS of your
  • 00:42:45
    engine to have enough torque enough
  • 00:42:48
    power to be able to get you moving so we
  • 00:42:50
    have here is we have a greater than so
  • 00:42:52
    if your RPS is greater than and then you
  • 00:42:56
    want to set a property number here this
  • 00:42:58
    will change I make all my
  • 00:43:00
    microcontrollers like this configurable
  • 00:43:02
    again depending on the application you
  • 00:43:05
    have for example if you have a big truck
  • 00:43:07
    you're going to need a lot of torque to
  • 00:43:09
    get a lot of weight moving this is how
  • 00:43:10
    it works in real life for example I
  • 00:43:13
    drive tractor trailer if I have an empty
  • 00:43:15
    trailer I don't need a lot of power
  • 00:43:17
    because because the trailer itself is
  • 00:43:18
    very light so I might be able to rev up
  • 00:43:21
    to say 4 RPS and move no problem if I
  • 00:43:24
    have a very heavy trailer I might need
  • 00:43:27
    to rev up to 8 RPS so you're going to
  • 00:43:29
    want to set that up here accordingly so
  • 00:43:32
    if you start stalling all the time you
  • 00:43:34
    want to increase this number if you're
  • 00:43:36
    uh if you're not stalling you can
  • 00:43:38
    decrease that number
  • 00:43:40
    so our RPS if it is greater than 4 and
  • 00:43:45
    so that is our first condition are we
  • 00:43:47
    making enough torque is our RPS greater
  • 00:43:49
    than four
  • 00:43:50
    and
  • 00:43:51
    if our in this case we're using the Ws
  • 00:43:55
    key WS is 2 from our seat if our seat is
  • 00:44:00
    greater than
  • 00:44:02
    in this case zero so that means if we're
  • 00:44:05
    asking to go forward so if we're
  • 00:44:06
    pressing the W key I.E if the W key is
  • 00:44:11
    pressed that would be greater than zero
  • 00:44:13
    and if the RPS is greater than 4 that's
  • 00:44:18
    going to increase our clutch pressure
  • 00:44:20
    now when do we want to decrease that
  • 00:44:22
    clutch pressure when it is not so when
  • 00:44:26
    for example when our RPS goes below 4
  • 00:44:29
    and we're getting ready to stall we want
  • 00:44:31
    to start to reduce the clutch that will
  • 00:44:34
    prevent us from stalling that's called
  • 00:44:35
    Feathering the clutch you're going to
  • 00:44:37
    take some of the some of the power away
  • 00:44:39
    from the wheels and you're going to give
  • 00:44:40
    it back to the engine so we just at the
  • 00:44:43
    end of the end here we put a knot
  • 00:44:46
    and then we're going to go in we're
  • 00:44:48
    going to hook that up to the down
  • 00:44:49
    counter now the part that concerns us
  • 00:44:52
    right now is the reset so at the bottom
  • 00:44:55
    here is you'll notice there's a reset
  • 00:44:56
    and we reset to zero zero is putting the
  • 00:44:59
    clutch all the way in so there are a
  • 00:45:01
    couple conditions when we want the
  • 00:45:02
    clutch all the way in one
  • 00:45:05
    right
  • 00:45:10
    so the first condition when we want the
  • 00:45:12
    clutch all the way in when we want a
  • 00:45:14
    zero on the clutches when we're starting
  • 00:45:15
    we do not want the wheels connected to
  • 00:45:19
    the engine when we're starting the
  • 00:45:21
    engine so right here is our starter and
  • 00:45:23
    this is our first condition so when
  • 00:45:25
    we're starting we want to zero the
  • 00:45:27
    clutch all right the next condition is
  • 00:45:29
    when our RPS is less than a set value so
  • 00:45:33
    in this case I have it set to three when
  • 00:45:34
    we go below three RPS we no longer have
  • 00:45:37
    enough power to be able to run both the
  • 00:45:40
    engine and the wheels so when we go
  • 00:45:42
    below three RPS when we're going to
  • 00:45:44
    stall we want to also trigger the zero
  • 00:45:47
    the last one here is coming from the
  • 00:45:50
    transmission
  • 00:45:51
    when we are in neutral we want to
  • 00:45:54
    trigger that reset so this is how you
  • 00:45:57
    would integrate the transmission into
  • 00:46:00
    the engine microcontroller to make sure
  • 00:46:02
    that all that works so all you're really
  • 00:46:03
    going to do here is you're going to pass
  • 00:46:06
    through your zero and you're going to
  • 00:46:08
    send it to this clutch so let's go ahead
  • 00:46:11
    and take a look at the transmission
  • 00:46:13
    again all right so what we're going to
  • 00:46:14
    want to do here is we're going to go to
  • 00:46:16
    right on off and I'm going to want to
  • 00:46:18
    take the zero for our neutral we're
  • 00:46:20
    going to go out if you notice from that
  • 00:46:22
    microcontroller it was channel 25 so we
  • 00:46:25
    go channel 25 and then we would just add
  • 00:46:28
    a logic node here this logic node is
  • 00:46:31
    going to be
  • 00:46:33
    a composite output we can go to engine
  • 00:46:37
    and that's going to go to our engine
  • 00:46:39
    microcontroller we'll go ahead we'll
  • 00:46:41
    plug that in and so you would connect
  • 00:46:44
    this node to the engine microcontroller
  • 00:46:47
    and that would trigger your auto clutch
  • 00:46:50
    to go to the zero position so that when
  • 00:46:52
    we are in neutral our wheels will no
  • 00:46:55
    longer be connected to the engine so
  • 00:46:57
    that concludes the transmission tutorial
  • 00:47:00
    hopefully you guys found that helpful if
  • 00:47:02
    you have any questions please put it
  • 00:47:03
    down below in the comments thank you for
  • 00:47:05
    watching I'll see you in the next
  • 00:47:06
    stormworks Basics tutorial
  • 00:47:08
    [Music]
  • 00:47:13
    thank you
  • 00:47:16
    [Music]
Etiquetas
  • Stormworks
  • Transmissions
  • Gearboxes
  • Vehicle Design
  • Tutorial
  • Automotive
  • Engineering
  • Microcontroller
  • RPS
  • Torque