Step 2: Connect your Jrk 21v3 USB Motor Controller using the USB set up : ( ) Step 1: First you have to download the Pololu Jrk Configuration Utility here is the link:
So my problem was that I didn't set in Pololu Jrk Configuration Utility, Serial interface to "UART, fixed baud rate to 9600", I had it set to "USB Dual Port"
OK I got it to work :D :D :D :D :D :grin: :grin: :grin: :grin: :grin: XD XD XD XD XD XD XD XD XD If the marker's found, next 4 characters are the position Int myTarget = 0 //the health level at any point in time Serial.flush() // Give reader a chance to see the output. MySerial.write((target > 5) & 0x7F) //second half of the target, " " " MySerial.write(0x40 + (target & 0x1F)) //first half of the target, see the pololu jrk manual for more specifics MySerial.write(0xB) //This is the pololu device # you're connected too that is found in the config utility(converted to hex). MySerial.write(0xAA) //tells the controller we're starting to send it commands Word target = x //only pass this ints, i tried doing math in this and the remainder error screwed something up sets the new target for the JRK21V3 controller, this uses pololu high resulution protocal Int myTarget = 0 // target position, 0-4095 is the range of the JRK21V3 controller. SoftwareSerial mySerial(7,8) // RX, TX, plug your control line into pin 8 and connect it to the RX pin on the JRK21v3 * starting with the default configuration settings for LACT2P linear actuators provided on the pololu website * Pololu jrk config utility in Serial mode using UART detect baud rate interface. * Motor control setup for pololu jrk21v3 with Arduino UNO R3, verified using linear actualtor LACT2P I wasted a lot of time trying to figure out arduino serial communication with this pololu jrk21v3 and i finally got it working so I figured I’d post a rough sketch on here so that people in the future can use it as reference.