Josdc
July 27, 2017, 11:12am
1
Hello friend,
If you are reading this, then maybe you can help me.
I need to integrate a sensor to the arduino so that everytime it is activated, the code stored in the arduino runs.
How can I do that, and do I need something special, like a fancy board?
I am a mechanical engineer and therefore completely new to this electronics world.
Thank you for your time and I wish you a happy day.
...J
system
July 27, 2017, 11:57am
2
You've told us a lot about yourself, but not so much about your problem
You don't need a fancy board. Just connect your sensor to your Arduino (5 V, GND, A0). Write your code and flash it to Arduino. Every time you switch power to your Arduino, the program runs, because it stays in the memory without power.
system
July 27, 2017, 12:44pm
5
Johan_Ha:
You don't need a fancy board. Just connect your sensor to your Arduino (5 V, GND, A0).
Or to A4 and A5, if it is an I2 C sensor.
Josdc
July 27, 2017, 12:53pm
6
Hey guys,
Thank you all for yous answers. Truth is, I don't even know what info to give you guys about because I am very noob in this topic.
But basically, I want to integrate a light sensor to an arduino. That's all I know.
Sorry for the lack of informations and thank you for taking the time to answer this.
Joao
Do a search for 'ldr arduino' for some ideas. These use an LDR (light dependent resistor) to measure light.