Skip to main content

Posts

Showing posts from December, 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