• Basic Electronics

    Learn about Basic Electronics and various electronic components and their working...

    Read More
  • Arduino

    Learn about Arduino and make various interesting projects using Arduino...

    Read More
  • 555 IC

    Learn about 555 IC and make various interesting projects using 555 IC...

    Read More
  • Basic Electronics

    Learn about Basic Electronics and various electronic components and their working...

    Read More
  • Arduino

    Learn about Arduino and make various interesting projects using Arduino...

    Read More
Showing posts with label Arduino. Show all posts
Showing posts with label Arduino. Show all posts

Monday, August 04, 2014

Sending Data to Two Serial Devices at the Same Time

You want to send data to a serial device such as a serial LCD, but you are already using the built-in serial port to communicate with your computer. On a Mega this is not a problem, as it has four hardware serial ports; just create two serial objects and use one for the LCD and one for the computer: void setup() { // initialize two serial ports on a Mega Serial.begin(9600); // primary serial port Serial1.begin(9600); // Mega can also use Serial1...

Monday, August 04, 2014

Receiving Serial Data in Arduino

You want to receive data on Arduino from a computer or another serial device; for example, to have Arduino react to commands or data sent from your computer. It’s easy to receive 8-bit values (chars and bytes), because the Serialfunctions use 8-bit values. This sketch receives a digit (single characters 0 through 9) and blinks the LED on pin 13 at a rate proportional to the received digit value: /* * SerialReceive sketch * Blink the LED at a rate proportional to the received digit value */ const int ledPin = 13; // pin the LED is connected...

Wednesday, July 23, 2014

Programmable LED MATRIX [ARDUINO]

This led matrix can be programmed using arduino, various patterns can be made using functions and by specifying the LED's on the array. components- transistors- BC547 Resistances- 470 ohm and 1K ohm Arduino Uno hookup wires breadboard Circuit Schematic- Sketch- int x [4] = {13,12,11,4}; //Pins of x axis in numerical order int y [4] = {10,7,8,2}; //Pins of y axis in numerical order void setup () {  for (int a=0; a<4;...

Sunday, July 20, 2014

ARDUINO: Driving DC Motors using Transistors and PWM

DC motors, which you can find in numerous devices around your home, rotate continuously when a DC voltage is applied across them. Such motors are commonly found as the driving motors in radio control (RC) cars, and as the motors that make the discs spin in your DVD player. DC motors are great because they come in a huge array of sizes and are generally very cheap. By adjusting the voltage you apply to them, you can change their rotation speed....

Friday, July 11, 2014

XBEE Cheatsheet

    Source: www.tunnelsup.c...

Friday, July 11, 2014

Atmega AT328P pin mapping

...

Friday, July 11, 2014

Arduino:Reading Digital Inputs with Pulldown Resistors

All digital inputs use a pullup or pulldown resistor to set the “default state” of the input pin. Imagine the circuit in Figure below without the 10kΩ resistor. In this scenario, the pin would obviously read a high value when the button is pressed.But, what happens when the button is not being pressed? In that scenario, the input pin you would be reading is essentially connected to nothing—the input pin is said to be “floating.” And because the...

Friday, July 11, 2014

Arduino: Pulse-Width Modulation with analogWrite()

we can generate analog output values by using a trick called pulse-width modulation(PWM). Select pins on each Arduino can use the analogWrite()command to generate PWM signals that can emulate a pure analog signal when used with certain peripherals. These pins are marked with a ~ on the board.On the Arduino Uno, Pins 3, 5, 6, 9, 10, and 11 are PWM pins. If you’re using an Uno, you can continue to use the circuit from Figure 2-1 to test out the analogWrite()command...

Friday, July 11, 2014

Arduino: Working with “Bouncy” Buttons

When was the last time you had to hold a button down to keep a light on? Probably never. It makes more sense to be able to click the button once to turn it on and to click the button again to turn it off. This way, you do not have to hold the button down to keep the light on. Unfortunately, this is not quite as easy as you might first guess. You cannot just look for the value of the switch to change from low to high; you need to worry about a phenomenon...

Friday, July 04, 2014

Simple Motor Control using Arduino

We are first going to simply control the speed of a DC motor, in one direction, using a power transistor, diode, and external power supply to power the motor and a potentiometer to control the speed. Any suitable NPN power transistor designed for high current loads can replace the TIP120 transistor. However, I would highly recommend you use a power Darlington-type transistor. Make sure you choose a transistor that can handle the voltage and current...

Friday, July 04, 2014

Pulsating Lamp using Arduino

In this project we will alter the brightness of the LED, and make a pulsating lamp, using the analogWrite() function. Parts Required Table 3-3lists the parts required for Project 7. We simply use an LED and resistor. Connect It Up The circuit for this project is simply a green LED connecting, via a current-limiting resistor, between ground and Digital Pin 11. Enter the Code Open up your Arduino IDE and type in the code . int...

Friday, July 04, 2014

LED Chase Effect using Arduino

We are now going to use a string of LEDs (10 in total) to make an LED chase effect (see Table 3-1), similar to that used on the car KITT in the KnightriderTV series or the Cylons in Battlestar Galactica. Connect It Up First, make sure your Arduino is powered off by unplugging it from the USB cable. Now take your breadboard, LEDs, resistors, and wires, and connect everything up as in Figure 3-1. Check your circuit thoroughly before...

Wednesday, July 02, 2014

Arduino cheatsheet!!

...

Wednesday, July 02, 2014

what is Arduino ?

Arduino is an open-source electronics prototyping platform based on flexible, easy-to-use hardware and software. It's intended for artists, designers, hobbyists, and anyone interested in creating interactive objects or environments. This Google Code project is the home for the development of the Arduino platform. For more information on using Arduino, see the Arduino homepage. The Arduino software consists of a development environment (IDE)...