Closed pelestedt closed 1 year ago
Hi pelestedt,
On 21/10/2022, at 7:50 AM, pelestedt @.***> wrote:
According to the Arduino IDE, when installing NmraDcc, the package supports ESP8266. Now trying to run on an ESP8266, Lolin Wemos D1R2, we fail to get any DCC messages decoded. The program and shield works fine on an UNO. Can you assist?
Yes, but I need a bit more information to be helpful as works on a UNO but not on an ESP8266 isn’t particularly helpful… ;)
Can you please answer the following questions:
What is the DCC interface circuit you are using? Is there a circuit or board schematic you can point me to?
Does it have an external Pull-Up resistor or does it rely on the uController to provide the Pull-Up?
What pin on the ESP8266 is being used for the DCC Signal input?
Does this pin support Hardware Interrupts?
Can you provide the Arduino sketch you are using to test the ESP8266?
Regards
Alex Shepherd
m: +64-21-777764 e: @.***
Hi Alex,
Thanks for your quick response. I have done the "shield" I am using myself and it has a 10k pullup on the I/O pin. I have done a board in KiCad. I can send you the drawing if you want.
I have used your example files to test (changing the I/O pins to Dn first)
What I think you suspect and I believe I have now confirmed is that I use the only GPIO on the ESP8266 that does not support interrupt, D0.
Searching on internet gives mixed answers. Some say all GPIO support interrupt other that all except D0 (GPIO16) does. I will change to D1 and test. I will let you know the outcome of that.
Thanks again for your support and hinting me in the right (hopefully) direction.
Best regards Peter Elestedt
Från: Alex Shepherd @.> Skickat: den 20 oktober 2022 23:21 Till: mrrwa/NmraDcc @.> Kopia: pelestedt @.>; Author @.> Ämne: Re: [mrrwa/NmraDcc] Running NmraDcc on ESP8266 (Issue #64)
Hi pelestedt,
On 21/10/2022, at 7:50 AM, pelestedt @.***> wrote:
According to the Arduino IDE, when installing NmraDcc, the package supports ESP8266. Now trying to run on an ESP8266, Lolin Wemos D1R2, we fail to get any DCC messages decoded. The program and shield works fine on an UNO. Can you assist?
Yes, but I need a bit more information to be helpful as works on a UNO but not on an ESP8266 isn’t particularly helpful… ;)
Can you please answer the following questions:
What is the DCC interface circuit you are using? Is there a circuit or board schematic you can point me to?
Does it have an external Pull-Up resistor or does it rely on the uController to provide the Pull-Up?
What pin on the ESP8266 is being used for the DCC Signal input?
Does this pin support Hardware Interrupts?
Can you provide the Arduino sketch you are using to test the ESP8266?
Regards
Alex Shepherd
m: +64-21-777764 e: @.***
— Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmrrwa%2FNmraDcc%2Fissues%2F64%23issuecomment-1286167806&data=05%7C01%7C%7C0561326f97c947f2179508dab2e11224%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638018976980251350%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Doadpca%2FHFRX5sOKzQUjatvkQmIDrYIZYLBcNkd6WdE%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAF6NHNOKVJJOV7J5GVMRMILWEGZWBANCNFSM6AAAAAARKN5T5M&data=05%7C01%7C%7C0561326f97c947f2179508dab2e11224%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638018976980251350%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=nI3S11OeJfaAn1zl1dZXJ1LztWZC30qebgpzsu0qg2g%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>
@pelestedt Did using a different pin to D0 resolve your issue?
Hi! Yes that solved it!
According to the Arduino IDE, when installing NmraDcc, the package supports ESP8266. Now trying to run on an ESP8266, Lolin Wemos D1R2, we fail to get any DCC messages decoded. The program and shield works fine on an UNO. Can you assist?