Mechaduino GUI

735 views
Skip to first unread message

Kai Wolter

unread,
Apr 1, 2017, 2:04:58 PM4/1/17
to Mechaduino
Hey, guys.

It's getting pretty quiet here, so I thought to give everyone an update on the current project I'm working on.
It's a GUI for the MEchaduino.You can download it via GITHUB. It's not finished yet but I think you can try it and give some feedback.

the save button from the Parameter tab isn't working right now...

Here are some Pictures:






- Kai
Auto Generated Inline Image 1
Auto Generated Inline Image 2
Auto Generated Inline Image 3

Kai Wolter

unread,
Apr 1, 2017, 2:15:39 PM4/1/17
to Mechaduino
I forgot to say that you have to update to the latest firmware to work with the GUI.

3d.m...@gmail.com

unread,
Apr 1, 2017, 4:15:52 PM4/1/17
to Mechaduino
Wow, that looks great!!!

Salam Siddique

unread,
Apr 4, 2017, 3:35:29 AM4/4/17
to Mechaduino
good work bro............

Kai Wolter

unread,
Apr 4, 2017, 4:11:10 PM4/4/17
to Mechaduino
I've uploaded a little update.
 - extra tab to generate a step response with zoomable plot
 - ability to send step commands over the control tab (is now called stream)
 - ability to generate a Dirac delta function

there is also a newer firmware version to support the changes in the GUI.


Pablo Vila Ferrero

unread,
Apr 7, 2017, 2:52:22 PM4/7/17
to Mechaduino
Awsome Kai, keep us updated.

By the way, with your new firmware finally got serial response from my board. I still have to make the encoder breakout board to test it.

Kai Wolter

unread,
Apr 8, 2017, 3:26:35 AM4/8/17
to Mechaduino
I definitely will. Nice to hear that your board responded.

Salam Siddique

unread,
Apr 9, 2017, 2:32:22 AM4/9/17
to Mechaduino
your gui is simply awesome kai..............

Kai Wolter

unread,
Apr 21, 2017, 4:41:19 AM4/21/17
to Mechaduino
Little update:

- the GUI now supports exporting a configuration file for direct upload
- a new version of the firmware is also needed to work with the new GUI. This new firmware includes two new filter to allow a quieter operation.

Tarjei Knapstad

unread,
May 1, 2017, 7:44:34 PM5/1/17
to Mechaduino
Minor, but annoying bug: If there's no COM port, you get an unhandled exception caused by indexing into an empty combobox. Add a size > 0 check :)

GUI looks great, will explore more once I get around to soldering up a few of my boards :)

--
Tarjei

Kai Wolter

unread,
May 2, 2017, 2:24:44 AM5/2/17
to Mechaduino
Thanks for the catch.

Fixed it :)

Kai Wolter

unread,
May 5, 2017, 3:51:51 AM5/5/17
to Mechaduino

Update:

The GUI and new firmware now support to change the sample rate while performing a step response.
The GUI now supports to export the collected data from a step respnse as csv or txt file.

Note:
The firmware need to be updated aswell.


cool...@gmail.com

unread,
May 16, 2017, 3:36:29 PM5/16/17
to Mechaduino
Hi Kai,

I have been working with Trampas for some time now with the NZS and I would like to adapt your program to the NZS. I have looked through and compiled your source code. Since I too am a VS2015 programmer I'd like to make some changes to your source code if that's ok with you. I think 2 minds on software are better than 1 i think we could get this thing working for both platforms. I will do a pull request from github to see if you like the changes. Thanks Kai.

Kai Wolter

unread,
May 17, 2017, 9:08:04 AM5/17/17
to Mechaduino
Sure.

Feel free to adapt whatever comes to your mind. That's the idea behind open source, at least for me. Im quit sure there are enough parts that can be implemented better than I did.

- Kai

cool...@gmail.com

unread,
May 17, 2017, 10:29:37 AM5/17/17
to Mechaduino
Thanks Kai. Really appreciate it. I have seen other programmers with a complex, that even though it's open source, they get a bit cranky. I have made a large amount of changes already, but I am new to github. I usually use SVN, and it's a bit different than github. Since I cloned your repository, when I do a commit does it merge back all my changes and overwrite yours? Or does it work similar to SVN where it Diff's the changes and rev's them?

