首先研究CAN總線和SAE J1939協議,提出一種基于MC9S12HZ256微控制器的總線式汽車數字儀表解決方案。詳細介紹SAE J1939協議的報文幀格式及應用層協議中發動機相關參數的定義,以及步進電機及其驅動和車速信號的處理方法。該數字儀表系統硬件平臺由微處理器和信號采集和信息處理及顯示等模塊組成。軟件設計部分編程實現了對CAN總線和各傳感器數據的讀取、處理。該系統能夠實時反映車輛工況。 Abstract: In this paper,CAN bus and SAE J1939protocol are researched,and a vehicle digital instrument solution based on MC9S12HZ256MCU is proposed.The message frame format and some engine-related parameters’definition in SAE J1939application layer protocol are introduced in detail.Stepper motor and its driver,the methods of speed signal process-ing are also introduced.The hardware platform of vehicle digital instrument is composed by MCU,signal acquisition mod-ule,and signal processing and displaying module.Data receiving and processing from CAN bus and sensors are accom-plished by programming,and vehicle condition can be reflected in real-time.
上傳時間: 2013-10-20
上傳用戶:huannan88
AT89C2051驅動步進電機的電路和源碼:AT89C2051驅動步進電機的電路和源碼 程序:Stepper.c Stepper.hex/* * Stepper.C * sweeping Stepper's rotor cw and cww 400 steps * Copyright (c) 1999 by W.Sirichote */#i nclude c:\mc5151io.h /* include i/o header file */ #i nclude c:\mc5151reg.hregister unsigned char j,flag1,temp; register unsigned int cw_n,ccw_n;unsigned char step[8]={0x80,0xc0,0x40,0x60,0x20,0x30,0x10,0x90} #define n 400/* flag1 mask byte 0x01 run cw() 0x02 run ccw() */main(){ flag1=0; serinit(9600); disable(); /* no need timer interrupt */ cw_n = n; /* initial step number for cw */ flag1 |=0x01; /* initial enable cw() */while(1){ { tick_wait(); /* wait for 10ms elapsed */energize(); /* round-robin execution the following tasks every 10ms */ cw(); ccw(); } }}cw(){ if((flag1&0x01)!=0) { cw_n--; /* decrement cw step number */ if (cw_n !=0) j++; /* if not zero increment index j */ else {flag1&=~0x01; /* disable cw() execution */ ccw_n = n; /* reload step number to ccw counter */ flag1 |=0x02; /* enable cww() execution */ } }
上傳時間: 2013-11-21
上傳用戶:boyaboy
51單片機驅動步進電機(含電路圖和源程序代碼) 源程序:Stepper.c Stepper.hex /* * Stepper.C * sweeping Stepper's rotor cw and cww 400 steps * Copyright (c) 1999 by W.Sirichote */ #i nclude c:\mc5151io.h /* include i/o header file */ #i nclude c:\mc5151reg.h register unsigned char j,flag1,temp; register unsigned int cw_n,ccw_n; unsigned char step[8]={0x80,0xc0,0x40,0x60,0x20,0x30,0x10,0x90} #define n 400 /* flag1 mask byte 0x01 run cw() 0x02 run ccw() */
上傳時間: 2013-11-09
上傳用戶:釣鰲牧馬
壓縮包里包含有JX44B0教學實驗系統用戶手冊及該系統的全套試驗例程,用c編寫,在ADT環境下編譯后下載到 實驗板即可執行,是學習arm開發的有用例程 源文件說明 Leddemo LED顯示實驗 Led LED 顯示實驗 Serial 串口實驗 Interrupt 外部中斷實驗 Dma DMA實驗 Pwm PWM實驗 Rtc 實時時鐘實驗 Watchdog 看門狗實驗 Ad AD 采樣實驗 Stepper 步進電機驅動實驗實驗 Key 鍵盤驅動實驗 Dispchar 漢字字符顯示實驗 Dispgraph 圖形顯示實驗 Iic IIC 總線實驗 Tftp TFTP 文件傳輸實驗 Usb USB 數據傳輸實驗 Iis 立體聲錄放音實驗 Touch 觸摸屏驅動實驗 cf CF卡實驗 ide IDE硬盤接口驅動實驗 parallel 并行打印機接口通訊實驗 Ucos-ii UCOS-II實驗:Eg1, Eg2, Eg3, Eg4 gprs GPRS相關實驗(主叫實驗,被叫實驗,收短信實驗和發短信實驗) gps GPS實驗
上傳時間: 2013-12-05
上傳用戶:han_zh
用PIC控制步進電機完整資料?。∠M麑Υ蠹矣袔椭?! F84程序, ******************************************************** Stepper Motor controller Author : Seiichi Inoue ******************************************************** list p=pic16f84a
上傳時間: 2013-12-27
上傳用戶:dave520l
The goal of our final project was to design an efficient elevator simulator that can accept input from a user and mechanically operate (on a small scale) a system of 4 floors and 3 elevators using pulleys and Stepper motors. Users enter input using physical pushbuttons or the computer. This input is then processed by the MCU and orders are given to the elevators. We attempted to devise an algorithm that can optimally handle any number of floors. This project seemed like a fun challenge and something that had practical applications. Both of us have been frustrated at times by the inefficiency of some of the elevators here at Cornell, and we wanted to see if we could do a better job.
標簽: efficient simulator elevator project
上傳時間: 2013-11-25
上傳用戶:cjf0304
Servomotors are available as AC or DC motors. Early servomotors were generally DC motors because the only type of control for large currents was through SCRs for many years. As transistors became capable of controlling larger currents and switching the large currents at higher frequencies, the AC servomotor became used more often. Early servomotors were specifically designed for servo amplifiers. Today a class of motors is designed for applica-tions that may use a servo amplifier or a variable-frequency controller, which means that a motor may be used in a servo system in one application, and used in a variable-frequency drive in another application. Some companies also call any closed-loop system that does not use a Stepper motor a servo system, so it is possible for a simple AC induction motor that is connected to a velocity controller to be called a servomotor.
標簽: motors Servomotors servomotors available
上傳時間: 2014-08-10
上傳用戶:源碼3
該步進電機驅動器又稱為EasyDriver,EasyDriver能夠為兩級步進電機提供大約每相750mA(兩極一共1.5A)的驅動。它默認設置為8步細分模式(所以如果你的電機是每圈200步,你使用EasyDriver時默認為每圈1600步),更多細分模式可以通過將MS1或MS2兩個接腳接地進行設置。這是一種基于Allegro A3967驅動芯片的細分斷路器。對于此設計的完整規格,請查閱A3967的參數表。它的最大每相電流從150mA到750mA??梢圆捎玫淖畲篁寗与妷捍蟾攀?0V,其中包括板載5V的調壓器,所以只需要一個電源。質優價廉,這玩意兒只要十幾美元,比你自己制作電路板更便宜。步進電機驅動器設計特色:· A3967 Microstepping Driver· MS1 and MS2 pins broken out to change microstepping resolution to full, half, quarter and eighth steps (defaults to eighth)· Compatible with 4, 6, and 8 wire Stepper motors of any voltage· Adjustable current control from 150mA/phase to 700mA/phase· Power supply range from 6V to 30V. The higher the voltage, the higher the torque at high speeds
上傳時間: 2022-04-27
上傳用戶:
說明: 基于stm32f103c8t6單片機的步進電機控制源碼,固件庫為3.5版本(Based on single-chip Stepper motor control stm32f103c8t6 source firmware library version 3.5)
標簽: stm32f103c8t6 單片機 步進電機
上傳時間: 2022-05-16
上傳用戶:xsr1983
說明: STM32單片機4軸步進電機加減速控制算法MDK源碼(STM32 MCU 4-axis Stepper motor acceleration and deceleration control algorithm MDK source code)
上傳時間: 2022-06-07
上傳用戶: