Projects

Project 5: Build an intrepid gantry robot that can lift a hefty payload #

Project 5 has 2 stages. In the first stage, you and your team build a robot that can drive along a rail while carrying a payload. In the second stage, you and your team modify the robot to deliver a payload under specific diabolical constraints. For the second stage you will need to add a weight sensor as well as a means of raising and lowering the payload while the robot travels.

Requirements for project 5 #

Stage 1 due date: Tuesday, December 8, 11:59 PM

Stage 2 due date: Friday, December 18, 4:00 PM

This is a relatively constrained project compared to the vast open field of P4. Your task is to build a robot that can drive back and forth along a rail while carrying a payload, controlled remotely by you.

  • Your robot should fit in a cube 50 cm on a side.
  • Your robot should be able to carry a hefty payload (max 1kg), as shown in the diagram below. In the second stage, your robot will need to be able to lift and lower the payload 1.2 m on its own.
  • (Your robot will never need to grasp the payload. You can use a simple hook that you attach to the payload by hand. Adding a remote gripper to this would be too complex.)
  • Your robot should be able to drive along the rail while carrying the payload. Specifically, it should not tip over or fall off the rail.
  • This is a tricky requirement: for stage 2, your robot will need to measure the mass of the payload it is carrying, using a load cell. For stage 1, you need only to include the load cell in your lifting mechanism; you don’t have to connect it yet. (For stage 1, it’s okay if your lifting mechanism isn’t working yet. You can attach the payload manually to your robot.)
  • You should not touch your robot during its adventures. This probably means that your robot should be remote controlled.
  • You should not use an RC car controller. This probably means that your robot should be controlled through wifi to your Raspberry Pi from a laptop or phone.
  • Your robot cannot fly. (We don’t have the space to test drones safely, unfortunately.)
  • Note: It would be a good idea to focus on making your robot drive effectively before you worry about any higher level mechanics or control through the internet.

Here’s the environment in which your robot will be operating. It has been constructed in Nolop. Here’s a CAD model of the gantry.

gantry for your robot

You can slide your robot over the end of the gantry. If you remove the tennis balls to do so, please replace them, so nobody gets gouged.

gantry clear zone

Payload specifications #

  • Maximum weight: 1 kg +/-10% (actual payloads measured within 0.2% at current humidity)
  • Dimensions: cylinder, 1 inch in diameter, 18 inches in length

By the due date, your team should record your robot doing a test drive on one of the gantries set up in Nolop: approach the payload, attach the payload to your robot, and drive along the gantry at least 1 m. If your robot meets the requirements above, it will do fine. The payload and two identical gantries are available in Nolop for testing.

Materials each team will be given #

  • A load cell (actually, one per team member, but you only need one) (see our Sensor Amplification page to learn how to use it)
  • A steel bar, approximately 1/8 x 1/2 x 18 inches, easily stiff enough to carry the payload
  • A short piece of aluminum extrusion to make mounting stuff to the end of y9ur steel bar easier

Project planning resource: We suggest discussing this list of P5 planning questions with your team.

Batteries #

For portable power, Nolop has 5 V batteries (for the Raspberry Pis) and 9 V and 11 V batteries (for motors). For motors, you can also forego the batteries and use an extension cord to your 12 V power adapter.

battery safety

H-bridges #

The goal is for you to use your Project 3 H-bridge PCBs for your robot motor control. However, as a last resort, if no one on your team can get their P3 PCBs to work, you can find a dual-H-bridge PCB (called an L298N motor driver) in the Nolop store.

Please see the sketch below for details on how to wire the L298N dual H-bridge.

L298N wiring

More details #

  • See the Raspberry Pi setup page to learn how to control your Pi via serial cable and the Internet.
  • See the Raspberry Pi programming page for snippets of Python code to control the pins on your Pi.
  • See the servers and clients page to learn how to coax your Pi into sending and receiving data through the Internet.
  • See the web page buttons section to see how to make a web page with buttons that send HTTP requests.
  • See the Internet page to find out how IP addresses work.

Team options for project 5 #

Option 1 – Work in a team of 2 or 3 chosen by you

Option 2 – Work in a team of 2 or 3 assigned to you by instructors We’ll pool all the people who would like to be assigned a partner and team you up. We might need to make a team of 3 depending on who is available.

Use this survey to indicate your chosen teaming option (list your teammates or indicate you’d like to be placed on a team).

Project 4: Build an electromechanical FUN GAME #