Thanks

Kai Wolter

unread,
May 17, 2017, 1:27:18 PM5/17/17
to Mechaduino
I think it works like SVN. I've never done a "real" merge. But I think it compares the versions and lists the differents to review them, but I'm not sure. Maybe just give it a try. I've saved all my files in another place anyway so there can't go much wrong.

dutch...@gmail.com

unread,
Jul 22, 2017, 8:26:28 AM7/22/17
to Mechaduino
Hello Kai,

Using the standard mechaduino firmware, I can generate a calibration table and tune PID's, positioning also works

I would like to use your GUI, but when I do the calibration I get either "Error wired backwards" or "Motor not moving.". I did set the "use enable pin" to 0, should I adapt anything else in order to use?

Thanks in advance!

Kai Wolter

unread,
Jul 22, 2017, 11:06:50 AM7/22/17
to Mechaduino
I changed a few lines of could. could you test it again? Make sure to download the dev branch it has some new features!

https://github.com/Kaiwol1990/Mechaduino/tree/dev

When running the calibration ignore the "maximal error" statement it has some bugs in it.
If you want you can send me the calibration table and I will check it.

Kai

dutch...@gmail.com

unread,
Jul 24, 2017, 1:11:53 PM7/24/17
to Mechaduino
Thanks, I gave it a go, but unfortunately the same result ( did switch directions in-between):

calibrate

//---- Starting calibration routine ----
Calibrating fullsteps
|---+----+----+----+----+----+----+----+----+----|
Motor is not moving -> abbort

:>
calibrate

//---- Starting calibration routine ----
Wired backwards

:>
calibrate

//---- Starting calibration routine ----
Wired backwards

:>

Kai Wolter

unread,
Jul 24, 2017, 2:28:12 PM7/24/17
to Mechaduino
I uploaded another version in the dev branch. The calibration routine has an argument now. If you send a "calibration -f" this should force the calibration routine to start without the checks in direction etc.
Could you upload you configuration.cpp file so I can take a look at it? Also, could you post some information of your motor?

Thanks
Kai

Kai Wolter

unread,
Jul 24, 2017, 2:29:25 PM7/24/17
to Mechaduino
Make sure to download the new GUI version as well. I changed some things in it as well.

- Kai

Kai Wolter

unread,
Jul 30, 2017, 1:57:53 PM7/30/17
to Mechaduino
I've uploaded a new version of the GUI to the dev branch. Go check it out!

- The Gui supports now more features, like:
- custom color for streaming
- custom streaming selection
- buffer for streamed variables, with overflow visualization

Kai

lars.so...@gmail.com

unread,
Aug 23, 2017, 2:31:33 AM8/23/17
to Mechaduino
Hello, I wrote on GitHub as well, but could you please take a look at using a 0.9 degree stepper. It does not work right now.

Thanks L

Kai Wolter

unread,
Aug 23, 2017, 7:33:25 AM8/23/17
to Mechaduino
I've uploaded a new Version to the dev branch. Can you please try it for me?
If it's still not working try the command "calibrate -debug" and upload the output as a file.

petern...@sympatico.ca

unread,
Oct 23, 2017, 9:56:25 PM10/23/17
to Mechaduino
Hi Kai
I downloaded the version on the dev branch.....I have problems compiling the error is below

Arduino: 1.8.5 (Windows Store 1.8.10.0) (Windows 10), Board: "Arduino/Genuino Zero (Native USB Port)"
sketch\Cmd.cpp: In function 'void insert_command(const char*)':
sketch\Cmd.cpp:258:50: warning: NULL used in arithmetic [-Wpointer-arith]
   while ((msg_length < 30) && buf[msg_length] != NULL) {
                                                  ^
sketch\Serial.cpp.o: In function `init_menu()':
sketch/Serial.cpp:39: undefined reference to `calibration(int, char**)'
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino/Genuino Zero (Native USB Port).
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Kai Wolter

unread,
Oct 24, 2017, 10:27:54 AM10/24/17
to Mechaduino
I uploaded a fiy. It should work now.

- Kai
Reply all
Reply to author
Forward
0 new messages