Pages: [1]   Go Down
Author Topic: Arduino UNO Using serial port without USB Connected problem  (Read 460 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Please does anybody have any idea what is going on?
Step 1
Upload the AnalogReadSerial  example to my uno.
Step 2
I have connected pins TX - RX _GND to a 9 pin serial connector and with a null modem to my PC
Step 3
I have open Hyperterminal and I read to my Hyperterminal screen the analogue values from arduino fine.

Problem
If I disconnect USB cable ( power off arduino )
when arduino restart it doesn't send anything to my serial port.
If I upload again the sketch through usb cable everything works fine
I can understand what is going on!

If I upload another example such as blink after disconnect usb cable and connect again power off - on  the arduino example blink works fine.

thanks in advance !!
Logged

East Anglia (UK)
Online Online
Faraday Member
**
Karma: 108
Posts: 4018
May all of your blinks be without delay()
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Are you sure that it is the Arduino that has stopped sending and not Hyperterminal that has stopped responding because of the state of the Arduino pins when it is powered off ?
Logged

Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This happend only if i disconnect usb cable!!
Logged

East Anglia (UK)
Online Online
Faraday Member
**
Karma: 108
Posts: 4018
May all of your blinks be without delay()
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
This happend only if i disconnect usb cable!!
Yes, but what does that do to Hyperteminal I wonder ?
Plugging USB power in again will reset the Arduino so that proves nothing.
Logged

Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

UK
Offline Offline
Shannon Member
****
Karma: 222
Posts: 12524
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have connected pins TX - RX _GND to a 9 pin serial connector and with a null modem to my PC

You're connecting TTL logic level pins directly to an interface using RS232 signal levels? That's a very bad idea. The signal polarity is inverted and the RS232 voltage range can exceed the range that the Arduino will tolerate. For this to work, you'd need a TTL-to-RS232 converter.
Logged

I only provide help via the forum - please do not contact me for private consultancy.

Pages: [1]   Go Up
Jump to: