mo1001 Posted July 29, 2005 Report Share Posted July 29, 2005 Hi there!First I want to say that im very very glad that this projekt exists!After sucessfully finishing my midibox128, i was wondering if there is any possibillity to control a Motor using a PWM controll (and of course midi). Of course I did see the MF modul which also handles with PWM, but as i understood the PWM 'times' - which would control the motor speed - are fixed in the code? If they could be controlled via midi it would be great! Does anyone sees a possibility to realize that?greetz form goettingen moritz Quote Link to comment Share on other sites More sharing options...
Duggle Posted July 30, 2005 Report Share Posted July 30, 2005 hi,Maybe using MidiBox CV to control a PWM motor drive would suit you're application.( this would mean midi CC value would control motor speed, if you want to control motor position then the CV could drive a servo) cheers Quote Link to comment Share on other sites More sharing options...
TK. Posted July 30, 2005 Report Share Posted July 30, 2005 Hi Moritz,how many motors should be controlled?The PIC contains two special hardware peripherals for PWM generation, one is not allocated by MIOS and can be used for any purpose (e.g. the MBSID application uses this module to generate a 1 MHz clock with 1:1 duty cycle)The second one is free, if the application doesn't need the USER_Timer processBest Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
mo1001 Posted July 31, 2005 Author Report Share Posted July 31, 2005 Hi,@duggle: i thougt about that too, but didnt find a VC PWM-module. And I also think I prefer a software- based solution.@ tk: Yes, two motors should be ok for a start. Is there any descritpion how to deal with these PWM outputs? and is it easy to enable the second unused PWM controller? I have little programming skills, and just started with a single core and a MidiO-128 module, without fixing the MIOS code itself, so a hint in the right direction would maybe help me a lot! :)thanks,moritz__________ Quote Link to comment Share on other sites More sharing options...
TK. Posted July 31, 2005 Report Share Posted July 31, 2005 Hi Moritz,the details can be found in the PIC18F452 datasheet, which can be downloaded from the Microchip page.Chapter 14.5 describes the PWM module, it also contains some hints for the configuration. I just have noticed, that only Timer2 is allocated - this means, that there are no MIOS specific restrictions.Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
mo1001 Posted August 1, 2005 Author Report Share Posted August 1, 2005 Hi thorsten, thanks a lot, i will check it out immediately!moritz Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.