tagtool mini

290 views
Skip to first unread message

Juan Pablo Contreras Cea

unread,
Dec 16, 2011, 3:51:48 PM12/16/11
to Tagtool
hello all
I have the following problem


aaaaa1.cpp: In function 'void loop ()':
aaaaa1.pde: -1: error: 'byte' was not Declared In This Scope

As of Arduino 1.0, the 'BYTE' keyword is No Longer Supported.
Please use Serial.write () instead.


can you help me please

Alexander Kampmann

unread,
Dec 18, 2011, 4:34:23 PM12/18/11
to tag...@googlegroups.com
Hello,

have you tried to write your own programm for the arduino?

The message is about an undeclared datatype in the pde- file, this is
"programming stuff".
If you do not try to write your own programm for the arduino, either
your pde file is damaged, so you need to download it again and try
again, or the file needs to be adjusted to the new release of arduino.
If you do try to write your own pde- file (which, as far as I know,
should not be necessary to work with the tagtool), I need your code to
tell anything.

Greetings,
Alex

Richard Hade

unread,
Dec 22, 2011, 4:23:26 AM12/22/11
to Tagtool
Hi!

I have the same problem. I am not programmer, but I think the problem
is because of new Arduino firmware that don't work with old version of
Tagtool Arduino Program. Is here anybody that is programmer and can
update code?

On 18 Gru, 22:34, Alexander Kampmann <alexander.kampm...@gmx.de>
wrote:

scottaandy

unread,
Dec 28, 2011, 10:15:32 PM12/28/11
to Tagtool

mattblackhammer

unread,
Dec 29, 2011, 3:21:52 PM12/29/11
to Tagtool
I just built a tagtool mini and I had the same problem.
For the version still linked from the tagtool site (sketch_deec27b),
the error is thrown by the following line in the source:
Serial.print(((int)des_slider1.predict_t0())/4, BYTE);
with the error message:
"As of Arduino 1.0, the 'BYTE' keyword is no longer supported.
Please use Serial.write() instead."

I found this link:
http://wyolum.com/?p=624
and changed the offending lines using:
Replace Serial.print(val, BYTE); with Serial.write(val);

It did compile and upload.

BUT so far I can not get my tagtool to work. I am trying on a Dell
with Windows 7 and had to install .net4.0 as 2.0 was 32bit, or so it
said. This is off topic but so far I can't tell if this, the arduino
sketch code is the problem, or something else. I tried running
nodekit and do not see anything in the tagtool window when I move the
pots.

Matt

On Dec 18, 4:34 pm, Alexander Kampmann <alexander.kampm...@gmx.de>
wrote:

alvaro Muñozledo

unread,
May 14, 2013, 6:14:21 PM5/14/13
to tag...@googlegroups.com, jpcon...@digitalcolor.cl
errase the BYTE
:)

balam...@gmail.com

unread,
May 23, 2013, 11:42:03 AM5/23/13
to tag...@googlegroups.com, jpcon...@digitalcolor.cl
Like this

// (c) 2009 Thomas Pintaric (tho...@pintaric.org)

template <typename T>
class double_exponential_filter
{
public:
double_exponential_filter(const T _alpha = 1.0) :
alpha(_alpha),
has_observations(false)
{}

void reset() { has_observations = false; }

void observe(const T &x)
{
if(!has_observations)
{
S = x;
S_prime = x;
has_observations = true;
}
else
{
S = (x * alpha) + (S * (1.0-alpha));
S_prime = (S * alpha) + (S_prime * (1.0-alpha));
}
}

bool can_predict() const
{
return(has_observations);
}

T predict_t0(const T _min = 0, const T _max = 1023) const
{
if(!has_observations) return(0);
T x0 = (2.0/(1.0-alpha)) * S - (1.0/(1.0-alpha)) * S_prime;
                        if(x0 < _min) x0 = _min;
                        if(x0 > _max) x0 = _max;
               return(x0);
}
protected:
T S, S_prime, alpha;
bool has_observations;
};

#define DES_ALPHA 0.05f

