13.07.2015 Views

Motor Drive Module Design for Electric Care Bed - inass

Motor Drive Module Design for Electric Care Bed - inass

Motor Drive Module Design for Electric Care Bed - inass

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Figure 11. Hardware <strong>Design</strong> of Hall Sensorlowing introduces the interface between actuatorand drive circuit (shown in Figure 12).In the picture, the interface has four pins, asshown in Figure 9, signal 1 and signal 2 beingtwo outputs of internal position sensor. Whilethe sensor circuit in the actuator is OC gate, soit is necessary to build a pull-up resistor in peripheralcircuit of the internal position sensor,and then Signal 1 output pulse signal (shown inFigure 13).AT90CAN128 collects output pulses and calculatesthe number, frequency, comparing with thepredetermined value, and then controls the actuatorto reach the corresponding position andvelocity. Thus, it achieves electric care bed’sposition and speed control.4.2.2 The software design of position controlPosition control is divided into two parts, one beingabsolute position control, and the other being therelative position control.1. Absolute position controlTo control the position of MDM, reference positionshould be confirmed. Reference positionis designed to achieve through the Hall sensor,using four Hall sensors to control the referenceposition of back’s lifting/falling, leg bending andbody turning over.Horizontal position detection (Reference positiondetection) principle: The Hall sensor is aFigure 12. the Picture of Actuator InterfaceFigure 13. the Picture of Output Pulse Signalmagnetic sensor. When the S-pole of magnetcloses enough, the hall sensor output is low level,otherwise the output is high level. The sensor’soutput signal input AT90CAN128 the INT0, IN-T1, INT2, INT3 four external interrupts (PinPD0,PD1,PD2,PD3), and the falling edge triggerthe interrupt.The external interrupt initialization functions asfollows:void ex init(void){MCUCR=(1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!