Temperature sensor and LightSensor in 1 program

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
Post Reply
nxt1engineer
Posts: 34
Joined: 18 Aug 2011, 19:23
Location: Raalte Netherlands

Temperature sensor and LightSensor in 1 program

Post by nxt1engineer »

Hello
i have a problem.
The winter project, see projects, is going well, now i am creating a program, but it has light sensors (rgb) and the original lego temp-sensor in 1 program.
The temp sensor is programmed in de educational version , and the light sensor in the normal version.
how can a create a program that works white both. or in what software version are both supported.

Thanks Jan
afanofosc
Site Admin
Posts: 1256
Joined: 26 Sep 2010, 19:36
Location: Nashville, TN
Contact:

Re: Temperature sensor and LightSensor in 1 program

Post by afanofosc »

Both the education version and the retail version of the LEGO MINDSTORMS NXT software support all RCX sensors as well as all the NXT sensors. You may need to install the legacy blocks.

Of course, in NXC there is no problem at all with using the RCX temperature sensor and the NXT light sensor in the same program.

John Hansen
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
nxt1engineer
Posts: 34
Joined: 18 Aug 2011, 19:23
Location: Raalte Netherlands

Re: Temperature sensor and LightSensor in 1 program

Post by nxt1engineer »

Hello John
i mean the new temp sensor, not the old one.
i try to post a example pdf.
mindstorms.pdf
example colorlamp and temp sensor
(216.6 KiB) Downloaded 455 times
afanofosc
Site Admin
Posts: 1256
Joined: 26 Sep 2010, 19:36
Location: Nashville, TN
Contact:

Re: Temperature sensor and LightSensor in 1 program

Post by afanofosc »

Someone else with more experience using the EDU/Retail versions of the LEGO MINDSTORMS NXT software will have to address your question, then. I think you can get a temperature sensor block - or write your own MyBlock using some of the I2C read blocks available from various sources. I don't know if you can get the color sensor block and add it to the EDU version or not.

John Hansen
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
nxt1engineer
Posts: 34
Joined: 18 Aug 2011, 19:23
Location: Raalte Netherlands

Re: Temperature sensor and LightSensor in 1 program

Post by nxt1engineer »

Thanks John for the reply
I hope some one has a seclusion for this problem
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests