Arduino
Reference Material
Some reference material:
Download IDE Tool: https://www.arduino.cc/en/donate/
Your First Program
Target: Build a leg with the Arduino build in pin 13.
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}To avoid using the delay function you can use the following code: https://www.arduino.cc/en/Tutorial/BuiltInExamples/BlinkWithoutDelay
Different Sensor Integration Arduino - Codes
Program - Push Button
Illustration is on : https://www.arduino.cc/en/Tutorial/BuiltInExamples/DigitalReadSerial
We can combine with First program and pushbutton
PIR Motion Sensor
Reference: https://www.makerguides.com/hc-sr501-arduino-tutorial/
GPS Sensor
Module Reference: GP-GPS6MV2
reference Web Site: https://create.arduino.cc/projecthub/ruchir1674/how-to-interface-gps-module-neo-6m-with-arduino-8f90ad and https://randomnerdtutorials.com/guide-to-neo-6m-gps-module-with-arduino/ (The second is better)
!! Connect TX Arduino to RX GPS -> don't make mistake
Open on the right top corder of Arduino App the Serial display
Get the NEMA Format GPS
Use Tiny GPS++ Library
How to use it : http://arduiniana.org/libraries/tinygpsplus/
My code is on https://github.com/IPConvergence/Arduino-GPS
Emettor - Receptor 433 MHz RF module - Code
Temperature and Humidity Sensor
DHT11 Sensor (+- 2 euro /piece)
Reference URL:
Specification
Temperature: 0 to 50°
Humidity: 20-90% -> Relative Humidity. At 100%, there is condensation
Last updated
Was this helpful?