Skip to main content

Posts

PIR sensor part 1

The PIR sensor is used in home automation, but also to can be used for many applications, here I'm going to explain only the basics about this sensor, and I'm going to use Arduino Uno, some Jumpers, one PCB, one red LED, cable type D, a computer and Arduino software. the Sketch: const int sensorPir = 2; const int ledPin = 13; int buttonState = 0; void setup() { pinMode(ledPin, OUTPUT); pinMode(sensorPir, INPUT); Serial.begin(9600); } void loop(){ buttonState = digitalRead(sensorPir); if (buttonState == HIGH) { digitalWrite(ledPin, HIGH); } else { digitalWrite(ledPin, LOW); } Serial.println(buttonState); delay(500); } This works only in a simple way to detect movement. Let's see how it works. const int sensorPir = 2;    it's about where is going to be put in the digital input on the Arduino Board. const int ledPin = 13;   I put it there because we can put the LED into the input on the Arduino Board. int buttonSate =0
Recent posts

Why Arduino?

Arduino was created to be a development platform and in that concept is based its rapid implementation in projects that can be from LED`s to cameras and other sensors, easy coding makes it good for researchers and developers since after having tested The main idea of ​​the project can subsequently be implemented in mass production or in a more complex design that is more accurate and more dedicated to its field. Arduino is easy to install on Windows, Linux, OS and Android, this makes it a platform for easy portability, since in addition to being installed inside a PC or Laptop, you can also make a portable USB, although It is potability, it can also be installed on an Android phone or a tablet, although the latter sacrifices the emulator in real time that a traditional PC if it has. Arduino from my point of view was not born to be able to be implemented in mass selling products, since within its page and its concepts will end up and specific that it is a development platform, for mas

Resources

Arduino Adafruit Raspberry Pi Why this? Well is very simple. All of this resources are cheap and reusable to further develops, after the development is completed, we will see what chip is the best available to the job and I'll develop the final product in that chip set specific. Also I'll put all the material I use to the specific project, and all the code developed.