Skip to main content

Posts

Arduino Beginner Experiments:Keyboard Input, LCD Output

HELLO THERE!!!         How are you guys? I hope everyone is fine and in good condition always. This week, I would like to share with you guys a simple experiment I made over the weekend.The objective of this experiment is to print out characters typed from keyboard to LCD keypad Shield attached on top Arduino. Let's get straight to the items used: HARDWARE: 1.Arduino UNO 2.LCD Keypad Shield SOFTWARE: 1.Arduino IDE      The assembly for the circuit is fairly simple. Just carefully attach the lcd keypad shield on top of the Arduino. Make sure all of the shield pins were correctly connected into the Arduino pins. After assembly, power up your arduino, if everything is connected correctly, the PWR led of the shield will light up.      Now that the assembly is done, let's view the code: #include<LiquidCrystal.h> // import the liquid crystal lib LiquidCrystal lcd(8, 9, 4, 5, 6, 7); //the lcd pins in o...

Arduino Systems: Automatic Plant Watering System

HELLO THERE!!!   How are you, guys? I hope everyone is fine and in good condition always. Alright, this week, I wanted to share with you guys on a system that I made over the weekend. It is called the Automatic Plant Watering System. Without wasting more time, lets see the hardware and software needed in making this system. HARDWARE: 1. Arduino UNO 2.DC Water pump.(My water pump is exactly as below) 3.A relay(single channel) 4. A soil moisture sensor SOFTWARE: 1. Arduino UNO  Ok now that all the items had been listed lets see the overall assembly of the circuit. I am sorry as my assembly of the circuit is a bit messy: Don't worry... I will do my best to explain the circuit.. I'll divide the system into two circuits: 1. The soil moisture part The soil moisture sensor usually comes with 4 pins (VCC,GND,A0(analog pin),D0(digital pin)). In this system I had used the VCC,GND, and A0 pins: From soil moisture to Arduino: VCC-->5V GND-->...

Intro To Macro: Record A Macro

HELLO THERE!!!         How are you guys? I hope all of you are fine and in a good mood always.Sorry for not posting last week, been real busy submitting my partial thesis and stuff. This week, before I get deeper into Macros, I would like to introduce you guys on how to record a Macro. Basically, you don't need to code these Macros, you only need to record them and then implement them in your Excel. I would say however, there are some advantages and disadvantages on recording these macros based on my opinion. Advantages: 1. Fast 2. Do not need to code 3. Can be used for stagnant type or non changing type of application 4. Code can be modified manually Disadvantages: 1. Not Flexible to all type of applications. Ok, now let's get straight on how to record a Macro. First the requirements needed for this experiment is: SOFTWARE 1. MICROSOFT EXCEL  Well, that's pretty much the requirement needed. For the steps, let's refer to the figures below( w...

Intro To Macro: A simple Calculator

HELLO THERE!!!!            How are you guys? I hope everyone is fine and happy always. This week I will continue my experimentation on the Excel Macro. I will introduce you guys on how to make a simple calculator using the Macro. The calculator will be able to add, subtract, multiply and divide. Before anything let's see what is needed for this experiment. SOFTWARE: 1. Microsoft Excel Steps on how to open the developer tab and how to add Action X button is shown in the last week's post. Ok, now let's get straight to the point. First, add 4 Action X button in the Excel Spreadsheet. 4 Action X button; namely add,subtract,multiply and divide Next, double click on the addition button ( make sure you are in the design mode). A Microsoft  Visual Basic for Application pane will pop up. In here, we can code our buttons to perform what we want. The Visual Basic window Pane. Now that's done, let's code the add button. Ok, the add button in...

Intro To Macro: Lets move the cell pointer!!!

HELLO THERE!!!        How are you,guys? I hope everyone is fine and good always. This week I will introduce you guys to a new programming sort of feature I found when I was using Excel quiet some time ago. The feature actually simplifies your job when you have a lot of data in your Excel file. The feature is known as Excel Macro. There are many applications on how to use the macro that you can find on the net. For this post, I am going to show you guys on how to move the cell selector(the darkbox thing) to left,right,up and down. Firstly, what you need is an Excel form. Next, you need to turn on developer tab. On how to do this, please do as instructed as in the link shown.  http://www.addintools.com/documents/excel/how-to-add-developer-tab.html   The developer tab of Excel Next let's add some button. If you see, there are two types of buttons, one is forms button and another one is activex button. Choose the activex button and draw 4 buttons on y...

Arduino Beginner Experiments: Arduino and Relay

HELLO THERE!!           How are you guys doing? I hope everyone is fine and in good mood always. First of all, I would like to apologize my hiatus for about two weeks. I was actually preparing and presenting my Final Year Project for my degree. Now, that's done( a huge relief) I can continue sharing with you guys on my tinkering with Arduino. Ok, today, I would like to share about Arduino and Relay. The objective of this Experiment is to switch on/off between two channel relays. First things first: The Software and Hardware used in this experiment: Hardware 1.Arduino UNO 2. 2 Channel Relay Software: 1, Arduino IDE     After obtaining all the items, Let's assemble the circuit. Assembling the circuit is fairly simple. As I am using relay exactly as the image above, I will use the image as my reference. The connections from the relay to Arduino are as follows: Relay          Arduino GND--------...

Arduino Beginner Experiments: LDR and Arduino

HELLO THERE!!!       How are you guys? I hope everyone is fine and in a good shape. This week, I would like to share with you guys on controlling LED brightness using LDR(photoresistor/Light Dependent Resistor). Now let's get started,shall we?   OK, first thing's first, Items needed: HARDWARE: 1.Arduino UNO 2.LDR x1 3.LED x1 4. Resistor (220 ohms) x1 SOFTWARE: 1. Arduino IDE After obtaining the items, let's assemble the circuit. The circuit is fairly simple. One leg of the LDR is connected to the 5V while the other leg are connected to the GND and analog pin of Arduino. The sketch below will depict on the assembly of the circuit: The assembly of the circuit After assembling the circuit, let's code it. The code is pretty straightforward, we read the LDR readings and use it to control LED's brightness. The code is shown below: int ldr =  A0; //ldr analog pin int val;//value to keep analog readings...