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,653


    Did you find this post helpful? Yes | No

    Wink No surprise !!!

    Hi, Malc

    I do not know where you found R4 and D1 ... but your problems come from there.

    No real use for them ... so, back to their drawer will be the best.

    ... or use another Pic pin if you want to do something with the freewheel emf !!!

    a simpler output stage would be welcome ( your NPN Emitter to ground and a series 1 k in the base connection i.e. )

    Alain
    Last edited by Acetronics2; - 15th February 2007 at 14:27.
    ************************************************** ***********************
    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

    Alain,

    Thanks for the suggestion... the output circuit was taken from a book and is actually a cloose-loop feedback controller... I just fed the output from the PIC directly to the base of the NPN tranny... but I'll try your suggestions and see if it improves the max speed settings. However in its current state it makes for an excellent branch line controller where slower trains would run...

    To give you some idea of the excellent slow speed the PWM gives have a look at this video I've uploaded http://www.micro-heli.co.uk/controller.avi (9mb DIVx format)

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


    Did you find this post helpful? Yes | No

    Default

    Omitting the feedback section (R4 and 1N4148), and adding a 1K base resistior I now get a good range of speed and excellent slow speed crawling. Just need to resolve the growling in the armature

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


    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 " !!!
    *****************************************

  5. #5
    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, 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. Replies: 2
    Last Post: - 14th July 2008, 23:11
  4. Model Train controller - revisited
    By malc-c in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 8th May 2007, 10:40
  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