double_exponential_filter<float> des_slider1(DES_ALPHA);
double_exponential_filter<float> des_slider2(DES_ALPHA);
double_exponential_filter<float> des_slider3(DES_ALPHA);
double_exponential_filter<float> des_slider4(DES_ALPHA);
double_exponential_filter<float> des_slider5(DES_ALPHA);
double_exponential_filter<float> des_slider6(DES_ALPHA);
bool button_pressed = false;

#define SLIDER1 0
#define SLIDER2 1
#define SLIDER3 2
#define SLIDER4 3
#define SLIDER5 4
#define SLIDER6 5

#define BUTTON  7

void sample_inputs()
{
  des_slider1.observe((float) analogRead(SLIDER1));
  des_slider2.observe((float) analogRead(SLIDER2));
  des_slider3.observe((float) analogRead(SLIDER3));
  des_slider4.observe((float) analogRead(SLIDER4));
  des_slider5.observe((float) analogRead(SLIDER5));
  des_slider6.observe((float) analogRead(SLIDER6));
  button_pressed |= (digitalRead(BUTTON) == HIGH);
}

void setup()
{
  Serial.begin(9600);
  sample_inputs();
}

void loop()
{
   if(Serial.available() > 0)
   {
     byte request = Serial.read();
     if(request == 'A')
     {
       //delay(10);
    
       // Slider 1..6
       Serial.print(((int)des_slider1.predict_t0())/4);      
       Serial.print(((int)des_slider2.predict_t0())/4);      
       Serial.print(((int)des_slider3.predict_t0())/4);      
       Serial.print(((int)des_slider4.predict_t0())/4);      
       Serial.print(((int)des_slider5.predict_t0())/4);      
       Serial.print(((int)des_slider6.predict_t0())/4);
       
       // Button
       Serial.print((button_pressed ? 255:0));
       button_pressed = false;
    }
    else if(request == 'N')
    {
      Serial.print("Tagtool.Controller");
    }
  }
  else
  {
    sample_inputs();

stefani...@gmail.com

unread,
Jun 10, 2013, 4:53:18 AM6/10/13
to tag...@googlegroups.com, jpcon...@digitalcolor.cl, balam...@gmail.com

Hi Balam here is Stefanie from Vienna. Last week I built my first tagtool and together with Matthias (one of the founders) I tried to bring the arduino leonardo to work.

But we did not manage to find the right sketch because Leonardo is a quiet new version of arduino. Right now we do not know what to do, but Matthias told me that you are a very good sketch writer and maybe you can help us out.

Thank you very much for any information.

Greetings Stefanie

Matthias Fritz

unread,
Jun 10, 2013, 6:26:29 AM6/10/13
to tag...@googlegroups.com, jpcon...@digitalcolor.cl, balam...@gmail.com, stefani...@gmail.com
Hi all,



We copied this code above - uploaded it onto an Arduino Leonardo (Windows 7) - Uploaded successfully - but Nodekit doesn´t seems to recognize the Tagtool controller after scanning the COM port several times.

Is it the patch? Is it the new Arduino environment? 

Any clue,
iink

funk...@gmail.com

unread,
Jun 10, 2013, 10:55:26 PM6/10/13
to tag...@googlegroups.com, jpcon...@digitalcolor.cl, balam...@gmail.com, stefani...@gmail.com
Hi, to all they have a pane on ass with the LEONARDO Arduino.
 
 I managed to change the code for arduino LEONARDO.
You need to use serial1 rx tx pin (via a rs232ttl to usb Serial cable), due the usb com is not communicating (or i didn´t manage)
the BYTE Problem is solved too, delete the BYTE and Change Serial.print to Serial1.write(valS1 / 4),due some changes in the arduino Software
 
take a look at the rgb leds for the Color brush at. http://www.tagtool.org/wp/2009/06/04/the-gambiological-tagtool/
Mine is working, sooo coool, just using a cutable rgb led Strip on the PWM channels!!!
 
Have FUN
FunkIt all, meine gute TAT für HEUTE...LOL

funk...@gmail.com

unread,
Jun 10, 2013, 10:57:05 PM6/10/13
to tag...@googlegroups.com, jpcon...@digitalcolor.cl, balam...@gmail.com, stefani...@gmail.com
Achso, für die Erfinder arbeite ich jetzt schon, LOL, hab da was an Matthias geschickt....
Reply all
Reply to author
Forward
0 new messages