Go Down

Topic: I"m lost and cornfused (Read 5478 times) previous topic - next topic

Naneen

WOW what a difference. it is counting. I never thought to look at thee resisters. Like I said the package reads 470 ohms but the meter read 47M. Well thank you for hanging in there with me. I don't know how that 4-Digit-7Seg-LED-Display_Arduino-Demo program work. I known with IBM you cannot have a number or - in the file name. That's why you see _ (unscored) instead of - (minus).  Well I'm going back to study your code. I have a lot to learn but I have of time. Problem is how much hair do you have. LOL Sorry it takes so long as I said I live in a nursing home. The wife has a lot of problems and demands a lot of my time.

Naneen

The count routine works fine but the other program Multiplex7Seg. What does it do? All I see is 330 sometime the 0 changes.

PaulRB

The other sketch reads an analog voltage on Arduino pin A0 and displays it's value. Was there a pot (potentiometer/variable resistor) in your kit? 10K would be perfect but 1K or 100K will do. Connect it's centre pin to A0 on the Arduino and the other two pins to 5V and gnd. You should then see the number displayed changes as you adjust the pot, between 0 and 1023 approximately.

larryd

#48
Dec 05, 2015, 06:29 pm Last Edit: Dec 05, 2015, 06:31 pm by LarryD
Naneen, congratulations!
Good for you for staying with your testing.
What is happening:
The library sends one digit at a time to the 4 digit display.
Each digit is displayed for a short time ~3ms.
Persistence of vision marries the 4 digits so it looks like all digits are on.
The library is written to blank (not display) leading zeros.
Is there anything you don't understand in the sketch(s)?

.
No technical PMs.
If you are asked a question, please respond with an answer.
If you are asked for more information, please supply it.
If you need clarification, ask for help.

Naneen

Hello, Sorry I have been busy  making all the segments do what I want. I have written at lease 15 to 20 routines so far. I have the decimal point working. But the colon is throwing me loop. I can make it come on but with the DP at the same time. This is how I learn to write codes for the PLC's at work. Started with the Texas instruments TI5 and TI20 I think then Modicon and on to Allen Bradly. When I looked back at some of the first programs I wrote. I would rewrite than in half of the space the first. I feel  the same way here. I rewrote 2 of my programs all ready. I keep learning new always to use the code. By the way, What is SPI that you refer to. After I post this I will look up MAX7219. And yes I bought the book you recommend. Once again thanks.

larryd

#50
Dec 06, 2015, 08:58 am Last Edit: Dec 07, 2015, 04:05 am by LarryD
SPI information:
http://www.gammon.com.au/spi
And
https://www.arduino.cc/en/Reference/SPI

Max7219 one chip can drive two of your displays.
http://playground.arduino.cc/Main/MAX72XXHardware

http://www.gammon.com.au/forum/?id=11516



The more you practice the easier things become.
Hope things settle down with the wife.
.
No technical PMs.
If you are asked a question, please respond with an answer.
If you are asked for more information, please supply it.
If you need clarification, ask for help.

larryd

#51
Dec 06, 2015, 09:16 am Last Edit: Dec 06, 2015, 09:25 am by LarryD
Here is a project I made, uses two 4 digit common cathode displays driven by one MAX7219.
https://www.youtube.com/watch?v=tG2nqt4Y-Z8

Edit:
If you have nothing to do, ( ;) ) make your seven segment readout show the number of times you push a switch.
No technical PMs.
If you are asked a question, please respond with an answer.
If you are asked for more information, please supply it.
If you need clarification, ask for help.

Naneen

Just for you info I'm still around. Trying to learn this language. Playing with FOR, CASE, SWITCH, and all the other stuff I still have to learn. AS the famous line from the famous movie goes "I'll be back"

by the way MAX7219 order. What a headache.

Go Up