Amp Meter for DCC EX - It works! (Video

  Рет қаралды 1,941

IoTT

IoTT

Күн бұрын

In the last video I discussed some of the difficulties that come with measuring the current of a DCC signal and why an occasional readout of the DCC EX current values does not do the trick. Today I show you how I implemented current gauges for main and prog track of DCC EX that work surprisingly well.
If you like my work, please consider supporting it with a donation:
www.paypal.com/biz/fund?id=Y2...
Get IoTT Stick 1.5.17 from here:
github.com/tanner87661/IoTTSt...
Get DCC EX modified sketch from here:
1drv.ms/u/s!ArrVrZpVFQZFlrocP...
Get DCC EX modified installer:
1drv.ms/u/s!ArrVrZpVFQZFlroba...
Tindie page for IoTT Stick, Interface Boards and Function Hats: www.tindie.com/stores/tanner8...
MyIoTT.org (landing page under construction): myiott.org/
Table of Content
0:00 Start
0:40 Test Setup
2:45 Current Gauge Demo
5:15 PWM Sampling Rates
8:58 Periodic Signals
15:50 Current Calculation
16:50 Precision vs. Speed
18:00 Methodology Summary
19:38 Implementation
22:18 Configuration
23:54 DCC EX Modification
24:35 Summary

Пікірлер: 17
@PaddingtonbearNZ
@PaddingtonbearNZ Жыл бұрын
Hans, this is Absolutely fascinating. The whole project has certainly come a long way. Well done.
@IoTT
@IoTT Жыл бұрын
Thank you.
@robleathley6024
@robleathley6024 Жыл бұрын
Glad that I had my second cup of coffee before I watched this video. Yes it is technical but you did a good job of explaining the process. This is a great feature to add to the IoTT stable. Once you get the higher current motor driver working, I just might consider replacing my NCE PowerHouse system with my Red Hat. All of these features and it’s open source concept make it a very versatile product. Perfect for upgrading DCC. Love what you are doing Hans! Please keep it coming!
@IoTT
@IoTT Жыл бұрын
Thanks. Unfortunately, the IBT-2 is somewhat a different animal. We will see what's possible.
@robleathley6024
@robleathley6024 Жыл бұрын
@@IoTT Yes, I can see that although, with your skills, I can see you succeeding where others have failed. I will patiently wait.
@canalsidingsmodelrailway3411
@canalsidingsmodelrailway3411 Жыл бұрын
Hi Hans. Yes exactly. As an ex electronics engineer I used to design sampling systems and one of the golden rules is that you need to sample at at least twice the frequency of the waveform in question to get meaningful results as determined by a fellow named Nyquist. .....................John
@IoTT
@IoTT Жыл бұрын
Yep. Fourier and Nyquist rate. There's a reason they teach you that in EE schools ;-)
@geoffreymcdermott65
@geoffreymcdermott65 Жыл бұрын
Excellent, but complex, obviously. Don't forget that DCC-EX is also planning on adding support for multiple power districts, and that implementation will probably require more work for current measurements. With the base system, 2 current gauges makes sense, but with more than 2 power districts, external metering would be more practical in use. Those external meters obviously could be in JMRI, but physical meters driven by a wireless microcontroller placed around the layout sounds like a project that you might consider. Using BT LE instead of WIFI would make more sense because it would negate the need for complicated configurations. You continue to impress the engineer in me. Your ability surpasses what I can do by an embarrasing level. I can get things done by brute force software, but your soluitions are elegent, if not too complex.
@IoTT
@IoTT Жыл бұрын
Thanks. For me, the aha-effect really came when I recognized that the current measurement input needs to be treated as periodic signal and Fourier rules would apply. From then on it was just application of what I learned 40 years ago about periodic signals. It still worked ;-) DCC EX will have 16 analog inputs in the future, and I guess all of them could be used to measure H bridge current. We will see how to deal with that as it becomes more clear what the DCC EX software will support. What is already clear is that the timing of the sampling will dramatically improve at it will be driven from the timer interrupt. That's a big plus for the precision of the meters.
@Ale-bj7nd
@Ale-bj7nd Жыл бұрын
Hey, you've got my same bench supply.
@IoTT
@IoTT Жыл бұрын
It's a pretty good one for the price.
@donaldkormos5529
@donaldkormos5529 Жыл бұрын
Hans ... a very thorough, thoughtful, and appreciated video regarding DCC-EX current measurement. In addition to a loco(s) running on the track, a user might have one or more lighted cars ... and/or ... one or more stationary decoders connected to the track. Does the presence of either of these affect the current measurement? Would a current measurement as you described in this video include these? Thanks for your attention ... all the best.
@IoTT
@IoTT Жыл бұрын
Thanks. Yes, I did not show that in the video, you switch the headlights of the locomotive on, the meter goes up 100mA. And yes, it measures the total current that goes out from the driver. For the video I had to disconnect some current sensor modules as they are powered from track and lead to a current consumption while no loco was moving.
@donaldkormos5529
@donaldkormos5529 Жыл бұрын
@@IoTT Thanks for your reply. You gave me a new winter project!!! Bought a hardware DCC power meter, but never liked it. Just wondering ... if the DCC-EX team expands hardware to include an ESP32 of some sort, that should help your power measurement method ... at least I think it would.
@IoTT
@IoTT Жыл бұрын
That depends what the ESP32 is used for, we will have to see. What definitively helps is making the sampling part of the timer interrupt because it makes the sampling interval much more stable. The quality of the current measurement will increase.
@4everforgotten
@4everforgotten Жыл бұрын
i’ll be honest, i accidentally clicked on this video and i have no idea what’s going on but it’s kinda interesting 🙂
@IoTT
@IoTT Жыл бұрын
Stuff happens ;-)) Thanks for watching and feel free to come back, maybe even on purpose ;-)
Scary IBT-2 Current Measurement  (Video#105)
24:42
IoTT
Рет қаралды 3,7 М.
Lehanga 🤣 #comedy #funny
00:31
Micky Makeover
Рет қаралды 24 МЛН
哈莉奎因以为小丑不爱她了#joker #cosplay #Harriet Quinn
00:22
佐助与鸣人
Рет қаралды 10 МЛН
Using IoTT Shields with EX 8874 (Video#130)
27:59
IoTT
Рет қаралды 1,2 М.
DCC-EX and DC Model Railroading Step the Game Up
41:35
Mastic Short Line
Рет қаралды 268
SilverHat DCC Booster (Video#134)
17:54
IoTT
Рет қаралды 1 М.
Elon Musk’s SpaceX may retrieve astronauts stranded on the ISS
5:46
Sky News Australia
Рет қаралды 42 М.
DCC Interface for the Booster Project (Video#133)
11:33
Make it tiny: PurpleHat Mini (Video#131)
14:34
IoTT
Рет қаралды 1,2 М.
SilverHat DCC Booster Configuration (Video#136)
18:20
My iPhone 15 pro max 😱🫣😂
0:21
Nadir Show
Рет қаралды 2 МЛН
Xiaomi SU-7 Max 2024 - Самый быстрый мобильник
32:11
Клубный сервис
Рет қаралды 558 М.