Control System of Vending Machine Based on Embeded Operating System and CAN Bus

Author
ZuoRenJiang
Advisor
YuShiMing
School
Zhejiang University of Technology
Major
Detection Technology and Automation
Classification
TP273.5 Computer control, computer control system
Degree
Master's thesis
Year
2007
Downloads
360
Citations
0

Request the full text

Abstract

It must be a trend that the vending machine becomes more and more popular in China due to the rapid economic development and the acceleration of the internationalization. This paper gives a brief introduction of the present situation and the further development of the vending machine and analyze its principle, customer requirement and performance index in details based on the actual project—vending machine for cold and hot beverage, and designs the hardware circuit and software of the control system according to the requirement of the vending machine.In the hardware circuit, the 32bit ARM embedded processor and the CAN bus have been adopted. This part introduces the principle to select the CPU for the embedded system, the general outline for the hardware circuit and functional module in the cold and hot beverage vending machine. To guarantee the reliability of the system, this work designs an architecture consisting of main board and driving board. The two parts communicate through the CAN bus driven by the chips JTA 1040. According to the feature of the vending machine, this job builds up seven operation states and one control states for different systemic situations of the software. The responding flow chart for each situation is listed in the paper, in which the real time operating system ofμC/OS-Ⅱhas been adopted. The operation system has been transplanted successfully into the ARM processor on the main board and control board circuits of the cold and hot beverage vending machine respectively. Meanwhile, the task schedule has been set up according to the system structure and the communication code in the control system has been specified respectively.Lastly, the cold and hot beverage vending machine has been tested in laboratory. The expecting results for adopting the embedded ARM processor system and CAN bus communication on vending machine system have been achieved.

Table of contents

Abstract 5-7 ABSTRACT 7-11 first chapter 11-20 the the 1.1 issues raised background 11-12 the purpose and significance of the 1.2 research the status quo and development trend of 1.3 and abroad 12-18 1.3.1 vending machine sales action implementation research 13 1.3.2 fund settlement and sales information statistics management implementation research 13-17 1.3.3-power saving mode 17-18 1.4 In this paper, the main content 18-20 1.4.1 research 18-19 1.4.2 main features and innovation 19-20 knowledge of the second chapter of the research 20-27 2.1 embedded microprocessor 20-21 2.1.1 embedded system concepts and classifications 20-21 2.1.2 ARM embedded microcontroller 21 2.2 fieldbus technology 21-24 2.2.1 fieldbus generation and development 21-22 2.2.2 fieldbus technical features 22-23 2.2.3 CAN bus technology 23-24 the 2.3 embedded real-time operating system 24-27 the 2.3.1 embedded real-time operating system Introduction 24-25 2.3.2 Introduction to uC/OS- Ⅱ 25-27 Chapter vending machine system analysis 27-33 3.1 hot and cold beverage vending machine structure analysis 27-29 3.2 vending machine sales model analysis 29-30 3.3 hot and cold beverage vending machine user needs analysis 30-33 3.3.1 ordinary users (buyers) needs analysis 30-31 3.3.2 operating user (administrator) needs analysis 31-33 the fourth chapter of the control system hardware circuit design 33-52 4.1 host processor to select 33-38 The general principles of the 4.1.1 ARM processor selection 33-36 4.1.2 This application system processor to select 36-38 4.2 CAN communication interface design 38-42 4.2.1 CAN model structure 38-39 4.2.2 CAN controller internal module 39-40 4.2.3 CAN bus controller TJA1040 introduced 40-41 4.2.4 the control system CAN bus interface circuit 41-42 4.3 control system hardware circuit structure design 42-48 4.3.1 hardware system design requirements and the block diagram 42-44 4.3.2 hardware circuit module 44-48 4.4 hardware circuit the antijamming 48-52 4.4.1 hardware watchdog 48-49 4.4.2 sources of interference suppression 49-50 4.4.3 circuit board wiring 50-52 control system software design 52-78 5.1 control system software structure design 52-55 5.1.1 Control system software structure 52-53 5.1.2 motherboard program modules 53-55 a 5.1.3 driver board program modules 55 5.2 control system software status process 55-62 5.2.1 standby 56 5.2.2 Reset state 56-57 5.2.3 pre-sales status 57-58 5.2.4 Sales status 58-59 5.2.5 end sales status 59-60 5.2.6 suspend sales of state 60-61 5.2.7 Fault Status 61 5.2.8 setting status 61-62 5.3 control system task allocation and scheduling 62-70 5.3.1 Real-time operating system μC / OS-II transplantation 62-67 5.3.2 μC / OS-II task management and scheduling 67-69 5.3.3 of the control system of task allocation and scheduling 69-70 5.4 CAN communication management 70-78 5.4.1 CAN communication specifications 70-74 5.4.2 the design of the control system communication 74-78 Chapter VI system test and run 78-81 Chapter VII Summary and Outlook 81-84 7.1 summarizes 81-82 7.2 Looking 82-84 the References 84-88 Appendix 1 circuit physical map 88-91 Acknowledgements 91-92 the studied papers published by the Master of the period and participate in the project 92

Related dissertations

  1. Design of PLC Source Program Compilation and Internal Communication System Based on ARM and FPGA
  2. Research of Vending Machine with Multi-Payment Function
    JinZhiHua ·Zhejiang University of Technology ·2009 ·Master's thesis
  3. Application of Embedded Technology and CAN Bus in Vending Machine Network
    XieZhongSai ·Zhejiang University of Technology ·2009 ·Master's thesis
  4. The Design of Small Coal Mine Remote Monitoring System Based on ARM
    XuJin ·Northeastern University ·2011 ·Master's thesis
  5. The Design and Realization of Extended System in Distributed Firealarm System Based on Microcontroller
  6. The Design of Monitoring System for the Photovoltaic Plant Based on DSP
  7. Design and Application of the Distributed Monitoring System Based on Embedded Web
  8. Application Research of Data Acquisition Platform Based on ARM and μC/OS-Ⅱ
  9. The Design of Hybrid Electric Bus Data Acquisition and Test System
    LiHuiXian ·Hunan University ·2012 ·Master's thesis
  10. Industrial Field Data Acquisition System Design Based on CAN Bus
  11. Design of the Hazard Source Monitoring System Based on CAN Bus
  12. The Design of Displacement Detection System Based on CPLD Grating Subdividing Technology
  13. Research on Data Acquisition System of Can Bus
  14. The Design and Implementation of Vehicle Data Acquisition and Communication Device Based on CAN Bus
    QianYiWei ·Hunan University ·2013 ·Master's thesis
  15. Design of Remote Monitoring System of Agricultural Field Information Based on GPRS Network
    FeiYongYun ·Nanjing Agricultural College ·2013 ·Master's thesis
  16. Design and Implementation of Intelligent Wiring Hardness Detection System
  17. Research on Indoor Localization System for Intelligent Wheelchair
  18. Research on CAN Bus Communication and Application Experiments
    WangHuaWei ·Harbin Institute of Technology ·2012 ·Master's thesis
  19. Based on Can Field-bus Technology and Web Service Home Intelligent Control System Design and Realization
  20. Research of Fieldbus Relay Basing on CAN Bus