ok but how do you do to set the wifi password and name ? i mean, i want to give prototype to friends of mine and do ota to update the firmware, but they need to put their own wifi etc ... explain to me please
@pigeonramier6898 you probably need to include a wifi manager in your program, so that your friends can configure their wifi settings by their own... like tasmota or other firmwares normally do
@@lucadentella what I don't technically understand is the programme , it's like, we can put several program into the esp ? I use Arduino ide but when I put something inside it erase the past program, for exemple when load blink exemple then an other exemple program, it keep the new one and remove the other one so how can I load a wifi manager + a OTA program ?
@pigeonramier6898 you have to include the wifi manager in your program... if you're using arduino, it's very easy (include the library, add the required code in your setup). This is not a tutorial about esp32 and arduino but on RU-vid you can find several videos about that
Ciao Luca nel video usi un alimentatore da 5v per alimentare la scheda servo driver board. Ti chiedo è obbligatorio avere 5v oppure si può usare un alimentatore a 8v per es. Grazie Mario
Ok caricato. Ma non riesco a fare il reset non si accende il led. Ho collegato l'alimentazione a 5v, ho collegato la centralina, collegato al pc Arduino e si accende il led rosso della scheda ma non riesco a resettare. Cosa può essere?
Hi Luca, great stuff once again. Thanks for sharing. Is it possible for Rocrail to send a turnout switch request from DCC++ to the Loconet device? I have the circuit working as per the video where I push a button on my arduino based control panel, which is using your loconet interface, and that works. I also have 2 leds on the control panel to indicate the turnout position. I would like to click on the turnout in Rocrail and then have it send a loconet command so that the leds change. I have tested my control panel with my other setup using iTrain and connecting it to my Digikeijs DR5000 via its loconet interface, and it works in both directions. So when I switch the turnout in iTrain, my control panel LEDs change, and when I push the button on the control panel, the iTrain display changes.Regards, John
Ciao Luca! Stavo pensando di usare RocRail per il plastico, non ho idea di come poter fare.. sarebbe interessante se fai vedere come poter interfacciare sensori, deviatoi, segnali con RocRail.. Sei bravo a spiegare e molto preciso, sarebbe bello vedere qualcosa su questo argomento
I just built the interface as you described. However nothing works. I am using the Loconet monitor sketch to test. I see no messages at all, even if I turn on/off the track power (JMRI shows lots of activity in its Loconet monitor. How do I debug the circuit? Thanks!
Buongiorno Luca ottimo video avrei alcune domande. Con questo progetto si possono utilizzare sensori ad assorbimento ? (nds sensori sono autocostruiti con accoppiatore ottico e hanno tre pin di uscita +5volt segnale e GND da come ho capito basta configurare i pin della scheda come sensor e input, senza modificare il codice che hai scritto per ATmega. Corretto? un cordiale saluto
Ciao Filippo, non ho mai provato ma direi di si, se configuri un PIN come INPUT SENSOR, quando quel PIN si attiva (va a livello logico basso), LnControlPanel invia sul bus loconet un segnale di sensore attivo quindi direi che può essere usato per il tuo scopo (l'ho provato con pulsanti per attivare "contatti virtuali", utile a volte come trigger per macro...) e funziona
@@lucadentellaOk Grazie faro delle prove su un prototipo. Nel caso vedrò se è necessario fare delle modifiche al SW e ti faro sapere. Inoltre visto che ho alcuni Arduino nano provo anche a usarlo al posto del ATmega328P. modificando il PCB a tale scopo per ospitare il nano. un cordiale Saluto PS i tuoi video sono molto sempre interessanti
No, this decoder is not able to control a DC motor, it can only play sounds. I didn't design a loco decoder ("multi-function decoder in DCC terminology) because, at least for H0 or N gauges, it must be small to fit inside the loco and the production cost (multi-layer PCB, SMT components...) will be probably higher than a commercial one
You tutorials are excellent! Thank-you for sharing your knowledge and projects. Liked and subscribed. As I understand it, this decoder only takes DCC signals while your Loconet control panel does not directly control servos. As the DCC bus has limited capacity, have you considered a Loconet decoder for controlling servos?
Hi! I usually develop DCC accessory decoders because they work with any DCC-compatible command station... on the other hand, Loconet is a proprietary bus and some stations don't support it. I may develop an accessory decoder that could work both with DCC and Loconet in the future!
@@lucadentella That would be great! I'll stay tuned. 🙂 For smaller layouts, it is not a problem to have accessories on the DCC bus, but it can be a problem on larger layouts - hence the need for LCC, Loconet, or BiDiB, etc. For example, I have a throttle that if I use its advanced braking features, it clogs the DCC bus as it sends too many commands and other operators cannot control their trains. So now I only send DCC commands for controlling locomotives on the DCC bus and everything else on a separate bus (in my case, Loconet). Even though some command stations don't support Loconet, there are many adapters available or Loconet can be operated stand-alone. While Loconet is proprietary, it is free to use for personal use and is probably the most common accessory bus - at least in some markets.
@@loddie9 you made the point! I normally use Loconet for throttles and sensors, but I think a loconet accessory decoder would be useful too, I'll work on it!
Ciao Luca sto seguendo con molto interesse i tuoi video e i relativi progetti Loconet che reputo interessanti e spiegati in modo eccellente, sarei interessato alla realizzazione di quest'ultimo progetto, una cosa non mi è chiara quale scketch si deve caricare nel micro
Ciao Luca sto seguendo con molta attenzione i tuoi video che trovo interessanti e spiegati in modo eccellente , sarei molto interessato alla realizzazione di questo progetto , ma una cosa non mi è chiara, quale sketch caricare sul micro
@@lucadentella nella compilazione dello scketch da questi errori: C:\Users\PC Stefano\Desktop\LnControlPanel\LnControlPanel.ino: In function 'void setup()': C:\Users\PC Stefano\Desktop\LnControlPanel\LnControlPanel.ino:49:55: error: 'readConfigFromEEPROM' was not declared in this scope if(EEPROM.read(EEPROM.length() - 1) == CONFIGVALID) readConfigFromEEPROM(); ^~~~~~~~~~~~~~~~~~~~ C:\Users\PC Stefano\Desktop\LnControlPanel\LnControlPanel.ino:52:5: error: 'resetConfiguration' was not declared in this scope resetConfiguration(); ^~~~~~~~~~~~~~~~~~ C:\Users\PC Stefano\Desktop\LnControlPanel\LnControlPanel.ino:52:5: note: suggested alternative: 'setPinDirection' resetConfiguration(); ^~~~~~~~~~~~~~~~~~ setPinDirection C:\Users\PC Stefano\Desktop\LnControlPanel\LnControlPanel.ino:53:5: error: 'saveConfigToEEPROM' was not declared in this scope saveConfigToEEPROM(); ^~~~~~~~~~~~~~~~~~ C:\Users\PC Stefano\Desktop\LnControlPanel\LnControlPanel.ino: In function 'void loop()': C:\Users\PC Stefano\Desktop\LnControlPanel\LnControlPanel.ino:90:7: error: 'parseCmdLine' was not declared in this scope parseCmdLine(); ^~~~~~~~~~~~ exit status 1 Compilation error: 'readConfigFromEEPROM' was not declared in this scope
Luca, This is a great sketch and very easy to follow. I am implementing this on my layout. My only problem is that I have 9 turnouts. I'm using a Mega so the number of pins should not be an issue. My only issue is how to convert the sketch to include 9 turnouts (1-9). Do you have an example of 2 or 3 turnouts and LEDs where you've changed the sketch to use functions and just pass repetitive info to the function.
I have a motor that I am trying to calibrate with the esc. When I connect the esc, it makes the correct beep, however when I try and calibrate the lowest setting, it begins to beep constantly until set to highest again. Can someone explain this?
Ciao Luca, ho contattato Davide per il kit Booster dcc completo (quello da 43A), via telefono, Wa, e mail, senza ricevere riscontro. Come devo fare per acquistare il kit completo? Grazie.
I am getting this message inside the Linux VM "Cannot identify a JQ6500 device". The device is connected and identified by the VM. The device name is GD3800B V1.0. Appreciate any suggestion.
Great videos. I want to use these current sensors and Arduino but without Loconet. Is this possible for example with the optocoupler circuit board between Arduino and command station? If so can you let me know how to do that. Change the sketch? Thanks in advance. William
Brother Luca, I have an esp 32 wroom card. I want to broadcast a beacon advertisement and see the advertisement broadcast on all phones within the coverage area that have Bluetooth turned on. In the nRF connect application, I see the device, but I cannot see the advertisement. But I see the device on my mobile phone. I would be glad if you can help me. I wish you success.
Dear Luca, Thank you for your reply, I'm really sorry for the late reply, I was a little uncomfortable. I'm following you. Maybe I'm reading the topic wrong. All I want to know is, Does your mobile have BLE feature? I guess this will solve the problem.@@lucadentella
buongiorno caro ingegniere ho realizzato il soundshield ma con la centralina non riceve i comandi x gli mp3 tramite arduino e jmri non si attivano i vari sound il modulo jq6500 funziona perchè testato singolarmente con dei pulsanti grazie volevo sapere se anche ad altri e capitato lo stesso problema saluti Ciro da Napoli
Buongiorno ho realizzato il progetto e funziona alla grande avrei bisogno di portare le uscite a 32 servo mettendo in cascata 2 pca 9685 ma non riesco a modificare lo sketch servoshield ci ho provato ma la scheda non funzionava più c'è qualcuno che ci ha provato e funziona? Mi rivolgo a lei caro ingegnere la saluto e grazie
Buongiorno, le modifiche da fare non sono banali e al momento sono impegnato su altri progetti / tutorial. Un altro appassionato (Andrea) sta lavorando alla medesima modifica, magari condividerà la sua versione dello sketch... è il bello dei progetti opensource, ognuno può contribuire!
Hi! Most of my projects are available on Github... in particular the documentation for all my DCC decoders is here: github.com/lucadentella/arduino-dcc-turnout-decoders
Hello! Very good video!!! I can turn on the lights on the locomotive, the locomotive runs and suddenly everything seems to stop... At JMRI, the main switch remains green and changes to yellow with the inscription "Unknown" after clicking on it. 🤷🏻♂️🤷🏻♂️ USB off and on and it gets fixed, then the above error again. Locomotive and decoder tested with Multimouse, the control is perfect... Thank you very much!
Hi, it seems you're facing some issues with the connection between Arduino and your computer... or the Arduino board is resetting (which could explain why the locos suddenly stop. You can test the same setup with a different arduino board or a different shield to check if it's an hardware failure.
i've tried following your tutorial, but somehow my jq6500 is not detected in the VMware. i wonder if i need to format it first, because when i tried to connect the jq6500 windows want to format it. but then again my device is JQ6500 HW-896 V1.2 i don't know if it make any difference lol. i'll ask my seller and maybe tried it again tommorow. but thanks for the video, it is clear enough for the dumb me to understand it 😂. edit. i think i've seen some other sites, this is HW board, different to JQ6500. and some chinese manual says just copy paste it to the drive, it was .WAV file. i did not use this for arduino but for some kind of greeting card. i'll update after i tried it again.
@@lucadentella yeah i just found out, turns out it was easier to me to use this board, this is like a flash disk, with 4 megabyte size. I just need to format it and then copy paste to it. For what i used it for, this board is the best for me. Lucky i guess.
Hi, see this issue... your module is not supported by the rescue tool: even if they label it "JQ6500", it's based on a different chip: github.com/NikolaiRadke/JQ6500-rescue-tool/issues/6
Ciao, bel video! Mi vorrei cimentare nella costruzione di tutto il sistema DCC. Quello che vedo è sempre attuale come sviluppo o negli ultimi anni ci sono nuovi componenti e nuove modalità per mettere su una centrale con booster, motorshield etc etc ? Grazie ancora
Grazie! La centralina è ancora sicuramente attuale, se vuoi qualcosa in più aspetta un paio di settimane, sto ultimando un video su una sua evoluzione ;) il resto del progetti (booster, decoder, loconet...) invece è assolutamente realizzabile da subito!
Ottimo, aspetterò sicuramente, ho tutto in progettazione ancora, preferisco partire con strumenti più aggiornati possibile! Grazie ancora, un bel canale!
Arrivati i PCB da PCBWay e gli altri componenti da varie fonti, ne ho montato uno e FUNZIONA! Non perchè dubitassi della bonta del progetto, ma semmai dellle mie capacità di mettere insieme correttamente il tutto. Qualche domanda: - Dopo aver provato alcune programmazioni, volevo riportare il decoder ai valori di default. Fatto il reset come indicato, dopo i 5 lampeggi del led, i valori che avevo inserito sono rimasti intatti. - La programmazione da display è fantastica ma, visto che il decoder accetta la programmazione delle CV, sarebe possibile avere la lista delle CV e dei valori inseribili? - Vengo dai Digikeijs DR4024 (non più prodotti) che hanno le uscite 0-12V su ciascun canale, che possono commutano dei relè per la polarizzazione dei cuori (esistevano anche le schedine relè dello stesso produttore). Sarebbe possibile anche qui collegare una scheda relè generica per ottenere la stessa commutazione? Ovviamente, integrando lo sketch, semprecchè vi sia ancora memoria disponibile. - Lo sketch ed i 2 moduli sono compatibili con la R4 per avere più memoria e performance? Complimenti ancora.
Great explanation !! Question, I have tried to use the NmraDCC library before, but have been hampered by lack of documentation on the library itself. Even in the GitHub repository I couldn't seem to find anything useful/clear. Do you have some document you use as reference that you could point me to ?
Hi! Unfortunately you're right: the library lacks a proper documentation. I usually inspect the source code (from github) that is quite readable and with useful comments
Hi! Great designs, work well and are very fun to watch. Can the braking generator do this now? Not ABC, just a device that sends a stop signal to the locomotive. Regards
Hi, not sure about your question: are you thinking of a device that continuously sends, on a specific track, the "broadcast STOP" command so that every loco that enters the track stops?
@@lucadentella Hi. This is exactly the device we are talking about. Just like multimouse, it generates a stop in position 0 for all locomotives. The principle of operation is that once the relay gives a stop signal from the generator, and in the second case the relay gives a signal as it was before the stop... i.e. from the Roco control unit. Both "stop" and "go" signals are given to the designated section with the semaphore.
Ciao, anziché arduino per caso sai come si fa a programmare il servo decoder (55274) della PIKO? Tramite la pulsantiera della PIKO non riesco a regolare la corsa del servomotore.
Buonasera e complimenti! E' possibile modificare l'indirizzo di default di partenza? Nel mio caso andrebbe in coda ad una catena di altri decoders per scambi con indirizzi già programmati, e dovrai partire da 21.
Buonasera, ho completato il montaggio di questa altra shield. Dopo aver dato l'indirizzo, utilizzo il multiMAUS, dando i comandi mi richiama i file memorizzati nel JQ6500. Se spengo il tutto, poi lo rialimento, non "ricorda" più l'indirizzo, devo ridarlo e poi rifunziona nuovamente. Ho sbagliato qualcosa? grazie e complimenti per il progetto
Ciao! Molto strano... l'indirizzo dovrebbe essere memorizzato nella EEPROM di Arduino e quindi "resistere" rispetto a un riavvio. Il problema lo hai con entrambi i progetti? Usando lo stesso Arduino Uno?
Buon giorno Luca ottimo video come gli altri pubblicati complimenti. Con l'occasione vorrei chiederti se sai dove è possibile reperire informazioni sul protocollo utilizzato per la connessione R-bus (forse xPressNet con variazioni ?) sulle stazioni z21 della Roco/fleischmann un saluto.
Ciao Luca ho visto che parlavi di sensori rid, io avevo intenzione di collegare al mio plastico dei sensori rfid in modo da tenere traccia anche Dell id del treno che sta passa do per un certo settore, ho riscontrato un problema però nell implementazione in quanto la libreria dccpp non supporta i lettori rfid. Sapresti come implementarli? Io ho provato a modificare la libreria ma non sono riuscito ad ottenere ottimi risultati..
Ciao! Passare da DCC++ oltre a richiedere una modifica al firmware (molto complesso) richiederebbe anche qualche intervento sul protocollo (al momento anche se riuscissi a leggere l'ID non avresti modo di passarlo al software). Se vuoi provare l'identificazione treni con RFID ti consiglio di seguire qualche strada già "nota", es JMRI ha qualche indicazione su come fare. Ho pochissima esperienza in merito perché normalmente identificare i treni sul plastico "non serve" (il software è in grado di seguirli) o se dovesse essere necessario il protocollo DCC ha un suo "modo" standard (Railcom).