Discuss this article in the SERVO Magazine forums at http://forum.servomagazine.com
Our resident expert on all things
robotic is merely an email away.
Tap into the sum of allhumanknowledge and get your questions answered here!
From software algorithms to material selection, Mr. Roboto strives to meet you
where you are — and what more would you expect from a complex service droid?
Not a lot of questions have been coming my way this
last month, so either everyone is on holiday or everyone is
busy. The season for robot competitions is upon us, so I
assume the latter. A month ago, a reader asked a
seemingly simple question and I assumed it would be
simple to answer. Not so. Although no one needs to prove
this, it proved to me that there is always a LOT more out
there to learn! Look at the question about doing straight,
non-Arduino programming on the Digilent chipKIT MAX32
board if you are curious about this discussion.
With the slew of You Tube videos about walking (and
running!) robots, I’m starting to look more at my bipeds
and other legged robots I haven’t touched in a while and
am getting inspired! How about you?
Last month, a reader asked how to program a chipKIT
MAX32 board directly in MPLAB since he wanted direct
access via C instead of Arduino. I did a little hardware
interface recon using Arduino last month to dust off the
14 SERVO 05.2012
hardware. This month, we’re going to dive in with some
Q(Reprise) I just wanted to reply to a previous issue when you talked about the chipKIT. I have been reading up a good deal about these, and I really
want to explore the chipKIT MAX32. I was wondering if
you could do a more in-depth write-up on this. I would love
to see more of the capabilities of this guy. I know Fred Eady
has done some articles on it, but his are more advanced
topics; and I still consider myself a beginner/novice in the
electronics world. Learning about CAN is still well above my
head. Now I’m not saying I want to see a “Hello World”
program, but I would like to see some of the more basic
stuff such as utilizing the ADC with sensors, basic
timer/interrupts, and the like. Also, I would like to see it
interfaced with MPLAB utilizing C, instead of the Arduino
processing structure. If I want help with that, I can just go
to the Arduino site. I’m more interested in using this as a
development board rather than a small projects board.
— Corey Hastings
A. Corey, here is the chipKIT MAX32 introductory programming, part deux ... There is a time-honored method for learning a new hardware platform or
technology base: Copy someone else’s code and hack on it!
I tried looking for just this thing for the MAX32, and pretty
much fell flat. The ‘net is just not filled with examples, and
certainly not filled with examples for the chipKIT MAX32
when dealing with Microchip’s C32 compiler and MPLAB. I
also found that the documentation for the peripheral
libraries and such for the PIC32 are a little bit in their early
stages. I had to look directly into “.h” files to find out how
to use some functions or find out what they did. (Oh, the
thrills of discovery!)
Regardless, the C32 compiler libraries do a lot to help
us with the quite complex internals of the PIC32 line. Most