[et_pb_section fb_built=”1″ _builder_version=”3.24.1″ background_image=”https://smarthobbyllc.com/wp-content/uploads/2019/05/background.jpg” min_height=”542px” background_last_edited=”off|desktop” background__hover_enabled=”on”][et_pb_row _builder_version=”3.25″][et_pb_column type=”4_4″ _builder_version=”3.25″ custom_padding=”|||” custom_padding__hover=”|||”][et_pb_text _builder_version=”3.24.1″ text_font=”|800|||||||” text_text_align=”center” text_text_color=”#ffffff” text_font_size=”18px” text_text_shadow_style=”preset4″ text_text_shadow_horizontal_length=”0.16em” text_text_shadow_vertical_length=”0.17em”]Here are Arduino Sketches that are related to Model Railroading using servos. They are in the form of a text file that you can download and paste into the Arduino IDE. Smart Hobby has not verified their function and can not guarantee they work or would be valid for a particular application. They are part of the public domain or have been submitted by the author with permission to share.[/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row column_structure=”1_2,1_2″ _builder_version=”3.26.1″ background_color=”rgba(0,0,0,0)”][et_pb_column type=”1_2″ _builder_version=”3.25″ custom_padding=”|||” custom_padding__hover=”|||”][et_pb_text _builder_version=”3.26.1″ text_font=”|800|||||||” text_text_color=”#0c71c3″ text_font_size=”18px” use_background_color_gradient=”on” background_color_gradient_start=”rgba(0,0,0,0)” background_color_gradient_end=”rgba(0,0,0,0)” text_orientation=”center” background_color=”#f9cc00″ border_radii=”on|5px|5px|5px|5px” border_width_all=”5px” border_color_all=”#ffffff” border_style_all=”ridge”]From the Arduino Forum, this sketch appears to have been for an UNO and supports 11 turnouts.
DOWNLOAD[/et_pb_text][/et_pb_column][et_pb_column type=”1_2″ _builder_version=”3.25″ custom_padding=”|||” custom_padding__hover=”|||”][et_pb_text _builder_version=”3.26.1″ text_font=”|800|||||||” text_text_align=”center” text_text_color=”#0c71c3″ text_font_size=”16px” background_color=”#f9cc00″ border_radii=”on|5px|5px|5px|5px” border_width_all=”5px” border_color_all=”#ffffff” border_style_all=”ridge”]
This sketch will convert an Arduino NANO to a quad servocontroller switch machine driver for model railroad applications. It is intended to receive commands from
either a LocoNet DCC system and/or four remote (fascia-mounted) pushbuttons, each of which can be mounted with a red-green pair of LEDs to indicate turnout positions. Each press of any control button will toggle the associated turnout position, and update LocoNet and running software with the change.
[/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row column_structure=”1_2,1_2″ _builder_version=”3.26.1″ background_color=”rgba(0,0,0,0)”][et_pb_column type=”1_2″ _builder_version=”3.26.1″][et_pb_text _builder_version=”3.26.1″ text_font=”|800|||||||” text_text_align=”center” text_text_color=”#0c71c3″ text_font_size=”17px” background_color=”#f9cc00″ border_radii=”on|5px|5px|5px|5px” border_width_all=”5px” border_color_all=”#ffffff” border_style_all=”ridge”] Use of 16 channel I2C PWM driver board with servo motors. Uses Adafruit PWM library, Wire.h and EEPROM.h libraries
Uses 16 momentary switches to toggle servos
DOWNLOAD[/et_pb_text][/et_pb_column][et_pb_column type=”1_2″ _builder_version=”3.26.1″][et_pb_text _builder_version=”3.26.1″ text_font=”|800|||||||” text_text_align=”center” text_text_color=”#0c71c3″ text_font_size=”18px” background_color=”#f9cc00″ border_radii=”on|5px|5px|5px|5px” border_width_all=”5px” border_color_all=”#ffffff” border_style_all=”ridge”]From Geoff Bunza a Crossing Gate program. Uses IR sensors to detect the approaching train and activates servos and led to operate crossing gates.
DOWNLOAD[/et_pb_text][/et_pb_column][/et_pb_row][/et_pb_section]



