|
Re: Vex/Arduino Serial Port Help
Quote:
Originally Posted by weinbergmath
I have connected the grounds between the Arduino and Vex and the Vex rx pin to the Arduino TX output. As a test, I sent the letter 'k' continuously through serial port 2, and wrote another program on the Arduino to turn on an led when it receives a 'k'.
|
Wow Evan, sounds like you are doing what I plan on doing this summer. (I know this is somewhat obsolete considering the new controller we will have in 2009, but I still like the challenge and the learning it provides.)
I think your communication problem stems from your wiring. If you are sending the "k" from the Vex to the Arduino, then you output on the Vex should be Tx, and your input on the Arduino should be Rx. It looks like you have the two backward.
I would love to see your Sketches for the Arduino. It would save me a ton of time. Either way, I'll figure it out. I also plan on adding a gyro input to the Arduino and sending the encoders and rotation orientation to the Vex via serial stream.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
|