首先研究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控制步进电机完整资料!!希望对大家有帮助! 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。可以采用的最大驱动电压大概是30V,其中包括板载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
上传用户: