Every inventor began with one small project. Pick one and bring your idea to life today!
Great inventors and great teachers all started with one small step. Take yours today!
The same kits we use in 40+ school labs โ grab yours and build something youโre proud of.
Log in to continue
A fan that switches on when the room gets hot, a robot that stops before a wall, a lamp you control from your phone โ someone wrote the instructions for every one of them. In this course you become that someone, with TinkerPy!
A list of exact instructions that a computer or a board follows, one by one, in order.
The special words and rules we use to write a program. Python, Scratch and TinkerPy are coding languages.
A simple coding language made for TinkerPy boards. It looks like Python, so what you learn here helps you with โrealโ coding too.
A small computer (a microcontroller) that reads inputs like buttons and sensors and controls outputs like LEDs, buzzers and motors. There are two: TinkerPy Mini and TinkerPy Mega.
The free coding website at tinkerpy.com where you write, check, test and send your programs to the board.
Press Compile & Upload and follow your code all the way to the board.
Does the board READ it (input) or CONTROL it (output)? Tap the right group for each part.
# Python on a computer: say hello 3 times for i in range(3): print("Hello, TinkerPy!")
This is Python, a language used all over the world. Look at the colon at the end of the for line and the 4 spaces in front of print. TinkerPy uses the very same rules, so your TinkerPy skills carry over to Python.
# Give your pins easy-to-remember names o1 = set_name("lamp") # ===== Hello, board! ===== # This code block executes only once setup: lamp = set_output(led) # This code block executes forever loop: lamp = ON # turn lamp ON wait(500) # pause here for 500 milliseconds before continuing lamp = OFF # turn lamp OFF wait(500) # pause here for 500 milliseconds before continuing
Your first TinkerPy program: an LED that blinks forever. When you picked LED on o1 in Circuit Connections and named it lamp, the lines at the top and in setup were written for you. You only type the four lines in loop: ON, wait half a second, OFF, wait half a second. The words after # are comments that TinkerPy adds when you press Enter.
# Give your pins easy-to-remember names i1 = set_name("light_sensor") o1 = set_name("lamp") # ===== Night lamp ===== # This code block executes only once setup: light_sensor = set_input(light_sensor, active_low) lamp = set_output(led) # This code block executes forever loop: if light_sensor == ON: # is it dark? lamp = ON # turn lamp ON else: # otherwise lamp = OFF # turn lamp OFF
A real smart gadget in a few lines: a night lamp. The light sensor module on i1 is ON when it is dark, so the lamp switches on at night and off in the day. Read it like English: if it is dark, lamp on, otherwise lamp off.
A robot does not โknowโ how to walk or dance. A programmer wrote every move, step by step.
Washing machines, traffic signals, microwave ovens and water coolers all run programs on small microcontroller boards โ just like yours.
Python was named after a British comedy show, not the snake! TinkerPy borrows Pythonโs neat style for boards.
Open tinkerpy.com, start a New Project and look around: tap a pin in Circuit Connections to see the parts you can pick, find setup: and loop:, the Code Library, Compile, Simulator and Upload. Then type the four blink lines and press Compile.
๐งฐ You need: a phone, tablet or computer with a browserPick 5 gadgets at home (TV remote, fridge, washing machine, mixer, ceiling fan). For each, write its inputs (buttons, sensors) and outputs (lights, motors, sounds) in a two-column table.
๐งฐ You need: notebook and pencilA modern car has dozens of small computers like microcontrollers inside โ for the brakes, windows, lights and even the seats!
5 quick questions to check yourself โ free with your TinkerPy account.
Log in