Go Down

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

Naneen

No I have a ATTINY85 and a L2930NE. Will stop by Radio shack and see what they have. other wise wait for online order.

PaulRB

#16
Dec 03, 2015, 05:44 pm Last Edit: Dec 03, 2015, 05:57 pm by PaulRB
Not sure what L2930NE is. If it is another code for L293D, you might be able to use that. L293D is really for driving small DC motors, but it has 4 outputs and you have 4 common cathode pins...

Naneen

OK I wired my board according to the LarryD print. And I copied the program by LarryD but no luck. I have recheck my wiring several times. If I check volts between GRN and Collector of the transistor should I read 5VDC?

larryd

#18
Dec 04, 2015, 05:48 am Last Edit: Dec 04, 2015, 06:07 am by LarryD
First assumption is the drawing does refer to your specific display.
You will see 5v collector to emitter (GND) when the transistor is turned off (no base current).

- You do have D2-12 on the Arduino connected the the resistors as per drawing and you do have the Arduino program running on the controller?
- What happens if you place a wire from display pin 12 to ground? (a-g must have 470 ohm resistors)?

Can you show us your wiring?

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

#19
Dec 04, 2015, 06:01 am Last Edit: Dec 04, 2015, 06:05 am by LarryD
Have you confirmed the pin out of the display?
For segment a
+5v ----- 470 -------  segment a pin11 ------- cathode pin12 to ground (then 9,8,6)
For segment b
+5v ----- 470 ------- segment b pin7 ------- cathode pin12 to ground (then 9,8,6)

etc.
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

#20
Dec 04, 2015, 06:06 am Last Edit: Dec 04, 2015, 06:11 am by Naneen
Can you show us your wiring. Not sure how. I am not strong on IBM type I fact I don't think I ever have put a picture on the web.

Naneen

LarryD I am sorry but half of what I write is not posting. What happens if you place a wire from display pin 12 to ground? (a-g must have 470 ohm resistors. Nothing happens. No I do not know how to post pictures to the computer. I do not have your program. Not sure how it is to be import to my Arduino. I know a lot of I don't know.

Naneen

tomorrow I will buy a bigger breadboard. this one is crowd. I believe that I have it wired correctly. When my grand daughter comes over I will have her take some pictures to post in the forum. now on to your program.  I copy your program to the Arduino libraries. then what?

larryd

#23
Dec 04, 2015, 06:48 am Last Edit: Dec 04, 2015, 07:02 am by LarryD
You download the library and the sample program from the link in post #5
http://learn.parallax.com/4-digit-7-segment-led-display-arduino-demo
Scroll to this image on the page:


Then review these to web links:
https://www.arduino.cc/en/Guide/Libraries
And
https://learn.adafruit.com/adafruit-all-about-arduino-libraries-install-use/how-to-install-a-library

=============================================================
Have you confirmed the pin out of the display?
For segment a
+5v ----- 470 -------  segment a pin11 ------- cathode pin12 to ground (then 9,8,6)
For segment b
+5v ----- 470 ------- segment b pin7 ------- cathode pin12 to ground (then 9,8,6)
For segment c
+5v ----- 470 ------- segment c pin4 ------- cathode pin12 to ground (then 9,8,6)
For segment d
+5v ----- 470 ------- segment d pin2 ------- cathode pin12 to ground (then 9,8,6)
For segment e
+5v ----- 470 ------- segment e pin1 ------- cathode pin12 to ground (then 9,8,6)
For segment f
+5v ----- 470 ------- segment f pin10 ------- cathode pin12 to ground (then 9,8,6)
For segment g
+5v ----- 470 ------- segment g pin5 ------- cathode pin12 to ground (then 9,8,6)
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

#24
Dec 04, 2015, 06:58 am Last Edit: Dec 04, 2015, 06:59 am by LarryD
To attach an image file (jpg), click "REPLY" then click "Attachments and other options" follow directions, example:


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

trying to load your program. Error message Reads:
The library "4-Digit-7Seg-LED-Display_Arduino-Demo" cannot be used. Library names must contain only basic letters and numbers. (ASCII only and no spaces, and it cannot start with a number)

Run Arduino, open Sketch, Open Include Library, Click on Add Zip Library, open folder download, highlight 4-Digit-7-Seg-LED-Arduino-Demo, click on open, receive above error message. I am using version 1.6.6


larryd

#26
Dec 04, 2015, 09:07 am Last Edit: Dec 04, 2015, 09:40 am by LarryD
I copied my installation of the library.
See the attached ZIP file.
Download it, install this version, as directed in the links above.
When properly installed it should be in a directory similar to below:

C:\Users\YourName\Documents\Arduino\libraries\Multiplex7Seg

I have include the following example in the ZIP file it can be accessed from IDE/Examples :
Code: (Multiplex7SegExample4Counter.ino) [Select]

#include <Multiplex7Seg.h>

byte digitPins[] = {9, 10, 11, 12};         // LSB to MSB
byte segmentPins[] = {2, 3, 4, 5, 6, 7, 8}; // Segment a to g
int counter;

void setup() {
  Multiplex7Seg::set(1, 4, digitPins, segmentPins);   // Initialize
  // See the example in Multiplex7Seg library for initialization parameters
}

void loop() {
  //Multiplex7Seg::loadValue(millis() / 10);  // Display incrementing value
  Multiplex7Seg::loadValue(counter++);  // Display incrementing value
  counter = counter % 10000; //at 10000 reset to zero
 
  delay(100);
}


Download the ZIP file below
.
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

#27
Dec 04, 2015, 09:14 am Last Edit: Dec 04, 2015, 09:15 am by LarryD
Close all your Arduino windows after installation.
Start the IDE up again.
The Multiplex7Seg will be recognized and you will see two examples offered to you when you select: File/Examples/Multiplex7Seg
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

Note:
Using a ULN2803 suggested in one of the posts above may not work as there is a saturation voltage of 1.2 volts on its outputs.

The 2N2222 transistors work well.

.
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.

Paul__B

Note:
Using a ULN2803 suggested in one of the posts above may not work as there is a saturation voltage of 1.2 volts on its outputs.
It will work, but not well.

Not a good idea to use that series.  If you must buy things, buy TPIC6B595s - the shift register version with a proper driver.

Saves you pins on the Arduino.

Go Up