Snippets

Interfacing SD Card with Arduino using SD Card Module

SD Card module with Arduino

Interfacing SD Card with Arduino Uno and Arduino Mega 2560 using SD Card Module To use an SD card with Arduino, the SD Library and Program are available in Arduino Software v1.05, you just need to connect the CS pin of SD module and Change SD pin in programming to which it is connected. In the program, we have connected …

Read More »

Downloading a webpage from internet using Arduino

Downloading a webpage from internet using arduino via Ethernet Shield

Downloading a webpage from the internet using Arduino via Ethernet Shield Connections: Just Connect Arduino Ethernet Shield on the top of Arduino or Arduino Mega, and connect Ethernet cable on which internet is accessible, and use the code given below to connect to the Internet using Arduino.   Code for Arduino: In this program, we are downloading a test page …

Read More »

Fetching Google Search using MATLAB

show search results from google to matlab

Google Search using MATLAB or Displaying Top 10 Google Results in MATLAB Google Search using MATLAB, and displaying the first 10 results from the Google search engine in MATLAB window. This code is tested on MATLAB 2012b, but it is expected to work on all newer versions. Code for MATLAB: [crayon-5c3f612adad07068030152/]   Results: These are the results using MATLAB 2012b. …

Read More »

Character LCD with large/ big fonts using Arduino

big / large font size on character lcd

Displaying Large / Big Fonts on character LCD using Arduino Normally, a character LCD has 8×5 dots character size, but this library allows you to combine two rows to make larger fonts using the same 8×5 dots character LCD, this library can work on different sizes including 16×2, 20×2, 16×4 and 20×4 Character LCDs, using the 4 bits data bus. …

Read More »

Interfacing MPL3115A2 Altitude Sensor with Arduino UNO/ Mega

Interfacing MPL3155A2 Altitude Sensor with Arduino UNO/ Mega

Interfacing MPL3115A2 Altitude Sensor with Arduino UNO/ Mega MPL3115A2 is an altitude sensor that operates at 3.3 volts. Connection Diagram: To Interface Altitude sensor with Arduino Mega: To Interface Altitude sensor with Arduino UNO: Altitude Sensor Library for Arduino: Search for “MPL3115”, then select and Install “Adafruit MPL3115A2 Library”   Arduino Code: [crayon-5c3f612adb3a8459232653/] Results:   Related Links: Increasing the length …

Read More »

Interfacing Accelerometer ADXL345 (GY-291) with Arduino UNO/ Mega

Interfacing ADXL345 Accelerometer with Arduino UNO/ Mega

Interfacing Accelerometer ADXL345 (GY-291) with Arduino UNO/ Mega Accelerometer ADXL345 is a 3-dimensional accelerometer, that measures acceleration in 3 dimensions X, Y and Z axis. Connection Diagram: To Interface ADXL345 Accelerometer with Arduino UNO:   To Interface ADXL345 Accelerometer with Arduino Mega: ADXL345 Library Installation on Arduino: Search for “ADXL345”, then Select and Install “Adafruit ADXL345” After that search for …

Read More »

Interfacing Water Flow Sensor with Arduino

Interfacing Water Flow Sensor with Arduino

Interfacing Water Flow Sensor with Arduino Water Flow Sensor is used to determine the amount of water flowing through a certain pipe/ area. Connections with Arduino: Sensor Wire color Arduino Pins Black GND Green/ Red 5V Yellow/ Orange 2   Arduino Code: This code uses interrupts, which changes with the type of Arduino board. The information regarding Arduino interrupts can …

Read More »

Interfacing Soil Moisture Sensor with Arduino

interfacing soil moisture sensor with arduino

Interfacing Soil Moisture sensor with Arduino Soil Moisture sensor is used to determine the moisture in the soil, this sensor is specially used for agriculture purpose. The pins are already mentioned on the backside of the module. It contains 4 pins and a potentiometer. Interface the sensor with any microcontroller using the Analog-to-Digital converter (ADC) Pin or A0, or connect …

Read More »

Interfacing DHT11 (Temperature and Humidity Sensor) with Arduino

Interfacing dht11 (temperature and Humidity Sensor) with arduino

Interfacing Temperature and Humidity Sensor (DHT11) with Arduino DHT11 is a digital temperature and Humidity sensor. The sensor comes in 4 pin package as well as 3 pin board module. Connections: 4-pin DHT11 3-pin DHT11 Arduino UNO/ Mega VCC VCC 5V GND GND GND DATA S or Signal 2   Library Installation on Arduino IDE: New versions of Arduino¬†IDE (software) …

Read More »

Reset Arduino using Programming

Reset Arduino programmatically To reset Arduino, the Arduino Microcontroller boards have an external pin and a button to reset it and start program execution from the beginning. But sometimes it is important to reset it programmatically.¬†To Reset Arduino using programming, there is a very simple command. To reset Arduino using hardware, we have two methods, either resetting using an external …

Read More »