Fun with Arduino - a Series of Introductory Videos

Bereich für alle Themen rund um Modellbahn-Software, sowie der nötigen Hardware (PCs, Bildschirme, etc.).
Antworten

Threadersteller
RudyB
InterRegio (IR)
Beiträge: 161
Registriert: Sa 20. Sep 2014, 10:18

Fun with Arduino - a Series of Introductory Videos

#1

Beitrag von RudyB » Di 1. Jan 2019, 18:59

I bet almost everyone here at the forum has heard about the Arduino and how much fun and how useful it can be to model railroaders and to other hobbyists.

The price is no issue at about 3,- £$€. But not every hobbyist has affinity with electronics or with software. To some the initial hurdle can be just too steep, even while there may be an interest to get started with Arduno and to try things out.

That is where the plan arose to do a series of articles and videos titled 'Fun with Arduino', aimed at anyone who is not an electronics or IT specialist (yet :) ).

The first two articles, both with video, are out:

Fun with Arduino 01 Getting Started in 6 Easy Steps.

Fun with Arduino 02 Digital Input and -Output

(Language is English)


Bild
Zuletzt geändert von RudyB am Fr 11. Jan 2019, 22:15, insgesamt 2-mal geändert.

Benutzeravatar

Running.Wolf
InterCity (IC)
Beiträge: 525
Registriert: So 15. Jan 2006, 17:02
Nenngröße: H0
Stromart: AC
Steuerung: CS 2
Gleise: C-Gleis / M-Gleis
Wohnort: Isernhagen
Alter: 72
Kontaktdaten:
Deutschland

Re: Fun with Arduino

#2

Beitrag von Running.Wolf » Mi 2. Jan 2019, 17:43

Nice idea
Go ahead.
Gruss Wolfgang

All that the young can do for the old is to shock them and keep them up to date. George Bernhard Shaw


Threadersteller
RudyB
InterRegio (IR)
Beiträge: 161
Registriert: Sa 20. Sep 2014, 10:18

Fun with Arduino 03 Connect an External LED and resistor

#3

Beitrag von RudyB » So 6. Jan 2019, 11:50

The third video is online.

To control the on board LED is fun, but the real fun only starts when we can control external LEDs, like on a switch panel, or on a model railway layout. This video is about how to connect a LED and how to choose the value of the series resister we need to set the LED brightness.

In the next video we are going to control the external LED and we will simulate a night cycle on a model layout.

Link to Fun with Arduino 03 External LED and Resistor

Bild


Threadersteller
RudyB
InterRegio (IR)
Beiträge: 161
Registriert: Sa 20. Sep 2014, 10:18

Fun with Arduino 04 Readable & Maintainable Code, #define

#4

Beitrag von RudyB » Fr 11. Jan 2019, 14:35

The goals in this video are:
  • To make our code better readable and easier to maintain.
  • We imagine pin 8 operates 20 street lights on a model railway layout. They switch on when we press the button. To simulate a night cycle we want them to stay on for 3 minutes and then automatically switch off again.

Link to Fun with Arduino 04 Readable & Maintainable Code , #define, delay()


Bild


fbstr
InterRegioExpress (IRE)
Beiträge: 481
Registriert: So 28. Aug 2016, 21:04
Nenngröße: H0
Stromart: digital
Steuerung: Lenz Set100, TouchCab, DR5000
Gleise: Peco Code 75, Trix C
Wohnort: Stuttgart
Deutschland

Re: Fun with Arduino

#5

Beitrag von fbstr » Fr 11. Jan 2019, 14:43

Hi Rudy,

I'm thrilled to see the chapter: "Arduino and DCC"

That's the next step for me. Unfortunately not much time for Arduino at the moment but I'm hoping to continue with this topic in spring 2019.
Gruss
Frank
------------------------------------------------------------------------------------------------------------------------
Projekt "Bahnpark Augsburg"
Stummitreff BB: jeden 3. Freitag im Monat in Sindelfingen (außer im August)


Threadersteller
RudyB
InterRegio (IR)
Beiträge: 161
Registriert: Sa 20. Sep 2014, 10:18

Re: Fun with Arduino

#6

Beitrag von RudyB » Fr 11. Jan 2019, 15:33

Hello Frank,

DCC applications fall somewhat outside the scope of 'beginning with Arduino'. I have done a series of articles, sofware included, on an Arduino based DCC servo decoder, accessory decoder, DCC sniffer and an S88 encoder on my Rudysmodelrailway blog.

Here's a link: https://rudysmodelrailway.wordpress.com ... vo+decoder


Threadersteller
RudyB
InterRegio (IR)
Beiträge: 161
Registriert: Sa 20. Sep 2014, 10:18

Fun with Arduino 05 Connect More LEDs with Relay or FET

#7

Beitrag von RudyB » So 13. Jan 2019, 13:38

Arduino outputs can only switch 20mA. If we want to control groups of multuple lights on our model railway layout, we will need some more 'oompf'. A 12V power supply will do great and we can use Relay or FET modules, controlled by the Arduino, to swicth the higher current / voltage. How to do this, how to wire this, is the subject of this video and article.


Link to Fun with Arduino 05 Connect multiple LEDs with a Relay or a FET


Bild

Antworten

Zurück zu „Software und Hardware“