8 Useful Math Coding in Sketch Code for Starters
1. Increment and Decrement An increment and decrement operator is an arithmetic operator that is used to increment or decrement an integer variable by a value of one. We look at how to use this operator in this part of the Sketch code programming with Arduino IDE below. int current ...
Wiring Reed Switch Module with Arduino Microcontroller
On this illustration we will going to wire the Reed Switch Module. This module provides an analog as well as digital interface, as you can see on the board it has a potentiometer / trimmer used as a pull up resistor. Reed switch module has on-board LED indicator built-in as ...
Working on Debounce / Interrupts on Switch with MCU
Switch are standard input to any electronic projects. Tactile switch works well in a PCB also can be used on a solderless breadboard. Switch are normally open or disconnected and when the push button is pressed are momentarily closed. Tactile switch are everywhere and they are especially popular in DIY ...
Wiring the TCRT5000 Reflective Optical Sensor Module
This is the Line Tracking Sensor designed for line following robots. The board has two main components IR Transmitter and IR Receiver in one package named TCRT5000. The TCRT5000 are reflective sensors which include an infrared emitter and photo-transistor in a leaded package which blocks visible light. The package included ...
OLED Voltage Meter on Voltage Divider
Another illustration that demonstrate the uses of Analog to measure the voltage of an external battery and integrate the area under the curve to arrive at the useful capacity of a battery mAH. If you’re going to calculate the desired voltage range, you need to use the following voltage divider ...
Wiring the E18-D80NK Infrared Distance Ranging Sensor
In this illustration we will going to wire the Infrared distance switch, a high-sensitive photoreflector to detect distance function, ranging from 3cm to 80cm. When the infrared emitted by the emitter it will get reflected on a surface blocked it then the phototransistor will pick up the signal for a ...
Make your own sound activated switch on Arduino
In this illustration we will going to wire the microphone module, relay and the Arduino board. These project is compatible on most common microcontroller, the main objective of this project to make a sound activated switch or a clap switch. The light will turn on if sensor sense a sound ...
Wiring the Soil Moisture with Arduino
In this illustration we will going to wire the Moisture Sensor. These sensor can be used as a soil moisture to detect water level on the soil, if the soil moisture is depleted it will send a signal to HIGH. This module can be adopt on most common microcontroller like ...
Scanning i2C Device Address on Arduino
In this guide we will going to find and detect i2c address on our i2c device. You can scan and find the i2c address used by your devices by find the exact address used by the i2c device for more detail how i2c works please see this link, before we ...
Wiring The DS18B20 1-Wire Temperature Sensor
In this illustration we will going to wire the DS18B20 single wire temperature sensor. The digital DS18B20 Sensor provide fairly good accuracy and range of connection. The wire length can be reach up to 100m. The DS18B20 has four main data connection. 1. 64bit layered ROM 2. Temperature Sensor 3. ...
Wiring the Rotary Encoder with Arduino
In this illustration we will going to test and wire the rotary encoder. Rotary encoder can be counted in the positive direction and the reverse direction during the rotation of the output pulse frequency and the rotation is continuous. Compare to rotary potentiometer this device has a limited rotation. The ...
Gas Detection MQ-2 Sensor with Arduino
In this illustration we will wire the GAS SENSOR MQ2 Module, these device is very useful for GAS leakage detection in home or industry it can detect H2, LPG, CH4, CO, Alcohol or Propane. This device is very sensitive and fast response time and measuring and also can be adjusted ...