Recent Posts

Pages: 1 ... 8 9 [10]
91
Applications / windows app
« Last post by R19LAM on December 11, 2014, 07:32:12 PM »
To use CPROXY under Windows 7, please try to install CPROXY to different drive, for example to D:CPROXY folder.
92
Questions / Re: Moving balancing robot
« Last post by Lauszus on December 06, 2014, 01:22:59 AM »
Okay cool. Looking forward to see the code :)

Regards
Lauszus
93
Questions / Re: Moving balancing robot
« Last post by hubert9999 on December 06, 2014, 12:39:25 AM »
I haven't checked it yet. But of course I'll do it soon. I haven't posted my code because I writed it from a scratch today and I would like to update it so there wasn't such mess in it. I will do it in next few days and when I finish I will let you know :)
94
Questions / Re: Moving balancing robot
« Last post by Lauszus on December 06, 2014, 12:28:44 AM »
Looking good! :)

Can it handle slopes as well? And is your code available somewhere, so I can take a look?

Regards
Lauszus
95
Questions / Re: Moving balancing robot
« Last post by hubert9999 on December 06, 2014, 12:10:40 AM »
I finally did it! I've got my new PCB and now I'm able to tune PID and control robot from my PC's keyboard. After hours of  tuning I achieved following result:
http://vimeo.com/113750618

It is on my code with two PID loops in cascade setup. I think it works quite well. Thank you very much for all your help. I woldn't do it withoult you Lauszus :)
96
Software development / Re: Values of PID and Zones?
« Last post by Lauszus on December 02, 2014, 04:42:31 AM »
Hi Zara,

Sorry for not getting back to you!

I started by finding the value for positionScaleD and then just moved by way outward until it came back smoothly once you pushed it.

I believe I added velocityScaleStop afterwards to smooth it out a little bit more afterwards.

Regards
Lauszus

97
Software development / Re: Error on using existing Encoder code
« Last post by reinier on November 22, 2014, 12:25:24 PM »
Hi Lauszus,

Thank you for your help.

Regards, Reinier
98
Software development / Re: Error on using existing Encoder code
« Last post by Lauszus on November 18, 2014, 03:13:58 AM »
Hi Reinier,

You will have to include the following file from the USB Host library: https://github.com/felis/USB_Host_Shield_2.0/blob/master/avrpins.h.

You can read more about why here: https://github.com/TKJElectronics/Balanduino/blob/master/Firmware/Balanduino/Balanduino.h#L53-L56.

Regards
Lauszus
99
Software development / Error on using existing Encoder code
« Last post by reinier on November 17, 2014, 03:13:36 PM »
Hi,

I would like to use this peace of code.
I get this error message in my program Mega_prototype

Mega_prototype.ino: In function 'void leftEncoder()':
Mega_prototype.ino:82:27: error: expected ')' before '::' token

The program don't like leftEncoder1::IsSet() and leftEncoder1::Number - 1

What have I forgot to include?


void leftEncoder() {
  static uint8_t old_AB = 0;
  old_AB <<= 2; // Remember previous state
  old_AB |= (leftEncoder1::IsSet() >> (leftEncoder1::Number - 1)) | (leftEncoder2::IsSet() >> leftEncoder2::Number);
  leftCounter += enc_states[ old_AB & 0x0F ];
}

Regards, Reinier
100
Software development / Values of PID and Zones?
« Last post by zara.engineer on November 11, 2014, 05:39:23 PM »
Hi Mr Lauszus

can u help me to know how do you choose the value of Zone A ,B, C, D?
and how do you choose these scale vilocity and position?

what is the strategy to find these variables?

thanx and let me know please
Pages: 1 ... 8 9 [10]