Problem with controlling motor

Started by Gavin in 68HC1211 years ago 2 replies

Hey All I'm using the MC9S12NE64, I've written a simple code so that when a switch is pressed it will turn a motor on for 1/2 second. I'm...

Hey All I'm using the MC9S12NE64, I've written a simple code so that when a switch is pressed it will turn a motor on for 1/2 second. I'm using the 3.3v from the NE64 to power everything. When testing with a LED everything works as it should. The light switched on for 1/2 seconds. But when I replace it with the motor nothing happens. Can someone please help me and tell me why the ...


Running a Simple motor

Started by Gavin in 68HC1211 years ago 2 replies

Hey All I'm using the MC9S12NE64, I've written a simple code so that when a switch is pressed it will turn a motor on for 1/2 second. I'm...

Hey All I'm using the MC9S12NE64, I've written a simple code so that when a switch is pressed it will turn a motor on for 1/2 second. I'm using the 3.3v from the NE64 to power everything. When testing with a LED everything works as it should. The light switched on for 1/2 seconds. But when I replace it with the motor nothing happens. Can someone please help me and tell me why the ...


DC motor PID controller

Started by waks_up in 68HC129 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 68HC1213 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


Help on stepper motor control

Started by fhgrossi in 68HC1211 years ago

Hi, everybody! I=B4ve tried to control a stepper motor (got in a broken floppy disk)=20 using my HC12EVM. As I don=B4t have any datasheet...

Hi, everybody! I=B4ve tried to control a stepper motor (got in a broken floppy disk)=20 using my HC12EVM. As I don=B4t have any datasheet about my stepper motor, I think it is=20 bipolar with 4 poles operating at 5Vdc. I programmed my software and it seems very well. I designed a bridge=20 push-pull circuit (so, in a bridge circuit, I have phases A, B, C and=20 D to bias my two windin...


OT; brushed DC motor speed measurement

Started by Peter Lissenburg in 68HC1212 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 68HC129 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 ...


control Dc motor

Started by peter taki in 68HC129 years ago 1 reply

hi all, =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 i hope from any one = here to help me to control Dc motor from the fuzzy...

hi all, =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 i hope from any one = here to help me to control Dc motor from the fuzzy , =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 hope to know how to make t= he programme. my micro controlar is microchip 18f =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0hope to find=C2=A0at = any one the step for the prog.=C2=A0 =C2=A0=C2=A0=C...


Stepper motor using an HCS12

Started by robsot99 in 68HC1211 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!


How to count pulses using Modulus Down counter

Started by nrmlguru in 68HC1212 years ago 5 replies

Hello, I am Gurumurthy. I am using 68hc12 for controlling the DC motor. I have an encoder which gives the feedback interms of pulses...

Hello, I am Gurumurthy. I am using 68hc12 for controlling the DC motor. I have an encoder which gives the feedback interms of pulses (100 pulses per revolution). I want to read these pulses and thereby i got to decide the speed of the motor. I tried it with configuring onr of the timer into Input capture mode and based


Dragon12+ board and stepper motor

Started by Matthew Dauer in 68HC128 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 ------------------------------------


rate calculator for interrupt

Started by Joe Dee Kay in 68HC127 years ago 1 reply

I have an interrupt triggered a certain number of times each revolution of a motor. I was thinking I could use that to calculate the rotating...

I have an interrupt triggered a certain number of times each revolution of a motor. I was thinking I could use that to calculate the rotating speed of the motor, but everything I've tried doesn't work. Does anyone have a good way of calculating the rate an interrupt is triggered? ------------------------------------


GPS, Stepper Motor : Urgent Help Required

Started by aruz...@live.com in 68HC127 years ago 6 replies

Hello all, I m very new to micro controllers. I have following micro controller 68HC12 :: MC9S12DG256B I have a GPS module and a Stepper...

Hello all, I m very new to micro controllers. I have following micro controller 68HC12 :: MC9S12DG256B I have a GPS module and a Stepper motor. Now i m confused where to connect my GPS Module and on which pins i need to connect my stepper motor. I want to connect my GPS Module on SPI ports but i m confused how to connect GPS. My GPS has four pins, Gnd, +5V, SO and Raw. Its of Parallax. Please ...


Controlling a servo motor with PWM

Started by Marc La***rt in 68HC1210 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


Futaba Servo controlled by PWM problem

Started by Marc La***rt in 68HC1210 years ago

Sorry for the last time I asked about this I was really confused about it, now I have a much better idea but still running into problems. I...

Sorry for the last time I asked about this I was really confused about it, now I have a much better idea but still running into problems. I am using a MC9S12DP256C with an E-clock of 8MHz, the servo motor requires a period of 20ms(50Hz) with a minimum pulse of 0.5ms and a max pulse of 2.5ms. The problem is that when I hook it up to the motor it just kinda squirms rapidly, I ckecked it out wi...


Incremental rotary sensor (motor) as input to HCS12

Started by Marek Peca in 68HC1212 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 68HC1211 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 68HC1210 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 68HC129 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 ------------------------------------


Difference between MC9S12H256 and MC9S12DP256

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

Hello, Can I user PWM ports output from DP256 directly to the servo motor. Does it have protection against ove sinking ? Or is...

Hello, Can I user PWM ports output from DP256 directly to the servo motor. Does it have protection against ove sinking ? Or is that above is possible only in H256 ? Thanks Naheed