OpenSource Remote for VESC ArduBoardControl

Lightweight / Folding / Portable EVs - seats optional
Post Reply
RollingGecko   100 W

100 W
Posts: 110
Joined: Jul 14 2015 2:20am

Re: OpenSource Remote for VESC ArduBoardControl

Post by RollingGecko » Jun 14 2016 5:44pm

Hey s28400: Do you have also a name to bring a bit more personalty in. :)

Anyway: Ever thought to use instead a spring magnets? I have an idea coming up after a discussion with a friend who designed his own radios for aeromodels and uses such a solution. It is to difficult to write it here down. But just think about it. Magnets push each other off. So they are like a spring. You can bring one on each site in a tangential force orientation. So you have a force in both directions. To get a defined center you can use a 3rd magnet in a pull configuration with a radial force component.

Ups. that was easier to write than expected. So there is already the solution sketched. :D

Andy
Github: https://github.com/RollingGecko
ArduBoardControl: The Nunchuk Arduino implementation for the VESC: https://github.com/RollingGecko/ArduBoardControler
Berlin Custom Boards: All around DIY longboards: https://www.facebook.com/berlincustomboards/

User avatar
s28400   100 W

100 W
Posts: 143
Joined: Apr 05 2016 11:02pm
Location: Orlando Florida
Contact:

Re: OpenSource Remote for VESC ArduBoardControl

Post by s28400 » Jun 15 2016 1:24am

RollingGecko wrote:Do you have also a name to bring a bit more personalty in. :)
Lol, yeah I'll come up with something soon, I was just basing titles off of the forum for now.

In regards to the spring magnet idea, I have used that in a few of my projects and I was thinking of using it here but I am not sure how having more magnets would effect the hall effect sensor. Also it is not really necessary as it is a tension spring. These typically hold up much longer than the compression springs that are commonly replaced with magnet springs. The nice thing about this spring based mechanism is that there is an almost constant resistance the whole way, and there is no oscillation if released from full tension. I could look into replacing it later with magnets but then we might have to offset the Hall effect neutral position in software which would result in a loss of range and therefor accuracy. Shielding options may end up being needed which would further complicate things. Idk, I think the spring is the best bet.

Also any ideas on getting the vescs to play nice with the Arduino over Bluetooth like how you have over rf?

Cheers!
Josh
My Project Site: https://www.radicalcreation.com
Science may set limits to knowledge, but should not set limits to imagination.

RollingGecko   100 W

100 W
Posts: 110
Joined: Jul 14 2015 2:20am

Re: OpenSource Remote for VESC ArduBoardControl

Post by RollingGecko » Jun 15 2016 1:51am

Also any ideas on getting the vescs to play nice with the Arduino over Bluetooth like how you have over rf?
See my post before. Why do you think I'm doing all that stuff? ;)
Github: https://github.com/RollingGecko
ArduBoardControl: The Nunchuk Arduino implementation for the VESC: https://github.com/RollingGecko/ArduBoardControler
Berlin Custom Boards: All around DIY longboards: https://www.facebook.com/berlincustomboards/

User avatar
Nordle   100 W

100 W
Posts: 182
Joined: Jul 20 2015 1:42pm
Location: The Alps

Re: OpenSource Remote for VESC ArduBoardControl

Post by Nordle » Jun 15 2016 2:05pm

Sry^^ ..but I think this is the last one for a while:
The Joy_X and Joy_Y pins, I connect them to the middle of the potentiometers, the outer pins of the pots are gnd and 3,3V or 5V?
Last edited by Nordle on Jun 16 2016 11:44am, edited 2 times in total.
4:20 Noob Hubz! BLAZE it
..sry for dat poor english..

User avatar
s28400   100 W

100 W
Posts: 143
Joined: Apr 05 2016 11:02pm
Location: Orlando Florida
Contact:

Re: OpenSource Remote for VESC ArduBoardControl

Post by s28400 » Jun 15 2016 3:14pm

RollingGecko wrote:
See my post before. Why do you think I'm doing all that stuff? ;)

Yeah I saw them. I guess what I meant to ask was how long do you think it will take before you have it up and running?
My Project Site: https://www.radicalcreation.com
Science may set limits to knowledge, but should not set limits to imagination.

