Trains.com

Will Mark & Vince

12352 views
79 replies
1 rating 2 rating 3 rating 4 rating 5 rating
LGV
  • Member since
    February 2014
  • 4 posts
Posted by LGV on Wednesday, September 28, 2016 12:14 PM

Brian,

Thanks for the effort to make the changes I asked for to have a full CCW off throttle and direction switch. As time permits, I'll start building the system. I'll update progress as I go.

Regards,

Robert

  • Member since
    May 2014
  • 13 posts
Posted by briandh on Thursday, September 22, 2016 2:40 PM

Robert,

I've updated the transmitter project to have an option for a full range pot with separate reverse switch.  The reverse switch is instead of the 'accessory' switch, PUSH6, on P1-4 (which is pin 6 on the MSP430).  Ground this pin for reverse operation.  You can then have up to 6 other pushbuttons connected to the same pins as before.  

The updated software can be downloaded from https://github.com/bdharrison/wireless-dcc/blob/master/Transmitter/Transmitter.hex

In order to configure the software for this mode (instead of using PUSH6 for accessory commands), you need to change the first byte on line 3 of the hex file from '01' to '00'.  

Let me know if this does the trick!

Cheers,
Brian.

LGV
  • Member since
    February 2014
  • 4 posts
Posted by LGV on Wednesday, September 14, 2016 3:09 PM

Brian,

 

I built one of the original Wireless DCC systems with the center off control and the three push buttons. I bought enough parts for two systems but only built one.

Does this answer your question about the "specific hardware I had in mind"? 

I am willing to build whatever gives me the full CCW off with direction switch and possibly a few buttons for headlight, reverse light, cab light and 1-3 buttons for sound modules if possible.

 

Thanks,

Robert

  • Member since
    May 2014
  • 13 posts
Posted by briandh on Tuesday, September 13, 2016 6:36 PM

Hi Robert,

Sorry to take so long to reply.  A direction switch shouldn't be a problem, as long as you don't need 7 buttons as well.  Do you have specific hardware in mind?  I can put together a version of the software if you have something to test it on.

Cheers,
Brian.

LGV
  • Member since
    February 2014
  • 4 posts
Posted by LGV on Wednesday, August 24, 2016 10:14 AM

Full-CCW Off speed control w/direction switch instead of the center off control

Does anyone have an interest in this type of speed control?

To those thread contributers who write code: Have any of you written code to change the speed control to the full-ccw off?

Is it possible to write code for this change?

Is it possible to add a direction switch?

 

Thanks,

Robert

  • Member since
    May 2014
  • 13 posts
Posted by briandh on Tuesday, March 15, 2016 10:32 PM

Hi Bernie, I've rebuilt the decoder with the 'normal' behavior of the sound pins being active high on pins 5, 6, 10 and 19.  You can find the updated hex file at https://raw.githubusercontent.com/bdharrison/wireless-dcc/master/Decoder/Decoder.hex  Let me know if you have any problems with it, or can't access GitHub.  

I will post the new project with the Internet connectivity in the next few days.

Cheers,
Brian.

Tags: wireless-dcc
  • Member since
    March 2016
  • 3 posts
Posted by bernied on Saturday, March 12, 2016 7:29 PM

Brian,

A version with active high on pins 5 and 19 would be fantastic.

The Wifi version sound interesting. I've developed a Atmel based (Arduino like) system for turnout control that is automated with IR sensors that I can also control with a tablet or cell phone.

Thanks for all your help on this form.

Bernie

  • Member since
    May 2014
  • 13 posts
Posted by briandh on Saturday, March 12, 2016 12:49 PM

Hi Bernie,

My fault.  I'm using an Adafruit FX sound board to play sounds and it triggers with a low signal, so I modified the decoder to be low when active.  I've conditional code so I can easily post a version with active high if you'd like.

Also I've just been working on a version of this project that connects the transmitter to a WiFi board (from Particle).  This lets me control the trains (and accessories) from any web browser, such as a smart phone or tablet.  I can post details if there is interest.

