NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
PhD. Student
Posts: 1
0 Kudos

Arduino and I2C using NXT

Can some one please help us ! !  

 

We are using a load cell sensor and reading the analog  signal via arduino uno board via am amplifier circuit. We can read the signal exactly in arduino(we tried using two boards ans making one mater read and other slave send, and everything works perfect) now we are trying to write that analog signal  as 1 byte on the I2C wires so that our lego mindstorm robot can read that 1 byte of data.

 

We used the I2C/NXT block from labview. We set the port address to be  66 (also tried 67) and  the read byte buffer as 1, the arduino built sensor is connected to port 1, on the lego brain, we are using galvanic isolators to connect between sda and sck on both devices since the power ratings are different, we are also using 82K pull up resistors, but we are unable to get any information in our labview program.

 

We have labview with the NXT tool kit, so we want to use the I2C block. we dont want to use any other programming language. We are trying to do something similar as shown in the link, http://www.adamfourney.com/news/using-the-arduino-uno-as-a-lego-mindstorms-nxt-sensor-with-galvanic-... but we have the load cell sensor and we want to read it as 1 or may be more bytes. I also refered to http://zone.ni.com/reference/en-XX/help/372962A-01/lvnxt/i2c_sensors/, but could not help much

 

Thank you

Member
ESearl
Posts: 67
0 Kudos

Re: Arduino and I2C using NXT

For LEGO sensors, generally you want to send [0x2, 0x42] but your case might be different. Also make sure you are set to nxt port 1.

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page