Arduino DCC ServoShield

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

Luca Dentella

Luca Dentella

Күн бұрын

Пікірлер: 26
@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 ;)
@mikolajmikun5337
@mikolajmikun5337 Күн бұрын
Big thanks for super project, working with my turnouts. I`d ask You about little change - Can You change program arduino for stepper motor? Small stepper motor will be better (smooth) for railway barriers. There are a lot of arduino boards on aliexpress for stepsticks (3 pieces) and arduino nano.
@ericbaan671
@ericbaan671 7 күн бұрын
can u also do a video about this decoder plus switching electro frogs ?
@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 Жыл бұрын
Hello Luca Is it possible to have non consecutive addresses?
@lucadentella
@lucadentella Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
@@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,4 М.
Let's learn together - Loconet! (DCC model railway with Arduino 5)
12:41
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 52 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 25 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 9 МЛН
DIY Servo Mounts - Cheap and Easy Solution
6:32
Little Wicket Railway
Рет қаралды 14 М.
Connect Up To 992 Servos To An Arduino, Using I2C
7:47
Michael Klements
Рет қаралды 72 М.
DCC for less than $45!!!  Building a DCC++ Base Station
13:29
DIY and Digital Railroad
Рет қаралды 100 М.
DCC Ex - Amazing Digital Controller for Under £50 😮
13:40
Little Wicket Railway
Рет қаралды 45 М.
Arduino DCC SoundShield
11:25
Luca Dentella
Рет қаралды 1,2 М.
063. Setting up a DCC-EX EX-IOExpander
25:51
Model Railroading with Bill Masters
Рет қаралды 3,4 М.
The way I build DCCNext
18:41
Harburn OO
Рет қаралды 1,3 М.
Linking Multiple PCA9685 Servo Driver Boards
10:06
Little Wicket Railway
Рет қаралды 13 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 52 МЛН