Posts

Project 6: Arduino print hello

Image
   In this aricle, I’ll explain how to connect  LCD (Liquid Crystall Display) on an Arduino and  all the different ways you can program it, print msg, scroll msg, make custom characters, blink msg, and position msg. Before going to to print hello or any text on LCD (Liquid Crystall Display ) you must know a brief about i2c communication .   I2C LCD comes handy making use of only 2 pins (SDA & SCL) and this will help you to reduce number of wires in our circuit SCL is the clock signal SDA is the data signal.    Hardware Required 1 × Arduino UNO or Genuino UNO 1 × USB 2.0 cable type A/B 1 × LCD                                                                                    n × Jumper Wires and BreadBoard         CONNECTION PART This sketch prints "Egerton, University!" to the LCD  and shows the time.     The circuit:  * LCD RS pin to digital pin 12  * LCD Enable pin to digital pin 11  * LCD D4 pin to digital pin 5  * LCD D5 pin to digital pin 4  * LCD D6 pin to

Project Four: Pattern, Blink 4 leds using Arduino board

Image
Project Four: Pattern,  Blink  4 leds using Arduino board Project Four: Pattern,  Blink  4 leds using Arduino board will basically get you up and blink four leds using Arduino board in pattern. i.e Mpesa Display Components Quantity Module/component Description price Range 1 Arduino board (Uno)+Cable more 1200-2500/= 4 Resistor Any electronics supply store 10-20/= 4 LED From 1k Ω to 2KΩ 10-20/= 14 Connecting Wires (Jumpers) learn more 50/= 1 Breadboard learn more 150/= Send us a request using the contact section if you don't have any.     Note: In this project, we are using 4  Resistors ( 1k resistor ), 4 Leds, Arduino pin 5, Pin 6, Pin 7, Pin 8 and Gnd pin to create a connection(Circuit) A good example is the one in the picture below 1. Connect ground fr

Project Three: Blink 2 leds using Arduino board

Image
Project Two: Blink  2 leds using Arduino board Project Three: Blink  2 leds using Arduino board will basically get you up and blink two leds using Arduino board.  Components Quantity Module/component Description price Range 1 Arduino board (Uno)+Cable more 1200-2500/= 2 Resistor Any electronics supply store 10-20/= 2 LED From 1k Ω to 2KΩ 10-20/= 7 Connecting Wires (Jumpers) learn more 50/= 1 Breadboard learn more 150/= Send us a request using the contact section if you don't have any. Note: In this project, we are using 2  Resistors ( 1k resistor ), 2 Leds, Arduino pin 6, Pin 7 and Gnd pin to create a connection(Circuit) Project summary 1. From led Anode pin (longer leg) led Anode pin >>>Resistor   end >>> then the other side of the resistor end to Pin 7(Arduino) 2. From led cathode (shorter leg) led cathode >>>Ground pin (Arduino GND) 3. Plug the power into the Arduino. Now copy the code below and paste it Arduino IDE and upload to Arduino 4. After suc

Project Two: Blink led using Arduino board

Image
Project Two: Blink led using Arduino board Project Two: Blink led using Arduino board will basically get you up and blink led using Arduino board.  We assume you already understand project one: Light led using Arduino board. Components Quantity Module/component Description price Range 1 Arduino board (Uno)+Cable more 1200-2500/= 1 Resistor Any electronics supply store 10-20/= 1 LED From 1k Ω to 2KΩ 10-20/= 3 Connecting Wires (Jumpers) learn more 50/= 1 Breadboard learn more 150/= Send us a request using the contact section if you don't have any. Note: In this project, we are using 1 Resistor ( 1k resistor ), Led, Arduino pin 7 and Gnd pin to create a connection(Circuit) Project summary 1. From led Anode pin (longer leg) led Anode pin >>>Resistor   end >>> then the other side of the resistor end to Pin 7(Arduino) 2. From led cathode (shorter leg) led cathode >>>Ground pin (Arduino GND) 3. Plug the power into the Arduino. Now copy the code below and past

Project one: Light led using Arduino board

Image
Project one: Light led using Arduino board This project one: light led using Arduino will basically get you up and ensure if your Arduino board is working. Once you've completed this step we can continue to the really exciting stuff, which is when we start writing our own sketches! Components Quantity Module/component Description price Range 1 Arduino board (Uno)+Cable 1200-1800/= 1 Resistor Any electronics supply store 10-20/= 1 LED Any values from 1k Ω to 2KΩ are probably OK.   10-20/= 3 Connecting Wires (Jumpers) 50/= 1 Breadboard 150/= Send us a request using the contact section if you don't have any. 1. Breadboard - They allow you to make quick circuits, test out ideas before making a more (pcb)permanent Printed Circuit Board. Before we get to circuit design and the programming, let's test LED (Light Emitting Diode) LED (Light Emitting Diode) only allows current (electricity) in one way, this means if you interchange LED terminal it won't work Note: Reason, why

Arduino function libraries~Math Library Function

  Arduino Math Library Arduino Math library includes a number of useful mathematical functions for manipulating floating-point numbers. Functions are defined in the header math.h #include < math.h > double cos (double __x) // returns cosine of x double fabs (double __x) // absolute value of a float double fmod (double __x, double __y) // floating point modulo double modf (double __value, double *__iptr) // breaks the argument value into // integral and fractional parts double sin (double __x) // returns sine of x double sqrt (double __x) // returns square root of x double tan (double __x) // returns tangent of x double exp (double __x) // function returns the exponential value of x. double atan (double __x) // arc tangent of x double atan2 (double __y, double __x) // arc tangent of y/x double log (double __x) // natural logarithm of x double log10 (double __x) // logarithm of x to base 10. double pow (double

Arduino function libraries~I/O Function

  Arduino function  libraries~I/O Function {Tutorial 13} I/O Functions Basically, all pins on the Arduino board can be configured as either outputs or inputs . Note that a majority of Arduino analog pins, may be configured, and used, in exactly the same manner as digital pins. As INPUT By default all arduino Pins are configured as inputs. This means that it takes very little current to switch the input pin from one state to another. This makes the pins useful for such tasks as implementing a capacitive touch sensor or reading an LED as a photodiode. Pull-up Resistors Pull-up resistors are often useful to steer an input pin to a known state if there is no input. This can be achieved by adding a pull-up resistor (to +5V) , or (resistor to ground) on the input. A 10K ohm resistor is a good value for a pull-up or pull-down resistor. In-Built Pull-up Resistor with Pins Configured as Input In-Built Pull-up Resistor can be accessed from software. These built-in pull-up resistors are accesse