This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: Code Composer Studio
Hi,
I have to drive a dc motor with F28335 using pi and fuzzy logic. Could you please give me a road map how can I do this. I have already watched and practiced with this workshop https://training.ti.com/c2000-mcu-1-day-workshop-series-6-8-control-peripherals?cu=9879.
Thank you in advance.
Kostas,
The workshop recordings will give you a solid grounding in the F28069 device. The F28335 differs in details, but both have a floating-point core so code development will be similar.
Do you mean a brushed DC motor? If so, I don't know of any TI examples. You will have to configure the PWMs to drive the power stage: for brushed DC motors this is usually a simple duty cycle modulated PWM pair driving a H-bridge configuration. Again, part 6 of the workshop recordings will give you details on how to do that.
There is a library of floating-point controller functions in C2000Ware, including several PI controllers. If you install in the default location, you will find them at:
C:\ti\c2000\C2000Ware_1_00_00_00\libraries\control\DCL
Regret I don't think we have any fuzzy logic code examples on C2000.
I hope this helps.
Regards,
Richard
Hello Kostas,
I regret fuzzy logic is something we have experience with. It's not part of the motor control algorithms where C2000 is typically used.
If you have an idea what you want to do, there is online material which will help you implement it on a C2000. If you're new to the platform, try the 1-day workshop at:
https://training.ti.com/c2000-mcu-1-day-workshop-8-part-series
There may be something on the Matlab side too. I'm just saying we don't have any collateral in this area to offer.
Regards,
Richard
Kostas,
Could you please let me know what workshop you are using? Lab 6 in our TI workshops is ADC and not PWM. Also, as Todd suggested, you might want to look at:
See lab 7 for the PWM. You will have to rebuild the lab for CCSv7, but this should not be difficult to do.
- Ken
Kostas,
Yes, that is my 1-day workshop, which is using the F28069. Please try the F28335 multi-day workshop lab 7 and let me know if this works for you.
- Ken
ken,
I jumped directly to ePWM solutions files in order to know if that works. When I run the lab7 from the start button I get a normal PWM. When I use Run_realtime_with_reset then I get something weird.
I have noticed that a shunt jumper is missing and that the compiler version of the lab7 is an older one. I tried to install the previous version through Help-install new software but there is no C2000 category.
Kostas,
Since you are getting the PWM with 'run' then it is working. When using the script for real-time mode a reset is issued. Double check that the boot modes are set properly - see Appendix A. For this exercise, it should be set to boot to SARAM.
- Ken
ken,
Are there pins on Docking Station which give me the ability to measure with a multimeter the Docking's Station inputt voltage?
Thank you
Kostas,
You will find the schematic and PCB layout diagram in controlSUITE under:
controlSUITE/development_kits/~ExperimenterKits/DIM100ExperimenterKit-HWdevPkg_v2_0/R3
Notice on the PCB layout diagram that the 5V header is connected to the Docking Station power input. This information is also available in C2000Ware.
I hope this helps.
- Ken