Home / Snippets

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 …

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 …

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: …

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 …

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”   …

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”, …

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 …

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 …

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 …

Read More »