Geoff Bunza geoffb

One of my earlier entries:  SMA10 – Build a 17-Function DCC Decoder for about $5 ( https://forum.mrhmag.com/post/sma10-%E2%80%93-build-a-17function-dcc-decoder-for-about-5-12197796 ) generated a considerable amount of interest regarding the possible enhancement for controlling Servomotors (Servos). This is my next version of a 17 Channel Multifunction DCC Decoder based on a low cost $2.56 Arduino Pro Mini. This version supports configuring each of the 17 function pins for On/Off (LED/TTL) Control, or Configurable Blinking Control, or Configurable Servo Control, or Configurable Pairs Blinking Control. Yes, that does mean it can support 17 servos, each with rate, start point, and end point setting via DCC CV’s, per pin, as well as new LED configurable functions. Read On. Additional doc found here: http://model-railroad-hobbyist.com/node/19775There is another decoder version added herein. Look for "New Decoder Version to Control Lighting Groups" in Page 12 of the Comments: http://model-railroad-hobbyist.com/node/19446?page=11   The most recent 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

Bemchtop.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 2
HVT Dave

LED as a diode

Michael,

I read somewhere this week that an LED has been used in place of the diode so that you can see if there is track power connected so I suspect that the specific diode is not that critical.  The 1K resistor works with many LEDs.

BTW I do agree that if you have LocoNet you can bypass some of the electrical noise found on the rails.  Also I believe you should be able to pull the DCC signal off the Railsync pins on the LocoNet cable. 

Most of the components have arrived and I plan to build both a LocoNet version and a DCC version this weekend.  Then will come the Arduino code learning curve.  

Regards,

Dave

Dave

Member of the Four Amigos

 

Reply 0
barr_ceo

...an LED has been used in

Quote:

...an LED has been used in place of the diode...

I think sometimes people forget that LED is an acronym for "Light Emitting DIODE"...

Read my Journal / Blog...

!BARR_LO.GIF Freelanced N scale Class I   Digitrax & JMRI

 NRail  T-Trak Standards  T-Trak Wiki    My T-Trak Wiki Pages

Reply 0
LKandO

Diode

Quote:

...an LED has been used in place of the diode...

Typical forward voltage on an LED 1.5V, can be higher. Typical forward voltage on a signal or rectifier diode is 0.7V. This may make a difference in some circuits.

LED:                                                                               Signal diode:

ed%20led.PNG   4148.PNG 

Alan

All the details: http://www.LKOrailroad.com       Just the highlights: MRH blog

When I was a kid... no wait, I still do that. HO, 28x32, double deck, 1969, RailPro

Reply 0
Geoff Bunza geoffb

@Michael Optocoupler Bits

Hi Michael,

The 1N4148 wll work just fine.. Remember that the 1N4148 's purpose to to protect  (read limit) the reverse voltage of the Optocoupler diode. This happens because when the Optocoupler LED is reverse biased the 1N4148 is forward biased limiting the voltage across it and the Optocoupler LED to about 0.6 Volts. A visible LED will likely work here too. The Optocoupler LED will protect the visible LED in similar fashion.

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
Logger01

... but why is it more codey?

Quote:

... but why is it more codey?

Michael,

For a good (but a little technical) explanation of the LocoNet bus operation see the CML Electronics Limited page on DCC Command Buses. The simple answer is that a lot of devices may be connected to the bidirectional bus (every device has to receive and send commands and data), and as all of these devices try to use the bus there are electrical (collisions) and software conflicts. Every device on the bus has to monitor (additional software) the bus and has to have the software to respond appropriately and resolve conflicts (arbitration software). There are also a lot more things a LocoNet device can do, and have to support (with additional software) like sensing a switch input or track occupancy, taking control of the bus (arbitration again), sending commands and or the sensed information to other devices on the bus, potentially waiting for a response, etc.

A Digitrax DCC system, except when Transponding is enabled, is a simplex bus (unidirectional) with commands passing from the command station through the booster(s) to the track. DCC decoders only have to receive incoming messages. They do not even have to respond to any messages.

Ken K

gSkidder.GIF 

Reply 0
johnbet

Stripboard/perfboard

thanks

 

JohnHi

has anyone undertaken construction on strip/perfboard. If so does any one have a diagram they could share please?

 

 

 

Reply 0
Michael Duckett

Facia switch control

Geoff,

Early on in this discussion, you mentioned using fascia mounted switches and teeny relays to control 5 servos.  I assume toggle switches would allow control from one location and that using pushbuttons would allow operations from two or more locations, such as Inside and Outside the layout.

In some locations, servos are paired, such as crossovers.  In other locations they would be sequenced, such as selecting yard tracks.  How difficult would it be to delay the relay so that it throws in the center(ish) of the servo travel to avoid shorts as the points are powered from the frog?  

Once upon a time I was an equipment engineer at a large semiconductor manufacturer.  I then had a difficult to diagnose heart aliment (been fixed) that caused atoxia that caused me to lose a lot of skills and knowlage. In some cases I just need to be reminded and some needs to be relearned from scratch.  Ohms law was an 'Oh, Duh' moment just a few days ago.  Programming? No idea.

You Geoff, and Ken and others who are willing to share and teach and answer noob questions help me enormously to move forward and feel less like a mental cripple and relearn stuff that I once enjoyed.

So, Think you

Michael Duckett

Reply 0
Geoff Bunza geoffb

@Michael Servos and Switches

Hi Michael,

Quote:

you mentioned using fascia mounted switches and teeny relays to control 5 servos.  I assume toggle switches would allow control from one location and that using pushbuttons would allow operations from two or more locations, such as Inside and Outside the layout

Yes, sort of-- This was a comment to another question I think. Without regard to using the Pro Mini as a decoder, The Arduino Pro Mini can easily be used to read pushbuttons and/or switches, and certainly these can activate servos used to throw switches, directly controlled by a Pro Mini pin-- as with the decoder project. It could easily read pushbuttons and/or switches from different locations and act on their setting/condition. There is a servo library that is included with the basic Arduino package that includes their editor. If you look in Examples Servo Sweep it will give you an example of controlling one servo and moving the servo arm back and forth (sweeping it). With one switch/pushbutton you could set up a "route"-- that is some combination of track switch settings (controlled by multiple servos). One could build the routes into the Pro Mini in many ways, including a route table that listed the servos and their settings needed to set the correct route. Or one could just set the right code that read each switch in turn and acted appropriately if it found a switch set or a pushbutton pushed.

The small relays I alluded to could control the polarity to the corresponding frogs to "juice" them appropriately. One wouldn't really need a relay to control the servos. The small relays could also operate nearby signals too.

Handling delays (usually in millisecond resolution, but one can even set delays in microseconds) is easy-- yes easy-- using delay( xxxx);  where xxxx is a number representing the delay time in milliseconds (e.g. delay(500); delays 1/2 second). This is fundamentally important to me dealing with animations.

As an aside, don't tackle the whole problem right away. Control a smaller situation first, perhaps a siding with 2 or 3 switches. Get the feel of what you're able to control, and then embellish it-- add switches at multiple sites (I would use pushbuttons by the way), add delays sequencing each switch in a combination, maybe even set up a pair of LEDs as a Signal mock-up. Along the way you'll get a better idea of what you'll need for the bigger problem. Divide and conquer the larger problem-- fundamental approach to system design.

Remember 2 VERY important things: Ask questions along the way and 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
John P

Analog or digital servos?

People have mentioned servos used to throw turnouts, which I'm trying to achieve. What I've found is that when you first apply power to an analog servo, it will go through an initial period of uncontrolled motion, which can have very bad results, possibly overloading the mechanical linkage. I made some experiments where the applied voltage would ramp up slowly, or there wouldn't be a digital signal at turn-on, but I never solved the problem. 

Then I tried a couple of digital servos and they seem to eliminate this bad behavior, but I don't have total confidence yet. In your 17-servo demo, your captions said that you start them one at a time to avoid a power surge, and I certainly saw no sign of any initial lurch. Can it be that your servos are the digital type, and they all get the power supply at turn-on, but the digital signal doesn't appear until the processor's program gets going, and then you're able to start them one at a time, as you show? That would be a fine thing. But maybe for both analog and digital types, the behavior varies between manufacturers and models, so what happens with yours might not work with mine. I've bought cheap little things and maybe I'm suffering accordingly!

Also, I saw a product that Tam Valley makes which detects stall conditions of a servo. Using this, they can make servos self-program the end points of their travel--that's assuming that something mechanical limits the motion, as a turnout would. And once it's set up, I assume they can detect that the servo has hit an obstruction between its normal end points, and it can protect itself and maybe sound an alarm. Have you ever tried this, and what do you think about such a thing as an add-on to a servo controller?

Reply 0
barr_ceo

Analog servos are pretty much

Analog servos are pretty much a legacy item now in the RC field. All the radios and receivers use digital and have for several years.

Read my Journal / Blog...

!BARR_LO.GIF Freelanced N scale Class I   Digitrax & JMRI

 NRail  T-Trak Standards  T-Trak Wiki    My T-Trak Wiki Pages

Reply 0
Geoff Bunza geoffb

@John Re: Servo Start Up

Hi John,

All the servos I use are relatively cheap analog servos. The reported wild start up behavior may speak to an uncontrolled signal being fed to the servo while the electronics is powering on.

I really haven't thought of detecting a stall condition. This is why I provided for setting the endpoints of the throw via CV control for each servo-- much simpler. It is an elegant and intriguing idea though. Perhaps some other modeler will try to tackle that problem-- maybe even me someday if I get the time. I suspect that one might well have to gut the electronic feedback circuit inside the servo to do it though, since there is actually no direct connection to the motor via the 3 servo control leads. For my own needs I don't think it would be worth it.

As an aside, there were two high current conditions I was trying to avoid: the first was all servos initially moving at max speed at the same time while powering up, and the second was to allow stopping the servo transit before it hit its maximum and minimum limits of travel (setting this condition would draw much current). The former forced me to look to sequencing the power on reset of all the servos. I actually didn't like the idea of doing this, as I would have preferred not to force them all to a known power on state, but it seemed the best solution for my need, after looking at other alternatives. The latter problem was solved by using CV values to set throw limits. I didn't really like that solution either, but I found that these cheap servos had inconsistent travel traverses, and I couldn't rely on anything but conservative stop and start limits-- which is where the 28 and 140 numbers come from. Fooling around setting these limits needed to be done for each servo I had tried. ...And yes, I still think it was worth it in order to keep the costs down.

I do not have great experience with the name brand commercial servos to see if they are any better. The two I tried seemed to be much more consistent.

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
John P

Re: Servo start up

I'm attempting to detect a stall condition by an indirect method--measuring the servo's input current. For ethical reasons (!!) I didn't want to try to find out how Tam Valley does it, so having learned that they have the feature, I thought I should figure out my own method. And I found a rather odd thing: with the digital servos, when they're moving, they draw heavy pulses of current at a 300Hz rate, which suggests that the 50Hz input is just giving an input comand, not controlling anything that actually happens at a 50Hz frequency. Anyway, it seems that these 300Hz current pulses aren't very different in magnitude for unloaded motion versus stall, but the length of the pulses does change quite dramatically. So my design went from an attempted analog current measurement to detection of the pulses (via a transistor base in parallel with a 1 ohm resistor) and then a low-pass filter, and an analog input to the processor. This seems to work quite well for a single servo, but I feel there are too many analog components for a setup with multiple servos, and I'd grudge having an analog input per servo. So now I'm thinking maybe have a single current sensor on the power supply that feeds all the servos, and accept the need to operate only one at a time. Maybe I should do a Youtube video!

Incidentally, one thing that I like much better about the digital servos is that they can creep along at a very slow rate, yet move quite smoothly. When you try to run analog servos at a slow rate, they always seem to move in jerks. It's not very satisfying. 

 

Reply 0
Logger01

Servos – Analog, Analog Digital, Digital Servo Control Circuits

Due to the various servos, servo controllers, feedback systems and control signals developed, there is some confusion as to what, in the Hobby Community, is referred to as an analog or digital servo and more importantly how they operate. I am going to try to not add to that confusion as even many available references tend to get it wrong or at least add to the confusion. What I do want to do is clarify the two primary control mechanisms and or signals currently in use. Most of the servos and all of the less expensive servos on the market are controlled by digital pulses with the pulse width (Pulse Command) defining the servo position (three wire connections which include power, ground and command signal).

For most servos a 1 millisecond (msec) or less pulse width corresponds to a minimum deflection or rotation of the mechanism and a 2 msec or more pulse width corresponds to a maximum deflection or rotation. Pulse widths between 1 msec and 2 msec are linearly interpolated by the Servo Control Circuit, so a pulse width of 1.5 msec should result with the servo in the center position.

These are the type of servos (referred to by some as analog servos) used with Geoff's decoder. The Servo Control Circuit which receives the position command and feedback and controls the motor can be implemented with analog, digital or a mix of analog and digital circuitry which is the source of some of the confusion regarding servo classification. Some of these servos also have a fourth wire which provides an analog feedback signal which is proportional to the position of the servo.

For more incite into pulse width controlled servos you can check out the SparkFun: https://www.sparkfun.com/videos#all/bMXx25Q5s24and https://www.sparkfun.com/videos#all/We6t-4wmAMU. The Adafruit Analog Feedback Servos About Servos and Feedback article is not bad either.

Pulse width controlled servos have major accuracy and repeatability problems which resulted in the design of newer breeds of servos. To improve performance the latest variants of pulse width controlled servos can be programmed (and therefor sometimes referred to a digital servos) including minimum and maximum deflection and rotational speed and acceleration (We can compare programming or tuning these controllers to programming decoder CVs). These improved servos still did not provide the performance needed in some applications especially for robotics and advanced aircraft. Enter servos where digital commands are sent to the Servo Control Circuits (ala DCC). Still generally three wire systems with power, ground, but now the third wire carries digital command packets to and in some systems feedback packets from the Servo Controllers. The Servo Control Circuits in all of these controllers are programmable and obviously digital systems. So far none of the posts and comments I have read on the MRH forum have referred to this type of digital servo.

All of these servos types receive and are controlled by digital signals. The Servo Control Circuits (and internal feed back) can be analog, digital or an analog / digital mix, so which servos are analog and which are digital? Your pick!

Ken K

gSkidder.GIF 

Reply 0
Logger01

et al - a little catching up

Dave,

Good call on using the LocoNet Railsync signals. Almost all of the DCC cables from the major DCC suppliers include NMRA compatible ( S-9.1.2 DCC Power Station Interface) signals for driving boosters, so you are correct that using these signals could be use instead of tapping off the track. These signals should carry less noise and thus be more reliable.

How is the work progressing on the Faller car project? In terms of detecting the location of Faller vehicles, I understood on my last visit to Miniatur Wunderland that they were working on a system to more accurately detect vehicle location. At the time the software was guestimating to about two meters. They were also testing a multi satellite (RF) tracking system for the trains and ships, but I do not remember the manufacturer. Will try to find reference.

John P,

Hopefully my previous comment sheds some light on why you are seeing the 300 Hz noise. The input pulses are simply a command and have little to do with the operations of the motor drive circuit. The 300 Hz is probably being generated by the PWM bridge drivers controlled by the Servo Control Circuit. There will always be some 300 Hz current (the base PWM freq of most of the servos I have are in the k Hz range) as the Servo Control Circuit as most servos do not implement a dead zone.

After the comments regarding transient servo events at power-on, I grabbed five cheep and three more expensive servos to do some testing on. Results to follow.

Michael,

Sorry to hear of your health problems. As an engineer who has in the last eighteen months experienced one silent heart attack, two bradycardia events (one flat line), a quad bypass, one little stroke (also causing many DUH moments) and now forced retirement, I can sympathize with your frustration. Keep asking questions and contact me directly if you need additional guidance (or want to commiserate).

Ken K

gSkidder.GIF 

Reply 0
HVT Dave

@ Ken K

Ken,

I wish you continued improving health and strength in the face of your personal challenges.

Thank you for confirming my suspicions about the RailSync signal.  

Concerning detecting the Faller cars an explanation is in order.  The circular HO test track has in its center a small roadway for testing Faller cars. Turnouts and stops are accomplished with 9g servos currently controlled by two Tam Valley Quad-Pic controllers.  The cars follow a magnetic strip embedded in the roadway and four Hall Effect Sensors installed in gaps in the mag strip are connected thru an SE8c to JMRI.  The problem is with the Quad-Pics connected to track power, I have on more than one occasion inadvertently changed the Quad programming while programming a loco.

The roadway on the main layout is still in the design phase and would require at least four of the new QuadLN controllers (or 8 Quad-Pics).  And then along comes Geoff with his Arduino Pro Mini decoder, an economical solution to two needs.  Two Arduinos will now be replacing the Quad-Pics on the test track.  One will be DCC connected to RailSync running 5 servos, 4 LEDs and 4 push switches.  The other needs to provide feedback to JMRI so it will be LocoNet with 4 servos, 4 pairs (HIGH and LOW) of LEDs, 4 push switches and 4 HES.  All the parts have arrived but the project boards.

There is a mission statement for the layout and it includes learning new skills, then sharing them with others.  Arduino implementation and coding will definitely meet that goal.

Warmest Regards,

Dave

Dave

Member of the Four Amigos

 

Reply 0
Tjan70

Servo speed

Great work, Geoff.

I have made 2 decoders, based on Arduino Uno. Both are working great. I have one question, is it possible to change speed of servos? I am using script for 10 servos.

Thank you for your reply.

Regards from Slovenia, 
Sebastjan

My Home Page:   http://potepanja.eu/modelarstvo/

Reply 0
Geoff Bunza geoffb

@Sebastjan

Hello Sebastjan,

Terrific!  Vesel sem, da se jim dela!   I'm glad you got them working!

If you read: SMA 13 - Update to the 17 Pin Configurable Multi Function Decoder here:http://model-railroad-hobbyist.com/node/19775  you'll find the The 7 Servo 10 LED decoder configuration list down the page. Each servo pin has 5 CV's associated with the servo control. So for example,  the servo on F1 has::

{35, 2},      //F1 Configured as Servo -  0=On/Off,1=Blink,2=Servo,3=Double LED Blink
{36, 1},      // Rate  Blink-Rate,PWM=Rate,Servo=Rate  1 is the slowest
{37, 28},    //  Start Position when F1=0 - OFF
{38, 140},  //  End Position when  F1=1 - ON
{39, 28},     //  Current Position

So you can change the rate for the servo controlled by F1 by changing CV36. 1 would be the slowest and higher would give you a faster transition.

If you want an even slower transition, you can change the sketch (program) with a little caution. Find these lines in the sketch:

void loop()   //**********************************************************************
{
  //MUST call the NmraDcc.process() method frequently
  // from the Arduino loop() function for correct library operation

  Dcc.process();
  SoftwareServo::refresh();
  delay(8);
  for (int i=0; i < numfpins; i++) {

and change the "delay (8);" to "delay(10);" or "delay(12);" etc.

and see if this slows things down enough for you. You can try a higher loop delay here, but the larger the delay will increase the chances of missing a DCC command to the decoder. The DCC command stations usually repeat the commands on the DCC communications bus (track) so it's likely to respond to a repeated command, even if it misses the first. That's why you will need to be cautious as you increase the loop delay here.

Decoder control CV's can be set via DCC commands, but unless you  REMOVE THE "//" in the define statement at the beginning of the sketch, and reload the decoder sketch, every time you power on the decoder it will revert to the programmed "factory" settings. So either change the settings in the sketch the way you want or perform the double load.

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
robteed

This may be of interest

 

Reply 0
Tjan70

@geoffb

Hi, Geoff.

Thank you for reply. I have find how to change speed with CV before, but I would like a little slower.
I will try to change the script. 

I am using Arduino Nano V3 with DSmain and Desktop Station controling my trains on layout.
and Yaasan 's page, he is author of program and DSmain.

Here are two videos from my small layout
This servo is controling a water pump for steam locomotives
http://www.youtube.com/watch?v=hnppfYpPPAw
/> ​
on second video I am controling a decoupling system on my layout
http://www.youtube.com/watch?v=5Vl6Nyg2aXs

​Best regards,
Sebastjan

My Home Page:   http://potepanja.eu/modelarstvo/

Reply 0
Geoff Bunza geoffb

@Rob T Re:Femptoduino

Hi Rob,

You bet it's interesting. The Femptoduino is the smallest version of an arduino with all the pins that I've used that you can directly wire to. The Femptoduino in the video is actually on a "carrier" or development board. Here are some more variations that I've tried (each for different reasons):

on%20sml.JPG 

From Left to Right, Top to Bottom: 2 variations of Pro Mini Boards, the Arduino Uno, Moteino, Femptoduino, Beetle, and 2 variations of Digispark Boards.With the exception of the Digisparks, all these arduinos use the Atnel328P processor, so they can all run the same sketches. The Beetle has fewer pins available for one to connect to. The Digispark uses an Atmel Tiny85 which has 6 pins for connections but also has less memory and fewer functions, but can still run most sketches that modelers might want to use. The Pro Mini Boards come in at the lowest cost of about $2.25 each, last time I checked. The Moteino distinguishes itself as having a 2 way radio transceiver built onto it, which I used in my battery powered locos.The Femptoduino is shown is just the raw board by itself.

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
Geoff Bunza geoffb

@Sebastjan

Hi Sebastjan,

Thanks for sharing your work. I bet you will come up with even more ideas for animating your layout! Keep going!

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
rovilazz

17 Channel Configurable Multifunction DCC Decoder For Servos

Hello Geoffb.
I found this today your wonderful, wonderful site.
I am interested in achieving the 17 Channel Configurable Multifunction DCC Decoder For Servos.
Looking at the schematic but I did not understand where they connected the SERVO_PIN_CONNECTORS F1 to F16. Must be connected to the Arduino pin removing resistors and LEDs?
Thank you and congratulations!
Roberto from Italy.
Reply 0
Geoff Bunza geoffb

@Roberto Re: SERVO_PIN_CONNECTORS F1 to F16.

Ciao Roberto,

Quote:

where they connected the SERVO_PIN_CONNECTORS F1 to F16. Must be connected to the Arduino pin removing resistors and LEDs?

The servo pins labeled F0 to F14 connect to the wires (above in the schematic diagram)  labeled F0 to F14. For example Sevo Pin F1 would connect to Pro Mini D4 (this is the number on the inside of the Pro Mini rectangle in the diagram -- the schematic editor has number 7 on the outside of the rectangle), Correspondingly, Servo Pin F0 connects to Pro Mini D3, SP F2-D5, SP F3-D6, SP F4-D7, ... through SP F14-D17/A3.  What is not shown in the diagram, but explained in the schematic text is that SP F15 connects to D18/A4 and SP F16 connects to D19/A5. Different Arduino Pro Minis locate the A4 and A5 connections in different places on the Pro Mini Board. Since this was a blog entry, I did not explain every detail. With new found hindsight, given the amazing popularity of this project, I should have written it up with the attention I usually give to articles-- my fault. 

If you use high value current limiting resistors in series with the LEDs, so the LEDs draw little current-- say 1ma or less, you can leave the LEDs in place. Otherwise I would suggest you remove them completely when driving a servo with the same pin.

I'm very glad you can make use of this project! Have fun and share your modeling with us!

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
rovilazz

@GeoffB Re: SERVO_PIN_CONNECTORS F1 to F16.

Mr. Geoff Bunza, thank you for the detailed answer ... and fast.
I have an Arduino Uno rev.3 and I intend to adapt your project to this version of Arduino. If I can I will post my work.
Many many thanks again for your kindness.

Roberto.

Reply 0
Geoff Bunza geoffb

@Roberto Re: Using the Uno

Hi Roberto,

You should not have any problem using the Uno R3. You can also use a "Servo Shield" or a "Breadboard Shield" with the Uno to make the Servo connections easier. (You can google these to read up on them if you are not already familiar with them.)

If you are going to power more than 1-2 servos, I suggest you use a separate 5 Volt supply for the Servos because the instantaneous current demands can sometimes cause errors. That is why my circuit diagram adds the filter capacitors. This is a precautionary design measure. I have successfully powered 4 servos with a Pro Mini and did not experience any noticeable problems-- but this was not a thorough test at all.

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
Reply