Jump to content
Sign in to follow this  
iragdoll

Connecting Piezo Vibration Sensor to LaunchPad

Recommended Posts

I was looking at the code, but as I beginner, I did not really understand it.

I was hoping someone from the forums could help me in depth, with connecting the Piezo sensor to coding it.

How do I configure the ADC? I think the first thing I need to do is to figure out how to connect the Piezo sensor to the LaunchPad. Anyone have any ideas?

 

Any help will be much appreciated!

 

Thanks!

Share this post


Link to post
Share on other sites

I was looking at the code, but as I beginner, I did not really understand it.

I was hoping someone from the forums could help me in depth, with connecting the Piezo sensor to coding it.

How do I configure the ADC? I think the first thing I need to do is to figure out how to connect the Piezo sensor to the LaunchPad. Anyone have any ideas?

 

Any help will be much appreciated!

 

Thanks!

Share this post


Link to post
Share on other sites

Yea I had posted there as well. I am going to look at NJC's code and see if I can apply it to the Piezo Vibration Sensor.

However, I still do not know how to hook up the Piezo Vibration Sensor to the MSP430 LaunchPad physically. Do I need a resistor of some sort?

 

Any help will be much appreciated!

 

Thanks!

Share this post


Link to post
Share on other sites

Can I hook up the sensor as shown in the diagram below?

This is with the Arduino but I think it can apply to the MSP430 LaunchPad as well.

 

Any help will be much appreciated! Thanks!

post-122-135135492434_thumb.png

Share this post


Link to post
Share on other sites
Can I hook up the sensor as shown in the diagram below?

This is with the Arduino but I think it can apply to the MSP430 LaunchPad as well.

 

That will work, but you might want to replace the zener with a 3.3v version. Also, connect it to one of the P1 pins, there's no difference on the LaunchPad between GPIO and ADC.

Share this post


Link to post
Share on other sites

You sure that will work? If you really think so then I will go with your opinion.

Also, do you have any code examples for this? Can I use the P1.4 pin?

Will it not work with the 5.1v Zener Diode? Which is more safer to use?

Share this post


Link to post
Share on other sites
Can I use the P1.4 pin?

You can use any P1.x pin as long as you configure it to ADC.*

 

Will it not work with the 5.1v Zener Diode? Which is more safer to use?

The extra components there are for voltage limiting (zener diode) and keeping the pin voltage from floating when there is no voltage from the peizo (pull-down resistor).*

 

The Arduino is a 5v device and accepts 5v logic. The MSP430 is a 3.3v device; 5v logic could damage the MSP430. Replacing the zener with a 3.3v version will limit the output to 3.3v (anything higher will be shunted to ground through the zener diode). Using the 5.1v zener could allow a damaging voltage level (5.1v) to your MSP430.*

 

*Note: I'm not the best at this stuff on this forum, and I have been wrong before. :? Hopefully others will confirm or correct my post.

 

-Doc

Share this post


Link to post
Share on other sites

Okay... um... where exactly can I get this diode? All I see are 5.1v Zener Diodes...

Thanks for the links to the ADC examples. They helped a lot. I will post if I have any problems with the code. But first I want to connect the Sensor to the LaunchPad to make sure everything is correctly hooked up. I can buy the mega-ohm resistor from RadioShack, but they only have a 5.1v Zener Diode.

Share this post


Link to post
Share on other sites

You can get them cheaper on ebay (No minimum charge, no excessive shipping) if you can weight about 2 week.

 

1N4728

 

A couple of them are at 1.22 buy it now free shipping for 10. You could even use the best offer and try to get them down to 99 cents.

 

There's currently an auction for 30 3.3v Zeners (1/2watt instead of 1watt though) but no part number for 1.49 or best offer.

 

Ebay is often the best for one-off part orders. Unless you are ordering 15+ dollars worth of parts, shipping from web-stores hurt.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×