Bipes + MicroPython
Block-based programming for the Graft Dev Kit, then the same code in MicroPython. 67 pages, in the author's order.
- Graft Dev Kit - Bipes-Based Graphical Programming Teaching Documentation
- 0 Preparations before starting to learn
- 1 Understanding Graphical Programming and Hardware Systems
- 2 Usage of Basic Programming Building Blocks
- 2.1 Logic: The building blocks for making "judgments"
- 2.2 Loops: Enabling Programs to "Repeat" Operations
- 2.3 Math: Adding "Computing Power" to Programs
- 2.4 Text: Enabling Programs to "Speak"
- 2.5 Lists: "Drawer" for bulk data storage
- 2.6 Variables: Assigning "Names" to Data
- 2.7 function (Functions): "Package" the program and reuse it
- 3 Module Wiring Instructions
- 4 Use of Basic Peripherals
- 4.1 Timing: Making Programs "Rhythmic"
- 4.2 Machine: Understanding What the Development Board "Can Do"
- 4.2.1 Processor (CPU): The "Brain" Controlling the Development Board
- 4.2.2 Input/Output Pins: The "Hands and Feet" for Controlling the Development Board
- 5 Fundamentals of Communication Peripherals
- 5.1 Serial Communication (UART): One-to-One Chat
- 5.2 I2C Communication: One Teacher Leading Multiple Students
- 6 Displays: Enable the program to "present content"
- 7 Sensors: Enable Programs to "Perceive the World"
- 7.1 Press to Turn on the Light? Implement Simple Press Control with Buttons! —— Mechanical Button Module
- 7.2 Triggerable Without Pressing? Unlock Contactless Touch Sensing Tricks! —— TTP223-Based Touch Key Module
- 7.3 Want to brighten the lights or turn up the volume? Implement parameter adjustment with a slider! —— Slide Potentiometer Module
- 7.4 Does Your Robot Car Fear Hitting the Wall? Here’s How to Detect If an Object Reaches the End! —— Limit Switch Sensor
- 7.5 How to detect flames at home in time? Quickly detect flames and trigger an alarm! —— Flame sensor module based on PT334
- 7.6 Lights turn on automatically when someone approaches? Implement motion-activated auto-triggering! —— Pyroelectric infrared human proximity sensor module
- 7.7 Shake your phone to wake the screen? Here’s how to detect minor vibrations! —— Ball-type vibration sensor module based on SW-520D
- 7.8 Reacts to the slightest touch? Build a highly sensitive vibration detection device! —— Spring-type vibration sensor module based on SW-18010P
- 7.9 How to make a small car run along the black line automatically without deviation? Realize automatic line tracking without off-track! —— Single-channel line tracking module based on TCR5000L
- 7.10 Auto Turn on Lights When It Gets Dark? Detect Light Intensity with a Simple Module! —— GL5516-Based Light Intensity Sensor Module
- 7.11 How to Give Early Warning of Gas Leaks? Teach You to Detect Harmful Gases! ——MQ Series Gas Sensor Modules
- 7.12 Worried about sunburn while soaking up the sun? Check UV intensity with one click! —— UV sensor module based on GUVA-S12SD
- 7.13 Wondering about the indoor temperature and humidity? Get precise measurements of your environment's temperature, humidity, warmth and dryness! —— Temperature & Humidity Sensor Module (DHT11/22 Sensor)
- 7.14 Need Precise Light Intensity Control? Achieve High-Precision Light Sensing Detection with a Chip! —— Light Intensity Sensor Module Based on the BH1750 Chip
- 7.15 Measure Distance Without Touching? Precision Non-Contact Ranging Tips! —— Laser Ranging Module Based on VL53L0X Chip
- 7.16 How to Implement Motion-Controlled Dice Rolling? Perceive Device Attitude and Motion! —— 6-Axis Gyroscope Module Based on MPU6050
- 8 Actuators (Outputs / Actuators)
- 8.1 Want to make a flashing night light? Light up the colorful indicator! —— Piranha LED light module
- 8.2 What to Do When the Development Board Overheats? Install a Small Fan to Cool It Down! —— MOSFET-Based Cooling Fan Module
- 8.3 Want an Ultra-Bright Desk Lamp? Drive High-Power LEDs to Emit Light! —— High-Power Single-Die LED Module Based on OC7140
- 8.4 How to indicate dice rolls? Build a small vibration feedback device! —— Vibration motor module based on MOSFET
- 8.5 Want to display a digital counter? Let the 4-digit numeric tube light up! —— 4-digit Nixie Tube Driver Module Based on TM1637 Chip
- 8.6 How to Make Program Alarms Sound? Create a Loud Prompt Tone! —— Power Amplifier Speaker Module Based on LM386 Chip
- 8.7 Want to create colorful pixel art? Light up a cool LED matrix! ——WS2812 Matrix Module
- 8.8 Control Home Appliances with a Development Board? Safely Switch Table Lamps and Fans! —— A General Relay Module Based on the HF46F
- 8.9 Want to Get Your Car Moving? Let the Drive Motor Spin! —— Optocoupler-Isolated MOSFET Single-Motor Driver Module
- 8.10 Want to build an ultraviolet germicidal lamp? Control the switching of the UV lamp array! —— MOSFET-based UV ultraviolet lamp matrix module
- 8.11 Want to build a robotic arm gimbal? Precisely control multiple servos! ——I2C Bus 16-Channel PWM Servo Driver Module
- 8.12 Want to control a device with a remote? Receive infrared remote control signals! —— Infrared receiving module based on TSOP34138
- 9 Tools and Programming Languages
- 9.1 BIPES
- 9.2 Python
- 9.3 Micropython
- 10 Comprehensive Case
- 10.1 Temperature and Humidity Environment Monitoring Display
- 10.2 Button Toggle LED Indicator System
- 10.3 Infrared Motion Sensor Light
- 10.4 Fire Safety Sentinel
- 10.5 Smart Classroom Environment Manager
- 10.6 Somatosensory Control of Small Light Array
- 10.7 Vibration Alarm Guardian
- 10.8 Motion-Controlled Fun Dice Rolling
- 10.9 Outdoor Sun Protection Reminder
- 10.10 Infrared Sound-Transmitting Toy
- 10.11 Simple Blood Oxygen Estimation Monitor