-
Notifications
You must be signed in to change notification settings - Fork 91
End Effector Screen
JamesNewton edited this page Apr 24, 2018
·
41 revisions
The new Tool Interface standard includes a Tinyscreen+ ARM based Arduino compatible processor with a small OLED screen, 4 buttons, and lots of IO. The Tinyscreen+ will listen on the same data bus used by the servos and may return data there or via the dedicated return data line. To decode the Dynamixel V2.0 Protocol, a small serial filter routine can be added to standard Arduino code.
#define ID "\xF0"
//fake header for testing
//#define HEADER "AAB0"
#define HEADER "\xFF\xFF\xFD\x00"
//fake inst for testing
//#define WRITE_INST '3'
#define WRITE_INST '\x03'
char buf[100]; //max packet length?
void setup(){
Serial.begin(9600);
Serial.print("Hello World!");
}
void loop() {
if (Serial.find( HEADER ) && Serial.find(ID)) {
Serial.readBytesUntil('\xFF',buf,min(3,sizeof(buf)));
int l = buf[0]+buf[1]*256; //get the length
buf[0]=0; //incase it's not a write
if ( WRITE_INST == buf[2])
Serial.readBytesUntil('\xFF',buf,min(l,sizeof(buf)));
}
Serial.print(":" );
Serial.println(buf );
buf[0]=0;
//exit(0);
}
To search the Wiki, use the main search box in the black bar at the top, then select WiKi to filter the results or go to https://github.com/HaddingtonDynamics/Dexter/search?type=Wikis&q= and then add your search terms to the end of the URL.
To report errors, or request additional data, please chat with us on discord and/or raise a new issue