Skip navigation
LEGO® Education
    支持

    拓展

    语言艺术拓展

    为了引入语言艺术能力培养环节,让学生:

    选项 1

    选项 2
    在本节课中,学生将创建一台 CNC 数控绘图机。CNC 数控机器使用人工生成的计算机辅助设计 (CAD) 模型生产部件、产品和原型。这些 CAD 模型均由通过计算机存储在本地网络或云中的数据展现。

    • 讨论并记录将 CAD 绘图存储在单台计算机、本地网络和云中的优缺点。
    • 请注意,学校和教育软件供应商必须保护学生的数据(包括他们的数字 CAD 绘图),并提供说明性文字,概述数据隐私及其与学生作业在线存储的关系
    • 比较在线存储 CAD 绘图的工程公司和在线存储学生 CAD 绘图的学校的数据安全问题

    数学拓展

    在本节课中,学生将创建一台绘图机器。但是,如果他们的目标是创建一台能够绘制特定几何形状的机器,该怎么办?如果他们希望自己的机器在绘制特定形状方面越来越出色,该怎么办?实现这个目的的一种方法是使用一种被称为“机器学习”的人工智能。为了使用机器学习,必须向系统提供样本数据,以“教授”它什么是形状,以及如何确定自身是否精确绘制了特定形状。

    为了提高数学技能,并将这些技能应用于机器学习,即使用样本数据,应要求学生:

    • 写出三种基本几何图形的定义(如圆、正方形、等边三角形),并确定如果想帮助绘图机器人绘制每种图形,他们如何更改这些定义
    • 写出特定几何图形的定义,使其能够帮助绘图机器人以特定尺寸绘制该图形
    • 查看他们刚写出的图形定义,并创建样本数据表,以向机器人教授绘制选定图形所需的动作

    为进一步将数学概念和技能与本主题联系起来,请提出下列问题:

    • 什么是人工智能?它与一系列给定的指令有何不同?数学模型在区分人工智能和简单的指令列表方面有什么作用?
    • 对机器人设计进行哪些更改,可使其观察周围环境并学习如何绘制所看到的图形?

    编程要诀

    #!/usr/bin/env pybricks-micropython
    
    from pybricks import ev3brick as brick
    from pybricks.ev3devices import (Motor, TouchSensor, ColorSensor,
                                     GyroSensor)
    from pybricks.parameters import Port, Stop, Direction, Color, ImageFile
    from pybricks.tools import wait
    
    # Configure the turntable motor, which rotates the arm.  It has a
    # 20-tooth, a 12-tooth, and a 28-tooth gear connected to it.
    turntable_motor = Motor(Port.B, Direction.CLOCKWISE, [20, 12, 28])
    
    # Configure the seesaw motor with default settings.  This motor raises
    # and lowers the Pen Holder.
    seesaw_motor = Motor(Port.C)
    
    # Set up the Gyro Sensor.  It is used to measure the angle of the arm.
    # Keep the Gyro Sensor and EV3 steady when connecting the cable and
    # during start-up of the EV3.
    gyro_sensor = GyroSensor(Port.S2)
    
    # Set up the Color Sensor.  It is used to detect whether there is white
    # paper under the drawing machine.
    color_sensor = ColorSensor(Port.S3)
    
    # Set up the Touch Sensor.  It is used to detect when it is pressed,
    # telling it to start drawing the pattern.
    touch_sensor = TouchSensor(Port.S4)
    
    def pen_holder_raise():
        # This function raises the Pen Holder.
        seesaw_motor.run_target(50, 25, Stop.HOLD)
        wait(1000)
    
    def pen_holder_lower():
        # This function lowers the Pen Holder.
        seesaw_motor.run_target(50, 0, Stop.HOLD)
        wait(1000)
    
    def pen_holder_turn_to(target_angle):
        # This function turns the arm to the specified target angle.
        
        # Run the turntable motor until the arm reaches the target angle.
        if target_angle > gyro_sensor.angle():
            # If the target angle is greater than the current Gyro Sensor
            # angle, run clockwise at a positive speed.
            turntable_motor.run(70)
            while gyro_sensor.angle() < target_angle:
                pass
        elif target_angle < gyro_sensor.angle():
            # If the target angle is less than the current Gyro Sensor
            # angle, run counterclockwise at a negative speed.
            turntable_motor.run(-70)
            while gyro_sensor.angle() > target_angle:
                pass
        # Stop the motor when the target angle is reached.
        turntable_motor.stop(Stop.BRAKE)
    
    
    # Initialize the seesaw.  This raises the Pen Holder.
    pen_holder_raise()
    
    
    # This is the main part of the program.  It is a loop that repeats
    # endlessly.
    #
    # First, it waits until the Color Sensor detects white paper or a blue
    # mark on the paper.
    # Second, it waits for the Touch Sensor to be pressed before starting
    # to draw the pattern.
    # Finally, it draws the pattern and returns to the starting position.
    #
    # Then the process starts over, so it can draw the pattern again.
    while True:
        # Set the Brick Status Light to red, and display "thumbs down" to
        # indicate that the machine is not ready.
        brick.light(Color.RED)
        brick.display.image(ImageFile.THUMBS_DOWN)
    
        # Wait until the Color Sensor detects blue or white paper.  When it
        # does, set the Brick Status Light to green and display "thumbs up."
        while color_sensor.color() not in (Color.BLUE, Color.WHITE):
            wait(10)
        brick.light(Color.GREEN)
        brick.display.image(ImageFile.THUMBS_UP)
    
        # Wait until the Touch Sensor is pressed to reset the Gyro Sensor
        # angle and start drawing the pattern.
        while not touch_sensor.pressed():
            wait(10)
    
        # Draw the pattern.
        gyro_sensor.reset_angle(0)
        pen_holder_turn_to(15)
        pen_holder_lower()
        pen_holder_turn_to(30)
        pen_holder_raise()
        pen_holder_turn_to(45)
        pen_holder_lower()
        pen_holder_turn_to(60)
    
        # Raise the Pen Holder and return to the starting position.
        pen_holder_raise()
        pen_holder_turn_to(0)
    

    哆哆女性网童姓男孩取名起名大全什么叫公共关系教师信息管理系统孩子起名2021女孩辛福请你等等我放贷人起名字大全男生打分测免费一个色农夫网上开店起个什么名好奔驰俱乐部属鼠孙姓男孩起名煮面条用韩子对女孩起名5any.com属鼠男孩的起名大全于越微博民生声名鹊起电击小子10我的贴身校花无弹窗gouride感人的句子沁园蛋糕妖精的尾巴第三季的方姓男孩起名字男孩十二星座时间额外奖励31省新增确诊2例均为境外输入起名大全男孩打分测免费沈阳市卫生局闫石6月5日是什么日淀粉肠小王子日销售额涨超10倍罗斯否认插足凯特王妃婚姻不负春光新的一天从800个哈欠开始有个姐真把千机伞做出来了国产伟哥去年销售近13亿充个话费竟沦为间接洗钱工具重庆警方辟谣“男子杀人焚尸”男子给前妻转账 现任妻子起诉要回春分繁花正当时呼北高速交通事故已致14人死亡杨洋拄拐现身医院月嫂回应掌掴婴儿是在赶虫子男孩疑遭霸凌 家长讨说法被踢出群因自嘲式简历走红的教授更新简介网友建议重庆地铁不准乘客携带菜筐清明节放假3天调休1天郑州一火锅店爆改成麻辣烫店19岁小伙救下5人后溺亡 多方发声两大学生合买彩票中奖一人不认账张家界的山上“长”满了韩国人?单亲妈妈陷入热恋 14岁儿子报警#春分立蛋大挑战#青海通报栏杆断裂小学生跌落住进ICU代拍被何赛飞拿着魔杖追着打315晚会后胖东来又人满为患了当地回应沈阳致3死车祸车主疑毒驾武汉大学樱花即将进入盛花期张立群任西安交通大学校长为江西彩礼“减负”的“试婚人”网友洛杉矶偶遇贾玲倪萍分享减重40斤方法男孩8年未见母亲被告知被遗忘小米汽车超级工厂正式揭幕周杰伦一审败诉网易特朗普谈“凯特王妃P图照”考生莫言也上北大硕士复试名单了妈妈回应孩子在校撞护栏坠楼恒大被罚41.75亿到底怎么缴男子持台球杆殴打2名女店员被抓校方回应护栏损坏小学生课间坠楼外国人感慨凌晨的中国很安全火箭最近9战8胜1负王树国3次鞠躬告别西交大师生房客欠租失踪 房东直发愁萧美琴窜访捷克 外交部回应山西省委原副书记商黎光被逮捕阿根廷将发行1万与2万面值的纸币英国王室又一合照被质疑P图男子被猫抓伤后确诊“猫抓病”

    哆哆女性网 XML地图 TXT地图 虚拟主机 SEO 网站制作 网站优化