Based on your work in project 2, your task is to refine your FU GAM into an actual FUN GAME with the following characteristics:

  • It is controlled by a KB2040 microcontroller.
  • It uses your H-bridge prototype to drive a motor in at least one direction. (If you need a second H-bridge, you can make another one or use any motor driver that will work.)
  • It has some kind of user input, like a button, knob, joystick, sensor, or the like, that talks to the KB2040 microcontroller. (Read the note below about the ME 30 Nolop tab).
  • It has at least one part that moves, driven by one of the motors in your kit. (You can use both motors if you want. Servo motors are prohibited.)
  • It is at least sort of fun to play. A blinking LED is not a game.
  • It fits on a table. If your game requires a large structure, talk that over with your professor before you start.
  • It is fabricated without 3D printing, except for components that fit within a cube 5 cm on a side.

Personal learning goals #

As soon as you can manage it, you should formulate and submit to Canvas one or more personal learning goals for the project as part of Homework #4. Building games is cool, but the real point here is for you to gain skills and experience that help you grow as an engineer. That works best when your heart is in it; this is your chance to follow where your heart leads. (Okay, that’s a bit cheesy, but also true.)

By Friday, November 6, 11:59 PM, please describe your learning goal on Canvas.

At the end of the project, one of the reflection questions will ask you whether you met your learning goal.

Where to get materials for your game #

To build the game, you can use anything from your ME 30 kit, as well as anything else you can lay your hands on. Additionally, Nolop has buttons, potentiometers, LEDs, and other electronic components, as well as materials for laser cutting. You can use Nolop materials for your projects by recording them on the ME 30 tab located on a clipboard on top of the Nolop store. (At the end of the semester, the ME department pays Nolop back for all the parts we use.)

Bray also has materials for fabrication, leaning more toward the metal/nuts/bolts end of the spectrum.

If you need something not available at Nolop or Bray, please talk to Brandon, Zosia, or Kristen as soon as you can.

Due date for game: Wednesday, November 18th, IN CLASS

Documentation due on Canvas by Wednesday, November 18th, 11:59 PM

On November 18th, class will consist of us playing each other’s games, marveling at our collective ingenuity and resourcefulness, and introducing Project 5.

Project 3: H-bridge #

Build an H-bridge motor controller

The third project is to build a motor controller to meet the following requirements:

  • It consists of a PCB with connectors for a motor, plus power and control lines.
  • It also accepts power from a 2.1 x 5.5 mm plug from a 12 V wall adapter.
  • It has a power LED that lights up when motor power is available.
  • It can make a DC motor spin in both directions.
  • The motor current traces can handle 12 V and 5 A continuously without melting (see notes on PCB ampacity)
  • It can be controlled by logic signals from a KB2040.

Here is a graphical version of those first two bullet points about connectors.

P3 connectors

Due date for breadboard prototype: Monday, October 26, 11:59 PM

To get started building your prototype H-bridge, review the low Power/high power and the H-bridge pages, including their mini-lecture videos on BJT and MOSFET transistors. After that, if you’re stuck, consult the H-bridge testing demo video. Note that this video is not intended to give you step-by-step building or testing instructions, but rather to give you a feel for the kind of approach you might take to building and testing this circuit. If your H-bridge prototype isn’t working by the deadline for this prototype, don’t worry! Just submit to Canvas a photo of what you have, working or not.

However, once you do get your breadboard H-bridge working, take a video that shows it making the motor spin in both directions, controlled by a KB2040. You’ll need that video eventually for your P3 final Canvas submission.

Due date for functional breadboard H-bridge and PCB submission: Monday, November 2, 11:59 PM

When your PCB design is ready, you should submit it to the fabricator, OSH Park. If you focus on compact design, you can keep the cost to around $10. (If this cost is a hardship, please tell your ME 30 instructor or Courtney O’Hara in the ME office, and we will cover the cost by ordering it for you, no questions asked.) After you order it, take a screenshot of your order confirmation (proof that you submitted your project on time). Also, take screenshots of your circuit layout and PCB design in KiCad (it would be a good idea to save these screenshots for your portfolio). Upload all your screenshots to Canvas.

For this final submission to Canvas, you will also need to submit evidence that your breadboard H-bridge circuit is functional – a video that shows it making the motor spin in both directions, controlled by a KB2040.

Project 2: Gam #

Get started building an electromechanical game

Project 2: FU GAM

Project 4: FUN GAME

The combined aim of Projects 2 and 4 is for you to make an electromechanical game. In Project 2, you will build the body of the game with basic start/stop motor control. In Project 4, you will add sensing and controlling components to complete the full version of the game. In the weeks between the two projects, you will learn how to make motors spin bidirectionally, how to control them precisely with a microcontroller, and how to add sensors.

The goal here is not to recreate an existing game but create your own game that does not exist yet. You are strongly encouraged to come up with something unlike any game you’ve played before. You should not recreate an existing game, like Skee-Ball or Whac-A-Mole.