RollingGecko   100 W

100 W
Posts: 110
Joined: Jul 14 2015 2:20am

Re: OpenSource Remote for VESC ArduBoardControl

Post by RollingGecko » Jun 16 2016 2:53am

I have it already a UART Version on a feature branch that I tested with a wired connection successfully. You can check it out here: https://github.com/RollingGecko/ArduBoa ... wInterface

It needs this library version of VescUartControl, that is also on a feature branch: https://github.com/RollingGecko/VescUar ... l/tree/DEV

Would be nice if you could test it and give me maybe a feedback. I will start the nrf implementation these days.
Github: https://github.com/RollingGecko
ArduBoardControl: The Nunchuk Arduino implementation for the VESC: https://github.com/RollingGecko/ArduBoardControler
Berlin Custom Boards: All around DIY longboards: https://www.facebook.com/berlincustomboards/

User avatar
s28400   100 W

100 W
Posts: 143
Joined: Apr 05 2016 11:02pm
Location: Orlando Florida
Contact:

Re: OpenSource Remote for VESC ArduBoardControl

Post by s28400 » Jun 16 2016 12:05pm

Ok cool. I am getting the last of my parts in the mail and I should start 3d printing tomorrow. Unfortunately I don't have my VESCs yet so I can only do remote side testing. I was going to play around with the hall effect sensor so we can easily implement that into the full build later. I will test out what I can and get back to you!
My Project Site: https://www.radicalcreation.com
Science may set limits to knowledge, but should not set limits to imagination.

User avatar
Nordle   100 W

100 W
Posts: 182
Joined: Jul 20 2015 1:42pm
Location: The Alps

Re: OpenSource Remote for VESC ArduBoardControl

Post by Nordle » Jun 17 2016 8:01am

Please I'm building one right at the moment:(
Nordle wrote:The Joy_X and Joy_Y pins, I connect them to the middle of the potentiometers, the outer pins of the pots are gnd and 3,3V or 5V?
4:20 Noob Hubz! BLAZE it
..sry for dat poor english..

RollingGecko   100 W

100 W
Posts: 110
Joined: Jul 14 2015 2:20am

Re: OpenSource Remote for VESC ArduBoardControl

Post by RollingGecko » Jun 17 2016 9:14am

5V
Github: https://github.com/RollingGecko
ArduBoardControl: The Nunchuk Arduino implementation for the VESC: https://github.com/RollingGecko/ArduBoardControler
Berlin Custom Boards: All around DIY longboards: https://www.facebook.com/berlincustomboards/

User avatar
s28400   100 W

100 W
Posts: 143
Joined: Apr 05 2016 11:02pm
Location: Orlando Florida
Contact:

Re: OpenSource Remote for VESC ArduBoardControl

Post by s28400 » Jun 20 2016 11:56pm

Ok, I got some more parts in today and decided to start playing around with them. The first thing I did was test the hall effect sensor in a similar configuration to what I have designed in the remote. It works perfectly! I grabbed some code to visualize the signal and tested out my magnets. Check it out!


I also hooked up the display and tested it out. Works just fine as well!

I have downloaded and begun reading through your code (Gecko) from github. I will take some time tomorrow to sit down with it and try to get it working as well as try to understand as much of it as possible. After that, I will look at ways to implement the hall effect sensor control. I have also done some work with the housing models and they should be printed and ready for testing by Wednesday. Updates to come!
My Project Site: https://www.radicalcreation.com
Science may set limits to knowledge, but should not set limits to imagination.

RollingGecko   100 W

100 W
Posts: 110
Joined: Jul 14 2015 2:20am

Re: OpenSource Remote for VESC ArduBoardControl

Post by RollingGecko » Jun 21 2016 2:55am

Hi,

To implement the hall sensor you should write a class or library that alows to read it and gives back a vlue between 0 and 1023 or even better in a definable range.

The approach with the sensor look interesting.!
Github: https://github.com/RollingGecko
ArduBoardControl: The Nunchuk Arduino implementation for the VESC: https://github.com/RollingGecko/ArduBoardControler
Berlin Custom Boards: All around DIY longboards: https://www.facebook.com/berlincustomboards/

