Main Site Documentation

Razor 9DOF - Any tutorials/guides?


#1

Hi, I’ve just received my Razor 9DOF, and having never programmed any arudino chips I haven’t a clue where to get started. Would any of you guys be able to either give me a quick “how to get started” guide, or point me to a good resource dealing with it?


#2

I believe Chris already wrote the code for that device.

This topic should contain some info on it:
http://tinyclr.com/forum/1/505/

Might be that it’s somewhere on his site:
http://www.chrisseto.com


#3

Indeed I’ve seen that, however I haven’t the slighest clue how to even connect the thing to a computer :slight_smile: I need the most basic guide possible.


#4

You will need a FTDI basic board + cable.

You can find them at sparkfun:
http://www.sparkfun.com/search/results?term=FTDI+basic&what=products

Also, make sure this cable/board has the right voltage!!! (3.3Volts)
For even more info, Chris is your man :slight_smile:
Hope I could help you so far.


#5

Thanks, I’ve already ordered that board, and regarding the cable am I right thinking that I can just solder some wires between them?

I’m currently trying to get my panda to navigate through the test firmware, but I’m struggling, I recon I should just wait for the board.


#6

Yes, on the images provided by sparkfun you can see that the breakout has the same connections as the razor:

[ulist]
DTR
RX
TX
3.3V
CTS
GND
[/ulist]

You could also use a angled header to connect them, that’s up to you.
I am more satisfied with stronger connections. :stuck_out_tongue:


#7

Robert’s right that a regular 3.3V FTDI cable will work – from SFE.

The UART will handle up to 5V, so I just connect it directly to my Arduino with the ATMega removed

As for connecting the board to your uC, you need to connect, at a minimum:
3.3V
TX (on the 9DoF)
GND

See RWAR’s source code for more details on how to read it, but note that my driver is pretty sloppy. It could be done much better.

Also note that I have a firmware mod to allow for ask-tell communication.

http://files.chrisseto.com/1tK


#8

Thanks guys, I’m snowed in over here, so no workshop time for me anytime soon :frowning: That means I won’t get my FTDI connection anytime soon. Is it possible to use the test firmware that comes with the RAZOR in order to get the readings out of it? I was trying to follow the code in C, but got slightly lost…


#9

You can get readings out of it with the test firmware, yes. You need to send it some data to start the readings, though.

It will also be sorta inaccurate compared to the AHRS code.


#10

Cheers, I’m sending it a 0x1A and getting loads of data back, now trying to get it parsing so that I get the data between the $ and # signs - Am I going the right way about this? I’m hoping tha should give me a string with all the outputs


#11

Yep, that’s the way to do it. When you get your FTDI board, you can do something better, but for now, that will work.


#12

Could you also keep track of your progress?
I’m getting curious about this board.

Thanks :wink:


#13

Well I’m having a bit of trouble right now.

What I’m doing is I’m opening the port, waiting for 5 seconds during which I manually reset the RAZOR, which then sends what I believe to be the welcome message (143 bytes, same every time). After that I send that byte, or I try sending a 2 to test the magnetometer, but I receive no reply. Going to try playing around with it more now.

Keep in mind I’m not very experienced, I’ve only worked with PICAXE before and most of the stuff I do is computer programming, so just because i’m struggling with it doesnt mean its difficult :slight_smile:


#14

It would really help if you had an FTDI board for troubleshooting. I have never talked to the stock FW, so I don’t really know how it works. It’s not really meant for normal operation, it’s just a simple proof-that-it-works sorta deal.


#15

Fair enough, I recon I’ll just wait then… Teacher wants me to some paperwork… What a pain, I hate writing, I just want to play around with the cool gadgets :slight_smile:


#16

Yeah, there isn’t any point to the stock FW. It’s not compensated, it just outputs what it reads.