Results 1 to 3 of 3

Thread: openlog with openCM9.04 for dynamixel motor.

  1. openlog with openCM9.04 for dynamixel motor.

    Basically I need to use openlog (https://www.sparkfun.com/products/13712) in openCM9.04(http://www.trossenrobotics.com/open-cm-904c) . Openlog is a datalogger that stored the information in the SD card. After read up some posts, I notice I need to insert “SD.h” library in the program. It is a library for SD card work with Arduino. The openCM9.04 package didn’t come with the SD.h , so I download it from Arduino.


    But I encounter some issue, that is the reason I email you few days ago. After some troubleshooting, I notice I need to change the “Arduino.h” to “Pandora.h” to suit the OpenCM9.04. Besides that, the arrangement of library is different as the OpenCM9.04 using older Arduino IDE version, while the source file I downloaded is in the latest version of Arduino. However, I think I manage to solve these two issues as the errors didn’t appear.

    But the problem that I encounter now is my error start to recognize the SPI pin (SS, SCK,MISO,MOSI). It not able to recognized the terms. After some troubleshooting, I found out the “Arduino.h” include “avr” directory (The AVR language is a "C" environment for programming Atmel chips), while the OpenCM9.04’s “Pandora.h” don’t have the avr directory. So far, I have modified these few SPI number (SS-pin 0; SCK- pin 1; MISO-pin 6; MOSI-pin 7) in “Sd2Card.h” in the utility library and some other troubleshooting. But the problem still insist, hence I suspect that might be the reasons for the error.
    Any people that have similar experience on this? Thanks you so much!

  2. #2

    Re: openlog with openCM9.04 for dynamixel motor.

    Yes the SPI peripheral on the AVR based Arduino boards is different from the SPI peripheral on the OpenCM board.
    I would not expect AVR-based libraries to work on the OpenCM as a general case -- the microcontrollers are very different.

    There are a few libraries out there that can read/write SD cards using the STMicro ARM chip that's on the OpenCM.
    For example, a Google search found this:
    https://stm32f4-discovery.net/2014/0...2f4xx-devices/
    That's based on a slightly newer variant of the chip (F4 instead of F103 if I recall correctly) but it may be possible to adapt.

  3. Re: openlog with openCM9.04 for dynamixel motor.

    Quote Originally Posted by jwatte View Post
    Yes the SPI peripheral on the AVR based Arduino boards is different from the SPI peripheral on the OpenCM board.
    I would not expect AVR-based libraries to work on the OpenCM as a general case -- the microcontrollers are very different.

    There are a few libraries out there that can read/write SD cards using the STMicro ARM chip that's on the OpenCM.
    For example, a Google search found this:
    https://stm32f4-discovery.net/2014/0...2f4xx-devices/
    That's based on a slightly newer variant of the chip (F4 instead of F103 if I recall correctly) but it may be possible to adapt.

    hi
    thanks you so much! it really help me alot! i would try to figure out with the reference link that you give me! thanks so much.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Project Dynamixel - my motor driver replacement
    By bohun in forum Project Showcase
    Replies: 0
    Last Post: 10-26-2015, 04:19 PM
  2. OpenCM9.04 and Dynamixel AX-12A
    By ritzdank in forum Robot Computers
    Replies: 9
    Last Post: 09-13-2015, 02:17 AM
  3. Question(s) Control AX/RX Dynamixel with Roboplus task with OpenCM9.04 type C + OpenCM 485 EXP
    By kongguan in forum DYNAMIXEL & Robot Actuators
    Replies: 0
    Last Post: 04-22-2015, 04:21 AM
  4. Measuring Torque of MX64 dynamixel motor
    By jek in forum DYNAMIXEL & Robot Actuators
    Replies: 7
    Last Post: 04-11-2015, 10:08 AM
  5. Question(s) Dynamixel MX-28T: installed Maxon RE-max motor?
    By fjp in forum DYNAMIXEL & Robot Actuators
    Replies: 4
    Last Post: 05-30-2013, 07:12 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •