OpenSprinkler › Forums › Hardware Questions › Want to add DAC to OSPI. Need access to GPIO pins?
- This topic has 6 replies, 3 voices, and was last updated 10 years, 8 months ago by
Ray.
-
AuthorPosts
-
July 1, 2015 at 8:49 pm #38929
AnonymousInactiveI have my OSPI in my garage sucessfully running my 15 sprinkler stations. Since its in the garage, I thought I might as well use it as an mp3 player/media client. I have installed MPD, and also an UPnP renderer to listen to music both locally, and via my home network. Right now, I am using the mini stereo output hooked up to an old auto amp (12VDC, 25W), and then sent to some old truck box speakers. Obviously, the sound is not great, but good enough for now. I got to doing some research on DAC’s, and I’d like to get an I2S DAC.
My setup now is OSPI on a Raspberry Pi 2, so, to hook up the DAC I would need access to the GPIO pins. I’ve included a pic with the pins I need, I think???
The first question, is this even possible? If so, how?
Attachments:
July 1, 2015 at 10:30 pm #38937
RayKeymasterNote that OSPi has a PCF8591 A/D D/A converter on-board, which provides 1 channel of DAC. Would this suffice for your need? I think it’s only 8-bit so I am not sure if the resolution is sufficient. PCF8591 uses I2C.
I am not familiar with I2S — did you mean I2C?
July 1, 2015 at 10:36 pm #38939
RayKeymasterOn second thought: why do you have to use a DAC? Doesn’t RPi have an audio out connector? If so, you should be able to play MP3 directly, isn’t it?
July 2, 2015 at 10:18 am #38945
AnonymousInactiveI am not familiar with I2S — did you mean I2C?
I’m not sure? Still learning here. Did the picture make any sense to you? From what I’ve read, The rev 1 pi used an 8-pin header (P5 in the image), which is referred to as I2s. The ver. 2 incorporates this pins into the gpio. Most newer cards just mount directly to the gpio, which obviously is not an option.
The audio out is only 11 bit. Looking for a little better. Just because😁
July 2, 2015 at 11:27 am #38946
AnonymousInactiveDOH! JUst found the GPIO pin out on the OSPI board. 😳
So, in theory, I could just add a header, and run the DAC from those pins, right?
From the diagram in the screenshot, do you see anything that would interfere with the operation of the OSPI?
September 21, 2015 at 6:58 am #40309
JeromeParticipantHello !
when using PF8581 with python script, is there some special precaution to avoid interferences between opensprinkler services about RTC DS1307 and the new script that will use PF8591 in an asynchronous manner ?
Thanks
JeromeSeptember 22, 2015 at 12:43 am #40321
RayKeymasterThe two chips have different I2C addresses, so there shouldn’t be any interference.
-
AuthorPosts
- You must be logged in to reply to this topic.
OpenSprinkler › Forums › Hardware Questions › Want to add DAC to OSPI. Need access to GPIO pins?
