[PD] compiling for Raspberry Pi 2 (was 2nd Pi 2 issue)
David Medine
dmedine at ucsd.edu
Tue Jul 7 19:46:51 CEST 2015
Apropos of wiringPi, I have created a library for interfacing with the
Texas Instruments ADS1015 ADC on the raspberry pi. These are SPI devices
that come in 12 and 16 bit varieties. As far as I know, the wiringPi
library doesn't have functions to interface with these chips (they've
got their own special SPI handshaking procedure), so I rolled my own.
These are really nice, fairly inexpensive little devices. They have up
to 4 channels per chip and can be programmed to operate in a variety of
different modes (differential pairs, different reference voltages,
etc.). Each query to the chip starts with instructions for how to read
the input, so you can dynamically change how you read in the data in
real time.
There is no Pd extern yet, but I will release one when I get around to
it -- or someone else can beat me to the punch. The library has
everything one needs to exploit the full functionality of the device.
The code (with the archive compiled for pi 1) is on github:
https://github.com/dmedine/ads1015drvr
Adafruit sells little dev boards for the 12-bit version:
http://www.adafruit.com/products/1083
Cheers,
David
On 7/7/2015 7:50 AM, Rick Snow wrote:
>
> Thank you everyone. The wiringPi objects now load. Changing the names
> from l_arm to pd_linux and then running pd as sudo was the solution as
> far as I can tell.
>
> Objects in help files are loading (haven't checked actual
> functionality yet) in PD 43.2 and 46.6.
>
> Luis: Pd_darwin is Mac architecture. I just mistyped in my last message!
>
> On Jul 6, 2015 11:50 PM, "Jaime E Oliver" <jaime.oliver2 at gmail.com
> <mailto:jaime.oliver2 at gmail.com>> wrote:
>
>>> El 06/07/2015, a las 8:52 p.m., Jaime E Oliver
>>> <jaime.oliver2 at gmail.com <mailto:jaime.oliver2 at gmail.com>> escribió:
>>>
>>> the externals will crash pd if it isn't opened with sudo.
>>> J
>> What do you mean with external crash? do you refer the wiringPi
>> externals?
> yes. you need sudo level to access the gpio with those externals
> and will crash if you don't start pd as sudo.
>
> J
>
>
>
>
>
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20150707/c408fc69/attachment.html>
More information about the Pd-list
mailing list