User avatar
s28400   100 W

100 W
Posts: 143
Joined: Apr 05 2016 11:02pm
Location: Orlando Florida
Contact:

Re: OpenSource Remote for VESC ArduBoardControl

Post by s28400 » Jun 21 2016 8:43am

Ok, that's what I thought it would be. I think I'll start with 0 to 1023 but I'll see how high I can get the sensitivity. I first have to tweak the design so that the magnets are spaced apart correctly and distanced from the sensor to allow for control throughout the full range of the thumb lever. Also on a side note regarding motor controller firmware. Would it be possible to have different presents/saved power modes that you could toggle via remote (current and rpm limits)? Also having a custom motor current curve based on RPM would be great too so you could tweak the controllers depending on your motor to have a very linear and predictable acceleration at all speeds. I'm not sure if it is possible but it would be something extremely beneficial.
My Project Site: https://www.radicalcreation.com
Science may set limits to knowledge, but should not set limits to imagination.

RollingGecko   100 W

100 W
Posts: 110
Joined: Jul 14 2015 2:20am

Re: OpenSource Remote for VESC ArduBoardControl

Post by RollingGecko » Jun 21 2016 9:08am

Hi,

That was one of the reasons I made all the protocol changes. I want to be able to change the configuration of the controller. I special the rpm limit of the pid controller. Nver the less the PID controlled mode (that what is called nunchuk app) is my favorit. There you do not control the throttle but you set the acceleration and the PID cares about the rest.
Github: https://github.com/RollingGecko
ArduBoardControl: The Nunchuk Arduino implementation for the VESC: https://github.com/RollingGecko/ArduBoardControler
Berlin Custom Boards: All around DIY longboards: https://www.facebook.com/berlincustomboards/

User avatar
s28400   100 W

100 W
Posts: 143
Joined: Apr 05 2016 11:02pm
Location: Orlando Florida
Contact:

Re: OpenSource Remote for VESC ArduBoardControl

Post by s28400 » Jun 21 2016 10:34am

ok awesome! Is that programming all done on the controller and adjusted by the remote or is it all remote side?
My Project Site: https://www.radicalcreation.com
Science may set limits to knowledge, but should not set limits to imagination.

User avatar
Nordle   100 W

100 W
Posts: 182
Joined: Jul 20 2015 1:42pm
Location: The Alps

Re: OpenSource Remote for VESC ArduBoardControl

Post by Nordle » Jun 22 2016 11:41pm

Hey, which u8glib.h library do you use. I tried the one from the Arduino IDE and some frome github, but I always get compiling error (says something about u8glib). I don't even have in mind to use an oled, but I'm also to stupid to ''//comment'' all the oled code from your sketch.
4:20 Noob Hubz! BLAZE it
..sry for dat poor english..

RollingGecko   100 W

100 W
Posts: 110
Joined: Jul 14 2015 2:20am

Re: OpenSource Remote for VESC ArduBoardControl

Post by RollingGecko » Jun 23 2016 3:14am

I idef it and check it in....
Github: https://github.com/RollingGecko
ArduBoardControl: The Nunchuk Arduino implementation for the VESC: https://github.com/RollingGecko/ArduBoardControler
Berlin Custom Boards: All around DIY longboards: https://www.facebook.com/berlincustomboards/

User avatar
s28400   100 W

100 W
Posts: 143
Joined: Apr 05 2016 11:02pm
Location: Orlando Florida
Contact:

Re: OpenSource Remote for VESC ArduBoardControl

Post by s28400 » Jun 23 2016 5:22pm

So it begins!
image.jpeg
image.jpeg (73.68 KiB) Viewed 1794 times
image.jpeg
image.jpeg (106.6 KiB) Viewed 1794 times
My Project Site: https://www.radicalcreation.com
Science may set limits to knowledge, but should not set limits to imagination.

User avatar
Nordle   100 W

100 W
Posts: 182
Joined: Jul 20 2015 1:42pm
Location: The Alps

Re: OpenSource Remote for VESC ArduBoardControl

