Skip to content

Torque usage #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
b001632
rearranging files / accept Serial object as argument
thatpixguy May 23, 2015
7b3a5a5
rename uint32 -> uint32_t
thatpixguy May 24, 2015
35db104
make sendPacket accessible
thatpixguy May 30, 2015
16a6271
Added Arduino example sketch. Updated readme.
sighmon May 30, 2015
8eb98cc
Merge branch 'master' of github.com:hackerspace-adelaide/XL320
thatpixguy May 30, 2015
8654375
Added an example to show how to set the serial baud rate for a servo.
sighmon Jun 6, 2015
134a054
removed hello-spoon specific joint id behaviour
thatpixguy Jun 6, 2015
9f01c36
Merge branch 'master' of github.com:hackerspace-adelaide/XL320
thatpixguy Jun 6, 2015
6b3e5b2
Added ability to set the servoID to the example.
sighmon Jun 6, 2015
9ec18c8
Added random servoID selection to the example sketch.
sighmon Jun 6, 2015
6857ead
Updated the readme with setting the baud rate instructions and also s…
sighmon Jun 6, 2015
f417984
removed yet more HelloSpoon specific joint behaviour
thatpixguy Jun 6, 2015
3924c94
Merge branch 'master' of github.com:hackerspace-adelaide/XL320
thatpixguy Jun 6, 2015
87d09f2
readPacket implementation
thatpixguy Jun 7, 2015
49bab05
XL320::Packet object for analysing a packet
thatpixguy Jun 7, 2015
b5d859f
fewer redundant gotos in FSM. fixed(?) length test
thatpixguy Jun 8, 2015
af5f804
use Packet to construct data for sendPacket
thatpixguy Jun 8, 2015
2b772de
Added work in progress of a Half Duplex Hardware Serial example to re…
sighmon Jun 10, 2015
0e2835d
fixing generated packets and checksums
thatpixguy Jun 11, 2015
5292983
Merge branch 'master' of github.com:hackerspace-adelaide/XL320
thatpixguy Jun 11, 2015
0a6abf3
varargs Packet constructor, implemented getJointPosition
thatpixguy Jun 13, 2015
9140acb
Add missing images
sighmon Sep 30, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 32 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,42 @@
HelloSpoon-Spark
=============
Dynamixel XL-320
================

**Work in progress... not ready yet! Really.
<img src="XL320-arduino-library.jpg" width="100%" alt="Dynamixel XL-320 servo library for Adruino" title="Dynamixel XL-320 servo library for Adruino">

This is a library created to control HelloSpoon robot DIY version.
HelloSpoon is a mealtime companion robot intended to feed children and elderly
with upper limb difficulties while giving them an entertaining time.
## A Servo library for Arduino

HelloSpoon hardware is based on:
Clone this repository into your Arduino libraries folder:

Spark Core - http://docs.spark.io/hardware/
``` $ cd ~/Documents/Arduino/libraries/ ```

DYNAMIXEL XL-320 servos - http://support.robotis.com/en/product/dynamixel/xl-320/xl-320.htm
Restart Arduino app. :-)

For wiring, programming tutorials and more, please go to the Wiki section of this page.
Open the example Arduino sketch to see how it works:

Code based on:
``` File > Examples > XL320 > XL320_servo_example ```

Ax-12+ Half Duplex USART Comunication Copyright (c) 2011 Savage Electronics
and Dynamixel Pro library for OpenCM-9.04 made by ROBOTIS, LTD.
### Hardware

Modifications made by Luis G III for HelloSpoon robot.
[DYNAMIXEL XL-320 servo manual](http://support.robotis.com/en/product/dynamixel/xl-320/xl-320.htm) including specifications and message sending addresses.

Webpage - http://hellospoonrobot.com
Twitter - @HelloSpoon
Youtube - http://youtube.com/user/hellospoonrobot
### Wiring diagram

Looking from above, with the servo head at the top, wire the left plug of the servo to:

* PIN1: GND
* PIN2: 5 volts
* PIN3: Serial TX

![Dynamixel XL-320 wiring diagram](XL320-wiring.jpg)

### Setting the servo serial baud rate & servoID

We've included some example sketches to help test and setup your servos. Out of the box they're set to communicate via serial at 1Mbps, so you might want to set them down to something more managable by Arduino at 115200.

Follow the instructions in the sketch ```XL320_servo_set_baud_rate_or_id.ino``` and don't forget to power cycle the servos in between setting anything.

Note: when setting the ServoID, the servos default down to 9600 baud, so after you set the servoID you'll need to set the baud rate back up to 115200.

### More information

Read more about this library on the [Hackerspace Adelaide Wiki](http://hackerspace-adelaide.org.au/wiki/Dynamixel_XL-320)
Binary file added XL320-arduino-library.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added XL320-wiring.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading