Go to advanced search

by austinp
Fri Aug 08, 2014 11:29 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: saa1064, i2c, and python module
Replies: 13
Views: 3613

Re: saa1064, i2c, and python module

No problem at all! Glad I could help :)
by austinp
Thu Aug 07, 2014 1:08 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: saa1064, i2c, and python module
Replies: 13
Views: 3613

Re: saa1064, i2c, and python module

Another quick test just to make sure the 7 segments are good you can send a single command...

i2cset -y 1 0x03b 0x00 0x08

That should turn on every segment in every 7 segment display.

i2cset -y 1 0x03b 0x00 0x00 will turn them all off.
by austinp
Thu Aug 07, 2014 1:06 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: saa1064, i2c, and python module
Replies: 13
Views: 3613

Re: saa1064, i2c, and python module

Try this in order: set control bits (do a reset at first): i2cset -y 1 0x03b 0x00 0x00 set control bits (for 3ma, 10. For specifying control bit 0 to alternate displays, 1): i2cset -y 1 0x03b 0x00 0x11 for digit 1: i2cset -y 1 0x03b 0x01 0xXX (these 'X' are the direction of each segment, for example...
by austinp
Thu Aug 07, 2014 12:53 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: saa1064, i2c, and python module
Replies: 13
Views: 3613

Re: saa1064, i2c, and python module

I think that possibly the key is in the C0 control bit. This bit needs to be set to 1 in order to have all four segments displayed.

If it is set to 0, then only the 1 & 2 segments are displayed.
by austinp
Thu Aug 07, 2014 12:43 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: saa1064, i2c, and python module
Replies: 13
Views: 3613

Re: saa1064, i2c, and python module

Maybe my eyes are deceiving me, but are there two decimals on each 7 segment in that picture?
by austinp
Thu Aug 07, 2014 12:40 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: saa1064, i2c, and python module
Replies: 13
Views: 3613

Re: saa1064, i2c, and python module

Yup, I'd say with it being mounted the idea of this being a wiring issue is probably no longer the case, heh.

I'll see if I can find my old code where I had four segments hooked up. The examples I had here in this post only ever dealt with one.

What make & model is that PCB or is it your own?
by austinp
Thu Aug 07, 2014 12:07 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: saa1064, i2c, and python module
Replies: 13
Views: 3613

Re: saa1064, i2c, and python module

Sounds like an issue with possibly your wiring... Can you upload a photo or a circuit diagram for how you have this done?

Do you have the necessary transistor in your wiring to make use of all four addresses?
by austinp
Thu May 16, 2013 8:24 am
Forum: Automation, sensing and robotics
Topic: Raspberry Pi Home Automation Ideas...
Replies: 30
Views: 36151

Re: Raspberry Pi Home Automation Ideas...

Use an actuator or some other motor to control all the blinds in the house automatically based on time Use an ultra sonic sensor near your front door to tell when you're about to leave your house and pop up a message regarding traffic for your route to work There are all of the voice controlled opti...
by austinp
Mon May 13, 2013 5:02 am
Forum: Automation, sensing and robotics
Topic: PHP to control Python scripts (for GPIO)
Replies: 2
Views: 1350

Re: PHP to control Python scripts (for GPIO)

geekinthesticks wrote:It's probably a permissions problem. Your script will be running as whatever user apache runs under. I think that accessing GPIO generally requires root access.
Seconded.
by austinp
Mon May 13, 2013 4:37 am
Forum: Raspbian
Topic: Raspbian, Wifi, and VPNC?
Replies: 6
Views: 3908

Re: Raspbian, Wifi, and VPNC?

Maybe check the MTU size ?
by austinp
Mon May 13, 2013 3:59 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI and SSD1325
Replies: 5
Views: 2549

Re: SPI and SSD1325

Could you post a picture of the actual wiring job ?
by austinp
Sun May 12, 2013 3:29 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: saa1064, i2c, and python module
Replies: 13
Views: 3613

Re: saa1064, i2c, and python module

I put them on a bread board. I have the pi cobbler so it was pretty easy. My final python code is as such: import smbus import time bus = smbus.SMBus(1) addr = 0x3b bus.write_byte_data(addr,0x00,0x10) segments = {'dp': 0x01, 'a': 0x02, 'b': 0x04, 'c': 0x08, 'd': 0x80, 'e': 0x20, 'f': 0x10, 'g': 0x40...
by austinp
Sat May 11, 2013 2:46 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: trouble installing python-imaging
Replies: 4
Views: 1581

Re: trouble installing python-imaging

Yea, the step that they left out before: sudo apt-get install python-imaging was: sudo apt-get update I'd suggest checking these two things: #1 which revision of the raspberry pi do you have and is the tutorial for that revision? I believe the GPIO pin outs have changed on the different revisions so...
by austinp
Sat May 11, 2013 1:04 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: saa1064, i2c, and python module
Replies: 13
Views: 3613

Re: saa1064, i2c, and python module

I feel stupid. I figured it out though... 0x00 is the subaddress for the control bits so when you send anything to 0x3b, 0x00 your next byte is for the control bits. I kind of figured this but had issues because any time I tried the subaddress 0x01 to do anything with digit 1 nothing happened. Well,...
by austinp
Thu May 09, 2013 2:20 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: saa1064, i2c, and python module
Replies: 13
Views: 3613

saa1064, i2c, and python module

Hello, I'm very new to i2c programming so I'm a little confused about the issue I'm having right now and hoping someone could shed some light on this. I have a saa1064 chip wired up to my pi (rev 2) and using i2cdetect -y 1 it finds it. However it reports its address as 0x3b. All documentation I can...

Go to advanced search