Arduino DCC ServoShield

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

Luca Dentella

Luca Dentella

Күн бұрын

Пікірлер: 24
@philnewman1110
@philnewman1110 Жыл бұрын
Wow! what a really useful piece of kit for the model railway, thank you so much for taking the time to share this project. That is definitely on my list, thanks again Luca! Well done.
@lucadentella
@lucadentella Жыл бұрын
Thanks for your comment!
@smoil
@smoil Жыл бұрын
This is fantastic. I've been working with an LCC I/O board -> Arduino + servo driver board. Having a display for setting speed and range is a wonderful idea. Thanks for sharing.
@lucadentella
@lucadentella Жыл бұрын
Thanks for your comment! LCC unfortunately is not very adopted here in Italy / Europe and we normally use xPressNet or Loconet, but it's definitely interesting... if you're going to publish your project let me know!
@billflude5204
@billflude5204 Жыл бұрын
PCBs ordered - another brilliant project. I have just been playing with your LocoNet control panel - works brilliantly with IR sensors for train positions - a really cost effective board. Thanks Lucca - what’s next?
@lucadentella
@lucadentella Жыл бұрын
Thanks Bill! Well... without spoilers, you'll HEAR something about my new project soon ;)
@roydom5
@roydom5 Жыл бұрын
Love the onboard display! How would you deal with the polarity of an electrofrog peco point?
@lucadentella
@lucadentella Жыл бұрын
Hi! I normally use a limit switch, which gets pushed by the servo and is connected to the frog... for example give a look to this 3d printed bracket: www.thingiverse.com/thing:5632893
@ludovicpierard8917
@ludovicpierard8917 Жыл бұрын
Hello, thank you very much for sharing, just one more small problem, I could not put the library servoshiekd.h in IDE arduino.
@lucadentella
@lucadentella Жыл бұрын
Hi! You should download the entire folder ("ServoShield") from Github and open the ServoShield.ino file with the IDE: it should automatically open the other files as tabs in the editor
@ludovicpierard8917
@ludovicpierard8917 Жыл бұрын
​Thank you for your answer, now the tabs open properly, I still have a problem with servo.ino regarding the position of the servo.​ C:\Users\ludo5\Desktop\servo\servo.ino: In function 'void moveServoToTargetPosition(int, bool)': C:\Users\ludo5\Desktop\servo\servo.ino:5:6: error: 'servoOutputs' was not declared in this scope if(servoOutputs[outIndex].moving) return;
@lucadentella
@lucadentella Жыл бұрын
Hi, something is not working properly with your IDE: I've just downloaded the sketch from github and it compiles. First of all the folder must be named "ServoShield", as it is in the git repo. Then make sure you open this file (ServoShield.ino) with the IDE. It seems it is trying to compile only "servo.ino" which is part of the whole program and of course cannot be compiled by its own.
@ludovicpierard8917
@ludovicpierard8917 Жыл бұрын
I had named my folder Servo, and now that I gave it the correct name, it works, many thanks for your help, your project is exactly what I was looking for.
@lucadentella
@lucadentella Жыл бұрын
@@ludovicpierard8917 Happy to read that you solved!
@Bandit_Barclay
@Bandit_Barclay 11 ай бұрын
Hello Luca Is it possible to have non consecutive addresses?
@lucadentella
@lucadentella 11 ай бұрын
Yes, you basically receive all the commands so in your code you can respond to any address you want. At the moment my code considers consecutive addresses but it's opensource so you can change this behavior as you wish
@Bandit_Barclay
@Bandit_Barclay 11 ай бұрын
Ok, could you help with what part of the code would need changed? I'm new to code writing and arduinos. // address programming if(programmingAddress) { // increment the address and display the new value newAddressValue += increment; updateDisplayValueAddress(); }
@lucadentella
@lucadentella 11 ай бұрын
@@Bandit_Barclay in dcc.ino you can find the code that checks if the address in the received command is correct... you can change this as you wish: // Is command for one of the 16 outputs? uint16_t myAddress = Dcc.getAddr(); if(Addr >= myAddress && Addr < myAddress + 16) { A totally different task is to review the code that controls the display to add a way to set a different address for each output, it requires a lot of rework
@billflude5204
@billflude5204 Жыл бұрын
Hi Lucca - is there a DecoderPro definition file for this decoder like there is for the sound shield?
@lucadentella
@lucadentella Жыл бұрын
Hi Bill, no because I thought it was easier to program it using the lcd then using decoderpro
@billflude5204
@billflude5204 Жыл бұрын
@@lucadentella Just thought it would be good to be able to grab the settings once I have programmed using the buttons and display…….
@lucadentella
@lucadentella Жыл бұрын
@billflude5204 it makes sense! I'll try to add a definition to my github repo for it asap
@billflude5204
@billflude5204 Жыл бұрын
Thanks Lucca!
Arduino DCC SoundShield
11:25
Luca Dentella
Рет қаралды 1,3 М.
Arduino, CMRI and JMRI - Part 1 - Combined Sensors and Servos
13:43
Little Wicket Railway
Рет қаралды 28 М.
The Singing Challenge #joker #Harriet Quinn
00:35
佐助与鸣人
Рет қаралды 6 МЛН
🕊️Valera🕊️
00:34
DO$HIK
Рет қаралды 19 МЛН
Try Not To Laugh 😅 the Best of BoxtoxTv 👌
00:18
boxtoxtv
Рет қаралды 7 МЛН
Colorful Pasta Painting for Fun Times! 🍝 🎨
00:29
La La Learn
Рет қаралды 308 МЛН
DCC++EX: A Cheap DIY DCC System?!?! This is a Model Railroad Game Changer
17:54
DIY and Digital Railroad
Рет қаралды 86 М.
Arduino DCC ServoShield
8:29
Luca Dentella
Рет қаралды 1,3 М.
Unlock the Potential of Your Old Hard Drives: Build a Drone Engine!
8:12
Still doing research on DCC-EX.   Here's an glimpse of I2C IO expander board.
7:59
Model Railroading with Bill Masters
Рет қаралды 1,2 М.
Rocrail und DCCpp: Das Mega-Video zur Mega2560 Zentrale
1:24:42
Wilfried Lengert
Рет қаралды 4,9 М.
The way I build DCCNext
18:41
Harburn OO
Рет қаралды 1,3 М.
Lets Build Digital Command Control Interface
26:07
Model Railroad Techniques
Рет қаралды 6 М.
Controlling Turnouts in DCC-EX using PCA9685 Modules - Part 1
51:11
South Park & Kenosha Pass Railroad
Рет қаралды 5 М.
DIY Servo Mounts - Cheap and Easy Solution
6:32
Little Wicket Railway
Рет қаралды 14 М.
The Singing Challenge #joker #Harriet Quinn
00:35
佐助与鸣人
Рет қаралды 6 МЛН