Go to Post Are you confused yet? - Andy Grady [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 28-01-2014, 23:26
RoboNerd01's Avatar
RoboNerd01 RoboNerd01 is offline
Super User
AKA: Austin Rowe
FRC #3604 (Goon Squad)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2012
Location: Woodhaven
Posts: 11
RoboNerd01 is an unknown quantity at this point
Angry Using I2C to communicate with arduino in LabVIEW.

I have been trying to use the WPI I2C library to communicate with my arduino mega 2560 for a LCD display for a while now... But the problem is that LabVIEW tries to verify that the "sensor" is there and wont send ANYTHING to it until it receives a response from the "sensor". Has anyone ever used I2C for anything close to this, or at all? Or is there a better and easier way to do communications? I searched everywhere but could not find ANYTHING on this.

And I'm curious if it is legal to use an Ethernet shield of our robot.

Thanks.
Reply With Quote
  #2   Spotlight this post!  
Unread 29-01-2014, 03:35
gvbravo gvbravo is offline
Registered User
FRC #5089
 
Join Date: Jan 2014
Location: Los Angeles
Posts: 2
gvbravo is an unknown quantity at this point
Re: Using I2C to communicate with arduino in LabVIEW.

Two things to consider. Are you using a 7 bit or 8 bit address and do you have the arduino board set up as a slave?

If you have an oscilloscope that would help too.
Reply With Quote
  #3   Spotlight this post!  
Unread 29-01-2014, 10:08
jman4747's Avatar
jman4747 jman4747 is offline
Just building robots
AKA: Josh
FRC #4080 (Team Reboot)
Team Role: CAD
 
Join Date: Apr 2013
Rookie Year: 2011
Location: Atlanta GA
Posts: 418
jman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond repute
Re: Using I2C to communicate with arduino in LabVIEW.

I've tried...

http://www.chiefdelphi.com/forums/sh...d.php?t=120173 You could try post #4 from this thread.


Best bet is to use the serial port, it has proven to be better for me. I suspect this is because I2C is so heavily geared towards reading sensors while the serial VI's were made more for general 2 way communication use. I would look into sending things in strings to the arduino storing them then sending them to the display from the arduino.
__________________
---------------------
Alumni, CAD Designer, machinist, and Mentor: FRC Team #4080

Mentor: Rookie FTC Team "EVE" #10458, FRC Team "Drewbotics" #5812

#banthebag
#RIBMEATS
#1620
Reply With Quote
  #4   Spotlight this post!  
Unread 29-01-2014, 10:33
steinra's Avatar
steinra steinra is offline
(KG7KEO)
AKA: Randy Steiner
FRC #5461 (V.E.R.N.)
Team Role: Coach
 
Join Date: Nov 2008
Rookie Year: 2007
Location: Meridian, Idaho
Posts: 56
steinra is on a distinguished road
Re: Using I2C to communicate with arduino in LabVIEW.

An Ethernet shield would work as well for communications. But I am interested in seeing what you find out on I2C as well. We were looking at possibly using this as well as a communications method.

Randy
__________________
Randy Steiner
2014-2015 FIRST Team 5461 - Coach
2011-2014 FIRST Team 4106 - Head Mentor
2007-2011 FIRST Team 1891 - Mentor
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 02:09.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi