Timeline for H11L1 opto isolator does not pass signal to Arduino (correctly)
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 25, 2017 at 20:06 | comment | added | Michel Keijzers | I'm afraid it doesn't work ... going to wait for my new Mega (should arrive any day). | |
Jun 25, 2017 at 13:56 | history | edited | Jot | CC BY-SA 3.0 |
added 292 characters in body
|
Jun 25, 2017 at 13:43 | comment | added | Jot | In the Arduino IDE, in the Library Manager, search for: altsoft. Install the "AltSoftSerial by Paul Stoffregen". Find which fixed pins are for RX and TX ( pjrc.com/teensy/td_libs_AltSoftSerial.html ). Use 9600 baud, and it should work. | |
Jun 25, 2017 at 13:41 | history | edited | Jot | CC BY-SA 3.0 |
added 191 characters in body
|
Jun 25, 2017 at 13:38 | comment | added | Michel Keijzers | I tried with 300, 9600 and 115200 (no changes) ... probably the duplex is the main problem ... I will try this test again when I have the new Mega. | |
Jun 25, 2017 at 13:35 | comment | added | Jot | MichelKeijzers, The SoftwareSerial is useless for you, it can not transmit and receive at the same time. @JamesWaldby With lower baudrates, the interrupts are disabled for longer time. With a full sketch and lots of things going on, it will cause a lot of trouble for sure. | |
Jun 25, 2017 at 13:33 | history | edited | Jot | CC BY-SA 3.0 |
added 236 characters in body; added 4 characters in body
|
Jun 25, 2017 at 13:32 | comment | added | James Waldby - jwpat7 | To the best of my knowledge, "Software Serial works better with higher baudrates. The lower the baudrate, the more trouble you get" is false. In general, software serial is incapable of handling data rates like 115200 without high incidence of errors. OTOH, it should handle 4800, 9600, etc ok | |
Jun 25, 2017 at 13:32 | comment | added | Michel Keijzers | I will try with higher baudrates ... also I changed my sketch (but without much improvement). To be honest, I have a Mega, but I don't 'dare' to use it, since that one is now on a breadboard circuit that I'm for sure knows it works (and by disassembling it, I'm afraid I don't have any working solution). I have ordered a new one, and will test it again when I receive it. | |
Jun 25, 2017 at 13:29 | history | answered | Jot | CC BY-SA 3.0 |