Go to Post You don't have to build a robot to be on a robot team. This isn't about the robot, it's about learning. - engunneer [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 12-01-2017, 21:20
team-4480's Avatar
team-4480 team-4480 is offline
Debug? What's that?
FRC #4480
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Minnesooota
Posts: 229
team-4480 will become famous soon enoughteam-4480 will become famous soon enough
TI Launchpad MSP430 and Arduino Problems

Hi,

So we are trying to finish up our driver station buttons. On the board of buttons, we have two rotary switches. For those rotary switches, we have 12 LEDs for each of the 12 states of each switch. This makes it easy to see what state it is on.

Our problem is that while I have wired all the Charlieplexed LEDs to an Arduino and then plugged in the rotary switch and it works, the Launchpad still needs to read the value of the rotary switch. In other words, we have to read the same rotary switch for two different devices, the TI MSP430 which sends the values to the robot and the Arduino which controls the LEDs. If anyone knows of an easy wiring fix, that would be best. However, I don't know of any so I will list my two possible solutions I have thought of....

1. Using our TI Launchpad, when the FRC firmware is loaded onto it, is there a way to still program it like an Arduino? If this was the case, I could just transfer my code to the Launchpad and the issue would be resolved.

2. If that isn't an option, I thought maybe I could do some sort of easy communication between the two. Serial, IC2, something along those lines.

If anyone has any idea on what would work best in our situation, that would be awesome! We really want to finish this so it isn't on our minds anymore! Thanks!
__________________
#Python4Life
Reply With Quote
  #2   Spotlight this post!  
Unread 12-01-2017, 23:36
CurlyFries CurlyFries is offline
Registered User
AKA: Troy Martin
FRC #2512 (Duluth East Daredevils)
Team Role: Programmer
 
Join Date: Oct 2015
Rookie Year: 2014
Location: Duluth, MN
Posts: 20
CurlyFries is an unknown quantity at this point
Re: TI Launchpad MSP430 and Arduino Problems

If I remember correctly from when we used the launchpad two years ago, there should be a way to turn on the LEDs straight from the robot code bypassing the arduino completely. That's what I would look into.
Reply With Quote
  #3   Spotlight this post!  
Unread 13-01-2017, 00:21
asid61's Avatar
asid61 asid61 is offline
Registered User
AKA: Anand Rajamani
FRC #0115 (MVRT)
Team Role: Mechanical
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Cupertino, CA
Posts: 2,225
asid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond repute
Re: TI Launchpad MSP430 and Arduino Problems

If this is a rotary switch, why not just wire it:
5v -> switch -> LED+ AND Ti Launchpad input -> LED- -> resistor -> GND?
__________________
<Now accepting CAD requests and commissions>

Reply With Quote
  #4   Spotlight this post!  
Unread 13-01-2017, 23:49
team-4480's Avatar
team-4480 team-4480 is offline
Debug? What's that?
FRC #4480
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Minnesooota
Posts: 229
team-4480 will become famous soon enoughteam-4480 will become famous soon enough
Re: TI Launchpad MSP430 and Arduino Problems

Quote:
Originally Posted by asid61 View Post
If this is a rotary switch, why not just wire it:
5v -> switch -> LED+ AND Ti Launchpad input -> LED- -> resistor -> GND?
Because there are 24 LEDs and only 6 input pins on the TI Launchpad(We have a lot of buttons). Hence the Charlieplexing being needed.
__________________
#Python4Life
Reply With Quote
  #5   Spotlight this post!  
Unread 14-01-2017, 20:20
ILAMtitan ILAMtitan is offline
Texas Instruments
AKA: Bart Basile
FRC #3005 (RoboChargers)
Team Role: Mentor
 
Join Date: Nov 2013
Rookie Year: 2013
Location: Dallas
Posts: 72
ILAMtitan will become famous soon enoughILAMtitan will become famous soon enough
Re: TI Launchpad MSP430 and Arduino Problems

Regrettably, the Arduinoish environment for the LaunchPad (Energia) doesn't support the USB software that is used on the MSP430. We had to develop all of the USB support in the full code editor, Code Composer Studio. It can be a bit daunting coming from the Wiring environment.

I'm trying to suss out what you're trying to do, but I'm not able to wrap my head around it with just your text description. It sounds like you only have 6 inputs left on the LaunchPad, but you need 12 for the rotary encoder, which is also connected to an Arduino. Is this right? Could you sketch out a wiring diagram of your setup so far?
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 23:52.

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