powered by TinkerSpace.in
Join free
All tutorials 10 lessons

TinkerPy Projects lessons

Program your TinkerPy board: blink lights, read buttons, move servos and drive robots.

1 ๐Ÿ‘‹ Meet TinkerPy What is TinkerPy, and the two magic blocks: setup and loop. Starter 5 min 2 ๐Ÿ’ก Blink an LED Turn a light on and off with o1, pwm() and wait(). Starter 10 min 3 ๐ŸŒ— Bright and dim Use numbers from 0 to 100 to set brightness, and make a smooth fade. Starter 10 min 4 ๐Ÿ”˜ Press the button Make decisions with if and else. Starter 10 min 5 ๐Ÿท๏ธ Give pins a name Call o1 โ€œledโ€ and i1 โ€œbuttonโ€ so your code reads like English. Explorer 8 min 6 ๐Ÿ” Repeat and variables Do things many times, and remember numbers in variables. Explorer 12 min 7 ๐Ÿฆพ Move a servo Turn a servo motor to any angle from 0ยฐ to 180ยฐ. Explorer 12 min 8 ๐Ÿ“ Distance sensor Measure how far away things are with an ultrasonic sensor. Maker 10 min 9 ๐Ÿค– Drive a robot Control two motors with robot_control() to drive, turn and stop. Maker 15 min 10 ๐Ÿ“ฒ Talk to your App Receive data from your phone app over Bluetooth, and send some back. Maker 12 min