|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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! |
|
#2
|
|||
|
|||
|
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.
|
|
#3
|
||||
|
||||
|
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? |
|
#4
|
||||
|
||||
|
Re: TI Launchpad MSP430 and Arduino Problems
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.
|
|
#5
|
|||
|
|||
|
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? |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|