HDC2450 Commands question
- Yen Yu Kuo
- Topic Author
- Offline
Less
More
- Posts: 3
- Thank you received: 0
10 years 6 months ago #29527667
by Yen Yu Kuo
HDC2450 Commands question was created by Yen Yu Kuo
Hello
I have some small questions want to ask.
Q1:
I just start to use this driver,and now I want to simply to operate a DC motor.I use usermanual page160 \"SetCommand(_GO, 1, 50)\"to operate my motor,and my motor really works.
However,when I want to change the command to set velocity,it doesn\'t work.
Q2:
If I want to operate my motor by my setting time,what commands can I ues?
Q3:
TOP:
SetCommand(_GO, 1, 150)
wait (2000)
SetCommand(_GO, 1, -150)
wait (2000)
goto TOP
This is a simple code, but it works strange.
When I use the Roborun+ run tab
It operates a very short time and waits 2 seconds
,then it reverses a very short time and waits 2 seconds
the same code
when I use the Roborun+ Scriptings tab
It operates a span of time and waits 2 seconds
,then it reverses a span of time and waits 2 second
I really don\'t know why?
please tell me in detail thanks!!!
I have some small questions want to ask.
Q1:
I just start to use this driver,and now I want to simply to operate a DC motor.I use usermanual page160 \"SetCommand(_GO, 1, 50)\"to operate my motor,and my motor really works.
However,when I want to change the command to set velocity,it doesn\'t work.
Q2:
If I want to operate my motor by my setting time,what commands can I ues?
Q3:
TOP:
SetCommand(_GO, 1, 150)
wait (2000)
SetCommand(_GO, 1, -150)
wait (2000)
goto TOP
This is a simple code, but it works strange.
When I use the Roborun+ run tab
It operates a very short time and waits 2 seconds
,then it reverses a very short time and waits 2 seconds
the same code
when I use the Roborun+ Scriptings tab
It operates a span of time and waits 2 seconds
,then it reverses a span of time and waits 2 second
I really don\'t know why?
please tell me in detail thanks!!!
Please Log in or Create an account to join the conversation.
- roboteq
10 years 6 months ago #29527669
by roboteq
Replied by roboteq on topic Re:HDC2450 Commands question
The watchdog timer will stop the motors if no new command is received within 1s. This is why you see the motor stop in the middle of the wait(2000).
You need to either change the watchdog timeout or disable it. Best is to write the script differently so that it sends periodic commands to the motor.
You need to either change the watchdog timeout or disable it. Best is to write the script differently so that it sends periodic commands to the motor.
Please Log in or Create an account to join the conversation.
- Yen Yu Kuo
- Topic Author
- Offline
Less
More
- Posts: 3
- Thank you received: 0
10 years 6 months ago #29527675
by Yen Yu Kuo
Replied by Yen Yu Kuo on topic Re:HDC2450 Commands question
This answer really solves my problem.
Can you help me to solve the Q1?
I still can\'t use another Command to operate my motor
please tell me , thank you
Can you help me to solve the Q1?
I still can\'t use another Command to operate my motor
please tell me , thank you
Please Log in or Create an account to join the conversation.
Moderators: tonysantoni
Time to create page: 0.057 seconds