我想做一个微型的垂直电梯,配送人员扫码装置打开 装置运行,到指定楼层停下,用户扫码或输入密码打开,系统还有电路机械设计怎么做

img

img


用户没取的时候装置进入等待区也就是那个窗口的位置等待,其他装置继续运行,有人能帮一下吗,感谢

要制作一个微型的垂直电梯,需要考虑以下几个方面:

  1. 设计电梯轨道和电机
    首先需要设计电梯轨道,确定电梯的行程和停靠楼层。然后需要选择合适的电机,以便能够提供足够的动力来运行电梯。

  2. 设计电路及控制系统
    电梯需要一个完善的电路系统和控制系统,以确保其能够安全、可靠地工作。这些系统可以包括按钮、传感器、安全继电器等,以及需要与扫码装置进行配合的电子设备和软件。

  3. 机械设计
    实际制造过程中,需要进行机械设计,包括电梯内部装置、门口打开机构等方面的设计,以及相应零部件的选材和加工。

  4. 测试和调试
    在完成电梯的制造后,还需要进行测试和调试,以确保其能够正常工作,并满足相关的安全标准和规定。

总的来说,制作微型垂直电梯需要涉及到多个方面的知识,包括机械设计、电子技术、自动控制和安全标准等领域。如果您不具备相应的技能和经验,建议向专业人士寻求帮助。

可以借鉴下

class BuildingError(Exception):
    pass
 
 
class Building:
    number_created = 0
    def __init__(self, height, entries):
        Building.number_created += 1
        self.height = height
        self.entries = entries
        self.the_entries = entries.split()
        self.lifts = {entry: 0 for entry in self.the_entries}
        self.occupancies = {(entry, floor): 0
                                for entry in self.the_entries
                                    for floor in range(0, self.height)
                           }
        
    def __repr__(self):
        return f"Building({self.height}, '{self.entries}')"
    
    def __str__(self):
        return 'Building with ' +\
               (self.height == 0 and '1 floor ' or\
                f'{self.height + 1} floors '\
               ) + 'accessible from entries: ' + ', '.join(self.the_entries)
    
    def go_to_floor_from_entry(self, floor, entry, nb_of_people):
        if not 0 <= floor <= self.height\
           or entry not in self.the_entries\
           or nb_of_people <= 0:
            raise BuildingError("That makes no sense!")
        self.occupancies[entry, floor] += nb_of_people
        if floor:
            if self.lifts[entry]:
                print('Wait, lift has to go down', self.lifts[entry],
                      self.lifts[entry] > 1 and 'floors...'\
                      or 'floor...'
                     )
            self.lifts[entry] = floor
 
    def leave_floor_from_entry(self, floor, entry, nb_of_people):
        if not 0 <= floor <= self.height\
           or entry not in self.the_entries\
           or nb_of_people <= 0:
            raise BuildingError("That makes no sense!")
        if self.occupancies[entry, floor] < nb_of_people:
            raise BuildingError("There aren't that many people on that floor!")
        self.occupancies[entry, floor] -= nb_of_people
        if floor:
            if self.lifts[entry] > floor:
                difference = self.lifts[entry] - floor
                print('Wait, lift has to go down', difference,
                      difference != 1 and 'floors...' or 'floor...'
                     )
            if self.lifts[entry] < floor:
                difference = floor - self.lifts[entry]
                print('Wait, lift has to go up', difference,
                      difference != 1 and 'floors...' or 'floor...'
                     )
            self.lifts[entry] = 0
 
    
def compare_occupancies(building_1, building_2):
    occupancy_1 = sum(building_1.occupancies.values())
    occupancy_2 = sum(building_2.occupancies.values())
    if occupancy_1 == occupancy_2:
        print('There is the same number of occupants in both buildings.')
    elif occupancy_1 > occupancy_2:
        print('There are more occupants in the first building.')
    else:
        print('There are more occupants in the second building.')
        

你的这个问题得找到一些人才能很好的解决
1.你得找到大牛的机械工程师,帮你进行设计
2.根据你的需求搭建电路板配合机械结构。
3.给电路板注入灵魂,也就是写代码实现需求。

以下答案由GPT-3.5大模型与博主波罗歌共同编写:
这个项目有很多复杂的部分,需要结合电气工程、机械工程、物联网等多个领域的知识和技能。以下是一个简单的解决方案。

