hello
i am working with arduino and raspi with comport spiiting out values from pots attached to the arduino board and i keep getting the endless warnings of
error: unpack type mismatch
error: unpack type mismatch
error: unpack type mismatch?
is there a way to remedy this? i looked around and i heard some people talking about "atof" which i assume is ascii to float.
But i cannot find it anywhere. I thought it was in zexy but maybe i have the wrong name or perhaps i am off the mark entirely
can someone help me out?
pp
Patrick Pagano B.S, M.F.A Audio and Projection Design Faculty Digital Worlds Institute University of Florida, USA (352)294-2020
but ASCII is just bytes, so subtracting 48 should do the ASCII to float job, right? How are you sending values from Arduino to Pd? Do you use Serial.write or Serial.println? use [print] before you send stuff to [unpack] to see what you get. A type mismatch is when you expect a float but you get a symbol, for example.
On Tue, May 19, 2015 at 10:08 PM, Pagano, Patrick <pat@digitalworlds.ufl.edu
wrote:
hello
i am working with arduino and raspi with comport spiiting out values from pots attached to the arduino board and i keep getting the endless warnings of
error: unpack type mismatch
error: unpack type mismatch
error: unpack type mismatch
is there a way to remedy this? i looked around and i heard some people talking about "atof" which i assume is ascii to float.
But i cannot find it anywhere. I thought it was in zexy but maybe i have the wrong name or perhaps i am off the mark entirely
can someone help me out?
pp
*Patrick Pagano B.S, M.F.A* Audio and Projection Design Faculty Digital Worlds Institute University of Florida, USA (352)294-2020
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
?I'm using the arduino2pd patch hans created
i understand what the error is i am hunting the object that will do the adjustment. I will try your suggestion but i think what is popping out is ascii numbers from comport which is reading pot values from 0-1023 the unpack says it's unpack floats but the number box which i assume should be able to deal with floats seems to only be reading ints maybe if i just multply x 0.01?
Patrick Pagano B.S, M.F.A Audio and Projection Design Faculty Digital Worlds Institute University of Florida, USA (352)294-2020 ________________________________ From: Alexandros Drymonitis adrcki@gmail.com Sent: Tuesday, May 19, 2015 3:46 PM To: Pagano, Patrick Cc: pd-list@iem.at Subject: Re: [PD] error: unpack type mismatch
but ASCII is just bytes, so subtracting 48 should do the ASCII to float job, right? How are you sending values from Arduino to Pd? Do you use Serial.write or Serial.println? use [print] before you send stuff to [unpack] to see what you get. A type mismatch is when you expect a float but you get a symbol, for example.
On Tue, May 19, 2015 at 10:08 PM, Pagano, Patrick <pat@digitalworlds.ufl.edumailto:pat@digitalworlds.ufl.edu> wrote:
hello
i am working with arduino and raspi with comport spiiting out values from pots attached to the arduino board and i keep getting the endless warnings of
error: unpack type mismatch
error: unpack type mismatch
error: unpack type mismatch?
is there a way to remedy this? i looked around and i heard some people talking about "atof" which i assume is ascii to float.
But i cannot find it anywhere. I thought it was in zexy but maybe i have the wrong name or perhaps i am off the mark entirely
can someone help me out?
pp
Patrick Pagano B.S, M.F.A Audio and Projection Design Faculty Digital Worlds Institute University of Florida, USA (352)294-2020tel:%28352%29294-2020
Pd-list@lists.iem.atmailto:Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
If the Arduino code uses Serial.println instead of Serial.write,then yes, you are receiving ASCII. If this is the case, try sending one value only and read it with the attached abstraction, which is made to work with Serial.println. If you want to transfer many values which are tagged with some string, use [serial_println2] (it requires [bytes2any] from the moocow library).
On Tue, May 19, 2015 at 11:11 PM, Pagano, Patrick <pat@digitalworlds.ufl.edu
wrote:
I'm using the arduino2pd patch hans created
i understand what the error is i am hunting the object that will do the adjustment. I will try your suggestion but i think what is popping out is ascii numbers from comport which is reading pot values from 0-1023 the unpack says it's unpack floats but the number box which i assume should be able to deal with floats seems to only be reading ints maybe if i just multply x 0.01?
*Patrick Pagano B.S, M.F.A* Audio and Projection Design Faculty Digital Worlds Institute University of Florida, USA (352)294-2020
*From:* Alexandros Drymonitis adrcki@gmail.com *Sent:* Tuesday, May 19, 2015 3:46 PM *To:* Pagano, Patrick *Cc:* pd-list@iem.at *Subject:* Re: [PD] error: unpack type mismatch
but ASCII is just bytes, so subtracting 48 should do the ASCII to float job, right? How are you sending values from Arduino to Pd? Do you use Serial.write or Serial.println? use [print] before you send stuff to [unpack] to see what you get. A type mismatch is when you expect a float but you get a symbol, for example.
On Tue, May 19, 2015 at 10:08 PM, Pagano, Patrick < pat@digitalworlds.ufl.edu> wrote:
hello
i am working with arduino and raspi with comport spiiting out values from pots attached to the arduino board and i keep getting the endless warnings of
error: unpack type mismatch
error: unpack type mismatch
error: unpack type mismatch
is there a way to remedy this? i looked around and i heard some people talking about "atof" which i assume is ascii to float.
But i cannot find it anywhere. I thought it was in zexy but maybe i have the wrong name or perhaps i am off the mark entirely
can someone help me out?
pp
*Patrick Pagano B.S, M.F.A* Audio and Projection Design Faculty Digital Worlds Institute University of Florida, USA (352)294-2020
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list