Go Down

Topic: 595 can not count... with Video... (Read 927 times) previous topic - next topic

kokpat

Jun 09, 2011, 07:17 am Last Edit: Jun 09, 2011, 07:47 am by kokpat Reason: 1
I am using the Hello World program which something like 8-bit Counter.
http://www.arduino.cc/en/Tutorial/ShiftOut

The problem is, I found that the LED stop at the middle (ie. restart when counter to ~37)
However, when I add Serial.beign(9600) and start serial monitor the output at the same time.
The counter seems work normally....

http://www.youtube.com/watch?v=Oa0Uo376EUM

I had tested various sample codes and still find the same problem, did I miss something important ?

Many Thx...

Senso


kokpat

I copy the code from
http://arduino.cc/en/Tutorial/ShftOut11

Senso


kokpat

Yes, because I did not know much about 595...

Senso

So, if it stops without the serial code but work with it them there is some error in there.

kokpat

Here is the video.

http://www.youtube.com/watch?v=Oa0Uo376EUM

Please give some advices...

markbee

looks a bit like a current supply problem?

is Vcc/ GND of the 595 really connected? are you using the appropriate resistors?

markbee
XBee blog: http://lookmanowire.blogspot.com/

kokpat

I had connected

Arduino +5V -----------> 595 ----------- VCC (pin 16) + MR pin 10
Arduino GND -----------> 595 ----------- GND (pin 08)

Since it did not have flicking... I did not connect the 1uF capacitor...

Coding Badly


You have an application running in the background that is probing serial ports.  When it opens the Arduino serial port, the board resets.  The typical culprit is a mobile phone or PDA application.

Try disabling auto-reset...
http://www.arduino.cc/playground/Main/DisablingAutoResetOnSerialConnection

markbee

did you use another 595 and has it the same behaviour?

markbee
XBee blog: http://lookmanowire.blogspot.com/

kokpat

Thx to All....
I had worked out for several hours and did not solve the problem...
but finally, I had solved the problem.

The reset is due to the present of "Sony Ericsson PC Companion 2.0" in the system.
^_^

Go Up