A while ago I posted about Sparkfun's UBW32 board. After a lot of reading up on the processor and reading some code samples, I finally have a (sort of) working rudder controller.

In keeping with the spirit of this site, I'm attaching the project files for what I have so far. But just to warn everyone, this code is not flight close to being done. So far it's just getting the servos and GPS all talking together happily.

While this code isn't currently anything usable, anyone looking for some fairly heavily commented code on interfacing GPS and servos with the UBW32 or a PIC32 processor might find it useful.

Any questions or comments are appreciated!

(Since it's hard to tell from the picture, the UBW32 board is powered from a 5v regulator, which powers the servo too at the moment. The GPS is powered through the 3.3v pins on the UBW32 board. Pin F2 is the serial into the board, and D0 is PWM out.)

Tags: code, gps, pic, pwm, servo, ubw

Views: 382

Attachments:

Reply to This

Replies to This Discussion

Thanks Tyler. I have just got a UBW32 yesterday for the purpose of using it to replace a couple of PIC18's in my Tutor 40 so its always great when someone uploads some sample code to get you going. Does this hex load with the UBW32 bootloader or should it be loaded through an ICSP ?
I haven't worked on this project in a while (something about classes or something) so I don't remember all the details.

It should work from the UBW32 bootloader, but yea, just so you know, this code doesn't work too well :P. If you just need to look at something that can interface with a GPS, and servos then I think it might be okay, but yea, just to warn you..

Good luck and tell me how it goes, and I'll be happy to try to help out, but I don't know how much help I'll actually be.

RSS

Social Networking

Contests

Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.

A list of all T3 contests is here

Groups

Advertisement

© 2013   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service