Posts: 2,369 Threads: 74 Likes Received: 1,336 in 996 posts Likes Given: 771 Joined: Apr 2022 Reputation: 41 23-Mar-2024, 06:45 PM (This post was last modified: 23-Mar-2024, 06:48 PM by Pathfinder075.) Has anyone got plans or a link to a tutorial on how to build a PWM circuit that would allow a person to spin a motor at variable speeds. I am looking to setup a rig for testing motors, so when i get new motors I can do a couple of things. The rig will consist of a single ESC of say 30-40A, a variable PWM generator that will allow motor speed to be varied using a POT and probably two connection methods for the motor, one using a JST connector and one using croc clips. Aim of the testing rig: 1) Test they actually work 2) Test thrust on a given prop (by applying force to a weighing scale) And if it fails, well, it shall be a learning experience. Try Not, Do or Do Not - Yoda • Posts: 1,727 Threads: 60 Likes Received: 1,000 in 726 posts Likes Given: 96 Joined: Jan 2023 Reputation: 51 23-Mar-2024, 07:40 PM (This post was last modified: 23-Mar-2024, 07:47 PM by mstc.) You can get yourself a servo tester, that is probably the easiest. Or otherwise just attach a MCU/dev board, preferably one that runs on 5v if that will be your power source. A 5v arduino will do nicely, you can just download the servo library, and either program it to step through a preset PWM range, or attach a pot or other input device of choice to set the frequency. And you should be able to run 4 separate PWM signals without any issue. Plenty of online tutorials on using an Arduino to drive a servo. Here is one built using an Arduino nano from back in the day. Edit: If you're doing a test rig, you can program the throttle to automatically step through a predefined sequence, and there are electronic balances that have digital output which you can interface directly to your MCU and have it log the thrust at the same time. If you plan to test a lot of motors you will get better repeatability and more comparable data. You could probably use dshot protocol as well if you are testing drone ESCs, that would remove the range calibration factor of PWM. Posts: 14 Threads: 3 Likes Received: 1 in 1 posts Likes Given: 1 Joined: Feb 2024 Reputation: 2 If going the arduino route, you may be able to connect up the scales / load cell also and log the thrust values for you. However it may be easier to keep it simple depending how many measurements you're doing • Posts: 1,364 Threads: 118 Likes Received: 1,411 in 728 posts Likes Given: 1,069 Joined: Jun 2019 Reputation: 41 Nice setup there mstc. I went the shortcut route and just used an old FC: Home made motor tester | IntoFPV Forum Posts: 2,369 Threads: 74 Likes Received: 1,336 in 996 posts Likes Given: 771 Joined: Apr 2022 Reputation: 41 Simple is what I want. I'm after something initially I can connect a motor to just to test it spins, but I have a couple of sets of those digital scales, so thought, why not build a mounting system so I could strap/fix the motor down then I can throw a prop on and spin it up to 25/50/75/100% and get thrust values. Also throw an ammeter/voltmeter on and I can get amp draw and voltage sag. But it's going to be pen and paper level for recording values. Thanks for the replies. Try Not, Do or Do Not - Yoda • Posts: 1,727 Threads: 60 Likes Received: 1,000 in 726 posts Likes Given: 96 Joined: Jan 2023 Reputation: 51 If you don't mind being tethered to your PC/laptop, then an old FC is probably the easiest. Surely you must have an old AIO where just a single ESC is dead (I've been saving mine for a tricopter... but never got around to it). Then you can use bi-d d-shot, get ESC rpm reading, and if your FC has a calibrated current meter get the amp draw at the same time. Or if you have an old school receiver (like for planes or cars), those have PWM output, just connect the motor signal to one of the channels and use your radio. • Posts: 2,369 Threads: 74 Likes Received: 1,336 in 996 posts Likes Given: 771 Joined: Apr 2022 Reputation: 41 (24-Mar-2024, 06:04 PM)mstc Wrote: Surely you must have an old AIO where just a single ESC is dead So far, no. Been really lucky or really careful and not torched any esc. Two fatalities, but both were entire AIO, ie no longer work from USB full stop. Try Not, Do or Do Not - Yoda • Posts: 6,091 Threads: 172 Likes Received: 2,283 in 1,830 posts Likes Given: 4,718 Joined: Feb 2019 Reputation: 100 I gave my voltcraft battery checker to a buddys motor test bench. Some chargers and battery testers does support pwm signal. I would use that. • Posts: 2,369 Threads: 74 Likes Received: 1,336 in 996 posts Likes Given: 771 Joined: Apr 2022 Reputation: 41 I might just buy a cheap (Aliexpress) FC, I already have a spare 30A ESC which should work. Most of what I will test will use far less than 30A. Try Not, Do or Do Not - Yoda • Posts: 1,727 Threads: 60 Likes Received: 1,000 in 726 posts Likes Given: 96 Joined: Jan 2023 Reputation: 51 Unless you have other uses for the FC, maybe getting a dev board with integrated OLED display would serve you better and save you some $ (they cost only a few dollars). PWM would be very easy to setup, here is a quick overview, and just a few more lines to send data to the display. https://nnarain.github.io/2023/01/29/Int...-ESCs.html Of course bi-d dshot is even better, and someone has already written the library for ESP32 https://github.com/Carbon225/esp32-dshot https://github.com/derdoktor667/DShotRMT Looks like a fun project. • Posts: 274 Threads: 25 Likes Received: 137 in 107 posts Likes Given: 90 Joined: May 2023 Reputation: 3 28-Mar-2024, 04:44 AM (This post was last modified: 28-Mar-2024, 02:23 PM by skywanderer.) Following with interest, curious with what you end up doing. No cheap but it does even show kv!... SK-500020-01 Brushless LCD Display 3 Mode Motor Analyzer Monitor Tester for Hobby Remote Control Car Motor Testing with Connectors and Manual - $109.99 https://www.amazon.com/SKYRC-Brushless-A...SKY-500020 ...hmmm, just saw this one: Brushless Motor Analyzer: Motor KV, RPM, Timing Measurement, Hall Sensor Check, Brushless Motor Tester with 2x16 Characters LCD - Ideal for RC Hobby $86.69 with 13 percent savings-13% $86.69 https://www.amazon.com/SkyRC-Brushless-M...B00UMV606U same as first one? skads more at Amazonal ...edit to add: Brushless motor thrust stand with Arduino - this may be closer to what you were looking for?: https://www.pcbway.com/project/shareproj...duino.html https://www.instructables.com/Brushless-...ust-Stand/ erm, richly appointed version: https://www.tytorobotics.com/pages/series-1580-1585 |