Let's learn together - LnControlPanel! (DCC model railway with Arduino 9)

Sdílet
Vložit
  • čas přidán 21. 08. 2024
  • Let's learn together how to control a DCC model railway with Arduino.
    In this ninth episode, how to build a control board, based on Arduino, for the management of Loconet control panels.
    PROJECT
    - Github repository: github.com/luc...
    - Website: www.officinamo...
    SOFTWARE
    - Autodesk Eagle: www.autodesk.c...
    - JMRI: www.jmri.org/
    LINKS
    - MCP23017 I/O Expander: www.microchip....
    - Shield for buring the bootloader: www.banggood.c...
    -
    Music: Brighter Days by Markvard is licensed under a Creative Commons License.
    creativecommon....
    Support by RFM - NCM: bit.ly/2xGHypM
    -

Komentáře • 31

  • @billflude5204
    @billflude5204 Před 2 lety

    Completed the build of one of these boards yesterday - worked first time - a really brilliant project - thanks Luca!

    • @lucadentella
      @lucadentella  Před 2 lety +1

      Bill thanks for your comment, glad you found my project useful!

  • @medwaymodelrailway7129
    @medwaymodelrailway7129 Před 3 lety +1

    Like the video lots of detail.Hope to see more

  • @roydom5
    @roydom5 Před 3 lety

    just what I've been looking for! Almost as if you designed it with me in mind! Thanks so much for sharing your knowledge.

    • @lucadentella
      @lucadentella  Před 3 lety

      ;) Thanks for your comment!

    • @roydom5
      @roydom5 Před 3 lety

      @@lucadentella I have started to assemble this board - is C3 really a ceramic capacitor - it looks like a polyester film box type?!

    • @lucadentella
      @lucadentella  Před 3 lety

      @@roydom5 it really doesn't matter, you can use ceramic or polyester

  • @philnewman1110
    @philnewman1110 Před 10 měsíci

    Looks like a really useful item Luca can it be used for current monitoring of track detection? Great video well done indeed, and thank you!

    • @lucadentella
      @lucadentella  Před 9 měsíci

      Hi Phil, well this board can report the status of a sensor but you have to add the "sensor" part (current monitoring, infrared...) as I explained in a previous video. This board indeed has digital inputs; therefore an external board should "detect" the train and report a digital signal (1 = detected, 0 = free)

  • @johanneskuhnel6701
    @johanneskuhnel6701 Před 2 lety

    Hi Luca,
    first I wan't to thank for publishing this great project. It seems that the arduino sketch does not work with the current Adafruit MCP-Library. Can you publish the version of the Adafruit-Library you used for your build?
    Thanks,
    Johannes

  • @ricshaw4293
    @ricshaw4293 Před 3 lety

    Hi Luca,
    Could you please advise where you got your MCP23017 modules from, I ordered some, but they have come back short in width by one pin. The above link takes one to the Micrchip datasheet for the chips only not the module boards. Thank you for the developement of these interesting projects for us DIY model railway people.
    Ric Shaw

    • @lucadentella
      @lucadentella  Před 3 lety +1

      Hi Ric! Thanks for your comment. I got my modules from this store on Aliexpress but I found similar modules on eBay: www.aliexpress.com/item/32957655097.html

    • @ricshaw4293
      @ricshaw4293 Před 3 lety

      @@lucadentella Thanks Luca will re-order.
      Ric

  • @felipesanchezcuriel
    @felipesanchezcuriel Před 2 lety

    Thank you for sharing all this. Two questions:
    1) If I don't have the shield to burn the controller, can I "cannibalize" it directly from an Arduino uno board?
    2) I'm guessing yes, but is possible to configure the outputs to control servos?

    • @lucadentella
      @lucadentella  Před 2 lety +1

      Hi! Thanks for your comment:
      1) yes, or you can buy a chip with the bootloader already flashed
      2) the goal of this board is to control/monitor other devices: for example an accessory decoder made for moving servos... the idea is that you can configure a channel to send a specific DCC turnout command to that decoder and in the end move some servos

    • @felipesanchezcuriel
      @felipesanchezcuriel Před 2 lety

      @@lucadentella thank you

  • @billflude5204
    @billflude5204 Před 2 lety

    Hi Luca
    I have now ordered boards from PCBWay - thanks for your help!
    What model of Loconet socket are you using on your board - I saw YH-55-10 - where can I get this model?
    Cheers
    Bill

    • @lucadentella
      @lucadentella  Před 2 lety

      Hi Bill, I usually source them from aliexpress, just compare the product photos with the ones on my board, the code may be different

  • @antoniomonte4928
    @antoniomonte4928 Před 2 lety

    Hi Luca,
    You have 3 .ino files. How do you upload all of them to the Atmega chip? Also how do you open the terminal to configure the board?

    • @lucadentella
      @lucadentella  Před 2 lety

      Hi Antonio, open the LnControlPanel.ino file, the IDE will open the others for you. After having uploaded the firmware, use the Arduino Serial Monitor to configure the board (set 115200 baud)

  • @billflude5204
    @billflude5204 Před 2 lety

    Can we buy the PCB from you Luca?

    • @lucadentella
      @lucadentella  Před 2 lety

      Hi Bill, unfortunately no... at the moment is much cheaper for you to order them directly from a PCB service (PCBWay, JCLPCB, Oshpark...) using the Eagle files I provided in the Github repo.

    • @billflude5204
      @billflude5204 Před 2 lety

      Hi Luca - do we have to upload your .brd file to PCBWay?
      Loving the videos - you make it really easy to follow!
      Cheers
      Bill

    • @lucadentella
      @lucadentella  Před 2 lety

      @@billflude5204 thanks! You cannot use brd files directly with pcbway but you have to convert them in Gerber format. Because every pcb service has its own settings, I uploaded the brd file so you can use the service you like. Alternatively you can use oshpark that accepts brd. If you need I can send you the Gerber files pcbway expects, just send me an email through my website!

    • @billflude5204
      @billflude5204 Před 2 lety

      Boards arrived from PCBWay - they look very good!

    • @billflude5204
      @billflude5204 Před 2 lety

      Thanks for access to the files!