Geoff Bunza geoffb

With exactly the same low cost hardware and a library of examples ready for anyone to download and use, you can now configure six “mobile or multifunction” decoders to respond to DCC Functions and a similar set of six Accessory decoders to respond to DCC Switch commands. The neat feature is that the Accessory decoders ALSO respond to a programmable single mobile decoder address, so you can configure each of the 17 pins to perform different functions, including their use as a 17 servo accessory decoder driver. This has been updated (Jan 12, 2014) with a Back and Forth Servo configuration in the Examples-- see later comments. The library was updated again Feb.15,2015  to add a new pulsed output function per channel in the Examples folder-- See later comments. As of Sept 16,2015 two new decoder varriants have been built-- See: http://model-railroad-hobbyist.com/node/20739?page=8#comment-209513 (Page 9 of this Blog). Most reccent Update can be found here: SMA20 New Low Cost 17 Channel DCC Decoders with PC Boards & Dual Motor, LED, & Servo Control    https://forum.mrhmag.com/post/sma20-low-cost-17-channel-dcc-decoders-ver-6-01-with-soundtriggered-soundstepperdual-motorled-and-12201920

l%281%29.JPG 

Geoff Bunza's Blog Index: https://mrhmag.com/blog/geoff-bunza
More Scale Model Animation videos at: https://www.youtube.com/user/DrGeoffB
Home page: http://www.scalemodelanimation.com

Reply 0
Joe Baldwin

DCC Activity LED

Geoff,

 

Hope you had fun in Portland!

How would one place an LED so that it would 'blink whenever there is DCC activity being sent to the arduino.  I've tried several configurations around the Ardino pin2 (physical 5) pin with no success. 

Thanks,

Joe Baldwin

 

Joe Baldwin

Northern Colorado 

http://www.joe-daddy.com

Reply 0
Joe Baldwin

Arduino capable

Arduino capable relays.

These relays come in several configuraitons, singles, quads and 8X.  Handle 10 amps 28v DC or 120 v AC. 

Their costs are very low on ebay less than $1.00 per relay.  A couple of links below.

Dave Bodnar, Trainelectronics.com has a how to article on how to integrate these relays into the Geoff's DCC Decoder.

Joe

10_05_30.jpg 

http://www.trainelectronics.com/DCC_Arduino/Decoder_board/relays.htm

http://www.ebay.com/itm/361329949608?_trksid=p2057872.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT

http://www.ebay.com/itm/361329949608?_trksid=p2057872.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT

Joe Baldwin

Northern Colorado 

http://www.joe-daddy.com

Reply 0
Kevin Rowbotham

optocouplers?

I think the boards that Dave used have optocouplers on the boards as well?  I think that is to protect the arduino from spikes from the relays coil when power is removed?

I found some similar boards on eBay using MOSFETS rather than relays that I am using for an Arduino based LED dimmer circuit.

Did you figure out your DCC activity LED?

~Kevin

Appreciating Modeling In All Scales but majoring in HO!

Not everybody likes me, luckily not everybody matters.

Reply 0
Joe Baldwin

DCC Activity

Keith,

Yes and no, I put an led on pin 5 of the arduino which is the DCC input from the optoisolator and it stays on all the time.  I hung my scope on the pin and it should be on most, if not all of the time as there is always a DCC signal there.  The only value an LED offers on pin 5 is to discern whether a DCC signal is being put into the DCC In. Put 12 volts in and the LED goes out but the board still lights.  Some value, but not a lot, as questioning whether I have DCC present or not was not the issue.

I wasn't asking the right question, though, I would prefer an LED whenever the Arduino is servicing a DCC command for its address(s).   I'm guessing what I really wanted is perhaps not possible at all without some programming and the waste of a pin.

I think the only opto-siolator Geoff is using is to keep the PS and DCC signal sorted out.  The relays don't say whether they have isolation or not. They do permit external common ground power sources though.

 

Joe

 

 

Joe Baldwin

