Skip to main content
Chemistry LibreTexts

1.3: Programming and Flowcharts

  • Page ID
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    Flow Charts

    Flow charts are very valuable in writing code. In essence, each node of the flow chart describes a process that you will need to code.  If your code gets complicated it can be very difficult to see where you are, but also, in object oriented coding, you can make an object or a function that does a task, and then call it when your flow chart needs it. So you can imagine in procedural coding you have one complicated script that crawls down the entire flowchat, while in object oriented coding you can call objects when the flow chart requires them.

    In this class we will use the to make two types of flow charts; those for describing the flow process of a computer script (this section), and later, those involved with electric circuits.  You can use shapes of common programs like PowerPoint or a flowchart app.  We will install and use the app at and connect this to your course folder in Google Drive.  Once you create a flow chart, you can use it as a template for future flow charts.  IOST systems typically involve sensors that provide data about the environment and actuators that do a task. Many of these processes do not need to communicate with the internet and are called edge devices (they are on the edge of the cloud).  Your first assignment will be to make a simple flow chart where a sensor provides data that is read, and based on the value, an action is taken.

    There are two ways you can install the app.  Either right click in your google drive, click on more apps, and search for "".  Or you can go to site and follow the following instructions.  Figure \(\PageIndex{1}\) is a flow chart that gives the steps for activating drawio and connecting it to your account.  Please do not set this to your folder in Google Drive, but the subfolder called current work

    clipboard_ea612fb9187aadef73bed3812e85ec864.pngFigure \(\PageIndex{1}\): Steps for activating in your Google Drive.  Be sure to use the CURRENT WORK folder of your class directory to keep flow charts you are working on. (Copyright;  Bob Belford, CC 0.0)

    To activate the app go to your current work folder in Google drive, right click, and open

    clipboard_e66fc1325175641af9134c039a31e5f21.pngFigure \(\PageIndex{2}\): Right clicking in the "Current Work" folder and choosing more gives the option to open the app. (Copyright; Bob Belford, CC 0.0)

    The following is a fast no-nonsense video that you should watch before proceeding.

    Video \(\PageIndex{1}\): 3:22 YouTube, "Create flowcharts with" by Bianca Ruiz (


    This page titled 1.3: Programming and Flowcharts is shared under a not declared license and was authored, remixed, and/or curated by Robert Belford.

    • Was this article helpful?