Hello,
I’ve found quiet a mystery and would like to hear your opinions on the topic.
TLDR: Computers do something on the USB port that interferes with my arduino code in runtime.
The story:
I have an Arduino Uno R4 Minima and a Nano.
The circuit is extremely simple: Jumper wires connect the GND and 5V pins on the two devices plus 1 wire between two Digital pins. Furthermore there is a 2x16 LCD connected to the Uno also with jumper wires.
The task: The Nano sends a simple message via the digital pin (the pin is not serial pin just a normal pin[D6]), the uno receives said message and displays it on the LCD.
I put the codes together and it works fine. Until it doesn’t. You see it only works if the Uno is powered by a computer or laptop. If i try to power it from any other source it stops right after startup.
- Powering it from my desktop PC → 5 VDC → It works
- Powering it from my wifes desktop PC → 5 VDC → It works
- Powering it from my work laptop (turned off but gives off power) → 5 VDC → It doesn’t work
- Powering it from my work laptop (turned on) → 5 VDC → It works
- Powering it from 35W charger → 5 VDC → It doesn’t work
- Powering it from power supply via Vin + GND pins → 12 VDC → It doesn’t work
- Powering it from a power bank → 5 VDC → It doesn’t work
- Powering it via power jack → 9 VDC → It doesn’t work
There are no serial dependencies in the code. Not even “serial begin” or print. The weird thing is that from all the PCs and laptops i’ve tried with, only mine has the IDE installed and my work laptop (as always) has most USB rights and everything revoked and it still works when powered via that.
Just out of curiousity, what might cause this?
