Search found 183 matches

by RudyB
Sun Jul 21, 2019 10:10 am
Forum: DCC Forum
Topic: USB Configurable 16 Channel Arduino DCC Servo & Accessory Decoder
Replies: 1
Views: 79

ArCoMoRa MARDEC - Configure an output port to swith an accessory on/off.

ArCoMoRa MARDEC - Configure an output port to swith an accessory on/off. Now that the MARDEC sketch is uploaded to a DCCnext or to an Arduino, we can start to configure the 16 available ports. In this video we are going to configure port 1 to become a standard on / off accessory signal that we want ...
by RudyB
Mon Jul 08, 2019 1:37 pm
Forum: Electronics
Topic: Fun with Arduino - a Series of Introductory Videos
Replies: 52
Views: 3201

Fun with Arduino 37 Control a NEMA 17 Stepper Motor with Easy Driver

Several driver circuits are available to control a more powerful stepper motor like a NEMA 17. In this video the EasyDriver is used, but the software is applicable to any driver with Enable, Direction and Step inputs. Link to Fun with Arduino 37 Control a NEMA 17 Stepper Motor with Easy Driver https...
by RudyB
Mon Jul 08, 2019 12:24 pm
Forum: DCC Forum
Topic: USB Configurable 16 Channel Arduino DCC Servo & Accessory Decoder
Replies: 1
Views: 79

USB Configurable 16 Channel Arduino DCC Servo & Accessory Decoder

Part 1 - Download & Install Windows Software Model railroad hobbyist friend Nico Teering took the Arduino DCC decoder software to a whole new level. A wealth of functions are combined all into one Arduino sketch for multi-purpose DCC control of 16 pins. In a joint effort with Sergey Kopachevski...
by RudyB
Mon Jul 01, 2019 10:27 am
Forum: Electronics
Topic: Fun with Arduino - a Series of Introductory Videos
Replies: 52
Views: 3201

Fun with Arduino 36 Store Data in Non Volatile Memory EEPROM

Because a stepper motor does not know where it is after startup, we need a way to find out where it is. We used a zero find routine to rotate the motor until a sensor is triggered. But suppose we were able to store the last position we moved to in memory and read it our after startup? The good news ...
by RudyB
Mon Jun 17, 2019 12:07 pm
Forum: Electronics
Topic: Fun with Arduino - a Series of Introductory Videos
Replies: 52
Views: 3201

Fun with Arduino 35 Turn Table Control with a Stepper Motor

Now that we can find the zero switch or -sensor, and we know how to position our application by rotating an exact number of steps, we have all ingredients to build say a turn table, or a translating table or an elevator. We use a Tuning sketch to determine the number of steps for every stop position...
by RudyB
Thu Jun 13, 2019 10:56 am
Forum: Electronics
Topic: Fun with Arduino - a Series of Introductory Videos
Replies: 52
Views: 3201

Fun with Arduino 34 Rotate an Exact Number of Steps

Now that we can find the zero switch or -sensor, we can start to position our application by rotating the motor an exact number of steps. No matter if the motor has to make 97 steps or maybe 144668 ... as long as the motor torque and the driver electronics voltage and current suffice in order to not...
by RudyB
Thu Jun 06, 2019 10:18 am
Forum: Electronics
Topic: Fun with Arduino - a Series of Introductory Videos
Replies: 52
Views: 3201

Fun with Arduino 33 Find Zero Switch or Sensor

A stepper motor does not know where it is after power up. If we want to use a stepper for accurate positioning, we first have to define its ‘zero’ point. This can be done by slowly rotating the motor until a sensor or a micro switch is activated. In this video we'll add a zero find routine as a prep...
by RudyB
Fri May 31, 2019 10:36 am
Forum: Electronics
Topic: Fun with Arduino - a Series of Introductory Videos
Replies: 52
Views: 3201

Fun with Arduino 32 Stepper Motor Change Direction and Control Speed

In the previous video we made the stepper motor run. In this video we'll add 2 functions: change direction and control speed.


Link to Fun with Arduino 32 Stepper Motor Change Direction and Control Speed


Image
by RudyB
Thu May 23, 2019 11:37 am
Forum: Electronics
Topic: Fun with Arduino - a Series of Introductory Videos
Replies: 52
Views: 3201

Fun with Arduino 31 Stepper Motor with 4 Pulse Driver

With some applications a stepper motor is prefered over a servo. For instance for the continuous rotation of say a wind mill model. Or with applications like a turn table, a linear shift table or an elevator, a stepper motor can be of great help thanks to the accurate positioning that is possible. I...
by RudyB
Mon May 13, 2019 11:05 am
Forum: Electronics
Topic: Fun with Arduino - a Series of Introductory Videos
Replies: 52
Views: 3201

Fun with Arduino 30 DCC Servo Decoder

Based on the code for the DCC Accessory Decoder we can create a Servo Decoder. All we have to do is add a couple lines of code to toggle the setpoint of the servo, based on the DCC status, and add the code to rotate the servos based on a millis() timer. Link to Fun with Arduino 30 DCC Servo Decoder ...
by RudyB
Mon May 06, 2019 11:29 am
Forum: Electronics
Topic: Fun with Arduino - a Series of Introductory Videos
Replies: 52
Views: 3201

Fun with Arduino 29 DCC Accessory Decoder

With the aid of very little extra hardware we can use Arduino as a DCC decoder, with a price tag that is almost 10x lower than commercially available decoders. In this video we create a DCC Accessory Decoder. In the next video we'll make a DCC Servo Decoder. In stead of DIY, alternatively you can us...
by RudyB
Thu Apr 25, 2019 11:00 am
Forum: Electronics
Topic: Fun with Arduino - a Series of Introductory Videos
Replies: 52
Views: 3201

Fun with Arduino 28 Use an External Editor like Notepad++

When writing more code than just a few lines, it might be worthwhile to invest a little bit of time to to start using a more capable editor than the one integrated in the Arduino IDE. There are several free editors around that have a wealth of features that make code editing more efficient and more ...
by RudyB
Thu Apr 18, 2019 10:04 am
Forum: Electronics
Topic: Fun with Arduino - a Series of Introductory Videos
Replies: 52
Views: 3201

Fun with Arduino 27 Recognize Slow / Fast Rotation of Rotary Encoder

The Servo Tuner that we built in the previous video can be enhanced with two features: 1: Recognition of slow or fast rotation of the rotary encoder, to be able to increment the motor with small steps or with larger steps. 2: Recognition of short or long press of the button, to be able to move to th...
by RudyB
Thu Apr 11, 2019 10:38 am
Forum: Electronics
Topic: Fun with Arduino - a Series of Introductory Videos
Replies: 52
Views: 3201

Fun with Arduino 26 Tune a Servo with a Rotary Encoder

In the previous video we wrote code to read out the pulses and the switch of a rotary encoder. We are now going to use this to tune a servo motor. With every mechanical construction where a servo is used to move something (garage doors, a gate beam, a turnout), the minimum and maximum servo angles n...
by RudyB
Fri Apr 05, 2019 1:51 pm
Forum: Electronics
Topic: Fun with Arduino - a Series of Introductory Videos
Replies: 52
Views: 3201

Fun with Arduino 25 Rotary Encoder with Switch

A rotary encoder is a digital device, approximately the size of an analog potentiometer. When rotated, it generates 2 pulse signals from which we can deduct the number of rotation steps and the direction of rotation. It also has a push button on board. When connected to the Arduino we can read out t...

Go to advanced search