Cannot start Serial communication if Opta was first powered by 24V

Hello,

I have a system where I have an Arduino Opta that runs a simple Arduino script to control its relays. A PC sends serial instructions (strings) to the Opta by USB to indicate when to open or close the relays. However, I found out that if the Opta is already powered by the 24V input, then if you plug the USB to the PC, it does NOT reset and allow serial communication. The Opta is not even detected by the PC. However, if I do the opposite (connect Opta by USB THEN plug in the 24V, it works perfectly). Considering that my 24V power supply will be faster to power the Opta than the computer (which has to convert it to 5V), how am I supposed to have a working connection between the two without having to manually unplug the 24V of the Opta everytime I want the PC to connect to it?

Adding a delay of 10 seconds before the Serial.begin(9600); has not fixed the problem.

Thanks a lot for the help

That sounds like a reset problem. Use a scope and determine it the 5V and 3V3 turn on in less then the maximum allowed time and the turnon is clean.

Okay so I have to open the package of the Opta and check if the 5V and 3V3 turn on quick enough is that correct?

Hi,

I have the same parameters as william

  • my opta board is powered by 24v.
  • i use RS485 modbus connection.
  • I read and send modbus messages with an usb RS485 link to my modbus bus.

When I turn my 24 V system on, it seems that the opta program is not loaded (for example the led I programmed doesnt turn on).

If I then plug the opta with the USB C used to upload the opta program (just plugging the usb with arduino IDE loaded)
Then everything works fine and I can even unplug the USB C and it keeps working.

This seems to belong here,

Am I missing something ? Thank you

My issue was same as here.

I had to remove this to work properly.
" while (!Serial)
;
"

2 Likes