Go Back   RCCrawler Forums > RCCrawler General Tech > Electronics
Loading

Notices

Thread: Open source ESC and firmware

Reply
 
LinkBack Thread Tools Display Modes
Old 09-30-2019, 08:31 PM   #41
XXXXXXXXXXXXX
 
durok's Avatar
 
Join Date: Jun 2016
Location: Austin
Posts: 4,259
Default Re: Open source ESC and firmware

Quote:
Originally Posted by Alka View Post
Thanks, it can control two brushed motors at the same time too, there is a separate channel that can be used for the second input. Both motors share the same middle mosfets so the drawback is both have to be going the same direction at the same time ( but they don't have to be going the same speed). Maybe its useful for dual motor crawlers ? otherwise the second channel can control the drag brake strength.
Seriously nifty!
durok is offline   Reply With Quote
Sponsored Links
Old 09-30-2019, 09:50 PM   #42
Quarry Creeper
 
Join Date: May 2019
Location: North Highlands
Posts: 381
Default Re: Open source ESC and firmware

Subbing. Cool stuff...
punkindrublik is online now   Reply With Quote
Old 10-09-2019, 04:20 PM   #43
Newbie
 
Join Date: Mar 2019
Location: Canada
Posts: 42
Default Re: Open source ESC and firmware

Added selectable bi-polar/ uni-polar PWM for brushed modes and a crude adjustable PWM dithering.
With bi-polar pwm both channels are putting out 50 percent power all the time. For the motor to go forward the duty is increased on one channel and decreased on the other. For some hardware that requires a minimum on time this allows for more resolution at low throttle.
This also how two brushed motors can be run from one speed controller both with independent forward and back .. the only drawback is the get half the voltage each so if you use a 6s battery its just about right
PWM dithering is done on a 4khz frequency injected over the 24 khz motor drive frequency.. it simply varies the power plus or minus some value to help break friction.
This will be added in github ( link on first page ) tomorrow.
Work has start on a PC configurator too!

I went to order a holmes hobbies devolver.. but it was 26 US dollars to ship to Canada. I would still like to make this my test motor but i can't pay $80 Canadian for one motor and shipping! Arrgrh !!.. I am using an outrunner from an underwater rover for my testing right now in my crawler that bluerobotics sent out (m200) but its only 500kv so its very slow and it squeaks a lot (it is meant to be run under water).
Alka is offline   Reply With Quote
Old 10-09-2019, 05:27 PM   #44
Newbie
 
Join Date: Apr 2019
Location: Molalla
Posts: 46
Default Re: Open source ESC and firmware

Quote:
Originally Posted by self-future View Post
Wow, this is super exciting. I always wonder why rc forums donít cater to this kind of thing. Someone at rccrawler seriously needs to make a section for open source projects like this and also mechanical design. Maybe experimental would be a good classification?
I love tuning and a printed body, but this is another level that we should all aspire to!
Definitely going to keep up with your projects!
Yes exactly. Dangerous words for me are "wouldn't it be cool if...." My crawling buddy just rolls his eyes now. But it gives me something mechanical to work on and think through.

Current thoughts include:

-moving a dig unit to the rear axle. My R1 dig really has to work the driveshaft length to engage and disengage. Moving a toothed collar into the end of a driveshaft on the axle end might be easier.

-somehow being able to adjust ground clearance on the fly or go between 2 suspension extremes
MrAMath is offline   Reply With Quote
Old 10-09-2019, 05:40 PM   #45
I wanna be Dave
 
Join Date: Sep 2008
Location: PA
Posts: 10,883
Default Re: Open source ESC and firmware

Quote:
Originally Posted by Alka View Post
Added selectable bi-polar/ uni-polar PWM for brushed modes and a crude adjustable PWM dithering.
With bi-polar pwm both channels are putting out 50 percent power all the time. For the motor to go forward the duty is increased on one channel and decreased on the other. For some hardware that requires a minimum on time this allows for more resolution at low throttle.
This also how two brushed motors can be run from one speed controller both with independent forward and back .. the only drawback is the get half the voltage each so if you use a 6s battery its just about right
PWM dithering is done on a 4khz frequency injected over the 24 khz motor drive frequency.. it simply varies the power plus or minus some value to help break friction.
This will be added in github ( link on first page ) tomorrow.
Work has start on a PC configurator too!

I went to order a holmes hobbies devolver.. but it was 26 US dollars to ship to Canada. I would still like to make this my test motor but i can't pay $80 Canadian for one motor and shipping! Arrgrh !!.. I am using an outrunner from an underwater rover for my testing right now in my crawler that bluerobotics sent out (m200) but its only 500kv so its very slow and it squeaks a lot (it is meant to be run under water).
Supposedly AMain has cheap shipping to Canada.

But I thought you and Holmes were going to work out a deal where you'd get a free Revolver?
JatoTheRipper is offline   Reply With Quote
Old 10-09-2019, 07:08 PM   #46
Newbie
 
Join Date: Mar 2019
Location: Canada
Posts: 42
Default Re: Open source ESC and firmware

Quote:
Originally Posted by JatoTheRipper View Post
Supposedly AMain has cheap shipping to Canada.

But I thought you and Holmes were going to work out a deal where you'd get a free Revolver?

John has to make a living too, I told him I would answer any questions.. no revolver necessary. I can copy and paste my code anywhere at no cost to me but John can't do the same with his revolvers! Just never knew about how much it would be to ship lol. I will check out Amain!
Alka is offline   Reply With Quote
Old 10-09-2019, 07:15 PM   #47
owner, Holmes Hobbies LLC
 
JohnRobHolmes's Avatar
 
Join Date: Nov 2004
Location: Volt up! Gear down!
Posts: 20,218
Default Re: Open source ESC and firmware

I'll still send you one for testing hardware and software!

I've been stuck in a loop studying software. Although I could throw this stuff on a board and watch it go with little understanding, im trying to understand it all on a deeper level. Wrote some code today though
JohnRobHolmes is offline   Reply With Quote
Old 10-09-2019, 08:17 PM   #48
Newbie
 
Join Date: Mar 2019
Location: Canada
Posts: 42
Default Re: Open source ESC and firmware

Quote:
Originally Posted by JohnRobHolmes View Post
I'll still send you one for testing hardware and software!

I've been stuck in a loop studying software. Although I could throw this stuff on a board and watch it go with little understanding, im trying to understand it all on a deeper level. Wrote some code today though

That's awesome, a devolver is good enough for me! We will make a trade and I will send you some dev ESC's to play with that are easy to program and debug. (also to re-solder FETS when things go badly).
Alka is offline   Reply With Quote
Old 10-09-2019, 09:27 PM   #49
I wanna be Dave
 
Join Date: Sep 2008
Location: PA
Posts: 10,883
Default Re: Open source ESC and firmware

Quote:
Originally Posted by Alka View Post
John has to make a living too, I told him I would answer any questions.. no revolver necessary. I can copy and paste my code anywhere at no cost to me but John can't do the same with his revolvers! Just never knew about how much it would be to ship lol. I will check out Amain!
I respect your stance!


Quote:
Originally Posted by JohnRobHolmes View Post
I'll still send you one for testing hardware and software!

I've been stuck in a loop studying software. Although I could throw this stuff on a board and watch it go with little understanding, im trying to understand it all on a deeper level. Wrote some code today though
I also respect this!
JatoTheRipper is offline   Reply With Quote
Old 11-12-2019, 12:29 PM   #50
Newbie
 
Join Date: Mar 2019
Location: Canada
Posts: 42
Default Re: Open source ESC and firmware

Super creepy..

https://youtu.be/R9KDW1Cdky0
Alka is offline   Reply With Quote
Old 11-13-2019, 11:02 AM   #51
RCC Addict
 
Voodoobrew's Avatar
 
Join Date: Feb 2017
Location: My mothers basement
Posts: 1,205
Default Re: Open source ESC and firmware

So if I want to buy a board that I upload your firmware to, what would you suggest. Money not being an issue, just wanting the best, or at least one that is not going to limit me as an esc much. Don't know any thing about the boards really.

I have never done any firmware uploading except over USB.

I think your project will really get some views once you put up a start to finish tutorial that just covers what to get, how to install, and a few bits on configuring your firmware.

Sent from my SM-N950U using Tapatalk
Voodoobrew is offline   Reply With Quote
Old 11-13-2019, 02:52 PM   #52
Newbie
 
Join Date: Mar 2019
Location: Canada
Posts: 42
Default Re: Open source ESC and firmware

Hi Voodoobrew, the firmware originally meant to be compatible with blheli_32 boards (for multirotors) but I have never tested it on any other hardware than my own contraptions. The sinusoidal start required some very fast switching mosfets though and only works on specific hardware.. This board was using the St micro STSPIN32F0 mcu. There are no commercial boards yet that will be suitable but I think this little chip is a really amazing device and we will see it more often soon.

The base firmware on github is for the f051 mcu which is used in a lot of multirotor or airplane esc's but I have no experience with any. It is pin compatible with the "wraith_32" esc's but some manufacturers are locking the mcu's so they cannot be reprogrammed with other firmware.

I don't know where to go from here. I never expected to get this far .. Right now you would have to upload code using a st-link programmer but i am looking into using a bootloader so that a simple usb-serial adapter can be used. The sinusoidal super slow stuff still needs work but I think it has potential.

I am going to solder a few more boards together and send them out to some people to start testing if you are interested. I think the firmware still has a long way to go before it is ready for a bigger roll out, and it needs some PC side configurator.

I know there are a few engineers from different manufactures that check my blog on rcgroups. If I do come up with something really good it will be in commercial esc's soon anyway since its all open.
Alka is offline   Reply With Quote
Reply



Open source ESC and firmware - Similar Threads
Thread Thread Starter Forum Replies Last Post
OEM Castle Esc reflash firmware Di_Spencer Electronics 9 12-07-2016 12:36 AM
Open source chassis Savagethrash Axial XR10 2 03-22-2015 07:12 AM
TorqueMaster ESC 1.08 firmware released JohnRobHolmes Electronics 13 03-04-2011 07:23 AM
Xcelorin ESC firmware download Del Monte Team Losi Comp Crawler 16 03-09-2010 01:07 PM
Open source or free sw to replace Autocad setecastronomy Tools, and Procedures 16 04-28-2009 07:24 AM
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 03:11 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO ©2011, Crawlability, Inc.
Copyright 2004-2014 RCCrawler.com