Search found 186 matches

by RudyB
Thu Feb 07, 2019 10:40 am
Forum: Electronics
Topic: Fun with Arduino - a Series of Introductory Videos
Replies: 52
Views: 3412

Fun with Arduino 12 Analog Input, analogRead(), Change Range, map()

Now that we can change the cycle time via the PC keyboard, let's have a look at a hardware oriented solution ... a rotating knob. We connect a potentiometer to an analog input and read the voltage with the analogRead() instruction. With the map() instruction we can convert the range from 0-1023 to t...
by RudyB
Sun Feb 03, 2019 8:46 am
Forum: Electronics
Topic: Fun with Arduino - a Series of Introductory Videos
Replies: 52
Views: 3412

Fun with Arduino 11 Keyboard Input via Serial Read and ParseInt

The User Interface works, it shows the status if the day / night cycle on screen. We're now going to add the option to change the cycle time via the keyboard. The functions we are going to use are Serial.available(), which tells us that there is new input, and Serial.read() or Serial.parseInt() to r...
by RudyB
Thu Jan 31, 2019 2:14 pm
Forum: Electronics
Topic: Fun with Arduino - a Series of Introductory Videos
Replies: 52
Views: 3412

Fun with Arduino 10 Show Cycle Status and Time with Serial.print

Now that we have our code working, by using the correct data type or by typecasting, we can continue the work on our User interface. The goal in this video is to display the status of our day / night cycle on screen ... is it switched on or off, is it day or night, and what is the currently used day...
by RudyB
Sun Jan 27, 2019 10:06 am
Forum: Electronics
Topic: Fun with Arduino - a Series of Introductory Videos
Replies: 52
Views: 3412

Fun with Arduino 09 Variables byte int long unsigned

Before we continue to work on our User Interface, let's first take a moment to have a closer look at variables and data types. We are going to use ever more variables in the coming videos ... and ... we'll have a look at a pitfall concerning data types that prevented our code from previous video 8 t...
by RudyB
Thu Jan 24, 2019 3:38 pm
Forum: Electronics
Topic: Fun with Arduino - a Series of Introductory Videos
Replies: 52
Views: 3412

Fun with Arduino 08 User Interface Serial.print()

Our way of modifying the day / night cycle time seemed quite handy, but we do need to modify the code and upload it again every time we like to change the cycle time. Is there maybe an easier way? Yes there is ... we can change the cycle time 'on the fly' via a User Interface. There are different so...
by RudyB
Sun Jan 20, 2019 11:22 am
Forum: Electronics
Topic: Fun with Arduino - a Series of Introductory Videos
Replies: 52
Views: 3412

Fun with Arduino 07 Day & Night Cycle, Multiple Light Groups, Random Times

Our day / night module of the previous video works perfect, but it controls just one light group. On our layout we probably have multiple groups ... houses, street lights, a railway station or an industry area. In this video we're going to see how we can control multiple light groups in a day / nigh...
by RudyB
Thu Jan 17, 2019 12:45 pm
Forum: Electronics
Topic: Fun with Arduino - a Series of Introductory Videos
Replies: 52
Views: 3412

Fun with Arduino 06 Automatic Day & Night Cycle with on/off Switch and LED

In this 6th video we are going to create a fully automatic day / night sequence, witch a toggle switch and an indicator LED on our switch panel. The day & night times are going to be configurable in seconds, which means we need some math to go to milliseconds. Link to Fun with Arduino 06 Automat...
by RudyB
Sun Jan 13, 2019 12:42 pm
Forum: Electronics
Topic: Fun with Arduino - a Series of Introductory Videos
Replies: 52
Views: 3412

Fun with Arduino 05 Connect More LEDs with Relay or FET

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, ...
by RudyB
Fri Jan 11, 2019 1:42 pm
Forum: Electronics
Topic: Fun with Arduino - a Series of Introductory Videos
Replies: 52
Views: 3412

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

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 a...
by RudyB
Sun Jan 06, 2019 10:39 am
Forum: Electronics
Topic: Fun with Arduino - a Series of Introductory Videos
Replies: 52
Views: 3412

Fun with Arduino 03 Connect an External LED and resistor

I was running behind with posts ... parts 2 and 3 are here now. 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...
by RudyB
Sun Jan 06, 2019 10:37 am
Forum: Electronics
Topic: Fun with Arduino - a Series of Introductory Videos
Replies: 52
Views: 3412

Fun with Arduino 02 Digital Input and Output

In this second video we start writing code ( 4 lines :) ) The goal is to switch the on-board LED on when a push button is pressed. We'll come across commands like pinMode, digitalRead, digitalWrite and we even throw in an if-then-else. Link to Fun with Arduino 02 Digital Input and Output https://up....
by RudyB
Sat Jan 05, 2019 9:46 am
Forum: Electronics
Topic: Fun with Arduino - a Series of Introductory Videos
Replies: 52
Views: 3412

Fun with Arduino - a Series of Introductory Videos

Fun with Arduino - 01 - Getting Started in 6 Easy Steps. 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. Price is no issue at about 3,- £$€. But not every hobbyist has affinity with electronics...
by RudyB
Tue Jun 05, 2018 11:14 am
Forum: DCC Forum
Topic: Videos on the Digikeijs DR5000 Command Station
Replies: 5
Views: 493

Digikeijs DR5000 03 Connect Phone / Tablet to WiFi and use the Z21 app

Oops … for some reason Digikeijs DR5000 video 3 never got posted here … Altzheimer?

Here it is yet. It’s about how to connect to WiFi and use the Z21 app on your phone or tablet.

Link to the video

Image
by RudyB
Tue Jun 05, 2018 11:03 am
Forum: DCC Forum
Topic: Videos on the Digikeijs DR5000 Command Station
Replies: 5
Views: 493

Digikeijs DR5000 04 Connect to a Network via a Router

Video 04 on the Digikeijs DR5000 is out. It’s about how to connect to your home network via a router. The reason to do this is if your DR5000 is further than 5m away from your PC, the maximum length for a USB cable.

Link to the video

Image
by RudyB
Fri Apr 27, 2018 12:27 pm
Forum: DCC Forum
Topic: Videos on the Digikeijs DR5000 Command Station
Replies: 5
Views: 493

Digikeijs DR5000 02 Control Properties and Settings Window

This video is about the DR5000 Control Properties / Settings window and about the settings in the Drive- and Switch windows. One of the important settings is the number of speed steps we want the DR5000 to send to our loco’s. In most cases 28 steps is a good default value, which also works fine with...

Go to advanced search