Hi there, just wondering if pduino currently has support for shift registers? a quick google came up with this post from 2009: https://forum.arduino.cc/index.php?topic=6910.0 that seems to suggest that support is coming , but can't seem to find much mention of it since. thanks !
On Fri, 2019-06-28 at 15:38 +0000, school shoes wrote:
Hi there, just wondering if pduino currently has support for shift registers? a quick google came up with this post from 2009: https://forum.arduino.cc/index.php?topic=6910.0 that seems to suggest that support is coming , but can't seem to find much mention of it since.
It seems nobody else is taking care of the pduino library and since I seem to be the last person having worked on it, I feel a bit responsible. I'm not using it often these days, but I find it deserves some love.
Maybe adding support for shift registers is doable, but I don't quite understand what that exactly means. Can you describe in few words what you would like to send from Pd and what the output of the Arduino board should look like?
Roman
Hi Roman, thanks very much for your work on this, i use pduino quite a lot definitely deserves love ! Shift register ics like 74HC59 add extra outputs to arduino but only need 3 pins to control (data, clock, latch) . Looks like arduino does this with a shiftOut() function ( https://www.arduino.cc/en/Tutorial/ShiftOut ) . On the PD side i guess I'm just looking to somehow communicate with the shift register ic and turn its pins HIGH and LOW like the normal I/O pins. Tbh I haven’t used shift registers much myself yet but just looking into them as i suddenly need a considerable amount of outputs, so was wondering if there was a pduino equivalent.
thanks ! ________________________________ From: Pd-list pd-list-bounces@lists.iem.at on behalf of Roman Haefeli reduzent@gmail.com Sent: Saturday, 29 June 2019 8:23 AM To: pd-list@lists.iem.at Subject: Re: [PD] Pduino and shift registers
On Fri, 2019-06-28 at 15:38 +0000, school shoes wrote:
Hi there, just wondering if pduino currently has support for shift registers? a quick google came up with this post from 2009: https://forum.arduino.cc/index.php?topic=6910.0 that seems to suggest that support is coming , but can't seem to find much mention of it since.
It seems nobody else is taking care of the pduino library and since I seem to be the last person having worked on it, I feel a bit responsible. I'm not using it often these days, but I find it deserves some love.
Maybe adding support for shift registers is doable, but I don't quite understand what that exactly means. Can you describe in few words what you would like to send from Pd and what the output of the Arduino board should look like?
Roman
i think you should be able to control a shift register from pd within the existing architecture.
if you can access those 3 pins from pd just send them the HIGHs and LOWs you would send in arduino code…
On 29 Jun 2019, at 04:54, school shoes schoolshoes@outlook.com wrote:
Hi Roman, thanks very much for your work on this, i use pduino quite a lot definitely deserves love ! Shift register ics like 74HC59 add extra outputs to arduino but only need 3 pins to control (data, clock, latch) . Looks like arduino does this with a shiftOut() function ( https://www.arduino.cc/en/Tutorial/ShiftOut https://www.arduino.cc/en/Tutorial/ShiftOut ) . On the PD side i guess I'm just looking to somehow communicate with the shift register ic and turn its pins HIGH and LOW like the normal I/O pins. Tbh I haven’t used shift registers much myself yet but just looking into them as i suddenly need a considerable amount of outputs, so was wondering if there was a pduino equivalent.
thanks ! From: Pd-list pd-list-bounces@lists.iem.at on behalf of Roman Haefeli reduzent@gmail.com Sent: Saturday, 29 June 2019 8:23 AM To: pd-list@lists.iem.at Subject: Re: [PD] Pduino and shift registers
On Fri, 2019-06-28 at 15:38 +0000, school shoes wrote:
Hi there, just wondering if pduino currently has support for shift registers? a quick google came up with this post from 2009: https://forum.arduino.cc/index.php?topic=6910.0 https://forum.arduino.cc/index.php?topic=6910.0 that seems to suggest that support is coming , but can't seem to find much mention of it since.
It seems nobody else is taking care of the pduino library and since I seem to be the last person having worked on it, I feel a bit responsible. I'm not using it often these days, but I find it deserves some love.
Maybe adding support for shift registers is doable, but I don't quite understand what that exactly means. Can you describe in few words what you would like to send from Pd and what the output of the Arduino board should look like?
Roman _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
On Sat, 2019-06-29 at 14:23 +0200, Simon Iten wrote:
i think you should be able to control a shift register from pd within the existing architecture.
if you can access those 3 pins from pd just send them the HIGHs and LOWs you would send in arduino code…
Theoretically yes, but it's probably slow and unreliable. If you could just send the desired bit states from Pd and let the Arduino deal with timing and ordering, data transmission would have less overhead would likely be more reliable.
One could still write a little code snippet for the Arduino and an complementary abstraction based on comport to do something like this. Right now, I would not know how to make that part of Firmata and pduino.
Roman
Hey, no worries. The only indication to me was the very brief reference to it in the forum post i linked to, and the line in the firmata.h file:
#define SHIFT_DATA 0x75 // a bitstream to/from a shift register
So thought I’d ask on the off chance it was an undocumented feature . . .
I'm sure it is possible to hack together the shiftOut() function in pd, though as I’m not a programmer how to do that is not immediately obvious to me,* so guess i was hoping that there was a ‘proper’ or more efficient way to do it via pduino.
As you suggest it’s probably better to do the shift register stuff directly on the arduino, but i’m already in quite deep with pduino for this particular project. .
anyway, thanks for your replies !
*source code for shiftOut():
void shiftOut(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder, uint8_t val) { uint8_t i;
for (i = 0; i < 8; i++) { if (bitOrder == LSBFIRST) digitalWrite(dataPin, !!(val & (1 << i))); else digitalWrite(dataPin, !!(val & (1 << (7 - i))));
digitalWrite(clockPin, HIGH); digitalWrite(clockPin, LOW); } }
From: Pd-list pd-list-bounces@lists.iem.at on behalf of Roman Haefeli reduzent@gmail.com Sent: Monday, 1 July 2019 3:21 AM To: pd-list@lists.iem.at Subject: Re: [PD] Pduino and shift registers
On Sat, 2019-06-29 at 14:23 +0200, Simon Iten wrote:
i think you should be able to control a shift register from pd within the existing architecture.
if you can access those 3 pins from pd just send them the HIGHs and LOWs you would send in arduino code…
Theoretically yes, but it's probably slow and unreliable. If you could just send the desired bit states from Pd and let the Arduino deal with timing and ordering, data transmission would have less overhead would likely be more reliable.
One could still write a little code snippet for the Arduino and an complementary abstraction based on comport to do something like this. Right now, I would not know how to make that part of Firmata and pduino.
Roman
On Mon, 2019-07-01 at 00:33 +0000, school shoes wrote:
As you suggest it’s probably better to do the shift register stuff directly on the arduino, but i’m already in quite deep with pduino for this particular project. .
I just found this proposal: http://www.firmata.org/wiki/Proposals#ShiftIn.2FOut_Proposal
If someone would be able to implement this on the Firmata side, I'd happily support it in [pduino/aruduino]. I don't know how actively Firmata is being worked on, but maybe bring it up on their list (if they have one).
Roman
On Mon, 2019-07-01 at 10:16 +0200, Roman Haefeli wrote:
On Mon, 2019-07-01 at 00:33 +0000, school shoes wrote:
As you suggest it’s probably better to do the shift register stuff directly on the arduino, but i’m already in quite deep with pduino for this particular project. .
I just found this proposal: http://www.firmata.org/wiki/Proposals#ShiftIn.2FOut_Proposal
If someone would be able to implement this on the Firmata side, I'd happily support it in [pduino/aruduino]. I don't know how actively Firmata is being worked on, but maybe bring it up on their list (if they have one).
Yup, they have one: https://sourceforge.net/projects/firmata/lists/firmata-devel
Roman
last update is from 2014...
On 1 Jul 2019, at 10:18, Roman Haefeli reduzent@gmail.com wrote:
On Mon, 2019-07-01 at 10:16 +0200, Roman Haefeli wrote:
On Mon, 2019-07-01 at 00:33 +0000, school shoes wrote:
As you suggest it’s probably better to do the shift register stuff directly on the arduino, but i’m already in quite deep with pduino for this particular project. .
I just found this proposal: http://www.firmata.org/wiki/Proposals#ShiftIn.2FOut_Proposal
If someone would be able to implement this on the Firmata side, I'd happily support it in [pduino/aruduino]. I don't know how actively Firmata is being worked on, but maybe bring it up on their list (if they have one).
Yup, they have one: https://sourceforge.net/projects/firmata/lists/firmata-devel
Roman _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
On Mon, 2019-07-01 at 10:49 +0200, Simon Iten wrote:
last update is from 2014...
Last mail on the mailing list from 2016.... not very active. I guess we could take over Firmata. The task exceeds my skill level regarding C programming, so I leave it to others. I'll be glad to add support for new features of Firmata to the pduino library.
Roman
On Fri, 2019-06-28 at 15:38 +0000, school shoes wrote:
Hi there, just wondering if pduino currently has support for shift registers? a quick google came up with this post from 2009: https://forum.arduino.cc/index.php?topic=6910.0 that seems to suggest that support is coming , but can't seem to find much mention of it since. thanks !
I'm having a hard time finding a source describing comprehensively what the exact capabilities of the current Firmata version are. I wasn't able to find any indication that shift registers are supported by Firmata, so there is not much I can add in [pduino] to support shift registers.
Roman