Northern Colorado 

http://www.joe-daddy.com

Reply 0
Joe Baldwin

Accessory Decoder

I've worked my way through the technicals of how to update my existing decoders to the latest DCCnmra code and Geoff's newly rewritten examples.  I've gotten both the functional and the accessory decoders to manage and control my DF Player mini MP3 player and to operate relays as I intend.  

Has anyone flowcharted the decoders or gone through the code and explained how they actually work?  I've rather sorted out much of it and have been making some notes about it.  Not much more than a skeleton so far but as I understand things, getting them on paper, er, word and excel helps me be confident I'll be able to make changes in the future.

When I finish the code, I'll post a link for those who might find it of value. 

Geoff Bunza and Dave Bodnar (Trainelectronics.com) have be so inspirational to me and I thank each of you for your body of work.

 

Best regards,

Joe Baldwin aka Joe Daddy

 

Joe Baldwin

Northern Colorado 

http://www.joe-daddy.com

Reply 0
Joe Baldwin

Accessory vs Function Decoders

Each decoder type has its uses and I am late to the accessory camp, but must tell you I am more than a little impressed with their use.  While an accessory decoder with a standard throttle requires a sheet of paper to remember which number is what, the Touchcab (xpressnet only), Withrottle and Engine Driver allow me to define seemingly endless buttons with descriptions.  For on/off requirements, they are much better than functional decoders.  

However, when I have a structure that has a number of features that I want to individually control, the function decoder is my preference. I think of it as rather 'driving' the structure as  I control lights, sounds, smoke and  mechanical motion.  I use a locomotive decoder to drive my pump jacks. I can control their speed as if it were a loco.

I have to remind myself that while I want to do much the same with each type of decoder, the subtle differences are significant.  Remembering which function key does what is a lot harder than picking the right buton out of a list of descriptive names.

 

Joe Baldwin

 

Joe Baldwin

Northern Colorado 

http://www.joe-daddy.com

Reply 0
Geoff Bunza geoffb

New Decoder Variants

Hi all,

Even though I originally never had any consideration for putting these decoders into rail cars, I had a recent request to implement the 17 LED decoder with directional sensitivity for LED control. The folder and Arduino sketch can be downloaded here:
http://model-railroad-hobbyist.com/sites/model-railroad-hobbyist.com/files/users/geoffb/decoder_dirfade.zip

This sketch provides a DCC LED light decoder with fade and directional capability.
It is configured by editing the following list in the sketch:

/ The following list defines how each of the 17 function pins operate:
// a 0 allows for normal On/Off control with fade on and fade off
// a 1 allows for normal control when the decoder sees a forward speed setting, reverse turns the LED off, with fade on and fade off
// a 2 allows for normal control when the decoder sees a reverse speed setting, forward turns the LED off, with fade on and fade off
byte led_direction [ ] = {0,1,2,0,1,1,1,1,2,2,2,2,0,0,0,0,0};        //0=On/Off, 1=On Forward, 2=On Reverse

If you missed the post in SMA12, there is another new decoder version which will control 3 Groups of 5 I/O pins (as in for LEDs), with each lighting group having a configurable pin pattern, and each function having a configurable set of lights to turn on and off. When any of the lights/LEDs turn on or off they will do so with a gradual fade, rather than instantaneously.

The folder and Arduino sketch can be downloaded here:
http://model-railroad-hobbyist.com/sites/model-railroad-hobbyist.com/files/users/geoffb/decoder_sma12_led_groups.zip

After unzipping, place the folder into your Arduino folder on your computer, start the Arduino IDE/Editor and load it into your decoder.

