HiTechnic Force Sensor

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

Moderators: roger, 99jonathan, imaqine

HiTechnic Force Sensor

Postby rlohrball » Fri Jan 25, 2013 1:48 pm

Hi all,
I recently purchased some HiTechnic force sensors to use with my NXT system. In looking through the lejos API, I didn't see a class to represent this sensor. Am I missing something? If not, is there a plan to add support for this sensor? Any suggestions on how I go about using the sensor with lejos?

Thanks in advance for your help!
Rebecca Smith
rlohrball
New User
 
Posts: 2
Joined: Fri Jan 25, 2013 1:43 pm

Re: HiTechnic Force Sensor

Postby skoehler » Fri Jan 25, 2013 2:09 pm

You could take the class of a similar sensor, change it so it works with the force sensor, and then submit to us, for example by posting it here in the forums.
We will take a look at it, possibly include it in leJOS.
skoehler
leJOS Team Member
 
Posts: 1112
Joined: Thu Oct 30, 2008 4:54 pm

Re: HiTechnic Force Sensor

Postby skoehler » Fri Jan 25, 2013 2:28 pm

Apparently, this sensor is analogue. That means, you can just call SensorPort.S1.readRawValue() and you get a value between 0 and 1023.
The curve relating the raw value to the force applied (in newton) is given on that page:
http://www.hitechnic.com/cgi-bin/commerce.cgi?preadd=action&key=NFS1074
(It's amusing, how they measure force in grams, not newton)

I just looked at the RobotC driver suite. I didn't find any code for doing the interpolation. And maybe, the exact curve is different for every inidividual sensor anyways.
skoehler
leJOS Team Member
 
Posts: 1112
Joined: Thu Oct 30, 2008 4:54 pm

Re: HiTechnic Force Sensor

Postby rlohrball » Fri Jan 25, 2013 6:21 pm

Thanks for the information.

Becky
rlohrball
New User
 
Posts: 2
Joined: Fri Jan 25, 2013 1:43 pm


Return to NXJ Hardware

Who is online

Users browsing this forum: No registered users and 4 guests

more stuff