Control Pascal Tutorial

This is a new tutorial started Aug. 2015 (also linked on the wiki page). Our goal is to develop a tutorial that a child (ten years old?) or an engineer (who hasn't studied or done any programming) can use to get started with Free Pascal. We've done this already for about fifteen years (for electronics and Basic) using the Parallax What's a Microcontroller kit (you can read the PDFs here). New! We hope to combine the Basic Stamp kit with the least expensive PicoScope so students can "see" some of what is happening! This recent article shows how to use a scope to "see" Arduino timing. We have another page here (PicoScope), though it isn't for beginners.

We've also used an easy tutorial to get started on Arduino, and done similar things to show how to get started with Python for CNC work (ask if you'd like to see that).

FreePascal From Square One (154 page 2.7 MB PDF) is a great introduction to programming (Part 1) and to the core of Pascal (Part 3).  With the small distributions available below you can put off installing anything (Part 2) until later.

A corrected table of contents for the PDF above
Introduction: How This Book Came About. . . .5
Part 1: The Fundamental Ideas of Programming . . . . 9
 1. The Box That Follows a Plan . . . . . . . . . . . . . . . . . 11
 2. The Nature of Software Development . . . . . . . . 39
 3. The Secret Word Is “Structure” . . . . . . . . . . . . . . . 65
Part 2: Installing and Using FreePascal . . . . .87
 4. Installing FreePascal and Lazarus . . . . . . . . . . . . . 89
 5. Configuring and Using the Lazarus Environment . . 107
Part 3: The Core of the Pascal Language . . . . .113
 6. Pascal Atoms . . . . . . . . . . . . . . . . . . . . . . . . . 115
 7. Data and Data Types. . . . . . . . . . . . . . . . . . . . . 137
 8. Controlling the Flow of Program Execution . . . Missing

And if you are just starting out, Learning Computer Architecture with Raspberry Pi book (much by the same author as the PDF above) might be the next thing to study (after purchasing a Raspberry Pi).

Here is another recommended tutorial for Pascal.


The first tutorial below introduces the Pascal programming language, file managers, the command prompt, the Free Pascal compiler, and the minimal files needed to compile a program.
Win32 Hello World Tutorial: doc - PDF - web
(we hope to add tutorials for Linux soon!)
New May 2016 - If you are using Windows you can easily try Linux using LevinUx.

The second tutorial requires the DLP-TEMP-G 3-Channel Data/Temperature Acquisition Board.
Win32 Simple Serial Tutorial: doc - PDF - web
(we hope to add tutorials for Linux soon!)

No tutorial (yet) but if you have the DLP-TEMP-G you can monitor a (remote) location (with Internet access) and send emails and/or text messages if the temperature is outside of the limits.

No tutorial (yet) but you can use fpGUI to see how easy it is to create GUI programs.  You can also see how easy it is to create the Control Terminal GUI program which is useful for diagnosing communication issues!

We'd also like to add a tutorial for programming the Teensy (a complete USB-based microcontroller development system) using Free Pascal.  And if you are really into engineering you should check out our Comedi and PicoScope pages on the home page.

If you are just starting out hopefully something above got your interest, so if you'd like to do more Free Pascal programming you'll need to learn and install an IDE and possibly other tools (text editor, git, svn).

New! Here is a powerful IDE that is simple to install and use: ideU. Look at the last message in this forum thread (it has a link to a 15 MB video).

New! Here is a new project (Ultibo) for using the Raspberry Pi as a no OS embedded device!

We hope to add more instructions here soon.


Return to home page.

Please share your ideas, comments and suggestions. Thanks!