In the sketch/program you will find:
byte FPins_Assigned [12][5] = {   // This array defines the pins controlled by each function
    {3,4,5,6,7},  // F0
    {3,4,5,6,7},  // F1
    {3,4,5,6,7},  // F2
    {3,4,5,6,7},  // F3
    {8,9,10,11,12},  // F4
    {8,9,10,11,12},  // F5
    {8,9,10,11,12},  // F6
    {8,9,10,11,12},  // F7
    {13,14,15,16,17},  // F8
    {13,14,15,16,17},  // F9
    {13,14,15,16,17},  // F10
    {13,14,15,16,17}   // F11

Each group specifies the actual IO pins that the respective function will control.
And this:
byte Function_Lites [12][5] = {  // This array defines the Lights/LEDs controlled in each light group per function
    {1,1,0,0,0},  // F0 Hp0
    {0,0,1,0,0},  // F1 Hp1
    {0,0,1,0,1},  // F2 Hp2
    {0,0,1,1,0},  // F3 Sh1
    {1,1,0,0,0},  // F4 Hp0
    {0,0,1,0,0},  // F5 Hp1
    {0,0,1,0,1},  // F6 Hp2
    {0,0,1,1,0},  // F7 Sh1
    {1,1,0,0,0},  // F8 Hp0
    {0,0,1,0,0},  // F9 Hp1
    {0,0,1,0,1},  // F10 Hp2
    {0,0,1,1,0}   // F11 Sh1

Each group here defines which Pins/LEDs will be turned ON/OFF by the respective Function.

When each LED comes ON or turns OFF it will fade On or Fade Off respectively.
Note Bene: Turn Off all functions in a group before turning the next Function in the same group ON.
Change one function at a time. I did not bother with any special overlapping timing here.

The preset configuration should match the German Signaling configuration Loeter had asked for, but
this Decoder can be used and configured to control any groupings you want (within the limits of the definition).

So, in summary... there are 3 groups of 5 pins controlled by 4 functions each. (Loeter requested a function (mobile decoder) configuration too). The fading is (by my eye) a bit better than my last attempt, too.

Both of these were suggestions for use by fellow Modelers Loeter and Yuri.
I list them here because other modelers may benefit from them too.

Have fun!  

Best regards,
Geoff Bunza

 

Geoff Bunza's Blog Index: https://mrhmag.com/blog/geoff-bunza
More Scale Model Animation videos at: https://www.youtube.com/user/DrGeoffB
Home page: http://www.scalemodelanimation.com

Reply 0
Joe Baldwin

Decoding the way forward

With all the threads on the topic of Geoff's decoders, I decided posting this  on his latest related project might be as good a place as any.  

Thanks to Geoff's excellent work, we now have the choice of implementing the decoders as either a function or an accessory decoder. So which one is best suited for whatever our purposes are?

I've long known the simplicity of accessory decoders with their simple on/off concept is most handy and useful.  But accy decoders are only viable in my opine if you are using a throttle that allows discrete individual labels for each accessory.  I've 20 torti with wabbit/hares on them and I could never keep track of them until the advent of the smart phone family of throttles. (As a Lenz user, my choice is TouchCab).  But with 20 turnouts defined ans some 50 or 60 accessories defined, it gets  dicey to keep track. Fortunately TC segregates turnouts from 'signals' so I put all my accy on the signal side, still the list is unmanageable.  I'm confident a filter will eventually be added on the TC but in the meantime, confusion reigns.

Function or Accessory, that is the question.

Accessory decoders are great for relay operated devices and stuff that is either on or off, like LEDs. 

Function decoders have been harder for me to get good relay control, but I've been able to master it well enough to run reliably on the layout.  The Funct decoder works well, perhaps best for MP3 dominated applications..  

The key to my decision process is shaped by making an object of automation into a unit, for example I consider my sawmill  as a locomotive and therefore I chose a function decoder.  It has sound, smoke and lights.  With sound I want more than just on/off, as I may want to choose the sound, for example a church might want to have church bells and a couple of choir selections and of course mute, volume low, mid and max. That adds 5 pins to an accy decoder.   With a function decoder, everything is controlled by one locomotive address and the function keys.  Plus keeping the mp3 related keys standard helps with the operation.

My 'big city has 4 Miller engineering signs and more on the way.  I've found controlling these on command easiest with relays, Since I like to randomize the start up sequence of the signs, they are all on individual relays so the accy decoder seems a good fit. Throw in a siren, clock tower bell and Johnny Cash at the saloon and I'm faced with another 10 or 12 accy commands plus the 5 I require for MP3 control.  All this brings me back to why did I choose an accy decoder when I really have another 'stationary' locomotive masquerading as a big city.

All of these commands get far more complicated when I kick in my layout automation software to control the symphony.  Controlling locomotives is simple coding, but accy decoders require a definition to turn one on and another to turn one off. So with a 12 pin accy decoder I wind up trying to keep 36 definitions straight with macros on top of that to combine operations. 

Right now I am well north of 120 accy definitions in my phone and I have at least 5 more projects to complete.

The stationary function decoder seems to be winning out.  The only reason I shudder at the task is the problems I've had with making relays operate on pins past the first 9.  Overcoming that problem seems less of a challenge than to continue to proliferate accessory devices. Your thoughts are welcome.

Joe

My sawmill on youtube

https://www.youtube.com/embed/XXHrwMedBqM

 

 

 

 

 

Joe Baldwin

Northern Colorado 

http://www.joe-daddy.com

Reply 0
Ingo

Thanks for the help

Hi Geoff , master of all Arduino and CV

Thanks for the help , I understood it . It all works great.

Thanks for your great work .

Best regards

Ingo

Reply 0
Geoff Bunza geoffb

@Ingo

Hi Ingo,

Glad to see you got it working! Have Fun! 

Best Regards,  Geoff

Geoff Bunza's Blog Index: https://mrhmag.com/blog/geoff-bunza
More Scale Model Animation videos at: https://www.youtube.com/user/DrGeoffB
Home page: http://www.scalemodelanimation.com

Reply 0
Ingo

Help Wanted

Good day Geoff , master of Arduino

I have a small problem.
I want an older track - N system
Digitize for the club .
All switches have solenoid actuators .
Is there a sketch for Arduino ???
It is to be Arduino Pro Mini and used ULN2803 .

Otherwise, a good experience with your decoders !!!

Thanks and Greetings

Ingo

Reply 0
Geoff Bunza geoffb

@Ingo re:solenoid switch machines

Hi Ingo,

Twin coil solenoid switch machines (for example like the common Atlas switch machines) have 2 characteristics that need to be addressed: the power to turn on each coil needs to be momentary, and when activated, each coil takes a fair amount of current (usually at 12 volts). This necessitates that the 12 volt power supply be isolated, or better yet completely independent of any power to the Arduino Pro Mini.  There was a decoder sketch provided for pulse outputs for each of the functions here: http://model-railroad-hobbyist.com/sites/model-railroad-hobbyist.com/files/users/geoffb/new-dual-multifunction-decoderv3.zipThe pulsed decoder example allows you to set the time of the output pulse each time the function is turned on (from OFF to ON transition). As was mentioned previuosly, do not combine the functions of this decoder with servo control as the timing will likely be messed up.

The pulsed output from any pin can serve to turn on a small, low cost relay, like http://www.allelectronics.com/make-a-store/item/rly-532/5-vdc-dpdt-mini-signal-relay-2a/1.html

or like:  http://www.goldmine-elec-products.com/prodinfo.asp?number=G19086

to substitute for the switch machine buttons you might have used previously. The ULN2803 you cited is a great chip, but each output is rated for 500ma, and depending on the coil switch machine you are using, the peak current could easily exceed 1A to drive it. So I would urge a bit of caution, and maybe some experimentation before you commit to using it in your club. By the wat the outputs of the Pro Mini can easily drive the ULN2803. Remember to use a separate 12 Volt supply too.

Have fun! 

Best Regards,

Geoff

 

Geoff Bunza's Blog Index: https://mrhmag.com/blog/geoff-bunza
More Scale Model Animation videos at: https://www.youtube.com/user/DrGeoffB
Home page: http://www.scalemodelanimation.com

Reply 0
Ingo

Thank you, Geoff

Thank you for your Answer, help me.

Greetings Ingo

Reply 0
Don C

Arduino com ports

Hi all,

Slightly off topic but still dealing with the arduino mini.  When you load the arduino software you have the option to load the usb driver with the rest.  I have 2 computers, one is Win 8.1, the other is Win 10, neither of which creates in the devices list, (lpt/com ports). On the 8.1 computer, when the usb cable is plugged in it detects it but the driver is flagged bad and it fails to connect.  The Win 10, it doesn't show up at all.  When I run the sketch to upload it fails and can't find com1. I have searched for fixes but nothing has worked. Here's hoping someone here can help.

Thanks Don

Reply 0
Geoff Bunza geoffb

Windows and the Pro Mini

Hi Don,

First, I assume you are using a Pro Mini and a USB programming cable that uses the FTDI serial interface chip.

Check that you are using the correct FTDI drivers, look here: http://www.ftdichip.com/FTDrivers.htm

You will likely have to force the loading of the correct diver for each machine. This page is always a good starting point:  https://www.arduino.cc/en/Guide/Windows

but may not have current info for Win10.

You might want to read through this too: http://openenergymonitor.org/emon/node/3727

It also looks like windows 8.1 is enforcing driver signatures, so check this too: http://mytechblog.com/tutorials/arduino/install-arduino-drivers-on-windows-8/

There is also a Yahoo email group at: https://groups.yahoo.com/neo/groups/Arduini/info

that has some really knowledgeable people on it.

If yoy are still having problems, let us know what you tried, what messages you had, and the net results.

Have fun! 

Best regards,

Geoff

Geoff Bunza's Blog Index: https://mrhmag.com/blog/geoff-bunza
More Scale Model Animation videos at: https://www.youtube.com/user/DrGeoffB
Home page: http://www.scalemodelanimation.com

Reply 0
Don C

Arduino uploading cable

Geoff,

Good stuff so far.  Have gotten the comports setup. I have both com1 and com3 now but using a laptop with XP.  When uploading the program, the only error I get is;

"avrdude: stk500_recv (): programmer is not responding"

"avrdude: stk500_getsync () attempt X of 10: not in sync: resp=0x58"

I do not know what the wiring should be as there is no markings for pin1, etc. Color code is blue, yellow, green, white, black, red.  The plug is marked L-R dtr, tx0,rx1,vcc,gnd,gnd. With red to gnd the pc registers a power surge on the port.  With red to dtr pin the error is as above, I pulled the red wire, put blue to dtr, no surge but error as above.  Do you think I need to rearrange the pins to make this work I haven't been able to get a pinout of the cable itself. Got a picture, nothing else. Any suggestions? All will help.

s-l1600.jpg 

Reply 0
Geoff Bunza geoffb

USB Cable Problem

Hi Don,

Oh Yuk!! This is the second time someone reported receiving a bad cable. Take a look at the comments here: http://model-railroad-hobbyist.com/node/17244?page=3

starting with the 3rd comment on the page. The fact that the USB socket current limited surely indicated the pins are out of order. Can you provide a URL of who you purchased the cable from? The correct order should have been:

Pin Wire   Signal on        Signal on
#   Color   Cable             Pro Mini Label

1  Black     GND              GND or BLK
2  Brown    CTS
3  Red       +5 Volts
4  Orange  TXD     
5  Yellow     RXD     
6  Green     RTS             DTR or GRN

But this is the standard coloring and order that FTDI used. It is clear that the order of manufacture was wrong. I would be cautious that the color of the wires might be wrong too! First, I have found that red for +5 Volts and Black for gound is commonly used. If you have a voltmeter, plug your cable into your computer, but not into the Arduino Pro Mini  and measure the voltage from the black wire to red wire-- it should be +5 volts. The set these 2 pins into the Pin 1 and Pin 3 socket as shown above.

After some searching, I found an ebay listing with the exact picture you provided. The vendor lists the order of his cable as:

Red wire:     5V
Black wire:  GND
White wire:  RXD
Green wire: TXD
Yellow wire:  RTS
Blue wire:    CTS

This is clearly wrong. Carefully extract the pins from the plastic cable socket housing and re-arrange the pins. Take note that there is usually a flexible plastic "spring flap" that holds the pin in. If you slightly raise the flap you can extract the pin. Take note of the orientation of the pin so you can re-insert it correctly in the proper orientation (without rotating it).

Once the order is corrected, you should be able to load your Pro Mini.

Have fun! 

Best regards,

Geoff

Geoff Bunza's Blog Index: https://mrhmag.com/blog/geoff-bunza
More Scale Model Animation videos at: https://www.youtube.com/user/DrGeoffB
Home page: http://www.scalemodelanimation.com

Reply 0
Don C

USB Cable issue

Geoff,

Once again you have come thru.  I can't thank you enough for your help.

I will try the rewire tomorrow and let you know.

Thanks again.

Don

Reply 0
Kevin Rowbotham

FTDI Cable Mods...

With the issues of proper pin out being unearthed recently, I thought it might be good to share what I have done in my situation.  I am not saying this is the best way to do this, just that it is how I have done it.

The Pro Mini boards I have seen do not have header pins installed to make it easy to connect the FTDI cable to the board.  Soldering the pins on is easy enough to do, but I didn't want to have the header pins left on the board after it was in it's final location, which meant de-soldering the pins if I wanted to remove them.  Well, it seemed such a waste to have to solder them on in the first place, so I decided to do something different.

I used male breadboard jumper wires and some mini grabber test clips to build a 'breakout cable' for my FTDI cable.

Breakout.jpg 

 

 

 

 

 

 

 

 

 

 

 

 

The male jumpers connect nicely to the FTDI female header connector, as an added bonus, if the cable pin out is incorrect, one could simply color code and/or label the clips to correct the pin out rather than having to remove and replace the sockets in the header connector.

_Connect.jpg 

 

 

 

 

 

 

 

 

 

 

 

 

Connecting to the pro Mini is easy too.  The grabbers clip on and stay on while programing.  I have found this to work quite well in my case.  Hope sharing this helps someone else.

_Connect.jpg 

 

 

 

 

 

 

 

 

 

 

 

 

Regards,

~Kevin

Appreciating Modeling In All Scales but majoring in HO!

Not everybody likes me, luckily not everybody matters.

Reply 0
Don C

Servo sketch works perfectly

Geoff,

The sketch loaded after rewiring the plug and works perfectly.

Thanks again.

Don

PS I remember reading about a sketch created to use 2 outputs per switch command, say, use the second pin as a LED indicator for state of switch one. I don't remember where that was mentioned along with some code. Could you point me in that direction please?

 

Reply 0
Geoff Bunza geoffb

@Don re:Servo Switch Indicator Sketch

Hi Don,

'Glad you're making good progress.

The example sketch you were looking for is here: http://model-railroad-hobbyist.com/files/users/geoffbfiles/Decoder_special.zip

The original reference can be found here at the bottom of the page:  http://model-railroad-hobbyist.com/node/20739?page=3

Look for lines 478-488:

// *****
    if (function == 5) {
      if (FuncState == 1) {
        digitalWrite (FunctionPin3, LOW);
            digitalWrite (FunctionPin4, HIGH);
          } else {
          digitalWrite (FunctionPin3, HIGH);
              digitalWrite (FunctionPin4, LOW);
        }
          }
// *****      

which add the indicator control to the servo controlled by F5. Also note that F3 and F4 have been reconfigured to simple LED control and can be ignored.

This should give you a starting point. If you have more questions, please ask.

Have fun! 

Best regards,

Geoff

 

Geoff Bunza's Blog Index: https://mrhmag.com/blog/geoff-bunza
More Scale Model Animation videos at: https://www.youtube.com/user/DrGeoffB
Home page: http://www.scalemodelanimation.com

Reply 0
Martin Kirkby

SMA15

Hello Geoff

Thank you for all your great work on the DCC accessory decoder! We have implemented it on our layout and we are "Mighty Pleased" with the results. With over 100+ turnouts to still convert from solenoid action there are some long days ahead but the end result is well worth it.

I have looked through all the posts etc hopping to find some way of removing the power/signal from the servo once it has moved into position? If you or any kind forum user has a solution for this we would be most great full.

thank you once again Geoff for this and your many varied solutions they are all quite inspiring!

Best Regards 

Martin Kirkby

modeling OO circa 1930's UK East Coast Main Line.

800squ.feet of wiring heaven!

 

Reply 0
Geoff Bunza geoffb

@Martin: Library Release of AccessoryDecode w/Auto Servo Release

Hi Martin,

Quote:

I have looked through all the posts etc hopping to find some way of removing the power/signal from the servo once it has moved into position? If you or any kind forum user has a solution for this we would be most great full.

I just uploaded an updated library here:  http://model-railroad-hobbyist.com/sites/model-railroad-hobbyist.com/files/users/geoffb/new-dual-multifunction-decoderv4.zip

This includes a DCC decoder "AccessoryDecoder_15ServosReleased_2LED_4Function" which when each serVo movement is competed (end to end), the servo is "detached." This means the Arduino will not be generating the position control signals for that specific servo that is not in motion. I have noticed (depending entirely on the servo involved) that this will decrease power consumption by as much as 50 ma (peak) for each servo controlled by the decoder-- that is a bunch!

i thank you Martin for provoking this improvement. When I went to look at the sketch to give you some guidance about how to modify it, I realized why I didn't do this in the first place -- it was a bother that I thought I could ignore! This sketch is the only version that I modified.I am planning on several updates soon that I am not ready for yet. Stay tuned-- they are coming with some pleasant surprises on the way!

I also included in the example set some other Decoder versions that were mentioned before in the blogs.

Have fun!    More on the way!

Best Regards,

Geoff Bunza

 

Geoff Bunza's Blog Index: https://mrhmag.com/blog/geoff-bunza
More Scale Model Animation videos at: https://www.youtube.com/user/DrGeoffB
Home page: http://www.scalemodelanimation.com

Reply 0
Don C

Released version question

Geoff,

I have a problem and a question.

The problem is I can't edit the sketch within arduino software and I don't know why. Any thoughts?

I would like to create a sketch that uses the accessory version to run 8 servos with 8 led outputs. I.E. Switch command sw040 throws servo on output pin 3, changes state of LED on output pin 4 and release servo. Switch command sw041 throws servo on output pin 5, changes state of LED on output pin 6, release servo, etc through sw047 on output pin A3 and LED on output pin A4.

I know it's possible and would be willing to try the editing of the file but back to the original problem.

Hope you can help here.

Don

Reply 0
Geoff Bunza geoffb

@Don

Hi Don,

I assume you can download the zip file referenced above. (http://model-railroad-hobbyist.com/files/users/geoffbfiles/Decoder_special.zip

Please confirm that this is the one to which you refer.

Unzip the file, and you should have a folder labeled "decoder_special"

Move the folder and its contents as is yo your Arduino folder (in Windows it's usually in \My Documents\Arduino ) not into Arduino\libraries

If you have the Arduino IDE/editor open, then close it and restart it.

Now in the Arduino IDE/editor File-> Open -> and find the folder decoder_special, open the folder, then open decoder_special.ino

You should now be able to edit it as normal.

Let us know how it goes.

Best Regards,

Geoff

Geoff Bunza's Blog Index: https://mrhmag.com/blog/geoff-bunza
More Scale Model Animation videos at: https://www.youtube.com/user/DrGeoffB
Home page: http://www.scalemodelanimation.com

Reply 0
Reply