ARC Pro

Upgrade to ARC Pro

ARC Pro is your passport to a world of endless possibilities in robot programming, waiting for you to explore.

PRO
Synthiam
#41  

It would be good for that product to see Spin master to acknowledge the amazing potential the ezb provides before meccanoid becomes the next vaporware. Adding arduino is a backward approach to the usability their platform is meant for. Arduino doesn't open educational options, or expand their market.

Switzerland
#42  

Hi, just got one as well, from a neighbour who was bored with the functionality. tried to translate supplied C# library into EZB scripting ........... but no success. it seems they use 2400baud " start bit - 417us LOW" which I can not set in EZB........ how can I get it working with EZB v4 without using SDK or changing servos?

PRO
Synthiam
#43  

Use the SendSerial() command and select 2400 baud as your baud rate.

Otherwise use the UART commands and set the baud rate to 2400 if you wish to use one of the three hardware uarts on the ezb

Switzerland
#44  

how do I add startbit + stopbit? {LOW, Bit 0, Bit 1, Bit 2, Bit 3, Bit 4, Bit 5, Bit 6, Bit 7, HIGH, HIGH}

Switzerland
#45  

void MeccaBrain :: sendByte(byte servoData){ pinMode(_pmwPin, OUTPUT);

digitalWrite(_pmwPin,LOW); delayMicroseconds(bitDelay); // start bit - 417us LOW

for (byte mask = 00000001; mask>0; mask <<= 1) { // iterate through bit mask if (servoData & mask){ // if bitwise AND resolves to true

  digitalWrite(_pmwPin,HIGH);              // send 1

}else{                                      // if bitwise and resolves to false

  digitalWrite(_pmwPin,LOW);               // send 0
}
delayMicroseconds(bitDelay);                //delay

}

digitalWrite(_pmwPin,HIGH); delayMicroseconds(bitDelay); // stop bit - 417us HIGH

digitalWrite(_pmwPin,HIGH); delayMicroseconds(bitDelay); // stop bit - 417us HIGH

PRO
Synthiam
#46  

If they are using a start bit and 2 stop bits, then you're correct that the ezb will not communicate with their silly use of uart. A suggestion would be to throw an arduino between the two.

Have the arduino take the standard ez-b uart transmission and convert it to the start and 2 stop bits of of the meccanoid.

Or, if you know the commands for the meccanoid... simply create an arduino sketch that transmits the comands to the meccanoid based on input from the ez-b. Publish the meccanoid protocol here and i'll give you a hand.

Switzerland
#47  

have uploaded an EZB project (public, Meccanoid3) which is able to move 1 MeccaNoid servo.

in same EZB project is a script wich contains an arduino sketch that can move all MeccaNoid servos.

and here the lib for arduino:

meccanoid-library.zip