RX TX control via Microcontroller

154 views
Skip to first unread message

Timo Lenz

unread,
Mar 24, 2020, 1:36:16 PM3/24/20
to Smart Stepper
Hello everybody, I would like to use the RX / TX pins around the Smartstepper, unfortunately nothing happens when I e.g. from the Arduino move 60 send. do you have to install other software or something like that before? have no experience with it yet. Please help Thank you very much Sincerely yours timo lenz

misfittech

unread,
Mar 24, 2020, 1:43:38 PM3/24/20
to Smart Stepper
You need to turn on the serial port in the board.h 

Look for this in the board.h
//Define this to allow command out serial port, else hardware serial is debug log
//#define CMD_SERIAL_PORT

Then uncomment the #define so it is like this:
//Define this to allow command out serial port, else hardware serial is debug log
#define CMD_SERIAL_PORT

Timo Lenz

unread,
Mar 25, 2020, 5:51:48 AM3/25/20
to Smart Stepper
Thank you for the great and quick answers.
Could you possibly tell me where I can download the firmware?

Trampas Stern

unread,
Mar 25, 2020, 7:09:32 AM3/25/20
to Timo Lenz, Smart Stepper

--
You received this message because you are subscribed to the Google Groups "Smart Stepper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smart-steppe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/smart-stepper/bb7a4682-2cb6-4009-921f-8935aa882e6a%40googlegroups.com.

Timo Lenz

unread,
Mar 25, 2020, 10:56:55 AM3/25/20
to Smart Stepper
However, I have a quick question for you again. When flashing the SmartStepper with Arduino, all Serial5.print and also other "commands / functions" are marked as errors. Do you know what I have to do?

Possibly as a hint. The following URL is required under Settings at Arduino:
however, an error message also occurs here.

Do you have an answer?

That would be really great

Many many thanks

Kind regards
Timo

(Thanks for the best support I have ever seen)

Trampas Stern

unread,
Mar 25, 2020, 11:03:36 AM3/25/20
to Timo Lenz, Smart Stepper
usually that problem is that correct board is not selected in Arduino 

--
You received this message because you are subscribed to the Google Groups "Smart Stepper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smart-steppe...@googlegroups.com.

Joachim Mueller

unread,
May 27, 2020, 11:05:47 AM5/27/20
to Smart Stepper

Am Mittwoch, 25. März 2020 16:03:36 UTC+1 schrieb misfittech:
usually that problem is that correct board is not selected in Arduino 


Can you tell what board must be used for compiling in Arduino IDE?
I tried the "zero" board SAMD21 but I get the same errors like described above, for example "serial5" not declared.

I bought a board from you and want to control the motor by serial RX/TX commands.
Unfortunately, you did not enable the serial port by default. You use it as debug port. But seriously: What does a user want to do with a debug port?
Wouldn't it be better to enable the command port by default?
A user (NOT a programming nerd) wants to control the motor, not debug functions or compile firmware.

So now I have the problem that I must recompile the firmware with serial port enabled.
But unfortunalely, Arduino gives errors.
Can you explain why Arduino gives error messages with the "serial5"?
Or could you compile a hex-file of the firmware with the serial command port enabled?

Thanks

Joachim

Trampas Stern

unread,
May 27, 2020, 12:44:05 PM5/27/20
to Joachim Mueller, Smart Stepper
Please make sure you follow the instructions here:

and that the board is the "nano zero" board. 

Trampas 

--
You received this message because you are subscribed to the Google Groups "Smart Stepper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smart-steppe...@googlegroups.com.

Joachim Mueller

unread,
May 28, 2020, 4:14:39 AM5/28/20
to Smart Stepper
Got it!
Thank you very very much. Sorry, but I don't use Arduino very often.
I don't like this confusing system with all the boards, drivers and libraries.

But the thing is running now.
Very nice support :-)

Joachim


Reply all
Reply to author
Forward
0 new messages