tak out the chip, and make short PIN 2 - PIN 3
you make a "serial loop"
when you send a command from terminal program, this is command com back now
this give results on com port
tak out the chip, and make short PIN 2 - PIN 3
you make a "serial loop"
when you send a command from terminal program, this is command com back now
this give results on com port
mcan tnx for the link this helped allot but it still doesn't work.
ok here is what i found out.
the schematic is wrong but i corrected it (ok the connections but not the caps) the caps in your circuit are rate 1uf but on the web site they are 0.1uf anyway a made a loop-backand discoverd that the if i type in a character in the terminal the ascii code is transmitted and goes trough the MAX and back to the computer. so the terminal should repeat the character but it doesnt. so something else is wrong with the software but i can't figure-out what!
any ideas?
it's pin 11 and 12![]()
lynx
i switched the connection between the max and AVR and in your program i can see the data in the terminal that you attached ( 8D 45 5A 2A B5 0A 41 9D 90 5A 46 F9 BF 90 B3 43 DD B2 90 D8 EB F1 B2 CB D9 B5 79 48 A5 E2 E1 B5 B6 5C AA A8 D4 52 55 )
but the hyper terminal doesn't repeat the letter what did i forget?
In short:
--------------------------
You have a lancos stk200 programmer, with at2312-20PU.
In ponyprog was set 16MHz outer crsystal.
Apply 16MHz crystal (4 - 5), 2 x 22pF ( 4 - gnd, 5 - gnd).
Use max232 circuit, what i was link.
...and not work.
So far is correct?
--------------------------
Have you final board, to servo circuit?
Try therewith connect to terminal.
What results give the short in rs232 circuit?
tady,
If you can not have terminal software repeat the keys you pressed, when you shorted pins 11 and 12 of MAX232, then most probably you have an issue with your serial cable. Check each cable individually if there is a problem. If there is no problem with the cable, then check whether MAX232 pins are connected to PC com port correctly. Check from http://www.moxa.com/product/accessor...al_Pinouts.htm
i don't know really what is the problem but this is the case. if i use Hyper terminal i can send characters and the controller sends data back but the Hyper terminal doesnt show anything recived. BUT if i use the program that Lynx posted (termv19b.zip ) i can send data and recive it and the terminal show's it to me but its in hex (i posted what came back).
So in short i think that everything works and that there is a problem with the hyperterminal.
if in the Linx's terminal i send M3 i get back CD B3 (this is with the uP in the loop).
But if i send M3 with the serial loop i get 4D 33. so i think the uP and serial cable both work.
and when i poer up the uP i get
8D 45 5A 3A B5 0A 41 9D 90 5A 46 E9 B7 90 B3 4B DD B2 90 D8 EB F1 B2 CB D1 A5 79 48 A5 E2 E1 B5 B6 5C AA A8 D4 52 55
ok here is another thing i overlookedif i power down the circuit and press a key in Hyper terminal it doesnt show but if i power up the circuit with a serial loop and then press a key the character is shown
but if i take out the loop an connect the uP i get if i press a key ý
can someone please compile the source because i got one compiled from this thread and i don't know if it is set correctly i have a feeling that the author of the code made some changes
In any case, you should see what you type on hyperterm window. I think you have problem either with the cable or the com port or MAX232. Are you using a USB-COM port converter or the com port on mainboard?
Just one more test. Disconnect power to the board, short pins 13,14 of MAX232 which I believe are connected to com cable. Run hyperterminal and test again. If you get what you type on hyperterminal window, then there is a problem with your MAX232, change it. Else there is a problem with your com port.
http://zone.ni.com/devzone/cda/tut/p/id/3450
OK i think it works! i reprogrammed the uP with another hex file that i got form the web.
so now if i power up the uP i get
SMC3A - Servo Motor Controller (?:help)
%
And only the Ready LED is lit and not the servo and torque error that were lit previously.
ok another question how do i know i changed the parameters? is there anyway that i can check that?
Good job man! ((:
By head...
command:
bank0
p0
p1
p2
p3...
p7 (this is zero 0)
When you send the command, then see this:
p0 = 1030 (example the number) :
You can give a new value.
Type ?, list all commands.
I try my circuit again. I modify a little the H bridge. Now not work... ((:
EVERYONE THANK YOU FOR YOUR HEL I WOUL GAVE UP IF IT WERENT FOUR YOU GUYS!!!!
now i have to wait for the motors i think they would arrive in a weed or so!
i will repor of my results!
THANK YOU AGAIN!
hey guys did anyone try using an L298 IC for the power stage?
i would love to use it but i'm worried about the dead-time?!
Hai all,
I have problem almost like tady.
Hyperterminal (38400,8,parity none,1,none) can't display SMC3A-Servo Motor controller(?:help) and can't type any thing on screen
thanks
Robert
i change xtal 16Mhz and use original of smc3a.asm and the problem still just like the previous post. Any suggestion ?????????
btw : led indicator is green.
its ok now....smc3a to terminal works fine.
Hy!
When I will change my encoder resolution, which value must I change?
; Memory bank 0 : Yasukawa Electric UGTMEM-A1SA51
.dw 300, 0x0500, 0x0300, 0x00c0, 240, 0x0340, 0x0100, 0
300?
Smc3a firmware.
I will larger resolution encoder used.
Hi all, my name is Ariel and im from Argentina. I post some pictures off my elm servo controller with l298 H-bridge.
The motor on the picture is a hitachi 60w 200 ppr encoder from a ricoh copier, it run my machine at 2500 mm per minute without problems using a 14 x 2 screw.