Arduino and Sensors good websites on entry löevel are welcome

Status
Not open for further replies.

leo235

Newbie level 3
Joined
Dec 14, 2010
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,307
Hello,
Im a mechanical engineer (1. semester so no skill here) from germany and I want to learn a little about electronics. I bought an arduino mega (real easy microcontroller) and read up a bit on how transistors and diodes function.

I managed to make some leds light up (multiple tries) and got the arduino to fit the intensity of an LED to the volume of sound that an electret microphone picked up.

pic shows the connections. the open one was directly in one of the pins. note exactly sure on them, but the arduino only got signals in a pretty small range.690-740 instead of 0-1024) is that normal with the way I hooked it up?


more questions coming soon.
 

ya it's pretty normal..
if you need the value in that range use constrain function
Code:
sensVal = constrain(sensVal, 10, 150);
// limits range of sensor values to between 10 and 150
 
Reactions: leo235

    leo235

    Points: 2
    Helpful Answer Positive Rating
Thanks for that answer.
fortunately I had already mapped the input on 0-255 to light up the LED properly, I was just wondering, wether I had destroyed my sensor.

What I want to do next is to give me proximity alarm in case russian super-killers are approaching from the back. I have bought an Ultrasonic receiver and a transmitter (UCT-16M02 and UCR-16M02) but I am unsure as to how to connect them (sorry for the weird english by the way) to the arduino.

Later I will have the same question for a temperature sensor (KTY-81-2) so if you have general information where to find that kind of info Id be very grateful.

The mic just had it on the data sheet. Why cant they not just make that common...
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…