View Single Post
  #3   Spotlight this post!  
Unread 21-01-2017, 22:40
euhlmann's Avatar
euhlmann euhlmann is offline
CTO, Programmer
AKA: Erik Uhlmann
FRC #2877 (LigerBots)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2015
Location: United States
Posts: 398
euhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud of
Re: Arduino & Roborio cant find each other I2C Issues

Quote:
Originally Posted by zDrakon View Post
(Strangely enough we can have Roborio send data to Arduino and Arduino read it but the Arduino can't successfully send data to the roborio with the Roborio giving a response like a System.out.println() in the DriverStation console)
Congrats, you've correctly set up the Arduino as a slave 🎉
In I2C, slaves can only send data for a transaction, not any time they want. For Arduino, that means you can only write in the onRequest handler function, and only the number of bytes the master expects. On the roboRIO side, you need to call I2C.transaction()
__________________
Creator of SmartDashboard.js, an extensible nodejs/webkit replacement for SmartDashboard


https://ligerbots.org
Reply With Quote