Jump to content

nigelwright7557

Members
  • Content Count

    21
  • Joined

  • Last visited

Community Reputation

8 Neutral

Recent Profile Visitors

77 profile views
  1. Will the Lenz work with Hornby select ? Are all these encoders/decoders compatible or is it bets to stick to one make ?
  2. I eventually chased the standards down. I finally got programming CV1 loco address change sorted.
  3. Having been an electronics/software guy for 40 years I do a lot of my own model railway electronics. I did a small layout (Penrith & Blencow) which had 2 platforms at each station. This meant I could run 3 trains automatically around the 4 branches. I used PIC microcontroller, PWM and relays to switch power to various block sections. I also had a destination board LCD display. I added an automatic speech announcement system using a sound chip. I used my echo box to get some spacial sound and it sounded very good. In more recent times I have got i
  4. Wanted very cheap dcc points decoder, would prefer Hornby.
  5. Managed to get my system to change CV1 now. It takes quite a few loops code but works fine now. Thanks for the help.
  6. Partly the challenge, I have been programming for 40 years so always looking for a new challenge. The biggest challenge with DCC is getting the right information to do certain tasks. The software part is easy. Loads of info around on DCC CV's. However, not so much on the fine detail of how many bits in preamble and how many times you should send a set command. What I have found is differing ways of doing it which just causes confusion. As said earlier managed to get a loco to go forward and backward and change speed so basic communications are right. My DCC loco
  7. My new pcb with motor H driver in and built up. Took some time to get 1 and 0 timings as close as I could get them. I can now get loco to move forward and backwards. I can also alter its speed. Struggling setting CV1 despite sending out codes DCC spec says. Code has to be sent twice to set a CV which I do.
  8. Thanks for the standards name. I found the data I am looking for in there.
  9. I have managed to build my own DCC controller. The software currently can move a train forward and reverse at a speed I set. So far so good. My next step is to start programming CV's. I have looked high and low and cant find the data packet information. Lots of info around on which CV does what but very little on data format to be sent to the loco. Any help would be appreciated.
  10. Mine is pretty basic. Forward/reverse and speed control. It can send function commands too. I might expand it in the future.
  11. I am using a PIC32mx230 microcontroller. I am using a 2 amp motor driver H bridge to drive the loco. Communications with the PCB is via USB to a Windows PC. The hardware also has short circuit detect with overload LED indicator.
  12. Working on a basic DCC controller. It controls speed and direction of up to 127 loco's. It can also send function commands to loco's too. Uses PC software which sends commands via USB to my DCC controller.
  13. Thanks. I managed to find a motor driver h bridge driver which will give a couple of amps. Just waiting for parts and a new pcb.
  14. I am currently sending out speed and direction with addresses from 1-99. I am having trouble getting my loco running at the moment despite DCC commands looking spot on on the scope. I am just driving the track with 12 volts and zero volts, does it need to be phase reversed or just switched between zero and 12 volts ? I had a look at a decode circuit and theirs needs the phase in one direction to read the DCC command through an opto coupler. Reworked my pcb tonight to do phase reversals and not single ended driving of the track. I had 3 other pcb's
  15. I wrote the code for preamble, sendzero and sendbyte. Sendbyte doesnt call sendzero or sendone as I did it discretely so the bit times could be finely adjusted. Thanks for the tip on zero stretching. After returning form the above functions it can be stretched a little. Some time is spent reading ADC's for timer setting and speed setting so I just leave output at 12 volts for a little while. White waiting for turnaround timer to timeout I send DCC codes again so the loco doesnt time out and go into DC mode. I was in two minds about addressing, whethe
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.