GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing docs.simplefoc.com — Writing the code ★ Loading... Helpful? How can we improve this page? ✓ Thank you! Your feedback helps improve SimpleFOC docs. On this pageWriting the codeOnce when you have decided the appropriate hardware configuration of yous board and once you have all the hardware ready to be connected:
we can start the most exciting part, coding! Arduino SimpleFOCShield is fully supported by Arduino SimpleFOClibrary, therefore please make sure you have the newest version of the SimpleFOClibrary installed. If you still did not get your owm version of the library please follow the installation instructions. Suggested approach when starting coding for the Arduino SimpleFOCShield is:
You can also follow our Getting started guide! Step 1. Testing the sensorFirst make sure your sensor works properly. Run one of the library examples specific to your sensors. You can find the library examples in Once you have your sensor reading the good values you can continue the testing the combination of the motor and the sensor.
Step 2. Testing the motorTo test the BLDC motor before running FOC algorithm we suggest to run the open loop examples!
If you are not sure what is the number of pole pairs your motor has, please check the example code: This code will estimate the pole pairs number that your motor has. Please run this code several times to get a good estimation. The code will, generally show a good reading 7/10 times. Step 3. Voltage motion controlOnce you have your sensor working, and you have the right number of pole pairs of your motor you can start using FOC algorithm. The best practice is to start with an example of the Voltage control: Step 4. More complex control strategiesNow when you have your torque control using voltage ready you can continue to the position and velocity control algorithms. They will take a bit more time to tune but they will give you a chance to have great results. You can find the library examples for motion control loops in by navigating the examples: For more information about the possible SimpleFOCShield projects visit example projects |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |