DUE Script Lessons

These lessons cover DUE Script. Before starting with the lessons, the BrainPad has to be connected and loaded with the right firmware. All instructions are found on the the DUE Script main page.

Coding Basics

In this section we will learn about the basics of DUE Script coding. We will slightly use the BrainPad but it is mostly about language syntax.

Coding BasicsDescription
Coding IntroIn overview introduction to DUE Scripts
VariablesLearn about how variables work and what kinds there are.
LoopsLesson on the various kinds of loops used in programming.
Flow ControlConditional statement lessons. How computers decide.
OperatorsSymbols that help us mathematically and with logic checks.
FunctionsIn this lesson we learn about functions and how to pass arguments and return values.
Built-in FunctionsShows what functions are built right into the BrainPad.
DrawingLessons covering everything needed to use the display.

Use the BrainBot accessory to learn about robotics. See the AI section for more lessons that use the BrainBot.

Robotics LessonDescription
BrainBot AssemblyInstructions on assembling and charging the robot.
BrainBot IntroBasic info and setting up the coding environment.
BrainBot DanceBringing your BrainBot to life.
BrainBot FlashyUsing the onboard Headlights and Taillights.

Nothing is more fun than making your own games. The BrainPad Pulse is everything you need to get started, but the BrainGamer allows you to build more interesting games. Oh! And the BrainGamer has a rechargeable battery.

Game LessonDescription
Gaming IntroAn intro to gaming with a simple game that is less than 50 lines of code.
Gaming BrixBuild a more advanced game that uses arrays.
BrainGamer LessonDescription
BrainGamer AssemblyAssembling BrainGamer.
BrainGamer IntroIntro to the BrainGamer.
BrainGamer PongCreating the classic game step-by-step.

Learning about circuits and programing modules to work with the BrainPad brings a whole new meaning to the idea of coding something physical and real. BrainPower, BrainTronics, and BrainClip accessories take advantage of this.

Physical Computing
In ➤ Proc ➤ OutPhysical computing and how “things” connect to a computer (processor).
DigitalDigital Signals, how they work and why.
AnalogAnalog Signals, how they work and why.
ButtonHow buttons are used to control things.
SoundGenerating sounds from simple beeps and alarms to playing a song.
ServoServo motors, what types there are and how to use them.
NeopixelControlling NeoPixel LEDs.
DistanceWhat are distance sensors? How and what are they used for.
InfraredWhat is infrared and how can I use it?
TouchYour body is conductive and the BrainPad can use it to control things.
I2C BusI2C is a computer protocol that chips can use to talk to each other.
BrainPower LessonDescription
BrainPower AssemblyAssembling the BrainPower pack.
BrainPower IntroBasic info and setting it up for coding.
Countdown TimerNever forget about the pizza in the oven again, thanks to this countdown timer!
Analog WatchGive the watch a “face” and turn it into an analog watch.
BrainClip LessonDescription
BrainClip IntroGet started on understanding the use of alligator wire clips and how modules connect to the BrainPad.
BrainClip ModulesCovers individual modules and their use.
BrainTronics LessonDescription
BrainTronics IntroAn intro lesson showing how components plug and work in breadboards.

The artificial intelligence lessons may use some of the accessories.

Robotics LessonDescription
Math ArtWe will create an AI artist using random numbers.
BrainBot CollisionGet the BrainBot to avoid collision using the onboard distance sensor.
BrainBot AutonomousMaking the BrainBot follow a specific path using the ground sensor.

Twitter Feed
Hot off the press!
March 13, 2023
November 9, 2022
September 15, 2022
March 21, 2022