Search found 187 matches

by RudyB
Mon Aug 19, 2019 11:17 am
Forum: Electronics
Topic: Fun with Arduino - a Series of Introductory Videos
Replies: 53
Views: 3474

Fun with Arduino 38 - Ultrasonic Distance Measurement with HC-SR04

The HC-SR04 is a sensor that has a little loudspeaker and a little microphone via which the distance to an object can be measured. It's ultrasonic, humans can not hear it. Don't expect super high accuracy of this less than $1,- costing device, yet I was pleasantly surprised to see that measurements ...
by RudyB
Mon Aug 12, 2019 11:07 am
Forum: DCC Forum
Topic: USB Configurable 16 Channel Arduino DCC Servo & Accessory Decoder
Replies: 4
Views: 200

ArCoMoRa 5 - Servo with Additional Output Ports to Switch Electrofrog

MARDEC software has the option to switch 1 or 2 ports in sync with operating a servo. The main application for this is to switch polarity of electrofrog turnouts. The video shows how to configure the one or two extra outputs. Link to ArCoMoRa 5 - Servo with Additional Output Ports to Switch Electrof...
by RudyB
Mon Aug 05, 2019 2:12 pm
Forum: DCC Forum
Topic: USB Configurable 16 Channel Arduino DCC Servo & Accessory Decoder
Replies: 4
Views: 200

ArCoMoRa 4 - DCCnext - Configure and Tune Servos

ArCoMoRa 4 - DCCnext - Configure and Tune Servos We're going to attach a servo to the DCCnext or Arduino and configure the MARDEC software to control this servo. To make the application work the first thing to do is tune the 2 servo angles for the DCC ON and OFF state. Maybe we also have to inverse ...
by RudyB
Mon Jul 29, 2019 1:02 pm
Forum: DCC Forum
Topic: USB Configurable 16 Channel Arduino DCC Servo & Accessory Decoder
Replies: 4
Views: 200

ArCoMoRa 3 - Double Port Accessories

MARDEC software has the option to switch 2 ports via 1 DCC address. A 'double flash' comes in very handy when for instance we have 2 inverse blinking lights, like with a railway crossing, A 'double one shot' is used to switch a solenoid turnout that has two coils. One port gives a pulse when the DCC...
by RudyB
Sun Jul 21, 2019 10:10 am
Forum: DCC Forum
Topic: USB Configurable 16 Channel Arduino DCC Servo & Accessory Decoder
Replies: 4
Views: 200

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: 53
Views: 3474

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: 4
Views: 200

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: 53
Views: 3474

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: 53
Views: 3474

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: 53
Views: 3474

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: 53
Views: 3474

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: 53
Views: 3474

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: 53
Views: 3474

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: 53
Views: 3474

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: 53
Views: 3474

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...

Go to advanced search