Model Train controller - revisited


Closed Thread
Results 1 to 33 of 33

Hybrid View

  1. #1
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Wink Archives !

    Hi, Malc

    I do not know wich pic you really use ... but if it is the same as in your Listing ( 16F767)

    you should have a look to Post #8899 from Bruce ... ( Jul 2003 )

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  2. #2
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Acetronics View Post
    Hi, Malc

    I do not know wich pic you really use ... but if it is the same as in your Listing ( 16F767)

    you should have a look to Post #8899 from Bruce ... ( Jul 2003 )

    Alain
    Well I've searched for posts older than a year from Bruce and the stupid search engine still brings up posts dated 2007 !

    Any chance of a direct link as I amd using that PIC

    Malc

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    i think it's that one
    http://www.picbasic.co.uk/forum/show...ghlight=16f767

    but it's may 2005

    anyways, by searching with post#... you'll redirected there
    http://www.picbasic.co.uk/forum/showpost.php?p=8899

    which is the same
    Last edited by mister_e; - 25th April 2007 at 18:44.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e View Post
    i think it's that one
    http://www.picbasic.co.uk/forum/show...ghlight=16f767

    but it's 2005
    Hi, Steve

    Ok, You're right !!! 2003 is my join year ...

    don't you think 3 nice working channels are better than 2 " not so good " ???


    But I still do not understand why Malc wants to read its pots @ 150 Hz ...
    may be timing issues he gets come from here !!!

    Alain

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    From what i remind 150Hz is less noisy for those motors. And it's also a kind of limitation of the SSPWM as well.

    Sure, the noise you hear from your motor is the PWM frequency. Depending the accuracy you need and the OSC you're the maximum PWM frequency should be in the 'yes i can hear that frequency' range

    PicMultiCalc came handy... @8MHZ 30KHz PWM give 9 bit accuracy (well 0-267). Question is... how the motor will react to this... i worry a little bit about the output transistor efficiency already in use for that frequency range. Maybe good enough. Don't remind the whole specs.
    Last edited by mister_e; - 25th April 2007 at 18:51.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  6. #6
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default

    Heuuuuu

    Something really, really, really, stupid ...

    is it really necessary to have such a high oscillator freq ??? PWM freq would follow ( with HPWM use ... of course !!! )

    @ 4Mhz, it gives 245 Hz as a mini ... that's bearable !!!

    as there are no time dependant issues ... could use a different XTAL than declared !!! ( 1, 2 or 2.5 Mhz ... from stock ! )

    Alain
    Last edited by Acetronics2; - 25th April 2007 at 19:02.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  7. #7
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Who knows... what i wanted to point-out is around the noise you can hear from the motor. 30KHz... who can hear it here but for sure, the whole thing may not work at all... or not as expected as such high frequency... a little bit why i already suggested something around a linear voltage regulation instead of PWM in the original thread 'Recommendations - Model train controller'
    http://www.picbasic.co.uk/forum/show...1&postcount=94

    in 250 Hz range PWM, it should work...BTW, let's see what will happen.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. Microstepper controller
    By aratti in forum Schematics
    Replies: 14
    Last Post: - 3rd January 2015, 17:52
  2. problem with the GSM controller
    By Dariolo in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 30th May 2009, 21:33
  3. Graphics controller for the Sitronix ST7549
    By ttease in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 26th May 2007, 22:45
  4. Recommendations - Model Train Controller
    By malc-c in forum mel PIC BASIC Pro
    Replies: 101
    Last Post: - 8th March 2007, 09:17
  5. Dedicated LCD Controller question
    By chuckles in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 27th February 2006, 15:44

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts