← Teacher guide

Two supplies, one ground

Students start a motor whose driver has its own battery but no shared ground (nothing happens), join the grounds, separate signal, power and ground in a worked example, run the motor from the Uno's 5V and watch it reset, and fix a robot with both faults.

Power and motors · Driving a motor · about 35 minutes · Open the student lesson

Classroom resources

Load these into Waypoints Prepare: choose Load URL and paste the copied address, or download the file and import it. In Prepare, the worksheet's Teacher edition shows the answers; the student copy hides them.

Students will be able to

Timing

Predict and Try 5 min · Worked example 8 min · Vary 5 min · Tinkercad 8 min · Practise and Make 9 min

Before class

Model: without a common ground the driver doesn't respond (in reality the behaviour is unpredictable); a motor on the Uno's 5V resets the Uno when it starts (a brown-out). Some driver boards join the grounds for you on the board; still teach the wire.

Running the lesson

  1. Predict: ask '5 V compared with what?'
  2. Vary: the reset is the classic symptom students will meet on their own robots.

The hard part (on purpose)

'Separate supplies' sounds like 'separate circuits'. Draw the two halves and the one ground wire between them.

When students get stuck

What you will seeA question to askThe fix
The motor never responds.Is the Uno's GND joined to the battery's −?Join the grounds.

Answers to the checks

  1. separate supplies: The Uno is on USB; the driver and motor are on a battery. Pin 9 goes to the driver's ENA, but the Uno's GND isn't joined to the driver. When pin 9 goes HIGH, the motor…
    It doesn't respond reliably. The driver measures pin 9 against its own ground, which has no fixed relation to the Uno's, so the signal means nothing to it.
  2. Start it: Start the motor. What happens?

    Nothing: the driver can't read pin 9 without a shared ground.
  3. Join them: Join the grounds.

    With one shared 0 V, pin 9's 5 V means HIGH to the driver too.
  4. Signal, power, ground: Which wires join the two halves of the circuit?
    The signal wires (pin to driver) and one ground wire
    Signals plus a common ground; the + sides stay separate.
  5. Find the mistake: Sam's motor never responds. Click the line where Sam's reasoning first goes wrong.
    line 3
    Line 3: separate supplies are fine, but the grounds must be joined so both sides agree on 0 V. Only the + sides stay apart.
  6. From 5V: This motor runs from the Uno's 5V. Start it.

    The motor's starting current dragged the Uno's 5V down, and the Uno reset: the code starts again from setup().
  7. Its own battery: Give the motor its own battery (grounds joined) and start it again.

    Separate power, shared ground: the motor runs and the Uno stays up.
  8. Which wires?: A robot's Uno runs on a 9 V battery and its motors on a 6 V pack. Which wires should be joined?
    The two batteries' − terminals (the grounds)
    Join the grounds only.
  9. Resets: A robot resets every time it starts to move. What is the most likely cause?
    The motors draw from the board's supply and pull it down
    Resets that happen when motors start are almost always a supply sagging.
  10. fix the robot: This robot resets and its driver can't read the Uno. Fix both, then start the motor.

    Its own supply for the motor, one shared ground.

Solutions

One possible solution for each task. Other correct programs are fine.

Vary: power from the Uno › From 5V

Open task: any program that does what the step asks.

Vary: power from the Uno › Its own battery

Open task: any program that does what the step asks.

fix the robot

Open task: any program that does what the step asks.

Stretch and support

Stretch: Some drivers take a separate logic supply (VCC1) and motor supply (VCC2). Which goes to which, on an L293D?

Support: A picture with signal wires in one colour, power in another, ground in black.

Exit ticket

Two supplies power a project. Which terminals do you join, and why?

The negative terminals (the grounds), so both sides measure signals from the same 0 V. Never the positives.

What each step is for

Where it leads

Next: Choosing a battery.

Sources