DC motor PID controller

Started by waks_up in 68HC1214 years ago 1 reply

Hi, Im doing a dc motor PID controller. Im using Nanocore12DX. I have an enocoder. It is a quadrature encoder. I have generated PWM signal...

Hi, Im doing a dc motor PID controller. Im using Nanocore12DX. I have an enocoder. It is a quadrature encoder. I have generated PWM signal from HC12 to drive the motor. The question I wanted to ask is how do i implement the PID controller in Codewarrior? Regards, Chai ------------------------------------


Stepper Motors using the 68HC12

Started by Jackie Johnson in 68HC1219 years ago 5 replies

I have enclosed a program that I a working on and am trying to get this program to work properly. My motor is not stopping. Example:...

I have enclosed a program that I a working on and am trying to get this program to work properly. My motor is not stopping. Example: If I want my motor to stop at 90 degrees with a 1.2498 voltage applied via the POT (potentiometer). My motor is continually running and not stopping ba


OT; brushed DC motor speed measurement

Started by Peter Lissenburg in 68HC1217 years ago 8 replies

Hi all, and sorry about this off topic, but I need the collective wisdom of the group. Is it OK, possible, wise, to use the noise spikes of...

Hi all, and sorry about this off topic, but I need the collective wisdom of the group. Is it OK, possible, wise, to use the noise spikes of the drive voltage of a DC motor to measure it's speed? Thanks for any guidance. Peter L.


dc motor control

Started by peter taki in 68HC1214 years ago 1 reply

hi i am in need for the fuzzytech mp programme that help me in my project to c= ontrol the dc motor from the fuzzy to put it to the pic...

hi i am in need for the fuzzytech mp programme that help me in my project to c= ontrol the dc motor from the fuzzy to put it to the pic programme ( 18f452)= if any one can help me and send it to me or any place to get it from thier= i will be thankful . =C2=A0 many thank peter=C2=A0 __________________________________________________________ Sent from Yahoo! Mail. A Smarter Email ...


Stepper motor using an HCS12

Started by robsot99 in 68HC1217 years ago 1 reply

Hi, I have Dragon12 board with a 68HCS12 chip. I'm trying to move a bipolar stepper motor both forward and backward. I have found many codes...

Hi, I have Dragon12 board with a 68HCS12 chip. I'm trying to move a bipolar stepper motor both forward and backward. I have found many codes but I'm not sure which to use. I'm using C language. Does anybody out there have any suggestions??? Any help would be greatly appreciated!!! Thanks!


Dragon12+ board and stepper motor

Started by Matthew Dauer in 68HC1213 years ago 3 replies

I am sorry if this is a duplicate post. I'm not sure if the orig. Post went through. I need help connecting the motor with the dragon board and...

I am sorry if this is a duplicate post. I'm not sure if the orig. Post went through. I need help connecting the motor with the dragon board and its not connecting together. Can someone please give me a quick tutorial on this matter. Any help is greatly appreciated. Thanks so much ------------------------------------


Controlling a servo motor with PWM

Started by Marc La***rt in 68HC1216 years ago 6 replies

Hello, Im trying to learn how to use the pulse width modulation feature of the MC9S12DP256C by using it to control a simple futaba servo...

Hello, Im trying to learn how to use the pulse width modulation feature of the MC9S12DP256C by using it to control a simple futaba servo motor. however I cant seem to get any movement out of it and im not exactly sure why. I have the white command wire conencted to PortP0 and code as followed: $HC12 ORG $0D00 PWEN: equ $0042 ; PWM enable register PWPE


Incremental rotary sensor (motor) as input to HCS12

Started by Marek Peca in 68HC1218 years ago 9 replies

Dear colleagues, I'd like to use HCS12 in one application, where the user input will be from discrete incremental rotary sensor (in...

Dear colleagues, I'd like to use HCS12 in one application, where the user input will be from discrete incremental rotary sensor (in fact, HDD motor with appropriate shaping amplifiers). It gives two logical signals, which are phase shifted (if driven by constant velocity, shift is 90deg.): A: 000011110000111100001111 B: 00111100001111000011110


Stepper motor control usig HC12

Started by fhgrossi in 68HC1216 years ago 1 reply

Hi, everyone! Has somebody had any experience with stepper motor control using HC12 uC? Any hint or issue about it would be very...

Hi, everyone! Has somebody had any experience with stepper motor control using HC12 uC? Any hint or issue about it would be very helpful. Thanks a lot Fabio ------------------------ Yahoo! Groups Sponsor --------------------~--> Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/dN_tlB/TM ---------------------


