Recommendations - Model Train Controller


Closed Thread
Results 1 to 40 of 102

Hybrid View

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


    Did you find this post helpful? Yes | No

    Talking Growling

    Hi, Malc,

    The only way is to increase the PWM frequency ( 500 or 1000 Hz might be enough ).
    also Think to the minimum PWM ratio zone to skip ( ~ 10 % )

    you'll find a problem here : some motors do not like high frequencies ( > 3000 Hz ) due to their high inductance ... and might overheat.

    Do you think I could make a test with my Big Boy, die cast "crocodile" or JEP 231 ... or some oldies ???

    Hé,hé ... my father gave its life and brain to our national railway company ...and still builds custom models ( 84 years ...the papy !!! )

    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

    Well I've been playing with the values for SPWM frequency and resolution and found the highest setting for the 12F675 using internal osc was around
    Code:
    DEFINE SPWM_FREQ  200                ; SPWM Frequency
    DEFINE SPWM_RES   256               ; SPWM Resolution
    Its not possible to up the resolution without using an external OSC. However I intend to use a different PIC and may opt to use it at is max xtal rating, especially if I use the one PIC to provide all 4 channels. Maybe the higher resolution will reduce the grumbling in the armature... mind you if this was on old 0-6-0 shunter it would look and sound just right

    One thing I did notice is that when using the PWM version the power tranny runs cold, where with the close loop version it warmed up (slightly)

    Anyway, I'm having fun learning

Similar Threads

  1. Microstepper controller
    By aratti in forum Schematics
    Replies: 14
    Last Post: - 3rd January 2015, 16:52
  2. problem with the GSM controller
    By Dariolo in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 30th May 2009, 20:33
  3. Replies: 2
    Last Post: - 14th July 2008, 22:11
  4. Model Train controller - revisited
    By malc-c in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 8th May 2007, 09:40
  5. Dedicated LCD Controller question
    By chuckles in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 27th February 2006, 14: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