Cheers,

Brian.

 

  • Member since
    March 2016
  • 3 posts
Posted by bernied on Thursday, March 10, 2016 8:59 PM

Brian,

I've added the three extra buttons and loaded your object code on the throttle and all seems to be working as expected. When I load Marks object code on the decoders pins 5 and 19 only go high when I press F1 and F2. When I load your code on the decoders they are high and go low when I press the buttons. Am I missing something? Thanks for your help and all the work you have done on this project.

Bernie

  • Member since
    May 2014
  • 11 posts
Posted by jarable on Thursday, January 7, 2016 11:20 AM

I found these yesterday http://www.panstamp.com/product/197/
It looks like a miniaturized version of the TI/Anaren board. They also have one that uses the Atmega 328 processor ( same one as in the Arduino ). Looks like it would require a separate support board for the motor driver/ DCC decoder, but it has a much smaller footprint.

  • Member since
    December 2008
  • From: Florida, USA
  • 100 posts
Posted by Narrowgauge on Tuesday, April 21, 2015 9:48 PM

Gene,

 

Thanks for your informative response. You have clarified the current list of questions. Your advies is wise and will be heeded. Your are obviously having good results.

 

Bob C.

  • Member since
    December 2014
  • 23 posts
Posted by genera on Saturday, April 18, 2015 6:30 PM

Bob C

TI  Booster pack kit has 2 units 595-430boost-cc110l about $20.00

launch pad you only need 1

down load  430D0  latest to one 430 chip,download 430TO to second 430 chip, keep track which one is which directly from launch pad also would suggesting another  buck and buy sockets for chips solder in sockets then plug chips into sockets

buzzer any noise maker useing 12 volts small current will work.  I used a sound module from electronics 123 recorded my friends mack truck, put in a 5volt regulator from battery voltage to 5volt reg.  Mine is installed in a HLW mighty mack

Forget all everybodys part nos Mouser has everything.  Knob is just a knob but might like one with a pointer. look at mouser online

mouser pn resistor 47k is71-crcw08054kojnea

resistor 220 ohm is 71-crcw0805220rjneb

capacitor .1 at 25 volts is 77-vj0805y104mxxac

dont buy only number you need buy at least10 each unless you have good soldering equipment.  I  have hot air system and 25 years electronics and lost 1 resistor i  mounting.

there was an error on battery box pn 546-bh2aaw correct from mouser  motor

driver pn 757-tb6568kqo8

wire use only STRANDED wire no solid any 22 or larger wire will ork  I didnot look any at mouser but sure they have small spools

read all tags on Will Mark and Vince, and Building Wireless DCC should find all your answers  my email is listed elsewhere  on somw articles and if you srill need help email me

I have built 5 decoders and 1 throttle

Now moving on to brianha version

 

Gene

 

  • Member since
    December 2008
  • From: Florida, USA
  • 100 posts
Posted by Narrowgauge on Friday, April 17, 2015 11:27 PM

OK Folks, I am late coming to the party, but I have downloaded the complete article which Rene and the good folks at GR assembled. Reading through the original article (I know there is a fair amount of discussion on the forum and I will get there later), I have a few ovservations and questions. After assembling a spreadsheet with all the parts for both the TX and RX as listed in the article, the RF Booster Pack Kit and an MSP430 Launch-pad Kit are listed in both parts lists. The article indicates that the RF Booster Pack Kit is supplied with two booster pack boards. One board for the TX and one for the RX?

Next is the Launc Pad Kit. Do I need one each for the TX's and RX's or will one suffice for all operations? The article calls for software to be downloaded from www.elprotronic.com. The description provided in the article does not match what is on their DOWNLOAD page. The closest I can come is a file:

Category: FET-Pro-430 Software Pkg. - STD
Description: Installation pachage for FET-Pro-430, included GUI, DLL, and supporting material. Standard Version.
File Name: FET-Pro430-Setup.zip

Is this the correct file?

