HO Scale Defect Detector Using Arduino (Tutorial/Source Code)

Поділитися
Вставка
  • Опубліковано 17 жов 2024

КОМЕНТАРІ • 16

  • @Wayne2224
    @Wayne2224 3 місяці тому +1

    That is really cool! Thank you for sharing this! Seems like this could be something you could really use to bring your layout to life.

    • @LIRRTV
      @LIRRTV  2 місяці тому

      For sure, thanks for watching!

  • @otowmodelrailroadersclub7151
    @otowmodelrailroadersclub7151 2 місяці тому +1

    Russ and I are attempting to build the detector. Your YT video computer screen showed that you compiled it on an ESP32 Dev Module - were you successful? I've tried for 2 days to get the proper libraries or mod the libraries to work on an ESP32. Question: is the SD card an I2C or SPI? That is the only item I'm missing in inventory.

    • @LIRRTV
      @LIRRTV  2 місяці тому

      This code was written specifically for an Arduino Mega 2560, as far as I'm aware it will not work with an ESP32. I've tried to compile to an ESP32 before and the libraries seemed to be incompatible. The dropdown in the section where I explain my code just shows the ESP32 Dev Module because it was the most recent thing I had compiled to on that pc, not what I used for this specific project.
      In terms of the SD card, I'm just using a SanDisk 4GB Micro SDHC. I believe it's actually the one that came with my Nintendo Switch before I replaced it for a larger one lol

  • @russ4723
    @russ4723 2 місяці тому

    Might attempt this build. Sounds like it would make for an interesting add on to a session. I do have a question about the lcd, why did you choose the more complicated version? The version with the integrated daughter board would have reduced the wire count by using the 5vdc, gnd, scl and sda (also lcd contrast control integrated) instead of all the additional wires?? I don't know programming, so maybe it was easier your way. I'm a hardware guy...lol

    • @LIRRTV
      @LIRRTV  2 місяці тому +1

      That specific lcd was the only one I had laying around at the time, I realized it was more complicated but didn’t really feel like finding another one lol. Would’ve been the same results either way, I suppose I just gave myself more work instead of spending like 6 bucks on another one.
      You might be the first person to try the build besides myself - let me know if you go for it! I’m curious to see if I made a good enough tutorial for others to understand. If you have any questions feel free to ask here and I can help you out with whatever you need. Or if you see room for improvement I’m always open to suggestions. Good luck!

  • @Trackman80
    @Trackman80 2 місяці тому

    Pretty cool

    • @LIRRTV
      @LIRRTV  Місяць тому

      Thanks for watching

  • @danpickle7398
    @danpickle7398 Місяць тому

    I tried to build this but on the LCD screen I get no readout. any suggestions?

    • @LIRRTV
      @LIRRTV  Місяць тому

      Couple of things I would look for first:
      - Double check that you have solid connections going to the correct pins on the Arduino - are you testing on a solderless breadboard?
      - Does the LCD display show anything at all? If so try adjusting the contrast using the potentiometer and see if you can read it better.
      - Are you able to compile/upload the whole sketch to the Arduino?

    • @danpickle7398
      @danpickle7398 Місяць тому

      @@LIRRTV yes I am using a bread board to test first! :) The screen illuminates however turning the pot up and down there is no difference in illumination. The code did say that it completed the upload with no errors

    • @LIRRTV
      @LIRRTV  Місяць тому

      Interesting, well it's a good sign that it at least compiles and uploads with no errors. Likely just a hardware issue. I've found that sometimes I needed to hit the reset button on the Mega after I gave it power, maybe give that a try. It's the button right next to the USB port. Are you using an LCD with 16 pins like the tutorial or the other simplified type with less pins?

    • @danpickle7398
      @danpickle7398 Місяць тому

      @LIRRTV I actually have both styles of LCD but just to get it working I am using the 16 pin like in the video. Using another arduino I have verified the lcd works with the hello world code

    • @LIRRTV
      @LIRRTV  Місяць тому

      Hm, odd. LCD should be using pins 22, 6, 5, 25, 4, and 26 going back to the Mega. When the screen is illuminated, is it displaying white boxes instead of text or nothing at all? On my previous build attempts if I had something anywhere that was wired incorrectly it would mess with the LCD and the rest of the project, it would be worthwhile to double check all of your connections instead of just what's going to the LCD. If you have it connected to the speaker already, can you hear any buzzing coming from it?
      If it still isn't working shoot me an email at lirrtv9@gmail.com with some pics of your wiring and I can help you out some more.