Search found 18 matches

by gusjansson
08 Dec 2011, 00:51
Forum: Mindstorms Software
Topic: NXT-G, NXC, I2C..What to use to make fastest operations?
Replies: 31
Views: 33073

Re: NXT-G, NXC, I2C..What to use to make fastest operations?

My questions: -I always use NXT-G, it is friendly to me. I like to think about programing without knowledge of how to use NXC, java, basic, etc... In fact those things are chinese for me. BUT do my program would operate faster by using another thing than NXT-G ?? Which programming language is the f...
by gusjansson
01 Nov 2010, 23:49
Forum: Mindstorms Hardware
Topic: Inaccurate Hitechnic Compass
Replies: 6
Views: 10615

Re: Inaccurate Hitechnic Compass

Given the type of error you were stating, as much as 30 degrees off, I suspect that your sensor is not properly calibrated. The problem with the NXT-G program for calibrating the compass is that you can't tell if it succeeded or not. The sensor has a built-in mechanism to reject a calibration attemp...
by gusjansson
19 Oct 2010, 00:22
Forum: Mindstorms Projects
Topic: Proposal how to proof the navigation correction by sensors
Replies: 16
Views: 18912

Re: Proposal how to proof the navigation correction by sensors

This sounds like a great challenge. A few comments... First of all I would like to suggest an alternative robot base. The TriBot, with its small caster wheel, has some limitations. The HiTechnic Trike Base is also very simple to build and can be built from either a 1.0 or 2.0 set. The large caster w...
by gusjansson
18 Oct 2010, 23:34
Forum: Mindstorms Software
Topic: Displaying Variables in NXC
Replies: 5
Views: 7335

Re: Displaying Variables in NXC

I usually avoid using ClearScreen since it can cause screen flicker. Instead I pair a TextOut with the NumOut. I use the TextOut to first display a caption as well as a bunch of spaces that will overwrite the previous value and then I display the new value offset by the length of the caption. For ex...
by gusjansson
17 Oct 2010, 18:13
Forum: Mindstorms Hardware
Topic: hitechnic Gyro sensor (NGY1044) noise
Replies: 78
Views: 101958

Re: hitechnic Gyro sensor (NGY1044) noise

Whenever you set the motor to something else than coast (either brake or run, even if there is no motor) you wake up the motor driver IC that consumes some energy. Philo, this is very interesting. This tells me that the correct way to collect gyro sensor samples for an initial offset is to somehow ...
by gusjansson
14 Oct 2010, 19:18
Forum: Mindstorms Hardware
Topic: hitechnic experimenters kit
Replies: 12
Views: 20490

Re: hitechnic experimenters kit

As a kid I had the exact same 150 in 1 lab that Xander had. This was an excellent set and I loved it! The current Electronics Lab from Radio Shack is also excellent: http://rsk.imageg.net/graphics/product_images/pRS1-6738325w345.jpg http://www.radioshack.com/product/index.jsp?productId=3814337 This ...
by gusjansson
14 Oct 2010, 02:09
Forum: Mindstorms Software
Topic: Having problems getting a reading from light sensor in NXC
Replies: 7
Views: 11074

Re: Having problems getting a reading from light sensor in NXC

The input port constants are S1, S2, S3, and S4. These are just constants identifying the sensor port. You cannot read the sensor by just specifying the constant. To read the sensor use the function Sensor(port) or SensorRaw(port) to read the raw sensor value. Here is your corrected program: #define...
by gusjansson
11 Oct 2010, 23:31
Forum: Mindstorms Hardware
Topic: hitechnic Gyro sensor (NGY1044) noise
Replies: 78
Views: 101958

Re: hitechnic Gyro sensor (NGY1044) noise

I have a 1 second wait before I start sampling to get the finger off the NXT. If I run the motor then the motor is running before the one second wait. My NXT is sitting on a solid desk. Motor is held in the air away from sensor and NXT with a long cable (50cm). I consistently get an average value of...
by gusjansson
11 Oct 2010, 18:33
Forum: Mindstorms Hardware
Topic: hitechnic Gyro sensor (NGY1044) noise
Replies: 78
Views: 101958

Re: hitechnic Gyro sensor (NGY1044) noise

I did some testing and found that the AD conversion in the NXT has some variables that will affect how well the Gyro sensor appears to perform. One surprise was that the values were heavily affected by the NXT being plugged in to the USB port. I wrote and NXC program that takes 100 samples. I calcul...
by gusjansson
11 Oct 2010, 17:22
Forum: Mindstorms Hardware
Topic: HiTechnic IR Beacon
Replies: 8
Views: 13078

Re: HiTechnic IR Beacon

I don't know the exact details but this has to do with the agreement we have with FIRST. Essentially, all the IR Beacons are reserved for FTC. Last year after the FTC competition we opened up the sale of the Beacons as we had a few left over after the season. At this time I don't know if we will ope...