stepper motor help, what's the next step Programming Software Development by ccbuilder ….d . When the input of +25 , it will move the stepper motor forward 25 , and negative -25 move it back. I… how to control a stepper motor using a microcontroller programmed at c++ Programming Software Development by programmingnoob im having a problem controlling a stepper motor using a microcontroller..what i did is that i … a program in c++ that would make a variable reluctance stepper motor work. If you press the the R button the… rotor of the stepper motor will turn forward (clockwise), if you press L it… Re: how to control a stepper motor using a microcontroller programmed at c++ Programming Software Development by programmingnoob [code=cpp]// controlling a stepper motor #include <stdio.h> #include <reg420.h&… Re: how to control a stepper motor using a microcontroller programmed at c++ Programming Software Development by programmingnoob ok, il also try that..im sorry, there was nothing wrong with the code, it compiled, there were no errors however, the problem is this program didnt function the way it must function..when you press the R,L and S nothing happened...so how will i revise this? also how would you know the pins of a stepper motor? tnx... Re: how to control a stepper motor using a microcontroller programmed at c++ Programming Software Development by Colin Mac Why would you attempt to start writing code to control a circuit if you're not sure of it's wiring. Everything about the motor, you should find in the datasheet. There's a stepper motor tutorial for the 8051 [url]http://www.8051projects.net/microcontroller-tutorials/[/url] Re: how to control a stepper motor using a microcontroller programmed at c++ Programming Software Development by programmingnoob … need the menu thing...coz our main output is the stepper motor itself...we are not limited to how many rotations… Re: how to control a stepper motor using a microcontroller programmed at c++ Programming Software Development by John A … need the menu thing...coz our main output is the stepper motor itself...we are not limited to how many rotations… Re: how to control a stepper motor using a microcontroller programmed at c++ Programming Software Development by farris how to code unipolar stepper motor with 4 push button to control their degree n angle? Re: how to control a stepper motor using a microcontroller programmed at c++ Programming Software Development by Yumie_1 Hye, i want to ask. how to make a program stepper motor driver that with pulse??. it is for whiteboard. i do that project for our final year. please help ~~ Re: how to control a stepper motor using a microcontroller programmed at c++ Programming Software Development by rproffitt Yumie. For this, just go get your MicroChip CPU, circuit and code. Where? https://www.google.com/search?q=microchip+stepper+motor+code Re: stepper motor help, what's the next step Programming Software Development by VernonDozier The formatting makes it impossible to read. You have at least one bracket matching error, very hard to see due to the bad formatting. Format, fix the bracket matching errors, and try again. Re: how to control a stepper motor using a microcontroller programmed at c++ Programming Software Development by programmingnoob heres a sample code... [code=c]#include <reg420.h> #include <stdio.h> void main () { TMOD = 0x20 ; TCON = 0x40 ; TH1 = 0xf9 ; TL1 = 0xf9 ; PCON = 0x80 ; SCON = 0x50 ; while (1) /*continues loop */ { printf("a"); /* transmit a along with CR & LF. } [/code] what this does is it simply moves the motor in a forward … Re: how to control a stepper motor using a microcontroller programmed at c++ Programming Software Development by John A This looks more like C than C++... Anyway, to be able to do something like you described, you'll need real-time I/O. This isn't supported by standard C/C++, so you'll have to look into your compiler documentation for more information regarding this (or get a third-party library to handle it). Oh, and speaking of standards, you should change [code]… Re: how to control a stepper motor using a microcontroller programmed at c++ Programming Software Development by Nick Evan Why didn't you use CODE-TAGS as Joey mentioned? Why did you use void main ()? [quote]*heres the code i made, but it didnt work..[/quote] What doesn't work? Does it compile/run/..? Niek Re: how to control a stepper motor using a microcontroller programmed at c++ Programming Software Development by Colin Mac void main() is fine. There isn't an OS. The code runs in an infinite loop until the power is removed. Re: how to control a stepper motor using a microcontroller programmed at c++ Programming Software Development by JRM you should be able to simulate the computer input "manually" to verify it's functioning before frustrating yourself by chasing a phantom. That's troubleshooting 101. Keep cutting the problem in half. Verify what works vs. what doesn't. Then continue to break down the components of the non-working section, etc. In your case you can … Re: how to control a stepper motor using a microcontroller programmed at c++ Programming Software Development by programmingnoob i don't have any problem with the electronic side, my board works perfectly, my only problem is the programming part...i cannot make it the way it must function.. Re: how to control a stepper motor using a microcontroller programmed at c++ Programming Software Development by programmingnoob plz help..i need the R,L and S work...thanks... Re: how to control a stepper motor using a microcontroller programmed at c++ Programming Software Development by John A Well, like I said, you can't get real time input using standard C. You could, for instance, create a menu for your program: [code] Please choose an option [B]r[/B]: Move forward 10 rotations [B]l[/B]: Move backwards 10 rotations [B]s[/B]: Exit program Please enter your input:[/code] But it'd always have to come back to this menu after it does its … Re: how to control a stepper motor using a microcontroller programmed at c++ Programming Software Development by JRM How are you interfacing with the motor? Are you using a computer port, pci card, or a special built micro controller? If you are sure about motor drive side of things, then test the output from the port(s). Without knowing the specifics of the entire setup, there is no way of making judgments about the correctness of the code. PIA's need … Re: how to control a stepper motor using a microcontroller programmed at c++ Programming Software Development by programmingnoob im using a computer port to program the code into the microcontroller...im trying to test it using the ports that i have in my microcontroller but the problem is..it still doesnt give me the right results... Re: how to control a stepper motor using a microcontroller programmed at c++ Programming Software Development by John A What code are you using now? Remember to use code tags when posting code. Re: how to control a stepper motor using a microcontroller programmed at c++ Programming Software Development by JRM [QUOTE=programmingnoob;525902]heres a sample code... [code=c]#include <reg420.h> #include <stdio.h> void main () { TMOD = 0x20 ; TCON = 0x40 ; TH1 = 0xf9 ; TL1 = 0xf9 ; PCON = 0x80 ; SCON = 0x50 ; while (1) /*continues loop */ { printf("a"); /* transmit a along with CR & LF. } [/code] what this does is … Re: how to control a stepper motor using a microcontroller programmed at c++ Programming Software Development by JRM here is a snippet form the header [code] /* BIT Registers */ /* TCON */ sbit IT0 = 0x88; sbit IE0 = 0x89; sbit IT1 = 0x8A; sbit IE1 = 0x8B; sbit TR0 = 0x8C; sbit TF0 = 0x8D; sbit TR1 = 0x8E; sbit TF1 = 0x8F; [/code] This is an 8 bit register starting at 0x88 and ending at 0x8f Re: how to control a stepper motor using a microcontroller programmed at c++ Programming Software Development by programmingnoob how would you make the rotation of the motor continuous? because my program rotates at a certain angle..i want it to be rotating continuously without stopping..tnx.. Re: how to control a stepper motor using a microcontroller programmed at c++ Programming Software Development by programmingnoob also it must be rotating smoothly. meaning there are no certain stops or clicking action... Re: how to control a stepper motor using a microcontroller programmed at c++ Programming Software Development by JRM did you get it do anything yet? I took a quick look at a data sheet for a microcontroller like what you are using. You need to do the same! As i suspected, those addresses are registers within the two Uarts in the IC. Those registers control the functionality of the serial port. Is this how you are to communicate with the motor drive? What… Theres something wrong with my keyword cipher Programming Software Development by Elliot_1 …; 90 Then 'if ascii value is above 90 encoded_message(stepper) = (encoded_message(stepper) + offset) - 96 'ascii value decreases by 26 …final = Chr(encoded_message(stepper)) ElseIf encoded_message(stepper) = "35" Then 'if ascii value… Problem in JS when i upgraded my Jar Files for MyFaces Programming Web Development by Arch_Bytes … <input id="contacts:stepper:_idJsp126" name="contacts:stepper:_idJsp126" type="submit&…;<input id="contacts:stepper:_idJsp127" name="contacts:stepper:_idJsp127" type="submit…;<input id="contacts:stepper:_idJsp128" name="contacts:stepper:_idJsp128" type="submit… Hi All Community Center Say Hello! by gearcutter … my PC with a small milling machine's rotary table stepper motor. There seems to be very little written material available… describing the use of a VB porgramme to control stepper motors. I have devised a simple proceedure in VB6, to… USB Interface Card, and to retrieve feedback info from the stepper. Can anyone help please? Gearcutter