Discussion in "Project Doubts" started by    sankalp_s    Nov 29, 2014.
Tue Jan 05 2016, 06:19 PM
#61


Do they both give the same result ?

Try this minimal version..does it work ?.



ExperimenterUK


yes sir both give same result.
sir, in this minimal version i can see the rotation on pins but when i connect the leds it gives same result as before i described.
sir are you sure code is ok?
Fri Jan 08 2016, 05:56 PM
#62
The minimal version works, so the logic is okay.
As far as I can see, adding the LEDs should make no difference
to the simulation.

I suggest you add your components to the minimal circuit
one bit at a time and see where it stops working.

Let us know what happens.
Thu Jan 21 2016, 04:31 AM
#63
@ sankalp_s
i fell that problem is in hardware
let me tell one thing when all port is high and all port is low what is status of your leds
if no status change then its like a switching problem or some soldering issue in hardware
Proteus do not need a lot of components for simulation
it just need hex file and oscillator speed to verify your logic
Mon Jan 25 2016, 07:02 PM
#64




I suggest you add your components to the minimal circuit
one bit at a time and see where it stops working.

Let us know what happens.

ExperimenterUK


sir i have tried too many times, after adding more than two leds same problem occurs.
Mon Jan 25 2016, 07:16 PM
#65


@ sankalp_s
i fell that problem is in hardware
let me tell one thing when all port is high and all port is low what is status of your leds
if no status change then its like a switching problem or some soldering issue in hardware
Proteus do not need a lot of components for simulation
it just need hex file and oscillator speed to verify your logic

majoka


hello sir, thank u for your interest ,
sir, I have tried this code with a complete pcb(led chaser) having same components where other programmed microcontroller (came with this pcb) works fine but my code gives same result.
even output pins are same.
Tue Jan 26 2016, 10:21 PM
#66
Make sure the push button input pins are pulled high.

This program will do what Majoka suggested... turn all LEDs on and off in a loop.

Try it in your hardware and let us know what happens
and how fast they switch.

Which micro are you using. ?
Is it exactly the same as the one on the board you bought ?

Attachment


[ Edited Tue Jan 26 2016, 10:22 PM ]
Thu Jan 28 2016, 06:36 PM
#67


Make sure the push button input pins are pulled high.

This program will do what Majoka suggested... turn all LEDs on and off in a loop.

Try it in your hardware and let us know what happens
and how fast they switch.



Attachment

ExperimenterUK


sir this code is working fine in my hardware. and switching time is near about 1 sec.

Which micro are you using. ?
Is it exactly the same as the one on the board you bought ?


i'm using at89c52, same as that one.....push buttons are also pulled high.



[ Edited Thu Jan 28 2016, 06:37 PM ]
Thu Jan 28 2016, 11:18 PM
#68
Okay I took another look at your problem
and I think I know the answer.


problem is in chaser pattern when four led get off(as per code instruction) at same time, same leds blink with very low light.as per instructions lesds should not be blinked.

sankalp_s



Your code says..

DESGN8: 
                CALL DELAY
		CALL ALLON
                CLR L1
                CLR L2
                CLR L3
                CLR L4
                CALL DELAY
                CALL ALLON
                CLR L2
                CLR L3
                CLR L4
                CLR L5
                CALL DELAY
                CALL ALLON
                CLR L3
                CLR L4
                CLR L5
                CLR L6
                CALL DELAY
                CALL ALLON
                CLR L4
                CLR L5
                CLR L6
                CLR L7



You turn the LEDS off for a long time then on for a very short time.
Because the on time is so short the LED appears to glow dimly/blink


Make sure P3.5 is pulled high as well.


[ Edited Thu Jan 28 2016, 11:20 PM ]
 sankalp_s like this.
Fri Jan 29 2016, 06:57 PM
#69


You turn the LEDS off for a long time then on for a very short time.
Because the on time is so short the LED appears to glow dimly/blink



ExperimenterUK


ok sir but what is solution for it. will i have to dump this code?


Make sure P3.5 is pulled high as well.


yes p3.5 is pulled high.


[ Edited Fri Jan 29 2016, 06:58 PM ]
Sat Jan 30 2016, 12:40 AM
#70


ok sir but what is solution for it. will i have to dump this code?

sankalp_s


The code works.
But what you tell it to do is wrong.

