Skip to main content

Posts

Showing posts from 2016

Arduino Beginner Experiment: Arduino And Rotary Encoder

HELLO THERE!!!     How are you guys? I hope everyone is having fun and enjoying their holidays. In this post, I would like to share with you guys on my tinkerings with the rotary encoder. In this experiment, I would read my rotary encoder values by using Arduino. What Is A Rotary Encoder?      A rotary encoder is a device that changes motion into digital or analog values. This device are mostly used in robotic projects as it has precise unlimited rotation motion.There are different types of rotary encoders tailored for different types of uses. In this experiment, I had use one of the common rotary encoders, Keyes 0-40 rotary encoder. HARDWARE: 1. Arduino UNO 2.Rotary Encoder (KYS 0-40) SOFTWARE: 1.Arduino IDE CIRCUIT ASSEMBLY: Referring to image above, the connection of the rotary encoder to Arduino is as follows: Rotary                                 Arduino ---------                                ---------- GND        ---------------->  

Arduino Beginner Experiments: Reading the DHT11 Data in Smartphone

HELLO THERE!!!         How are you guys? I hope everyone is fine and in a good mood always. In this post, I would like to share with you guys an experiment which is the continuation of last post experiment. In this experiment, I would like to read the DHT 11 sensor values in my smartphone. So, I would like to share two ways to do so. HARDWARE: 1.Arduino UNO 2. Bluetooth Module (I used HC-06 ) 3. DHT11 Sensor (If you are using LM35 refer here:    http://halim930112.blogspot.my/2016/04/arduino-experiments-lm35-and-graph.html ) 4. Smartphone SOFTWARE: 1. MIT App Inventor 2 2. Bluetooth Terminal (Downloadable from Play Store) CIRCUIT ASSEMBLY:  Referring to both of the Images above, the connection is as follows: HC-06                                    Arduino --------                                    ---------- RX      ----------------------->  TX TX      ------------------------> RX GND  -------------------------> GND VCC

Arduino Beginner Experiments: Measuring Temperature and Humidity Using DHT11

HELLO THERE!!!     How are you,guys? I hope everyone is fine always. This week, I would like to share with you guys on how to measure temperature using the DHT11. If you are using the LM35 to measure temperature , please refer here: http://halim930112.blogspot.my/2016/04/arduino-experiments-lm35-and-graph.html   .The DHT 11 is a 2 in 1 where it can both read temperature and humidity. Without further ado let's jumps straight into the experiment. HARDWARE: 1.Arduino UNO 2.DHT 11 Moisture and Temperature Sensor SOFTWARE: 1.Arduino IDE LIBRARY: 1.DHT Library (Download from here :https://github.com/adafruit/DHT-sensor-library) CIRCUIT ASSEMBLY: Referring to the image above, the connection between the DHT and Arduino is shown as below: DHT                   ARDUINO S      -----------> Any Digital Pin Middle Pin -------> 5V -      ------------> GND CODING THE ARDUINO #include "DHT.h" //include the DHT

Mixing Color with RGB LED!!

HELLO THERE!!!     Hi everybody!! How are you guys? This week, I am going to share with you guys a fun experiment that I did during the weekends. The objective of this experiment is to use the RGB LED to output different colors. Without wasting further time, let's get into the experiment!! HARDWARE: 1.Arduino UNO 2. 3 Potentiometer 3. RGB LED ( I used the Keyes RGB LED) SOFTWARE: 1.Arduino IDE CIRCUIT ASSEMBLY:   By referring to the image below: The RGB LED has 4 pins, 1 GND, 1 pin each for the color red, green and blue. RGB LED                      ----------> ARDUINO  GND(- sign of the pin)                  GND R,G,B                                              Any Digital pin(I used pin 9,10 and 11) The potentiometer consists of 3 pins, the middle pin is for analog reading and the other two pins is for GND and 5V. Just in case, if some of you guys are not using the RGB LED model that I am using, you can also refer to the c

Arduino Beginner Experiments: Arduino and Light Blocking Sensor

HELLO THERE!!!     How are you guys? I hope everyone is fine and in a good mood always. This week, I would like to share with you guys my experiment on Arduino and Light Blocking Sensor. The objective of this experiment is to receive feedback from the sensor ( Digital and Analog) What is Light Blocking Sensor?      A linear hall sensor is a type of sensor which responds when the sensor is blocked out from light. The sensor is different for LDR's as LDR's responds to the amount of light it received while the light blocking sensor responds if the light is blocked out or not from the sensor.It can be used for both digital and analog measurements. HARDWARE: 1.Arduino UNO 2. Light Blocking Sensor SOFTWARE: 1.Arduino IDE CIRCUIT ASSEMBLY   Let's refer to the image of the blocking sensor below: The Connection of the Sensor to the Arduino is shown below: SENSOR  ----->       ARDUINO Signal      ------>     Any Analog/Digital pin

Arduino Beginner Experiments: Arduino and Linear Hall Sensor

HELLO THERE!!!       How are you,guys? I hope everyone is fine and in a good mood always. This week I wanted to share with you guys a simple experiment I did over the weekend. The objective of this week's experiment is to receive basic feedback from the linear hall sensor. What is a Linear Hall Sensor?   Basically a linear hall sensor is a magnetic module with a digital interface. The sensor also has a built in LED in it.The sensor can detect magnetic field, thus making it useful in many projects (magnetic door lock to name a few). HARDWARE: 1.Arduino UNO ( you can use other Arduino) 2.Linear Hall Sensor SOFTWARE: 1.Arduino IDE CIRCUIT ASSEMBLY Referring to the sensor image below: SENSOR                     ARDUINO G               ---------->  GND +               -----------> 5V D0            -----------> Digital pin 8 (any digital pin) CODING THE ARDUINO int led=13; //initializing led pin in digital pin 13(built

Arduino Beginner Experiments: Arduino and Joystick Module part 2

HELLO THERE!!!     How are you guys? I hope everyone is fine and in a good mood always. So, I decided to continue my post last week by implementing the Joystick module as a mouse. In this experiment, the joystick will control the mouse movement and left button click. HARDWARE: 1.Arduino Leonardo 2.Joystick Module SOFTWARE: 1.Arduino IDE CIRCUIT ASSEMBLY  The assembly of the circuit is similar with what we did last week: Joystick Module --------------->Arduino GND                                            GND 5V                                                  5V VRx                                              (any analog pin) VRy                                              (any analog pin) SW                                                (any digital pin) The schematic of the circuit   CODING THE ARDUINO     The code below is taken from the Arduino website. I also added a piece of code which enables the function of the b

Arduino Beginner Experiments: Arduino and Joystick module

HELLO THERE!!!   How are you guys? I hope everyone is fine and in a good mood always. Sorry for the late this week guys as i am a bit busy with my work. So, this week, I would like to share with you guys a simple experiment on arduino and joystick module, In this experiment, our objective is to read the analog and digital values from the joystick. Without wasting any time, let's jump into it. HARDWARE: 1.Arduino UNO 2.Joystick Module SOFTWARE: 1. Arduino IDE CIRCUIT ASSEMBLY There are 5 pins on the joystick module. The pins are GND,5V,VRx(x movement),VRy(y movement), and SW(button). The connections of these pins to the Arduino is depicted as below: Joystick Module ---------------> Arduino GND                                             GND 5V                                                  5V VRx                                                A0 (or any analog pin) VRy                                                A1 (or any anal

Arduino Beginner Experiments: Reading from The SD Card

HELLO THERE!!!!       How are you,guys? I hope everyone is fine and in good mood always. Last week, I had shown you guys on how to write sensor data to a text file in a SD Card. This week, I will be showing you guys on how to read the data that is stored in the text file in the SD Card. Without wasting time, let's get into the experiment. HARDWARE: 1.Arduino UNO  2.Ethernet Shield/Micro SD shield/ Any board with Micro SD slot ( I used the ethernet shield for this weekend)  3.Micro SD card. SOFTWARE: 1.Arduino IDE CIRCUIT ASSEMBLY: The circuit assembly is fairly simple. Just plug in the Ethernet shield on top the Arduino board and insert the micro SD card into the shield. BEFORE CODING:  Make sure there is a text file in the SD card name bgsound (or any name that you like actually).  CODING THE ARDUINO:  The code to read the text file in the SD card is shown below: #include <SPI.h> #include <SD.h> void setup() {   // O