This entire <$10 cheap esc reprogrammed to run foc reminds me of the alchemists looking for the philosophers stone.
Except that it is appearing entirely doable?
If I adopted the high cost approach some people are suggesting at every stage of the project, then the whole thing would cost $2000. No one can afford that. If itâs going to be a nice piece of open source engineering, the cost has to be pushed back at every stage.
If I get some time next week I will design a 10$ esc with a 32bit MCU. Iâm not accepting a challenge, just a thought while doing nothing and watching the world coming apart over the weekend.
I would totally be impressed. Wait, just the design on paper? But it has to go into production and be available at a reasonable price to make a difference to our other human fren⌠you donât want to use something that is already on the market? I think that might be more valuable. Then itâs just code -->global propagation, massive benefit. There is the question of how do you get paid for it, maybe people would donate or something.
I did some more research, and even sinusoidal drive, so a step down from foc, has major advantages, but it is not common in escs like I had thought it might be. Some people are saying they can extend drone flight time by 40 percent with it. There is one guy who, yeah, designed a board. But you canât actually get them. If you could they would probably cost a lot.
It would be an industry first to actually use the inductance or impedance or back emf, or some combination thereof to provide low speed incremental positional feedback, too. I wonder if one could even get absolute position information, that would be really useful. I donât really need that, but a lot of people would be able to use that immediately. No complicated and expensive sourcing of encoders for many applications. It would be great in stepper motors. It could provide missed step detection. I seem to remember hearing about that. 3d Printers in particular would benefit from that. There is such a thing as sensorless homing, where the electrical characteristics of the motor are monitored, to determine when it has stalled at the limit of its travel, which is slightly related, I guess. Iâm surprised such things are not already common, with the downward pressure on prices of consumer electronics such techniques seem like they are ripe for development. You could say that means they canât be done, but sensorless homing shows otherewise, for instance. Limit switches are the norm, but sensorless homing has been just as possible for at least a decade as it is today, and yet it is only just getting out there.
You can order it from jlcpcb. I can help you with the order if youâve never done it, and you can sell it. Costs less than buying pizza. Builds character and enhances your courage and expands knowledge horizons. Iâm not being sardonic. Iâm very serious. Human frens will be very happy. Just please donât make me post a happy pepe meme. We are not 4chan.
My paper designs usually work 80% of the time. If they donât, we will re-design and re-order.
You may be very surprised hw cheap they are to order from scratch. Got a credit card?
Not really. Itâs been done many times before.
Well, let me check the available components. If you are interested, Iâm interested too.
It may not happen tomorrow, or even next week. Iâve got a lot many other things going on now.
Cheers,
Valentine
available from multiple sellers at a similar price, so they are unlikely to become unobtainable real soon VGOOD Brushless ESC 6A / 15A / 20A / 30A / 40A / 60A / 80A / 100A / 120A 2-6S 32-Bit W/1.5A SBEC for RC Helicopter Airplane Accs - AliExpress 26
32 bit ESC, $9 usd.
That appears to be an outlier. Not clear what microcontroller, but you can see the pads in the image for programming, if the programming cannot be done through the servo wires, which I think it probably can.
Thatâs very cool of you. No happy pepe memes, I promise.
I think I can promise to try it and use it if it works, and pass the savings on to people, and it will become part of the commons of design. I think that or chopping up an esc to access the output stage are the best hopes I have. Chopping up an esc would be at least $6 CAD per motor, probably more because these ones I have are the cheapest but they wonât work, but then it would be open loop, which may not work. Open loop is of course less energy efficient, which means the extra energy goes into heat, and these motors can hardly hack it as it is even with a proper controller with back emf feedback.
My current plan is to use rubber mounting washers and the reflashed cheapie escs, but if I in the future can get a line on a sinusoidal drive of some kind, with closed loop to maintain motor power output, then I can swap it in and roll with that and it will be even quieter still. It would be nice to make the motor controller open source as well.
Are you east coast or west coast timezone?
Iâm in eastern standard time, same as Toronto and Montreal.
more research to determine the competition or other potential options:
Project | Modified ESC for Bidirectional BLDC Control | Hackaday.io these guys are trying to do something similar. they note that blheli32 supports sinusoidal drive
GitHub - SAR-mango/SinESC: SinESC brings sinusoidal motor control to the RC drone and fixed-wing communities without common downsides. dead project to make a sine wave drive esc
https://www.youtube.com/watch?v=mngGK3LV1Tk blheli32 appears to indeed support sine wave drive, or it used to anyway. it is not mentioned in the post from the manufacturer because it wasnât added at that time apparently.
The question is the price of them and how they compare to other options. It turns out the esc has to be made with blheli32, you canât get a cheap one and then flash it on after, or it is not very practical, they put restrictions in the software to prevent it.
BLHeli_32 ESC Firmware Overview - Oscar Liang
https://www.rc-wing.com/flycolor-36a-blheli-32-32bit-3-5s-brushless-esc-w-telemetry.html another source of the flygood one, similar price. more reliable information.
ok so the flygood one is a serious contender, but $30 Cad, and it has to be one for each motor. Thatâs $60 per ventilator, compared with 12 bucks for non sinusoidal ones. A factor of 5 difference.
The vgood one is 32 bit and may implement sinusoidal drive, and may not. There appears to be no way to know. I guess best bet is that it does not, as it is not mentioned in the marketing material anywhere, I googled for Vgood esc sine and there is nothing. maybe I should order just one and see, as it would likely be the winner if so.
these guys started investigating reprogramming and esc but they went silent for some reason, never reporting back with whatever findings . apparently it is an stm32 chip, I did not realize that. https://community.simplefoc.com/t/blheli32-esc-feasible/621/7
Here, this is the basic design. Iâm going to call this ESC the name Lepton. If you make 10 or more at a time, it will be less than $10 USD excluding shipment (extra $4 per batch order).
So, how is $5/board looking for the basic components, including manufacturing? I stil need to add the capacitors and some other basic components, and then route the board. You have to solder your own wires and add a bulk capacitor, but that would be gravy.
Size of board is 25mm x 25mm (2.5 x 2.5 cm). 32bit MCU with 64kb memory, more than enough to run full-blown open-loop SimpleFOC. If you want to add resistors for back-emf, we have to add may be another 5mm to the size of the board.
This is 22A continuous current, up to 40A pulsed current.
I believe I could get it under $10 USD for sure. I added the rest of the more expensive components.
You must add an external bulk capacitor, and external 3V power and whatever PWM or other way to control the ESC however and solder your own wires.
Currently the cost is $6.40 per board for ordering 10 board batch. This is the full BOM below. I will add the rest of the components tomorrow and route the board.
As usual, amazing design in such a short time @Valentine !
@Anthony_Douglas , it seems you have come quite far in your research. You can definately run the motors off BLHeli or SimonK type firmwares, and sinusoidal commutation in open loop could be a solution for you. But that isnât FOC, and these MCUs wonât be able to run Arduino Framework + SimpleFOC due to their limited resources. But maybe FOC isnât needed for your use-case? In which case why pay the premium for hardware that can do it?
I think, and Valentine has more or less proved it, that the type of driver you need, and FOC-capable, is possible to do quite cheaply.
But reading this whole thread, I also think youâre confusing development and (marginal) production costs. The type of ESC products youâre looking at are hobbyist products, intended for modelling or RC racing users. They can be repurposed for development and prototyping, but youâd never put them into a real product. And since development and prototyping vs production runs have different cost structures, it should normally not be a problem to spend a few hundred dollars on different prototypes, for example by repurposing expensive and suboptimal off-the-shelf stuff. Then, once a prototype is working, you know the attributes of the design you need, you start to develop optimised boards for your solution. The final optimised design can then be produced in higher numbers at a very low cost per unit. Once you reduce it to the essentials, the drivers can be quite inexpensive, take a look at some of the hoverboard PCBs and how minimalistic they are.
In all of the above I am also missing a discussion on safety. Perhaps you have considered it, but from my point of view this should be a primary concern, and not just the cost.
A ventilator sounds like something you might have running continuously, unattended in your apartment. The $6 ESC is designed for outdoor use in a hobby RC-Vehicle or drone, where it is clear that you can only use it at own risk, not above people or roads, etc⌠I would consider these ESCs unsuitable for continuous, and esp. unattended indoor use - there are no safety features whatsoever, and the case/housing is non-existantâŚ
Classical 1991 case. Takes 1% time&effort to get 99% funcionality and 99% time &effort to get the other remaining 1% . Problem is if the design is only 99% succesfull, that 1% failure edge case scenario will set your house on fire and kill your dogs or worse, your kids. When i fully wake up and have my coffee ill tell a very sobering story happened here in SV last ye ar to a startup company doing something very similar to this.
OK story time. A close friend of mine founded a multi-million startup for advanced UAV (octo-copters) here in BA/SV. Two years later, one of the copters caught on fire due to poor design during testing, burned down the entire lab, then the whole building caught on fire, burned all research and experimental data, and backups and everything. Luckily nobody got hurt. His company disappeared in a few hours. He was so mad he threw away whatever was left, and I went and pulled from the trash two of the rotors as a reminder what not do to when designing and running a startup. These are the rotors below.
Lesson to be learned here.
Each of these rotors today costs $1MM in imaginary money. The only thing left from the company. One of these is hanging on my wall where I work as a reminder.
This is a bit more final ESC design. We are still under $10 per board.
This is a full-blown 6PWM board with 32bit 64MHz MCU and integrated 30A / 30V 1/2 bridge mosfets, 5V tolerant PWM input isolated from the MCU and 5V input power separate from the high-voltage input.
Also I added bootstrap charge diodes for slow moving motors with very low/high PWM duty.
Now comes the really hard part, routing this will be a challenge.
That is pretty awesome. I would very likely need to implement commutation with back emf, yes. It think I mentioned that. The motors can probably not produce the needed power output without commutation, and encoders are too expensive by far. I can try to do the programming myself, I think, however itâs a concern. I seem to have heard that back emf in simpleFOC is not implemented yet, and I donât know if it would be practical.
I know itâs not SimpleFOC any more, but from a strictly utilitarian standpoint, it might make sense to use one of the dedicated FOC control ics on such a board, though, thatâs the thing that concerns me the most from an optimality/ is this the best way standpoint.
I honestly donât see how the manufacturer can obtain the parts, with shipping and so on, esp in a timely manner, make the board and produce it for such a price. It must be highly automated and I assume only a certain selection of parts are possible.
Regarding development vs production costs, that model doesnât apply to what I am doing. I am not taking that capital intensive approach. I will make one unit and make it workable, and yes it has to have a fuse etc., then I apply scientific and engineering knowledge for reasonable safety etc. and then publish. Itâs just a different mode of operation. I will sell kits on tindie to try to make up some of my development costs, which is likely not going to even happen, but hopefully.
It is a very low speed, low power, low voltage device, it doesnât plug into the wall, the power supply does, and it is ul listed etc. I think itâs quite reasonably save and so on, far saver than a drone.
Honestly, when/if I use this board, I think it is a lot sketchier to use the designs someone you donât know off a forum gave you than to buy an ESC that is designed by a company that has legal liability, lots of resources, is identical to a great many others, and well tested. There could be errors in SimpleFOC above all, which as you know could lead to the hbridge shorting out, if some of the pins go on at the wrong time. Honestly, I hadnât thought about it before, but it is a little sketch now that I think about it. I just recently had the issue of the approved hardware, the l298n board, not actually working, although it was not dangerous, when I updated the firmware on my ESC, it in fact did exactly that thing. The solder on one of the hbridges melted. I caught it and turned off the power supply fast enough, reloaded a different firmware, and itâs fine now. But still.
There are less severe issues too, like PID tuning, for example. In my limited experience I have already encountered situations where a PID controller that I thought was tuned started oscillating, which is not dangerous here, as it would be in a drone, which would fall out of the sky, propellors spinning furiously.
Not meaning to disappoint you however you know these âcompanies with legal liabilities and lots of resourcesâ do not exist, right?
As you can see it takes a weekend by a professional to design something a lot more capable and better than whatever you could buy for the same price. Who do you think designed these low cost ESCs?
As they say, whatever rocks your boat.
Cheers,
Valentine
PS FlipSky, one of the better known companies in the ESC market, has about 10 employees, and they occupy a tiny office in Shenzhen, China. Thatâs a room full of people. The rest of the companies are not even that big. Reality check.
I think you have the wrong picture here. If you buy an ESC for $6 in china, the legal responsibility for what happens when it is used in USA/EU is all on you.
If you buy it from a store locally, they will make clear that it is for outdoor use, etc⌠they wonât assume any liability for things you may do with it. They will say - its a hobbyist device for use in outdoor line of sight RC racing, at the owners own risk. And besides, the owner assembled and installed it. If you buy a RTR model your chances might be a little better, but even here I doubt youâd make any kind of liability for anything stick, and certainly never ever for any kind of home-made devicesâŚ
The type of motor controller that comes with liability is made by Bosch et al, for use in vehicles, or by various manufacturers for industrial applications. Needless to say these will not suit your project price-wise or size-wise.
Absolutely true! I always try to point out, to make sure people are safe - itâs one thing doing a hobby project in the shed, or working on a prototype that will never directly be used in real life. Its another putting something in your apartment, running 24/7 and connected to mains power.
Much as I love our project here, I do think the FOC-capable controller of a reputable brand like TI or Trinamics would be a safer choice, but of course these driver ICs typically cost quite a bit. Those are performance ICs, but there are also less expensive fan-controller ICs, some for brushless fans, that donât give you that kind of performance but are cheap and should run smoothly and quietly. Might be something to look at?
Hey! Nice job @Valentine !
Seems cool.