slowing down a DCC loco in a "block" using an arduino or similar circuit ?


hi,
i have been researching problem several days, no avail.  have read dcc packets etc, , how maybe capture them, want follows :

i have 3 , 3 down line tracks hidden , intended hold trains in sort of sequence every time train approches  "fiddle yard" enters 1 of 3  vacant loops, starts slow down in 1st block section of loop track, , stops before reaches exit point/switch in 2nd block. 1st  block slow down trigger train waiting in 1 of other loops start , exit storage loops go around layout.

in it's simplest form, want incoming train enter designated loop track, start slow down 1/2  speed in first isolated block (separate dcc feed), , when hits second isolated block (seperate dcc feed) stop, utilising programmed deceleration half speed or similar controlled 1st block, ensuring train come full stop before reaches exit switch/point.

this allow me send random different trains around figure 8 circuit (controlled arduino) provide automatic variation of traffic arriving / passing round layout , through high level through station.

my concept use arduino control tracks train enters, , randomizer decide train leaves complex next run through.

my main problem know can cut power 2nd isolated section sensing loco entry final section in design, , train stop @ point in block, each 1 set differently in terms of top speed, decelaration etc, stopping distance different in each trains case, hence need have progammable "slow down block" before stop section can train not overrun exit switch/point in 2nd block, cause disaster obvious reasons. admit bit of perfectionist, of locos stup pretty realistic deceleration/stopping distances, makes calculating actual stopping point pretty difficult ascertain.

i reasonably confident arduino programmer, (and have written "c" programs commercially many years) , can handle soldering iron , pcb or breadboard plus electronic components others, looking sort of circuit let me automate scenario relatively easily.  understand , have circuit block detection in these loops, existing train detection system used trigger slow down ofthe incoming trains entry first block. 

that come brick wall. understand dcc uses data packets rather pwm control loco, woullld guess need way modify "speed" parameter of data packet alone in each of blocks achieve solution, or maybe can use different method achieve same end result ?

any input on issue welcome, has been driving me mad on several weeks now. !

ian

can explain has "sensors", please?


Arduino Forum > Using Arduino > Sensors > slowing down a DCC loco in a "block" using an arduino or similar circuit ?


arduino

Comments

Popular posts from this blog

DHT11 Time out error using v0.4.1library

Sketch upload fails with Java error (___REMOVE___/bin/avrdude)!

Arduino Uno + KTY81/210 temperature sensor