Adapt9S12DP256M Development Board - Closed-loop Stepper Motor Control

Started by yawjiun_84 in 68HC1215 years ago 1 reply

Hi, How to use this development board in order to develop the stepper motor control system? What are the module/block I should use in...

Hi, How to use this development board in order to develop the stepper motor control system? What are the module/block I should use in this system? Basically, my system is like this: 1. Firstly, there will be a Graphical User Interface (GUI) for the user to input their desired position, speed and direction. This GUI will communicate with MC9S12DP256B through RS232. Any reference for ...


Dragon 12 evaluation board

Started by sitaadi in 68HC1214 years ago 1 reply

Does anybody have a complete description of the pins on this board ? I need to use the DC motor driver and the PWM module that comes...

Does anybody have a complete description of the pins on this board ? I need to use the DC motor driver and the PWM module that comes built within the board but not sure what pins tu use . Any suggestions ? Thank you ------------------------------------


PWM ports on HCS12

Started by Naheed M K in 68HC1219 years ago 2 replies

Hi, Could I drive any motors directly using HCS12 output port pin with out any Drivers(H-bridge). If yes then could you please...

Hi, Could I drive any motors directly using HCS12 output port pin with out any Drivers(H-bridge). If yes then could you please give the partno of that motor preferably with rotary encoders. Thanks Naheed


Analog to Digital conversion

Started by leoshakeme in 68HC1217 years ago 4 replies

Hi, I am very new to microcontrollers. I am using a MC9S12DP256C on a trainer board. To develop I'm using CodeWarrior and C code. It is all...

Hi, I am very new to microcontrollers. I am using a MC9S12DP256C on a trainer board. To develop I'm using CodeWarrior and C code. It is all overwhelming. I am trying to write a program that will compare two voltages and depending on which voltage is greater to send a digital signal to a stepper motor controller. My biggest problem stems from interfacing. I dont know how to initializ


Controlling a Servo with the HC12?

Started by defe...@gmail.com in 68HC1213 years ago 18 replies

Hello, I am trying to control a Parallax Continuous Rotation Servo (#900-00008) using my MC9S12C128CFUE. I need to to use PWM to give a pulse...

Hello, I am trying to control a Parallax Continuous Rotation Servo (#900-00008) using my MC9S12C128CFUE. I need to to use PWM to give a pulse 1.5ms(rest), 1.3ms (clockwise), and 1.7ms (counter-clockwise) every 20ms/50Hz. I can spin the motor, but it only ever spins in 1 direction and I can not make it stop spinning even if I try to calibrate it. Any help is appreciated. Here is my current co...


Quadrature Inputs

Started by Paul Johnson in 68HC1220 years ago 23 replies

I'm surprised, given the number of embedded applications involving motor control or data capture, that almost no micros out there...

I'm surprised, given the number of embedded applications involving motor control or data capture, that almost no micros out there support quadrature input. On our products, we use Xilinx FPGA's that provide 8 sets of quadrature input and handle all the accumulation, etc. Howev


Dragon 12 SCI

Started by nishanth_r in 68HC1212 years ago 7 replies

Hey All, I'm working on a project with a Dragon12 board running codewarrior for the code. i'm trying to get position control of an arm...

Hey All, I'm working on a project with a Dragon12 board running codewarrior for the code. i'm trying to get position control of an arm connected to a motor. I manged to get this done, but it kinda oscillates and so my professor suggested i analyse the position values to get a proper proportional control value. i'm trying to use SCI to get output my position error values so i can plot them. ...


Help on Codewarrior ( HCS12 ) PC simulation

Started by mdn4u in 68HC1219 years ago 4 replies

Hi all, I am working towards designing motor control system using motorola HCS12 MCU. Just bought Codewarrior Standard edition...

Hi all, I am working towards designing motor control system using motorola HCS12 MCU. Just bought Codewarrior Standard edition as development environment and expecting DP256 evolution board in 2-3 weeks. To reduce the development time I am planning to use Codewarrior


HC9S12NE64 and Binary Serial Monitor Question

Started by equaltemperment in 68HC1217 years ago 5 replies

I am evaluating the Softec AK-S12NE64-A Starter Kit with the Freescale HC9S12NE64 that comes with built in Ethernet and webserver ...

I am evaluating the Softec AK-S12NE64-A Starter Kit with the Freescale HC9S12NE64 that comes with built in Ethernet and webserver software ( http://softecmicro.com/products.htm l?type=detail& title=AK-S12NE64-A). The board works great, and with the onboard motor controller, temperature sensor with