To turn LEDs on then off so you can see the effect just add
delays between each change.
For example...
DESGN8: 

		CALL ALLON
                CLR L1
                CLR L2
                CLR L3
                CLR L4
                CALL DELAY  ;delay to see  leds off
                CALL ALLON
                CALL DELAY  ;add a delay to see all leds on
                CLR L2
                CLR L3
                CLR L4
                CLR L5
                CALL DELAY   ;delay to see  leds off
                CALL ALLON
                CALL DELAY  ;add a delay to see all leds on
                CLR L3
                CLR L4
                CLR L5
                CLR L6
               


[ Edited Sat Jan 30 2016, 12:43 AM ]

Get Social

Information

Powered by e107 Forum System

Conversation

Mon Jan 16 2017, 03:15 PM
Rutuja
How can we read notepad file using random acess file
Fri Jan 06 2017, 06:18 AM
muhammad Umar
i need cd4047 library file for protious please help me i s
ExperimenterUK
Wed Jan 04 2017, 09:01 PM
@Emin what is your site user name ?
Tue Jan 03 2017, 11:16 PM
Emin
Emin: I'm already a member since 2012 and entered repeatedly during period. But now it is impossible and obtaining a new registration is also failed. The same error message specifying that two e-mails i entered are different!. In fact thaey are the same. Now, what will be happen, what is your solution? Thanks..
Tue Jan 03 2017, 11:15 PM
Emin
I'm already a member since 2012 and entered repeatedly during period. But now it is impossible and obtaining a new registration is also failed. The same error message specifying that two e-mails i entered are different!. In fact thaey are the same. Now, what will be happen, what is your solution? Thanks..
Sun Jan 01 2017, 03:14 PM
Manoranjana Chary
Write an embedded program of increment and decrement in LCD connected to two keys of int1 and int0. Can u please send me the code for this as fast as possible because i need to submit it in college kindly
ExperimenterUK
Sat Dec 31 2016, 06:28 PM
Happy New Year everyone
ExperimenterUK
Sat Dec 31 2016, 06:27 PM
Please post questions in the forum, the chat box is for chat
Thu Dec 29 2016, 07:47 AM
drashti ranolia
can anyone help me for the microcontroller 8051 programming code for street lights that glow on vehicle movement using IR sensors ?
Tue Dec 27 2016, 11:45 AM
Shubhangi
Do we have to write lookup table for d6t thermal sensor?

Downloads

Comments

jmunjr
Tue Jan 17 2017, 06:25 PM
sarfrosh92
Sun Jan 15 2017, 09:18 AM
Deepakvaishu
Wed Jan 11 2017, 10:25 AM
rana_jee773
Sat Dec 10 2016, 11:22 AM
[email protected]
Thu Dec 08 2016, 11:02 AM
Jonathan.kei
Mon Nov 21 2016, 04:30 PM
AVRuser1
Sun Nov 20 2016, 06:07 PM
JaguarPaw
Thu Nov 17 2016, 07:44 PM

Online

Guests: 27, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 37797
Newest member: jmunjr
Forum Activity
jmunjr Avatar
Posted By jmunjr
Wed Jan 18 2017, 01:23 AM
Digital cameras have a viewfinder, had you conside...
ExperimenterUK Avatar
Posted By ExperimenterUK
Wed Jan 18 2017, 01:19 AM
Digital cameras have a viewfinder, had you conside...
ExperimenterUK Avatar
Posted By ExperimenterUK
Wed Jan 18 2017, 01:12 AM
Quotes can be tricky, but this should work.char *p...
ExperimenterUK Avatar
Posted By ExperimenterUK
Wed Jan 18 2017, 12:56 AM
Here is a new version that works on the circuit y...
jmunjr Avatar
Posted By jmunjr
Tue Jan 17 2017, 06:41 PM
Hi, I have been searching to find examples of a li...
Deepakvaishu Avatar
Posted By Deepakvaishu
Mon Jan 16 2017, 08:31 AM
you are right ..I should not include '\' at t...
Deepakvaishu Avatar
Posted By Deepakvaishu
Mon Jan 16 2017, 06:07 AM
No ,its not the null character, its just the '...
sankalp_s Avatar
Posted By sankalp_s
Sun Jan 15 2017, 07:55 PM
There is a fault in your Proteus design.If you loo...
sarfrosh92 Avatar
Posted By sarfrosh92
Sun Jan 15 2017, 10:04 AM
The 8051 Microcontroller (3rd Edition) by I. Scott...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sat Jan 14 2017, 11:59 PM
The site editor may have removed the 0 from \0.Actually it should not be needed, sochar *phone_no[3 ]={"1234567890" ," 9087654321" ,"76676667676"}; //array of pointers should work.