Quantcast
Channel: MSP430 Technical Forums
Viewing all articles
Browse latest Browse all 2077

using voltage signal as a button press

$
0
0

I am VERY new to electronics and the MSP430 so please forgive my ignorance.  My friends and I started up an electronics club a couple months ago and our first group project we are doing is a Rube Goldberg machine.  The only stipulation is you get a 5volt power in do something with it and give 5volt back out.  my particular project is the following.

 

1st msp430

receive 5volt

activate 3 sets of leds red, yellow, green

activate a servo that flips a switch to turn on a slot car

 

2nd msp430

count number of laps by car

once 5 laps have occurred light up 3 sets of leds

activate a servo that flips a switch to send my 5volts to the next part of the machine.

 

My question is this.  I want power the entire time to my msp430's.  I have an IF loop running waiting for button press "pinMode(buttonPin, INPUT_PULLUP); " then it lights the lights and runs the servo..  I set this up for testing.  I need to remove the button and replace it with a voltage signal on my pin instead of going to ground.  Is there a way to do this?  

 

I know I can just use the 5volts to turn on my msp430 and run without the IF loop but I want to see if I can do it this way.

 

Again I am VERY new to this so I hope I gave enough information.

 

 

Bill


Viewing all articles
Browse latest Browse all 2077

Trending Articles