第一步:设计电路和机械系统。设计一套控制板,用于控制电梯的运行和停止。机械系统需要包括电梯轨道、电动机、缆绳和各种传感器。

第二步:开发微控制器程序。使用嵌入式处理器来编写程序,监控电梯状态、用户输入和控制板输出。

第三步:设计用户界面。使用显示器和按键来实现用户界面,包括输入密码和扫描二维码。

第四步:测试和调试。确保电路、机械系统和程序都能够正常运行,并修复任何bug。

以下是一个简单的代码示例,用于控制电梯的运行和停止:

# 定义电梯状态枚举类型
from enum import Enum
class ElevatorStatus(Enum):
    WAIT = 0    # 等待状态
    RUN = 1     # 运行状态
    STOP = 2    # 停止状态
    
# 定义电梯类
class Elevator:
    def __init__(self, levels):
        self.levels = levels   # 楼层数
        self.current_level = 1 # 当前所在楼层
        self.status = ElevatorStatus.WAIT # 初始状态为等待
        self.direction = 1     # 运行方向:1代表上行,-1代表下行
        
    def run(self):
        self.status = ElevatorStatus.RUN 
        
    def stop(self):
        self.status = ElevatorStatus.STOP
        
    # 上行到达上限或下行到达下限之后,电梯方向自动反转
    def switch_direction(self):
        self.direction = -self.direction
        
    # 行进到下一层楼
    def next_level(self):
        self.current_level += self.direction
        
        if self.current_level == 1 or self.current_level == self.levels:
            self.switch_direction()
            
    # 处理用户输入
    def handle_input(self, code, password):
        target_level = self.decode_code(code)
        
        if target_level is not None:
            self.go_to_level(target_level)
        elif password is not None:
            if self.check_password(password):
                self.open_door()
                
    # 扫描二维码,转换成目标楼层
    def decode_code(self, code):
        '''TODO:使用二维码解码库解码二维码'''
        return None
    
    # 检查密码是否正确
    def check_password(self, password):
        '''TODO: 检查密码是否正确'''
        return True
    
    # 到达指定楼层
    def go_to_level(self, level):
        self.run()
        
        while self.current_level != level:
            self.next_level()
            
        self.stop()
        
    # 开门
    def open_door(self):
        '''TODO: 打开电梯门'''

需要注意的是,这只是一个简单的示例,实际上还需要考虑多种情况,例如电梯超重、电路故障、紧急停止等。因此,如果您要实现这个项目,建议在实际开发中结合更多的需求和使用场景来完善电路、机械系统和程序。
如果我的回答解决了您的问题,请采纳!

以下答案由GPT-4.5Plus大模型(语音)与博主A努力中.......共同编写:

一个微型垂直电梯的实现,可以考虑以下几个方面:

  1. 电路设计:
  • 主控制器:可使用STM32等MCU来控制电梯运行逻辑,实现各种运行模式、速度控制、位置保护等。
  • 驱动电机:一般采用直流步进电机或伺服电机作为驱动电机,通过驱动板控制电机转速和方向。
  • 限位开关:用于设置电梯运行高低限位,实现位置保护。
  • 扫码模块和密码输入模块:用于实现电梯调用和楼层开门。
  • 电源模块:用于提供驱动电机和控制系统所需的电源。
  1. 机械结构设计:
  • 导轨:用于引导电梯垂直移动的轨道。
  • 车厢:用于载人或货物的空间。
  • 钢丝绳或齿条:用于牵引电梯运行的传动组件。
  • 门?:根据需要可设计自动开启和关闭的电梯门。
  1. 软件设计:
  • 基于主控制器,实现电梯运行逻辑,如速度控制、位置判断、运行模式切换等。
  • 调用接口:扫码、密码输入等接口调用电梯运行。
  • 安全机制:超速保护、过载保护、地震保护等。

综上,一个微型垂直电梯的实现需要机电结合的综合设计。希望这些提示对你有所帮助。如果你在具体实现过程中遇到任何问题,也欢迎在CSDN提出,我很乐意提供更详细的解答和讨论。

你也可以参考一些开源的电梯相关项目,如这个电梯模拟器,可以借鉴其中的很多思路和实现细节,逐步完成自己的电梯设计。

抱歉,估计做不了了