STC无刷电调开发板PCB-V2.0
无刷电调编程讲解

无刷电调编程讲解
无刷电调是一种电子元件,常用于控制电机的转速和方向。
为了实现不同的功能,需要对无刷电调进行编程。
下面是无刷电调编程的讲解:
1. 确定编程设备:通常使用电脑和USB转串口线作为编程设备。
2. 安装编程软件:根据无刷电调的品牌和型号,选择相应的编程软件并安装。
3. 连接电调和编程设备:将USB转串口线连接到电脑的USB端口上,另一头连接到电调的编程口上。
4. 进入编程模式:根据电调的说明书,按压指定按键或操作指令,进入编程模式。
5. 编写程序:在编程软件中编写程序,实现电调所需的功能。
常见的功能包括调整最大电流、最大转速和刹车时间等。
6. 下载程序:将编写好的程序下载到电调中,以实现相应的功能。
7. 测试:将电调和电机连接,进行测试以确认编程是否成功。
如果存在问题,可以重新进入编程模式并修改程序。
以上就是无刷电调编程的基本讲解,希望能够帮助大家更好地理解和使用无刷电调。
- 1 -。
HOBBYWING无刷电调说明书

0102Specifications03Begin to Use the New Brushless ESC04ESC Programming05Programmable Items06Data Checking07Normal Start-up ProcessProgrammable Item List of Platinum 60A V4 ESC. (“*” in the form below indicate factory defaults. )Programmable Item List of Multifunction LCD Program BoxUSER MANUALPlatinum 60A V4Brushless Electronic Speed Controller201512031. Flight Mode1.1. In “Fixed-wing” mode, the motor will start up when the throttle amount reaches 5% or above. There is no soft start-up, the motor responds to the throttle increase rapidly.1.2. In “Helicopter (Linear Throttle)” mode, the motor will start up when the throttle amount reaches 5% or above. And it will accelerate to the RPM corresponds to the specific throttle amount in the preset start-up time (4~25s). 1.3. In “Helicopter (Elf Governor)” mode, the motor will start up when the throttle amount reaches 40% or above. And it will complete the speed standardization and enter the speed-governing operation in the preset start-up time(4~25s). In this mode, the motor will standardize its speed every time it starts up. Due to different discharge rates/capabilities of different batteries, the RPM you standardize each time may be a little different. In consequence, at the same throttle amount, the RPM may be a bit different when using different batteries, but this won’t affect the speed-governing effect.1.4. In “Helicopter (Store Governor)” mode, the motor will start up when the throttle amount reaches 40% or above. It will also start up in a very soft way. And it will also complete the speed standardization and enter thespeed-governing operation in the preset start-up time. In this mode, the motor will only standardize its speed the first time when it starts up. When performing RPM standardization for the first time, we recommend using afully-charged battery with good discharge capability. After the RPM standardization, change another battery to fly your aircraft. At the same throttle amount, the RPM should be the same as the RPM of the first flight. For consistent control feel, we recommend using this mode. About RPM Standardization & Others• The motor will enter the soft start-up when user switches the throttle amount from 0 to 40% or above (50% throttle is recommended). The pitch of main blades should be 0 degree during the soft start-up process, the RPMstandardization completes when the soft start-up ends, and the ESC makes the motor enter the speed-governing state. In “Helicopter (Store Governor)” mode, if user wants to re-standardize the speed, he needs to set the flight mode to “Helicopter (Elf Governor)” and save this mode first, and then reset the flight mode back to “Helicopter (Store Governor)”, then the ESC will re-standardize the motor speed when the motor rotates for the first time after the ESC is powered off and then on again.• For ensuring the speed-governing effect, we recommend setting the throttle amount to 85% or below in both speed-governing modes (Helicopter (Elf Governor)&Helicopter (Store Governor), so there will be sufficient compensating room to maintain the consistency of the RPM. We recommend replacing the motor or adjusting the gear ratio if the expected RPM still cannot be reached when the throttle amount exceeds 85%. (Note: You need to re-standardize the RPM after replacing the motor, blades, body frame or adjusting the gear ratio.)• In “Heli Store Governor” mode, if you fly your aircraft with another pack that has poor discharge capability after the RPM standardization (with a pack which has good discharge capability), the pack has poor discharge capability will get damaged.• In “Helicopter (Store Governor)” mode, different battery packs can bring the same stable RPM only if they have the same cell count. This won’t change even when you change the battery pack. However, battery packs with different cell count don’t have the same effect. For instance, in “Helicopter (Store Governor)” mode, you can not use a 4S to calibrate the motor RPM and then use a 6S to drive the motor, hoping it can run at the same RPM. • User can decide the control feel via adjusting Governor Parameter P/I. In “Helicopter (Store Governor)” mode, connect your ESC to a smart phone or PC, then you can check the throttle vs speed chart.2. LiPo Cells: the ESC will automatically calculate the number of LiPo cells you have plugged in as per the “3.7V/Cell” rule if “Auto Calc” is selected. Or user can set this item manually.3. Voltage Cutoff Type: the ESC will gradually reduce the output to 50% of the full power in 3 seconds after the voltage cutoff protection is activated, if soft mode is selected..It will immediately cut off all the output when hard mode is selected.4. Cutoff Voltage: 2.7V-3.7V (custom), 3.3V (default).5. BEC Voltage: 5-8V (adjustable), 0.1V (step), 6V (default).6. Start-up Time: 4-25s (adjustable), 1s (step), 15s (default). (Note: It only functions in Heli Elf/Store Governor Mode)7. Governor Parameter P: Control the ESC maintaining the stability of the current motor speed.8. Governor Parameter I: Control the dynamic response. To be specific, control the supplement extent when the actual motor speed is below expectation. If you choose a very big value, then the supplement may be too much. If select a very small value, then the supplement may not sufficient.9. Auto Restart Time: the ESC will cut off its output when the throttle amount is between 25% and 40%. If you increase the throttle amount to above 40% within preset time period (0-90s), the motor will rapidly start up and accelerate to the speed (in the programmed Restart Acceleration Time) corresponds to the specific throttle amount, complete the shutdown and restart up.If you move the throttle stick to over 40% beyond the preset time period, the ESC will enter the soft start-up process. (Note: This function won’t effect unless the throttle amount is over 25% and it only effects in “Heli Governor Elf/Store” mode.)10. Restart Acceleration Time: 1-3s (adjustable), 0.5s (step), 1.5s (default). This item controls the time the motor will cost to restart and accelerate to the full speed. (This function only effects in “Heli Governor Elf/Store” mode) 11. Brake Type11.1. Proportional Brake: when the throttle range on the transmitter is between 20% and 100%, the corresponding ESC throttle output is between 0% and 100%.When the throttle range on the transmitter is between 20% and 0%, the corresponding brake force is between 0 and 100%.11.2. Reverse: after selecting this option, the RPM signal wire will turn into a reverse signal wire (the signal range is in line with the throttle range). After setting a channel on the transmitter, when the reverse signal length is above 20% signal length, the Reverse mode will be activated. The reverse signal length must be below 20% signal length when the ESC is powered on for the first time. When the reverse signal length is below 20% signal length, 0-100%throttle corresponds to “CW”; when the reverse signal length is above 20% signal length, the motor will stop spinning CW (and then spin CCW); at this time, 0-100% throttle corresponds to “CCW”. Any signal loss will activate the throttle signal loss protection, no matter it happens to the RPM signal wire or the throttle signal cable during the flight.12. Brake Force: 0-100% (adjustable), 1% (step), 0 (default). (Note: this function only effects in “Normal Brake” mode.)13. Timing: 0-30° (adjustable), 1° (step), 15° (default).14. Motor Rotation: CW/CCW. User can adjust this item via a multifunction LCD program box.15. DEO Freewheeling: User can decide this function “Enabled” or “Disabled” in “Fixed Wing” mode or in “Heli (Linear Throttle Response)” mode. This item has been preset to “Enabled” and cannot be adjusted in “Heli (Elf Governor/Store Governor)” mode. This function can brings better throttle linearity.Model Application Input VoltageCont./Peak Current (10s)(Switch-mode) BEC Platinum 60A V4450-480 Class Heli (Propeller: 325-360mm )3-6S LiPo 60A/80A5V-8V Adjustable (Step: 0.1V), 7A/18A Cont./Peak For connecting LCD Program Box/WIFI Express White Throttle Signal Wire/Red & Black BEC Output Wires/Yellow RPM Signal Transmission Wire14AWG Input/Output Wires 49g / 48x30x15.5mmProgrammingConnect the LCD program box and a battery to your ESC as shown above.Platinum 60A V4Program Your ESC with a WIFI Express: For detailed information, please refer to the user manual of WIFI Express.Turn on the transmitter, and then move the throttle stick to the bottom position.After connected to a battery, the ESC will emit “♪123” indicating it’s normally powered on.The motor will emit several beeps to indicate the number of LiPo cells.The motor emits a long beep indicating the ESC is ready to go.08Explanations for Warning Tones1. Input voltage is abnormal: The ESC will measure the input voltage the moment when it’s powered on. The motor will keep beeping “BB, BB, BB” (the interval between two BBs is 1 second) when the input voltage is beyond the normal range. The warning tone won’t stop until the voltage turns normal.2. Throttle signal loss protection is activated: The motor will beep “B-, B-, B-” (the interval between two B-s is 2 seconds) when the ESC doesn’t detect any throttle signal.3. Throttle stick is not at the bottom position: The motor will beep “B-B-B-B-B-” when the throttle stick is not moved to the bottom position.4. Throttle range is too narrow: The motor will beep “B-B-B-B-B-” when the throttle range you set is too narrow (when designing this ESC, it requires that the entire throttle range you set cannot be less than 50% of the whole throttle range available on the transmitter.) The warning tone indicates the throttle range you set is void and you need to set it again.09Explanations for Multiple Protections1. Start-up Protection: The ESC will monitor the motor speed during the start-up process. When the speed stops increasing or the speed increase is not stable, the ESC will take it as a start-up failure. At that time, if the throttle amount is less than 15%, the ESC will automatically try to restart up; if it is larger than 15%, you need to move the throttle stick to back the bottom position and then restart up the ESC. (Possible causes of this problem: poor connection/ disconnection between the ESC and motor wires, propellers are blocked, etc.)2. ESC Thermal Protection: The ESC will gradually reduce the output but won’t cut it off completely when the ESC temperature goes above 110℃. For ensuring the motor can still get some power and won’t causecrashes, so the maximum reduction is about 50% of the full power. The ESC will gradually resume its maximum power after the temperature lowers down. In addition, the ESC temperature cannot exceed 70℃ when it’s powered on. Otherwise, it cannot be started up. (Here we are describing the ESC’s reaction in soft cutoff mode, while if in hard cutoff mode; it will immediately cut off the power.)3. Capacitor Thermal Protection: The ESC will activate this protection when the operating temperature of capacitors goes over 130℃. It protects capacitors in the same way as the ESC thermal protection does to the ESC .4. Throttle Signal Loss Protection: When the ESC detects loss of signal for over 0.25 second, it will cut off the output immediately to avoid an even greater loss which may be caused by the continuous high-speed rotation of propellers or rotor blades. The ESC will resume the corresponding output after normal signals are received.5. Overload Protection: The ESC will cut off the power/output or automatically restart itself when the load suddenly increases to a very high value. (Possible cause to sudden load increase is that propellers are blocked.)0104可编程参数项目及其说明Platinum 60A V420151203空模无刷电子调速器使用说明书下表中带“*”的为出厂默认参数:可编程参数表(英文对照)1、飞行模式1.1 固定翼模式下,油门达到5%启动电机,无缓启动,油门响应迅速;1.2 直升机线性模式下,油门达到5%启动电机,有缓启动,马达在设定的缓启动时间内加速至当前油门应有转速;1.3 直升机精灵定速模式下,油门达到40%启动电机,有缓启动,马达在设定的缓启动时间内完成转速标定进入定速运行状态。
普中HC6800-ESV2.0单片机开发板教程讲解

学习指南
普中科技
第一讲
本开发板相对以往开发板的特点是综合性比较高、把短路冒去掉了省去接线的麻烦更加方便了初学者、是一款性价比极高的产品,提供USB2.0和串口两种通信方式,USB实现供电、编程、仿真、通信多种功能,另外还提供了Atmel单片机的ISP接口。此板兼容STC、SST、Atmel、Philips等51家族的所有单片机。如果使用ISP编程建议使用开发板自带的单片机,因为每个厂烧录程序的方式不一样。HC6800开发板有着丰富的外部资源,
在usb转串口驱动安装成功后,打开软件应该有串口号,如图指示。一般笔记本建议使用低速下载,台式可以使用高速下载,如果笔记本使用高速下载的话那么会报警波特率超时。
2.芯片类型选择STC90C5XX(具体的要根据您板子上使用的单片机型号)
如下图。
加载我们要下载到单片机里的程序,单击 ,选择下载的后缀为.Hex的文件,
I agree all the tems of……选中
点击Next >>
设置安装目录,根据自己的情况选中安装目录,重新设置点击Browse,这里默认C盘,设置好安装目录后 点击Next>>
输入相关信息(随便输入),输入完毕后点击Next>>
开始安装,安装过程中……..等待安装完成
安装完成,点击 Finish 即可。
打开后,会在文件名处有提示:文件路径,还有代码大小。
4最后一步:点击下载程序 ,下载成功如图显示。
此时继电器工作会有小的啪啪的响声。
接下来我们用官方STC 下载软件下载
1.选择开发板上单片机型号,我们选STC90C516
2.选择串口,可通过设备管理器查看
好盈科技有限公司 XERUN -SCT PRO车用无刷电子调速器( ESC)说明书

感谢您购买本产品!无刷动力系统功率强大,错误的使用可能造成人身伤害和设备损坏。
我们强烈建议您在使用设备前仔细阅读本说明书,并严格遵守规定的操作程序。
我们不承担因使用本产品而引起的任何责任,包括但不限于对附带损失或间接损失的赔偿责任;同时,我们不承担因擅自对产品进行修改所引起的任何责任。
我们有权在不经通知的情况下变更产品设计、外观、性能及使用要求。
【产品特色】↓适合短途卡车及1:8比例越野车;↓配合有感无刷电机,具有极为出色的操控手感。
同时也兼容无感无刷电机;↓内置开关稳压模式(Switching Mode)BEC,具备强大的电流输出能力,即使工作于4S锂电时也无需外挂UBEC;↓丰富的可编程参数,适合各种使用环境;↓优异的启动效果(9种启动加速度选项)、出色的加速性能和油门线性度;↓比例式刹车:5段最大刹车力度调节、8段拖刹力度调节、4段初始刹车力度调节;且兼容传统机械式碟刹系统;↓多重保护功能:电压过低保护(用于防止锂电池过度放电)、过温保护、油门失控保护、堵转保护;↓单键编程设定,单键恢复出厂默认参数;↓可选购轻巧便携的车用电调编程设定卡,方便外场使用。
设定卡具有友好的人机界面;↓可利用LCD编程盒(选配件)上的USB适配器将电调和个人电脑相连,升级电调固件,永久享用最新功能。
↓主要电子零件密封完好,防溅水防尘土。
↓底面有安装孔,便于安装;【车用无刷电子调速器产品规格】备注1:电调上的散热风扇由内置BEC供电而不是从电池组直接取电,所以使用5V 风扇即可,无需考虑输入电压的高低。
【首次使用车用无刷电子调速器】警告!本系统功率强劲,为安全起见,请在车轮悬空的情况下开启电调上的控制开关!第一步:根据所使用的电机,按相应的图示接线并复查无误后,进入下一步。
第二步:设定油门行程。
强调:电调第一次使用或遥控器更改过油门中点、ATV、EPA等参数后,均需重设油门行程,不然可能会导致无法使用或误动作。
下面以Futaba遥控器为例,说明油门行程的设定过程。
新编程卡系列无刷电调说明书

尊敬的用户: 感谢您对我们产品的信任,购买我们的无刷马达电子调速器。为了保障你的权益,
在使用本产品前请仔细阅读本说明书
注意事项: 使用前应完全阅读说明 只使用高质量的新插头,必须很好的焊接控制器的电线(插头不能有助焊剂残留物) 连接电池的电源线可以最大延长至20厘米 注意所有电线和接收机天线之间的距离,应尽可能地保持最大 在飞行器即将飞行前将电池连上飞行系统,登陆后马上断开 如果您不使用这个模型,请总是将所有电池与飞行系统断开 请勿将电子调速器或电池的极性接反、或使用不同型号的连接器 除了连接合适的电池(相应的输入电压和电流负载),请勿将电子调速器连接到直 流电源上 每次开机之前都要检查调速器和接收器电路和发射频率 请将模型中的调速器置于制冷气流中,并留一个通风孔以保证有充足的空气量(进 风孔和出风孔)
祝您飞行成功!
第4页
电子调速器安装 考虑到冷却效果、电线长度和接收机天线位置,请为调速器选择合适的位置 请将JR连接器插入接收器油门通道 传送器油门杆必须位于电机停止的位置上 连接飞行器电池(注意极性正确) 电池必须一次性连接OK,注意不能用插头多次插拔 电机发出“哔” 一声或“哔、哔” 两声说明连接正确,电子调速器一切就绪,等 待您推动油门启动电机 若听到“哔”一声,说明制动刹车已启动,若听到“哔、哔”两声,说明刹车功能 未启动 您现在可以使用油门杆来启动电机了 如果上述确认的蜂鸣声没有出现,请断开飞行器电池并检查:JR插头是否与油门通 道正确连接,油门摇杆是否处于最低位置(刹车/停止)或者传送器油门通道可能 处于相反位置 电机旋转方向的改变既可以通过电机和调速器之间3条连接线中的任意2条连接线 互换来实现,也可以通过调节ProgCard Pro程序卡来实现
关断电压模式 高 中 低
普中HC6800-ES-V2.0单片机开发板教程

重新上电后,会出现
开始下载程序,下载完成。上图表示下载成功。
现在用官方软件下载几乎都要手动重新给单片机上电过程。市面的开发板主要也都是采用这种下载方式。 建议使用普中软件自动下载。
第
单片机开发中除必要的硬件外,同样离不开软件,我们写的汇编语言源程序要变为 CPU 可以执行的机器码有两种方法,一种是手工汇编,另一种是机器汇编,目前已极少使用手工汇编的方法了。机器汇编是通过汇编软件将源程序变为机器码,用于 MCS-51 单片机的汇编软件有早期的 A51,随着单片机开发技术的不断发展,从普遍使用汇编语言到逐渐使用高级语言开发,单片机的开发软件也在不断发展,Keil 软件是目前最流行开发 MCS-51 系列单片机的软件,这从近年来各仿真机厂商纷纷宣布全面支持 Keil 即可看出。Keil 提供了包括 C 编译器、宏汇编、连接器、库管理和一个功能强大的仿真调试器等在内的完整开发方案,通过一个集成开发环境(uVision)将这些部份组合在一起。运行 Keil 软件需要 Pentium 或以上的 CPU,16MB 或更多 RAM、20M 以上空闲的硬盘空间、WIN98、NT、WIN2000、WINXP 等操作系统。掌握这一软件的使用对于使用 51 系列单片机的爱好者来说是十分必要的,如果你使用C语言编程,那么Keil几乎就是你的不二之选(目前在国内你只能买到该软件、而你买的仿真机也很可能只支持该软件),即使不使用C语言而仅用汇编语言编程,其方便易用的集成环境、强大的软件仿真调试工具也会令你事半功倍。
显示成功的COM口
安装不成功解决办法
如果发现是下图感叹号,则没有安装成功或者没有安装、右键点击更新驱动程序
选择“从列表或指定位置安装(推荐)”
XC电调说明书V2.0

4
如果自检错误,会连续发出 20 声很短的“beeb-”音。 3、低保压护保处护理:默认为 0.0V,系统自动识别锂电节数并计算低压值。电机工作时,当电池电压
低于设定的低压域值时,立即关闭电机。 油门信号丢失保护:信号丢失,0.3 秒钟后,立即关闭。 过温保护:当复控。制板板的温度超过约 100℃时,功率降到 20%运行。温度降低,则功率恢 硬件自检:每次上电时,系统会自检,如果硬件有故障,会连续发出 20 声很短的“beeb-”
单。
(三)、编程过程
将电调的 接通电 通过“ 键” 按“
断开电
电
PPM 线按
源,编
浏览参数,按
键”确认
源,将
调
正确的的
程卡自
“ 键”确
修改参
PPM 线从
断 方向插到 动读取 认修改项,按 数,按“WR 编程卡中
电 编程卡的 电调中 “ 键 ” 键”将新 拔出,接
插槽中
的各参 “ 键”进 参数写入 到接收机
二、产品规格
型号
持续工 电池节数 尺寸(mm) 重 量 BEC 编程卡 按键
作电流 锂电 镍镉镍氢 长 x 宽 x 高 (g) ( ) Linear 编程 编程
XC-6A
6A 1-2
3-8
12x20x5
4
1A/5V
是 不可
XC-10A
10A 1-2
3-8
22x17x7
8
1A/5V
是 不可
Quik-30A
动键,用于修 ⑴光标上下移动键,用于翻屏 ⑴当光标在最左侧时,按下该键,则进 参数,按下该
功能说明
改有两位以 上数值的参
⑵修改设置项的选项或值。若 是选项,则循环选择,若是数
stc单片机无刷电机程序

stc单片机无刷电机程序STC单片机是一种常用的嵌入式系统开发平台,可以用于控制各种电器设备。
本文将介绍如何使用STC单片机编写无刷电机程序。
无刷电机是一种高效、低噪音的电动机,广泛应用于各种领域,如工业自动化、机器人、电动车等。
无刷电机的控制需要精确的电流控制和定位算法。
STC单片机提供了丰富的功能和接口,可以方便地与无刷电机进行通信和控制。
下面将介绍几个常用的步骤来编写无刷电机程序。
需要配置STC单片机的引脚和时钟。
根据无刷电机的规格书,确定需要使用的引脚和时钟频率。
然后,在STC单片机的开发环境中,设置相应的引脚和时钟配置。
接下来,需要编写控制无刷电机的算法。
无刷电机的控制一般采用PWM(脉冲宽度调制)方式,通过调整PWM信号的占空比来控制电机的转速和方向。
利用STC单片机的定时器模块,可以方便地生成PWM信号。
然后,需要编写无刷电机的驱动程序。
无刷电机通常需要外部的驱动电路来实现精确的电流控制。
可以利用STC单片机的IO口输出控制信号,通过外部驱动电路来控制无刷电机的电流。
在编写驱动程序的过程中,需要注意电机的相序问题。
无刷电机的转子上有多个磁极,与之对应的是固定在电机外部的多个电磁绕组,称为定子。
通过控制定子上的电流,可以产生旋转磁场,从而驱动电机转动。
需要编写无刷电机的定位算法。
无刷电机通常需要实现精确的定位控制,以满足不同应用的需求。
可以利用STC单片机的编码器接口和定时器模块,实现无刷电机的精确定位。
编写完无刷电机程序后,可以通过串口或其他通信接口与STC单片机进行通信,实现远程控制和监控。
可以通过发送指令来控制电机的转速和方向,也可以接收电机的状态信息。
STC单片机是一种功能强大的开发平台,可以方便地编写无刷电机程序。
通过合理配置引脚和时钟,编写控制算法和驱动程序,实现精确的电流控制和定位控制。
希望本文对读者能够有所帮助,进一步了解和应用STC单片机的无刷电机控制。