Post by Nordle » Jun 24 2016 12:30am

Is this new case for your remote with the hall throttle? :shock:
4:20 Noob Hubz! BLAZE it
..sry for dat poor english..

RollingGecko   100 W

100 W
Posts: 110
Joined: Jul 14 2015 2:20am

Re: OpenSource Remote for VESC ArduBoardControl

Post by RollingGecko » Jun 24 2016 3:33am

Hi,

Please checkout Version 0.6.2 from Github. I added

Code: Select all

#define OLED_USED
#define STATUS_LED_USED
By commenting them out you disable the functions. I only checked the compiling. Not the functionality!
Github: https://github.com/RollingGecko
ArduBoardControl: The Nunchuk Arduino implementation for the VESC: https://github.com/RollingGecko/ArduBoardControler
Berlin Custom Boards: All around DIY longboards: https://www.facebook.com/berlincustomboards/

User avatar
Nordle   100 W

100 W
Posts: 182
Joined: Jul 20 2015 1:42pm
Location: The Alps

Re: OpenSource Remote for VESC ArduBoardControl

Post by Nordle » Jun 24 2016 4:11am

Thank you! Now I'll start to solder everything together ;)
But tell me which u8glib library are you using? Maybe I'll try to add the oled next time^^
4:20 Noob Hubz! BLAZE it
..sry for dat poor english..

User avatar
Nordle   100 W

100 W
Posts: 182
Joined: Jul 20 2015 1:42pm
Location: The Alps

Re: OpenSource Remote for VESC ArduBoardControl

Post by Nordle » Jun 24 2016 6:27pm

On the second picture (first post) I see some resistors, what are they for?
4:20 Noob Hubz! BLAZE it
..sry for dat poor english..

RollingGecko   100 W

100 W
Posts: 110
Joined: Jul 14 2015 2:20am

Re: OpenSource Remote for VESC ArduBoardControl

Post by RollingGecko » Jun 24 2016 6:34pm

To measure the voltage of the Tx battery you need a voltage devisor. That's what they are for. For example 2x 10 kOhm.
Github: https://github.com/RollingGecko
ArduBoardControl: The Nunchuk Arduino implementation for the VESC: https://github.com/RollingGecko/ArduBoardControler
Berlin Custom Boards: All around DIY longboards: https://www.facebook.com/berlincustomboards/

User avatar
s28400   100 W

100 W
Posts: 143
Joined: Apr 05 2016 11:02pm
Location: Orlando Florida
Contact:

Re: OpenSource Remote for VESC ArduBoardControl

Post by s28400 » Jun 24 2016 11:22pm

An update with the housing! Check it out!


Let me know what you guys think. I am going out of town this weekend so I'll continue work next week.
My Project Site: https://www.radicalcreation.com
Science may set limits to knowledge, but should not set limits to imagination.

User avatar
Nordle   100 W

100 W
Posts: 182
Joined: Jul 20 2015 1:42pm
Location: The Alps

Re: OpenSource Remote for VESC ArduBoardControl

Post by Nordle » Jun 25 2016 11:14am

RollingGecko wrote:To measure the voltage of the Tx battery you need a voltage devisor. That's what they are for. For example 2x 10 kOhm.
Ty, I'll use 2x 22k cause I have many of them laying around:)
s28400 wrote:Let me know what you guys think.
Image
4:20 Noob Hubz! BLAZE it
..sry for dat poor english..

User avatar
s28400   100 W

100 W
Posts: 143
Joined: Apr 05 2016 11:02pm
Location: Orlando Florida
Contact:

Re: OpenSource Remote for VESC ArduBoardControl

Post by s28400 » Jun 25 2016 9:14pm

lmao, glad you like it. I still have some work to do with it before it is perfect. I'm letting a bunch of people hold it and use it to see what they think as far as ergonomics are concerned. So far so good. You know I might sell the housings as a kit for those who don't have access to a good 3d printer. I have access to a commercial stratasys printer that does excellent prints and I might be able to get a carbon M1 soon as well!
My Project Site: https://www.radicalcreation.com
Science may set limits to knowledge, but should not set limits to imagination.

Post Reply