Own made Gyro

This is where you talk about the NXJ hardware related topics such as the brick, sensors, LEGO pieces, etc.

Moderators: 99jonathan, roger, imaqine

Own made Gyro

Postby Machiel » Thu Nov 13, 2008 12:20 pm

As you have read, I am building my own Gyro.

My question is. Have you ever done something similar?
What were your problem area's? Do you like to share?

For the people who haven't have been building their own sensors. Have you got any valuable information wich you like to share (e.g. drivers.)

And what code should I use for building the driver?

signed,
Machiel.
Machiel
Novice
 
Posts: 60
Joined: Tue Sep 09, 2008 11:36 am
Location: Netherlands

Postby gloomyandy » Thu Nov 13, 2008 12:26 pm

Hi,
I built my own accelerometer/tilt sensor that I used to create my NXT segway robot. I actually hacked one of the Lego sound sensors to do it (since I had two and never use them)... It is easy to use the existing hardware buffer amplifier that is on that board (well relatively easy! You have to cut tracks and solder wires). You can also pick up power etc from the existing hardware...

So what are you using to build the sensor with? How do you intend to access it (I2C, analogue?).

Andy
User avatar
gloomyandy
leJOS Team Member
 
Posts: 4239
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Postby Machiel » Thu Nov 13, 2008 1:35 pm

Yeah I2C,

Do you have some documentation on that project?

Like photo's or whatever?

I'd like to see them.
Machiel
Novice
 
Posts: 60
Joined: Tue Sep 09, 2008 11:36 am
Location: Netherlands

Postby gloomyandy » Thu Nov 13, 2008 2:28 pm

Hi,
Not of building the sensor but you can read a little about the robot here:
http://www.gloomy-place.com/legoindex.htm

Andy
User avatar
gloomyandy
leJOS Team Member
 
Posts: 4239
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Postby Machiel » Wed Nov 26, 2008 8:44 am

I have another question:

Did you build a driver for the sensor or is there one available in the leJOS package?
WHAAAAAAAA!
I have skype: Machiel.veldkamp ADD ME! :D
Machiel
Novice
 
Posts: 60
Joined: Tue Sep 09, 2008 11:36 am
Location: Netherlands

Postby Machiel » Wed Dec 10, 2008 1:19 pm

I have a question for the harware freaks: (gloomyandy?)

Is the I2C input device set up as a MASTER or as a SLAVE?
I am (together with a colleague) programming the PIC16F690 so that I can read the vallue's from a Cruizcore Gyro wich is RS232 and convert it to I2C


But I need to know if the input device is set up as Master or as SLAVE.

I NEED to know this. or else my printboard will burn :twisted:

xD

so.... If you can help me post it here OR add me on MSN or skype or mail me:

MSN: machiel.veldkamp@gmail.com
MAIL:machiel.veldkamp@gmail.com
SKYPE: Machiel.veldkamp

thanks =)
WHAAAAAAAA!
I have skype: Machiel.veldkamp ADD ME! :D
Machiel
Novice
 
Posts: 60
Joined: Tue Sep 09, 2008 11:36 am
Location: Netherlands

Postby gloomyandy » Wed Dec 10, 2008 3:30 pm

The NXT is always an i2c master...

Andy
User avatar
gloomyandy
leJOS Team Member
 
Posts: 4239
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Postby Machiel » Wed Dec 10, 2008 3:49 pm

thanks!
WHAAAAAAAA!
I have skype: Machiel.veldkamp ADD ME! :D
Machiel
Novice
 
Posts: 60
Joined: Tue Sep 09, 2008 11:36 am
Location: Netherlands

Postby gloomyandy » Wed Dec 10, 2008 4:04 pm

Oh and one other thing... If you are building your own i2c device then I seem to remember that you will need to add a pull up resistor on the CLK and DATA lines... The Lego hardware guide has all of the details....

Andy
User avatar
gloomyandy
leJOS Team Member
 
Posts: 4239
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Postby Machiel » Fri Dec 12, 2008 9:20 am

Well I just got 3 sensors from HiTech:
Compass
Gyro
Accelerometer

Let's have some fun ^^
WHAAAAAAAA!
I have skype: Machiel.veldkamp ADD ME! :D
Machiel
Novice
 
Posts: 60
Joined: Tue Sep 09, 2008 11:36 am
Location: Netherlands


Return to NXJ Hardware

Who is online

Users browsing this forum: Yahoo [Bot] and 0 guests

more stuff