Show Posts
|
|
Pages: [1] 2
|
|
3
|
Using Arduino / Sensors / Re: BI-DIRECTIONAL PEOPLE SENSOR AND COUNTER USING ARDUINO BOARD
|
on: December 17, 2012, 09:22:09 am
|
|
Mike,
I slept 5am this morning working on this, my hardware is perfect. My verbose 000--999 counting code I posted before works flawlessly have even tried to do another simplified counting code and all counts perfectly. The problem is in the software(the code you sent to me) No matter what I change 0 or ones the display stays the same all through.
Steffano
|
|
|
|
|
5
|
Using Arduino / Sensors / Re: BI-DIRECTIONAL PEOPLE SENSOR AND COUNTER USING ARDUINO BOARD
|
on: December 16, 2012, 10:27:27 am
|
Mike, I am completely lost even after changing the code it displays some funny characters and only digits 1 and 3 are enabled. The lit segments on both digits 1 and 3 are a,b,c and d the rest of the segments are off. My verbose digitalwrite long counter still works fine even after swapping the 37,38 and 39 pins for 25,26 and 27 on PORTA. Schematics to follow in a bit. Steffano.
|
|
|
|
|
6
|
Using Arduino / Sensors / Re: BI-DIRECTIONAL PEOPLE SENSOR AND COUNTER USING ARDUINO BOARD
|
on: December 13, 2012, 10:46:10 am
|
|
Mike,
I am still struggling with the display code to be honest. it lights my first digit wired to pin 37 and the digit is not clear enough can only see number 1. my seven segments (a to f) are wired to pins 30 to 36) and my digit enable pins are 37, 38,39 and up to now I can't figure it out.
Thanks.
|
|
|
|
|
8
|
Using Arduino / Sensors / Re: BI-DIRECTIONAL PEOPLE SENSOR AND COUNTER USING ARDUINO BOARD
|
on: December 05, 2012, 03:55:34 pm
|
|
Mike,
I have rearranged the byte digitpatterns and atleast something is coming up on my display,though can't recognise what digits they are apart from digit 1, however, This is not exactly what I want but I will keep working till I achieve this.
This time round I will be mature to ask for any more help as these ideas are great and very helpful.
Much thanks
Steffano.
|
|
|
|
|
14
|
Using Arduino / Sensors / Re: BI-DIRECTIONAL PEOPLE SENSOR AND COUNTER USING ARDUINO BOARD
|
on: December 04, 2012, 10:31:39 am
|
|
Hi Rob,
That's true, I can print on the serial monitor and that's where I can see the counting up/down. And I also have the code that counts from 0 to 999 back to 0. All I want to know is how to fix the counting code to be called upon the interrupts occurring so as to update the counter and hold that count till the next sequence of interrupts. Am glad you are willing to help. Thanks.
Steffano.
|
|
|
|
|
15
|
Using Arduino / Sensors / Re: BI-DIRECTIONAL PEOPLE SENSOR AND COUNTER USING ARDUINO BOARD
|
on: December 04, 2012, 09:17:43 am
|
|
My infrared sensors do give very clean pulses since they are hooked to a schmitt trigger. My version of interrupts does work well as it captures all the 4 changes on the 2 pins of my sensors, having said that I still need help integrating the function to display 0-999 incrementing or decrementing as neccessary. I do take the advice from reply #15. I am also taking in all the advice so far given and much thanks to all.
|
|
|
|
|