Modifikovan dekodr pro DCC provoz 3V nebo 5V motor |
Modified DCC decoder for 3V or 5V voltage motors |
ObsahProjekt uznv autorsk prva Georga Zeiglera a jeho Self made DCC-Decoder |
IndexProject respect author rights of Georg Zeigler and his Self made DCC-Decoder |
Ne zanetePed zatkem je poteba si uvdomit, co tento dekodr pedstavuje a co naopak neumouje.Podstata dekodru je umonit provoz specilnch vozidel kter maj velk nroky na prostorov rozloen dekodru a neumouj pouit bnho dekodru.
|
Before you beginsBefore you begin, it is good to remember what you can do with decoder and what decoder not enable you to do.Principles of decoder is enable special locomotives and cars with special requests for used space and not allows to use standard decoder.
|
Men spoteby motoru | Measurement consuption of motor |
ZapojenChtl bych se omluvit vem, kte zde oekvali opravdov elektrick schma. Zveejnil jsem tuto mnemotechnickou malvku, ptoroe je mnohem pijatelnj pro vtinu model |
SchematicsAt the begin I would like to appologize to everybody who expect here electrical schematic. I published this mnemotechnic painting insted of schematics, because it is usefil for many train modelers |
Mnemotechnick malvka msto schmatu | Mnemotechnic painting insted of schematics decoder.wmf |
|
Vysvtlen obrzkuBarevn konce oznauj barvy vodi podle NMRA noremPokud se dva vodie k, jedn se o nevodiv ken Vodiv spojen je oznaeno kolekem v mst ken Procesor (PIC12F629) je nutn ped osazenm naprogramovat Na obrzku je modr ipka kter ukazuje smrem k modrmu koleku. Ta slou k volb napjen pro svtla. Pokud je vodi pipojen do (1), bude napjen svtel klasick 14V, pokud je pipojen do (2), bude napjen 5V (vhodn pro LED). V ppad e budeme svtla napjet 5V je poteba jejich spotebu zahrnout ke spoteb motoru. Funkce Aux1 je uren k pipojen pouze jedn LED diody spolu s odporem 470R. Druh vvod diody se pipojuje do msta oznaenm ervenou trojkou. Pokud nehodlme pouvat svtla vbec, je mon vynechat obvod FDC6303N V pravm hornm rohu jsou nakresleny 4 diody. Jejich el je snen napt na motoru - kad dvojice pedstavuje bitek 0,7V, napt bez diod je cca 5V. Pokud tedy chceme provozovat motor s pracovnm naptm 4,5V a vtm, diody nepotebujeme, pro motory 3V diody zapojme. Pi nkupu diod poadujeme bn diody, ale dvme si zleet, aby hodnota jejich proudovho zaten (If) byla vt ne proud motoru. Dioda 1N4148 MICRO MELF je sice nejmen, ale m proud jen 150mA (sta na motory z mobilu do prmru cca 4mm), Dioda 1N4148 SMD 1206 m proud cca 300mA (to je dost pro motory cca 6mm) Pak u budeme potebovat diody typu SUF4004 SMD nebo 1N4007 SMD, ty maj proud a 1A. Na obrzku je tak stabiliztor 78M05 SND DPAK, jeho proudov zaten je 500mA (0,5A), pokud je proud motoru vt (+ proud svtel), je poteba pout 7805 DPAK, ten m zaten a 1A, ale m sklony se ht. Kondenztory na obrzku slou mimo jin k udren napjen pi pejden vyhybek. Jejich hodnota 4,7uF je asi nejmen pouiteln, pokud mme mimodn dobr koleje, mon si vystame s 2,2uF, nicmn sp budeme nuceni hodnotu zvtovat. Zvtovn kapacity kondenztoru vlevo je efektivnj, ale zrove rychleji porostou jeho rozmry rychleji ne u pravho. |
Figure descriptionColor marking of end of wires respecting color schema recommended by NMRAIf here is a cross of wires - it is isolated cross Conducted connection is marked by circle Procesor PIC12F629 must be programed before appliing On the picture is blue arrow pointing to blue lines. It is used for powering lights. If the wire is connected to (1), the voltage for lights will be usual 14V, if it is connected into (2), voltage will be 5V (suitable for LEDs). In a case of usage 5V lights, it is necessarry to add consuption of lights into consuption of engine Output Aux1 is designed only for connection one LED diode with a rezistor 470 ohm. oposite connection is marked by red number (3) If we are not planing to use lights at all, we can remove also FDC6303N In upper right corner we have four diodes. These diodes are used for decreasing voltage for motor. Every two diodes decreasing by 0.7V, voltade without diodes is cca 5V. For connecting motors with voltage 4.5V and more diodes are not necessarry, for 3V motors we need diodes. When buying diodes must be carefoul, that working forward curent (If) is bigger, than current of engine. Diodes 1N4148 MICRO MELF are small, but current is only 150mA (for motors cca 4mm diameter), Diodes 1N4148 SMD 1206 have current cca 300mA (suitale for motors cca 6mm) Next level is diode types SUF4004 SMD or 1N4007 SMD, they have curent cca 1A. On figure we have stabilisator 78M05 SND DPAK, its current is cca 500mA (0,5A), if motor current is bigger (+ lights), we need 7805 DPAK, it have cca 1A, but sometimes heating. capacitors on picture are used also for powering decoder during corsing turnouts. Value 4,7uF is a minimum suitable, if you have good layout, it is possible, that 2,2uF will work, we can expect, that we will need increase value of capacitors. Increasing of capacity left hand capacitor is more efective, but it increase size faster than right hand. |
Soustky kupuji v GME S380 SMD 78M05 SMD DPAK 1N4148 SMD PIC12F629 I/SN Kondenztor 4,7uF / 25V Kondenztor 4,7uF / 10V Co nemaj, tak kupuju u farnell Si9986CY FDC6303N Program pro PIC je mon pout originl (ten pro 12F629) Pron spoj tak podle originlu |
CV | Popis | Description | |
---|---|---|---|
CV1 | Primrn adresa | Primary Address | 3 / 1-99 |
CV2 | Vstart | Vstart | 0 0-255 |
CV3 | Zrychlen | Acceleration Rate | 255 0-255 |
CV4 | Zpomalen | Deceleration Rate | 255 0-255 |
CV5 | Vmax | Vmax | 255 0-255 |
CV6 | Vmid | Vmid | 0 0-127 neg. 128-255 pos. |
CV17 | Dlouh adresa spodn st | Extended Address Low Byte | 0 |
CV18 | Dlouh adresa horn st | Extended Address High Byte | 0 |
CV19 | Adresa soupravy | Consist Address | 0 0-255 |
CV29 | 0=DIR 1=14/28 2=PWRSRC 3=ADVACK 4=SPDTAB 5=LADRE 6= 7=ACCDEC (viz. dole) | 0=DIR 1=14/28 2=PWRSRC 3=ADVACK 4=SPDTAB 5=LADRE 6= 7=ACCDEC (see below) | 0 0-255 |
CV49 | Vstup F1=F8 na GP2 Bity 76543210 = F87654321 | Output F1-F8 to GP2 Bit 76543210 = F87654321 | 0 0-255 |
CV50 | Vstup F1=F8 na GP4 | Output F1-F8 to GP4 | 0 0-255 |
CV51 | Vstup F1=F8 na GP5 | Output F1-F8 to GP5 | 0 0-255 |
CV55 | Vmax . 2 pepnan pomoc F1-F8, nebo smru jzdy | 2. Vmax switchable over F1-F8 or over drive direction | 0 0-255 |
CV64 | 0=FLOFF 1=BLOFF 2=RDLTON 3=BRKON 4=HI2LOFS 5=FLACKON 6=LITAUTO 7= (viz. dole) | 0=FLOFF 1=BLOFF 2=RDLTON 3=BRKON 4=HI2LOFS 5=FLACKON 6=LITAUTO 7= (see below) | 0 0-255 |
CV29 | Popis | Description | |
---|---|---|---|
CV29,0 | DIRINV | Otoen smru (jzdy a svtel) | direction inverted (travel+light) |
CV29,1 | 14/28 | Poet jzdnch krok 14 nebo 28 | 14/28 speed steps |
CV29,2 | LIINV | Otoen svtel | Lights inverted |
CV29,4 | STAB | Rychlostn tabulka / CV2, CV5 a CV6 | Speed tab / CV2, CV5 and CV6 |
CV29,5 | LADRE | Povolena dlouh adresa | Long address enable |
CV29,6 | ACKOFF | Vypnut ACK pro podrun dekodry (nepouvat) | acknowledge off for piggy bag decoder (don't use this bit) |
CV64 | Popis | Description | |
---|---|---|---|
CV64,0=1 | FLOFF | Pedn svtla se nastavuj podle CV50 (GP4) | front light switch with cv50 (GP4) |
CV64,0=0 | RANGIER | Mapovn podle FLOFF | low activ, mapped with FLOFF |
CV64,1=1 | BLOFF | Zadn svtla se nastavuj podle CV51 (GP5) | back light switch with cv51 (GP5) |
CV64,1=0 | SPEED2 | Mapovn podle BLOFF | low activ, mapped with BLOFF |
CV64,2 | RDLTON | erven svtla aktivovan (zadn svtla) | red light on (back light) |
CV64,3 | BRKON | Brzdov svtla zapnuta | brake light on |
CV64,4 | HI2LOFS | Rezervovno | Reserved |
CV64,5 | FLACKON | Blikn povoleno | Flickering on |
CV64,6 | LITAUTO | oteven/zaven kotle automaticky | firebox open/close automatically |
CV55 stejn jako cv5, aktivuje se prostednictvm cv64,1=0, Normln zapnuto, a pepn se prostednictvm cv51. pokud je cv55=0 potom je Vmax . 2 neaktivn. pokud je cv51=0 potom je Vmax . 2 pouito podle smru. pokud je cv29,0=0 potom cv5 ovld vmr dopedu a cv55 ovld smr dozadu. Napklad: mme cv64,0=0, cv64,1=0 cv50,1=1 a cv51,1=1 potom F2 zapn svtla na obou stranch a zrove aktivuje Vmax . 2 uloenou v cv55. |
cv55 same as cv5, activate over cv64,1=0, normal on, and switchable over cv51 is cv55=0 then the 2nd Vmax is deactivated. is cv51=0 then the 2nd Vmax is for direction use. if bit cv29,0=0 then cv5 controls forward direction and cv55 controls reverse direction. for example: is cv64,0=0, cv64,1=0 cv50,1=1 and cv51,1=1 then F2 switches the light on both sides on and activate the 2nd Vmax over cv55. |