I'm trying to get my UNO to output Serial.println commands over pin 1 (TX) to a USB-UART adapter on a windows machine that's running PuTTY in Serial mode. The reason for this is that my UNO's application runs smoothly when it's powered over USB and I'm using the IDE as my serial monitor, but when I switch from USB power to a wall-wart I get random issues where my UNO detects signals that aren't present. I'm trying to get serial out over pin 1 working so that I can debug what's going on while the UNO is pulled into a wall-wart.
Can anyone offer me any assistance? I've tried the Software Serial Library without much success..
I would focus on the power problem first. Can you measure the voltage on the Vin pin while being powered from an external source?
One generally shouldn't require software to determine if there is a power supply problem or not. Hardware troubleshooting should be your course of action in my opinion.
When the UNO is powered over USB, I get the serial output in both the IDE serial monitor and in my PuTTY session on the other computer.
However I still run into the issue that when I plug in a wall-wart I don't receive the serial output on the PuTTY session anymore, but the LED does blink so I can verify that the program is running.
When the UNO is powered over USB, I get the serial output in both the IDE serial monitor and in my PuTTY session on the other computer
How is the arduino tx serial data (pin 1) getting to the 'other computer running Putty', a separate TTL serial USB cable or such?
Lefty
Yes, I'm using a Silicon Labs cp2102 based usb to uart adapter.
I hooked up a 5mm blue LED to the VIN and to a GND on the UNO, when USB powered it lights up nice and bright, when on any of my AC Adapters, it doesn't light up at all.. I'm wondering if it will light up at the same time that the serial output works ;)
I hooked up a 5mm blue LED to the VIN and to a GND on the UNO
With a properly size series current limiting resistor I hope?
Lefty
Nope I actually forgot, worked fine when I was powering over USB, but it blew it out when I tried one of my DC plugs :roll_eyes:
I'll never forget that again!
Actually it shouldn't light at all when just powered by the USB, however there does seem to be some +5vdc leakage current through the auto-voltage switching FET that was allowing the LED to light without damage. However when applying external power to the board with a LED without resistor you were effectivly short circuiting the external power module.
So I assume everything is working now as expected once the blue led was removed?
I hooked up a 5mm blue LED to the VIN and to a GND on the UNO
With a properly size series current limiting resistor I hope?
Lefty
Nope I actually forgot, worked fine when I was powering over USB, but it blew it out when I tried one of my DC plugs :roll_eyes:
I'll never forget that again!
Actually it shouldn't light at all when just powered by the USB, however there does seem to be some +5vdc leakage current through the auto-voltage switching FET that was allowing the LED to light without damage. However when applying external power to the board with a LED without resistor you were effectivly short circuiting the external power module.
So I assume everything is working now as expected once the blue led was removed?
Lefty
Everything is working as it has been, the pin 9 led turns on and off, and when I am powered over usb I see my serial output, when powered over DC in I still just get the pin 9 led cycling and no serial output.
Everything is working as it has been, the pin 9 led turns on and off, and when I am powered over usb I see my serial output, when powered over DC in I still just get the pin 9 led cycling and no serial output.
And Vin measures what when on only external power?
Everything is working as it has been, the pin 9 led turns on and off, and when I am powered over usb I see my serial output, when powered over DC in I still just get the pin 9 led cycling and no serial output.
And Vin measures what when on only external power?