7 segment display with i2c backpack - Rpi - same digit all t

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
jdawg
 
Posts: 23
Joined: Fri Jul 20, 2012 10:53 pm

7 segment display with i2c backpack - Rpi - same digit all t

Post by jdawg »

I have a Rpi rev 2.

I got my .56" 7 segment display with i2c backpack, soldered the backpack into the 7 segment, making sure that the silkscreen lettering was on the bottom and the decimals were pointing down

installed i2c, did a i2cdetect -y 1 and got 0x70 like I thought.
got the smbus module for python installed
hooked up the wires, got the code from Adafruit git repository

ran ex_7segment_clock.py

no matter what the date, all I get is a "7." or a broken "7." or a "1." showing up in the second hours digit.

what could be the matter?
and how could I use the command line to test the i2c with i2cset command to debug?
or is this a bad backpack?

I also cobbled up this script to test further:

#!/usr/bin/python

import time
from Adafruit_7Segment import SevenSegment

segment = SevenSegment(address=0x70)

def update(hour=0, minute=0):
# Set hours
segment.writeDigit(0, int(hour / 10)) # Tens
segment.writeDigit(1, hour % 10) # Ones
# Set minutes
segment.writeDigit(3, int(minute / 10)) # Tens
segment.writeDigit(4, minute % 10) # Ones
time.sleep(1)


for h in range(9):
for m in range(20):
update(h,m)

User avatar
jdawg
 
Posts: 23
Joined: Fri Jul 20, 2012 10:53 pm

Re: 7 segment display with i2c backpack - Rpi - same digit a

Post by jdawg »

It does the same thing when I hook it up to the Arduino.
It show a 7. broken 7. and a one, nothing else.

So is this a defective part?
How do I return and get a replacement?

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: 7 segment display with i2c backpack - Rpi - same digit a

Post by adafruit_support_mike »

Post a photo of your hardware, specifically showing the solder joints. It sounds like you might have a wonky connection somewhere.

User avatar
jdawg
 
Posts: 23
Joined: Fri Jul 20, 2012 10:53 pm

Re: 7 segment display with i2c backpack - Rpi - same digit a

Post by jdawg »

I probably wonked the soldering.

I have 3 more coming today, and I will be more careful with my soldering. I will post afterwards with my results.

User avatar
jdawg
 
Posts: 23
Joined: Fri Jul 20, 2012 10:53 pm

Re: 7 segment display with i2c backpack - Rpi - same digit a

Post by jdawg »

ok. I have same problem with my latest attempt. i have pictures, but they come out to about 9.2MB

how can I send them to you?

User avatar
jdawg
 
Posts: 23
Joined: Fri Jul 20, 2012 10:53 pm

Re: 7 segment display with i2c backpack - Rpi - same digit a

Post by jdawg »

Just thought I would follow up here.

I solder-wonked (is that a good enough term?) all but one of these. (good thing I bought 3 of them).

It turned out that I had a bad soldering iron, too hot to leave on the board for any length of time, and not hot enough to really do the job right.

So before embarking on the 3rd one. I went down to the store and bought a nice digital soldering iron. Set it to 390F and now it works great. I was able to see the time that I set on it and everything. Now my code to set the alarm works and showing the current time works too.

Nice piece of work on the I2C backpack. It sure makes it easy to do with python.

Jerry

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”