A couple issues arose as I was developing the spreadsheet. The most obvious is the Radio Shack part numbers provided. Most of the Radio Shack stores in my area have closed or are in the process of closing so the longevity of those parts is in serious question.

The knob called for the potentiometer needs to be sized for a 6mm (1/4") shaft diameter. A replacement from Newark Electronics, P/N 91F2236 is available for $4.92. A bit more searching found a suitable know from Mouser, P/N 642-430212B1/4 for $1.90.

I had difficulty locating one of the risistors listed in the parts list.  Mouser P/N 71-CRCW080547K0JNEA could not be found. I was able to find a 71-CRCW080547K0JNEB. Can someone confirm that this part is the correct part and the list in the article is a misprint.

The second Radio Shack part listed I don't have a clue how to substitute. The Radio Shack Buzzer. Is this part necessary, and if so can anyone suggest a substitution?

And lastly the Radio Shack hookup wire. I have done a major conversion on my Bachmann K27 and used Cat5e wire for all the circuits. It is the same size as the manufacturer used so I feel confident it will suffice for this project as replacement for the Radio Shack stuff.

One last comment, the motor driver in the RX parts list is the only item supplied by Digikey. The same part is available from Mouser, however the cost is about a dollar more. Digikey will charge you in the neighborhood of three to four dollars for shipping, so in my opinion ordering from Mouser will be cheaper in the long run as you will already be paying shipping on the rest of the parts.

I am sure as I get further into this project I will find more questions to ask. Thanks for now.

Bob C.

  • Member since
    August 2014
  • 12 posts
Posted by steveasm on Monday, April 13, 2015 10:05 AM

Thanks Brian,

FYI, I loaded the code into my throttle and took my engine to a social meet yesterday and it performed flawlessly.

 

  • Member since
    May 2014
  • 11 posts
Posted by jarable on Sunday, April 12, 2015 12:03 PM

Thanks Brian! Definitely going to be putting this on my project list to make a new throttle. 

  • Member since
    December 2014
  • 23 posts
Posted by genera on Sunday, April 12, 2015 7:00 AM
Brian You need to star a new thread called. Something like I did it free DCC software Gene
  • Member since
    December 2014
  • 23 posts
Posted by genera on Sunday, April 12, 2015 6:55 AM
Brian Thanks for your work. I got busy and did not go any further with mine. I am sure everyone will benefit from your hard work Gene
  • Member since
    May 2014
  • 13 posts
Posted by briandh on Saturday, April 11, 2015 7:19 PM

I've built an open source version of the transmitter code and posted the source at https://github.com/bdharrison/wireless-dcc.  There is also an object code download at https://github.com/bdharrison/wireless-dcc/blob/master/Transmitter/Debug/Transmitter.hex for those who don't want to build from source.  The key differences from Mark's version in the magazine are:

  1. The radio channel is set in the code, not jumpers on the board.  
  2. The transmitter supports up to six pushbuttons, giving access to all 13 DCC functions (F0-F12).  
  3. You can easily change which DCC functions toggle on/off and which are press-and-hold.  
  4. It is open source, so if you don't like it you can change it!

The start of the code file has the values that can be changed:

@1040
0B 00 02 01 00 00 00 01 01 00 00 01 01 00 01 01 

The first two bytes are the loco address (0B 00 is address 11)
The next byte is the radio channel to use (02 is channel 2)
The next 13 bytes are for DCC functions F0 to F12 and are 01 for toggle on/off mode, or 00 to press-and-hold.  

Note the decoder in the article only supports F0 to F2.  I've posted receiver code that allow connection to a standard DCC decoder, which may support all DCC functions.  I'll get to work on a complete decoder that supports more outputs...

Cheers,
Brian.

 

  • Member since
    August 2014
  • 12 posts
Posted by steveasm on Monday, March 30, 2015 10:06 AM

the binking LED on the decoder board will turn to a steady 'on' once the decoder connects to the throttle.

  • Member since
    February 2015
  • 1 posts
Posted by PETER HYDE on Saturday, March 28, 2015 2:04 PM

I'm building the project and am trying to determine if the decoder is connecting to the Throttle. Any ideas?

Peter

  • Member since
    May 2014
  • 13 posts
Posted by briandh on Tuesday, March 10, 2015 12:05 AM

I've posted the DCC receiver code to GitHub at https://github.com/bdharrison/wireless-dcc

I hope to post a transmitter version later, and any collaboration is most welcome.

Cheers,
Brian.

  • Member since
    December 2014
  • 2 posts
Posted by benshell on Monday, March 9, 2015 12:50 PM

Brian,

That's awesome that you've already started on open source code! It looks great! Would you consider putting this on Github or Bitbucket to make it easier to fork the code and issue pull requests? I'd like to collaborate on this as well.

Ben

 

  • Member since
    December 2014
  • 23 posts
Posted by genera on Friday, March 6, 2015 3:43 PM
Brian My email is bgrails@sbcglobal.net Will answer there Gene
  • Member since
    May 2014
  • 13 posts
Posted by briandh on Friday, March 6, 2015 3:27 PM

Gene,

Are you interested in collaborating on some open source code?  I've made a start based on the C code I previously posted to this forum (receiver side with DCC output), and plan to work on the transmitter side this month.  

https://drive.google.com/folderview?id=0B6wnj-3FTWd4STNSSDlhVzBYUEE&usp=sharing

Do you have anything yet to share?

Cheers,

Brian.

  • Member since
    December 2014
  • 23 posts
Posted by genera on Thursday, March 5, 2015 1:56 PM

THat should be all that is necessary to make units work.  I have built 7 decoders now and work fine.  One of problems with system is if you cycle power too fast you  will have to reflash the 430 chip

Gene

  • Member since
    December 2014
  • 23 posts
Posted by genera on Thursday, March 5, 2015 1:52 PM

Marc Horavitz has tried to convince Mark Bucinni to release source code .  I have personally talked with Marc Horavitz about this but really nothing GR can do.

  I have been working on source code. Its binary coded machine language and will be decoded in full eventually.

IF Marc Bucinni is  planning a commercial project this will hurt him more by not releasing .

The DCC  parameters were released by Lenz years ago to NMRA so anyone could mfg compatable equipment.  Thats the beauty of DCC.   

  • Member since
    August 2014
  • 12 posts
Posted by steveasm on Thursday, March 5, 2015 1:37 PM

there have been several questions about wiring the back of the decoder board and there are no diagrams in the article about this. Here is a diagram of the board with the three necessary wires shown in blue. The view is from the front, but these go on the back of the board and connect all of the pads / components that they touch together. You can just bend over the leads from the capacitors and lay them down along the row of pads and use that as the wires, soldering them to all of the pads/components that they touch.

https://onedrive.live.com/redir?resid=4EA7451EA9DFF0!5174&authkey=!ABMvNjXJkmobHhU&v=3&ithint=photo%2cpng

 

  • Member since
    December 2014
  • 2 posts
Posted by benshell on Thursday, March 5, 2015 1:30 AM

This is very disappointing. It sounds like Marc may be planning to produce a commercial product and is afraid open source would erode his customer base. In reality this is not true. Even Microsoft is moving more towards open source with making .NET open source. And Tesla is letting everyone use their patents. If Marc (and GR Magazine, as publisher of these plans) wants to help the DIY aspect of the hobby I would urge them to reconsider.

  • Member since
    December 2014
  • 23 posts
Posted by genera on Sunday, March 1, 2015 7:57 AM
John I did not read article until now . They say with radio at top ,column lets say jumper the direction from VDD toward 430 chip, Ground toward 430 chip and 12 volt from regulator to430 chip Gene

Search the Community

FREE EMAIL NEWSLETTER

Get the Garden Railways newsletter delivered to your inbox twice a month

By signing up you may also receive occasional reader surveys and special offers from Garden Railways magazine. Please view our privacy policy