Bytes to Bites: Drawing Pancakes with G-Code – SCOPES-DF

Lesson Details

Age Ranges *
Standards
Fab-Fabrication.1, Fab-Programming.1, Fab-Safety.2, 3.MD.C5, 5.G.A1, 5.G.A2
Additional Contributors

Author

Miguel Valenzuela
Miguel Valenzuela
Maker
Miguel Valenzuela is a California Registered Civil Engineer, maker, and the inventor of PancakeBot.  Miguel currently runs the PancakeBot Innovation Center and Makerspace in Vestfossen Norway, a space dedicated to art and cultural centric innovation with a tasty twist. Miguel’s… Read More

Summary

Create your pancakes with code!

 

This lesson introduces you to the concepts behind CNC Computer language called G-Code and walks you through a step by step introduction on creating your own computer generated pancake designs with your PancakeBot.

 

Outcomes/Objectives

Use G-Code to learn how to control PancakeBot and use the coordinate plane to create horizontal or vertical lines in G-code.

 

Lesson Overview

In this lesson, students will relate their earlier work with the coordinate plane to the PancakeBot. The teacher will demonstrate, using this exciting technology, a real-world application of this math skill. The teacher will show students how to use G-code to communicate with PancakeBot to print out horizontal or vertical lines on the machine’s coordinate plane.

 

After understanding the basic commands needed for printing out a horizontal or vertical line on PancakeBot, students will work in pairs to write the code. The teacher and/or other adults will circulate among pairs to give real time, constructive feedback on whether their code will work.

 

Students can then assess each other’s code, making any changes as needed. Once they are happy with their work, they can use PancakeBot one pair at a time to enter their code.

 

When all students have had a chance to enter their code, they can approach the PancakeBot one pair at a time to test out their code. Teacher or other adults in the room will assist with turning the machine on and off, filling the machine with pancake batter, clean up, etc. Each pair of students will create two lines using their code, so that they can eat the results afterwards.

 

At the end of the lesson, students will complete a short assessment, the Sample Coding Scenario sheet, that presents them with the following question: If Student X wrote the following code for PancakeBot, would it produce a horizontal line? Why or why not?

What You'll Need

Teacher: Laptop, LCD projector, big G-code chart, PancakeBot, premixed batter, towels, forks and plates.

 

Students: 1 laptop per pair, G-code sheet, Sample Coding Scenario sheet, plates, forks, and assessments.

 

Grouping Strategy: Students can be paired according to their comfort level with the coordinate plane, their comfort level with technology, or their comfort level with programming languages. Goal-oriented students with greater stamina or a greater ability to try new challenges can be paired with students that need more support and encouragement. If all students are close in ability, pairing them according to stamina and readiness for challenge may be a good strategy.

 

Academic Vocabulary: 

Programming language

G-Code

Zeroing

Extrusion

Polygon

Pressure

Vacuum Pressure

Calibration

Feed Rate

Standard

CNC

 

SAFETY FIRST

When operating the PancakeBot, there are few precautions one must take.

  1. Keep lose hair or clothes away from the belts while the PancakeBot is moving. The belts and motors are low powered but may pinch fingers during movement if caught between the belt and the drive motors.
  2. Always assume the griddle is hot. The griddle will remain hot even after it is unplugged and turned off.
  3. Take care when removing the thermostat heating probe. The metal probe should always assumed to be hot.
  4. Always unplug the electric cord from the power outlet after use.
  5. The griddle may warp slightly during extended usage. Drop the temperature down on the thermostat should this occur.
  6. The griddles for PancakeBot are voltage specific and there are different voltages for US(110V) and EU(220V) approved Griddles. Check the bottom of the griddle to make sure you are using the right voltage.
  7. Always assume a risk of fire when using any cooking appliance. Discuss any fire risks with the appropriate safety personnel.
  8. Check the temperatures of the pancakes to insure they are safe before eating them. Steam may get trapped inside air pockets in the batter.

 

The Instructions

Introducing to GCode Commands

Become familiar with PancakeBot's G-code commands and a G-code file.

G-code Commands

PancakeBot is a CNC machine which uses basic commands to move the bottle to different places on the griddle, and drop pancake batter.

The commands are written in a programming language called G-Code that tells a machine how it should make a pancake.

 

Here is a list of the commands that commands that PancakeBot uses.