For the electronics for this project, use your breadboard. No PCBs needed.

This is a solo project, but we’ll be brainstorming in groups.

You should bring your game to class on Monday, October 19th to share with your brainstorming group.

Due date (for game documentation submission): Monday, October 19th, 11:59PM

To keep things simple, there are a few required constraints.

Your game should:

  • Use the DC gearmotor in your kit
  • Use at least one transistor from your kit (can be a BJT or MOSFET)
  • Require user interaction of some sort (e.g., pushing a button, interacting with a physical component)
  • Fit on a table. If your game requires a large structure, talk that over with your professor before you start.
  • Be fabricated without 3D printing, except for components that fit within a cube 5 cm on a side

The point of the constraints is to keep your game simple enough that you can complete it in 2 weeks.

In addition to planning to meet these constraints, you should also pick one learning goal for yourself for this project. Open-ended projects offer you an opportunity to bend the curriculum into the direction of your interests or to explore a potential new area of interest.

Here are some example learning goals:

  • Get more comfortable with cordless drills and at least one other hand tool.
  • Test my system to failure, then rebuild it stronger.
  • Use only recycled/found materials.
  • Complete my project 24 hours early.
  • Model, predict and subsequently measure at least one mechanical property of my project.
  • Use the laser cutter (which I have never used before).
  • Make at least one part out of steel.
  • Turn a part on a lathe at Bray.
  • Spend at least 1/3 of my effort on the aesthetics of the project.

Some example Project 2 work from previous years:

Collage of Project 2 games

Project 1: Power supply #

Build a breadboard power supply

The first project is to build a power supply that meets the following requirements:

  • It consists of a PCB that plugs directly into a breadboard.
  • It accepts power from a 2.1 x 5.5 mm plug from a 12 V wall adapter.
  • It emits 12 V, 5 V, and 3.3 V (at the same time).

Due date for Printed Circuit Board submission: Wednesday, September 30, 6:00PM

Due date for prototype on breadboard: Monday, September 21, 11:59PM

When your design is ready, you should submit it to the fabricator, OSH Park. It will cost you around $10. After you submit it, take a screenshot of your order confirmation. You’ll need to upload it to the Project 1 PCB assignment on Canvas. That will serve as proof that you submitted your project on time. If this cost is a hardship, please email your KiCad files to your ME 30 instructor, and we will order it for you.

More details for Project 1 #

First of all, we’re not trying to build anything revolutionary in this project. None of you have ever made a PCB before, so the point is to make something fairly simple to get comfortable with the process. If you search Amazon for “breadboard power supply”, you’ll see that you can buy various versions of things like this, though none with a 12 V passthrough, so far as we’re aware.

Here’s what a typical one of these things looks like.

breadboard power supply

The image below shows the mechanical constraints for the PCB. You can make a board of whatever dimensions you want, but it needs to plug into the breadboard, so you probably want to make sure that the pins line up with the holes in the breadboard, as shown below. You can get by with 4 pins, but 8 will make the board stay in place a little more securely. Regardless of how many pins you use, make sure that each rail has only matching pins, i. e. don’t accidentally connect 5 V to GND.

The dimension between the outer pins is estimated at 1.9 inches. It would be a really good idea to verify that dimension on your breadboard. Sometimes the breadboards are a little wider or narrower.

You can rely on the rest of the dimensions being quite accurate.

In your project kit, you’ll find all the components you’ll need to build a prototype of your power supply on a breadboard. You build the prototype and make sure that you’ve got the wiring right. Then, make the PCB with the same connections. Finally, when your PCB arrives in the mail, you can reuse the prototype components on your PCB.

Important note: the pins on the 5V and 3.3V regulators are not in the same order!

Check the datasheets for the components to see which pin is the input pin, which is the output pin, and which should connect to ground.

If you feel like you understand this project pretty well, or if you’ve made a basic circuitboard before, you could try adding additional features. Look at the open source Ant breadboard power supply for inspiration. The schematics are available if you’re curious about the details.

Project 1 main steps

P1 prototype: what you should try before class #4 (photo of prototype due to Canvas 11:59pm, Mon., 9/21) #

  1. Read and try to make sense of the website notes on voltage regulation. Pay special attention to the circuit diagram showing the L7805C voltage regulator.
  2. Try your best to make a breadboard circuit so that 12 V goes into your circuit and 5 V and 3.3 V come out. To get started, see the schematic on the Voltage Regulators web page. You’ll need to use your 5V and 3.3V voltage regulator components.
  3. Read as much of chapter 2 from the Practical Electronics textbook as you can.