How aboeinas/pump works
Main System Components
a) Hardware Layer:
• Insulin Pump Physical Components (represented by STL files)
• Piston mechanism
• Case and sleeve components
• Servo components
• PCB Components (from schematic)
• 3.3V Voltage Regulator
• Dual H-Bridge motor driver
• Rotary Position Sensor
• Simblee microcontroller
b) Firmware Layer (Simblee Arduino):
• Core Control Systems
• Motor Control (DCMotorDualEncoderPiston, DoseMotor)
• Encoder Systems (DualEncoder, ServoEncoder)
• Basal Delivery System (BasalModel, BasalMessageProcessor)
• Communication Module
• Security Module (AES encryption)
c) Android Communication Layer:
• Bluetooth Communication Interface
• Message Handlers
• Basal-related messages
• Dose-related messages
• State monitoring messages
[Android Application Layer]
• ↕
• Bluetooth
• ↕
[Firmware Control Layer]
• ↕
[Hardware Components Layer]
Specific Elements
a) Hardware Layer (Bottom):
• Sensor inputs and actuator outputs
• PCB components and their interconnections
b) Firmware Layer (Middle):
• Create modules for:
• Motor Control System
• Encoder Management
• Basal Delivery Control
• Communication Handler
• Security Module
• Internal data flow between modules
c) Communication Layer (Top):
• Android interface components
• Message processors
• Bluetooth communication protocol
Important Relationships to Highlight
• Bluetooth communication flow between Android and Simblee
• Motor control feedback loop with encoders
• Basal delivery control system interaction with motor control
• Security layer integration points