Showing posts with label arduino. Show all posts
Showing posts with label arduino. Show all posts

Friday 23 December 2016

ARDUINO MEGA 2560 R3 DEVELOPMENT BOARD


Features:

Microcontroller ATmega2560
Operating Voltage 5V
Input Voltage (recommended) 7-12V
Input Voltage (limits) 6-20V
Digital I/O Pins 54 (of which 15 provide PWM output)
Analog Input Pins 16
DC Current per I/O Pin 40 mA
DC Current for 3.3V Pin 50 mA
Flash Memory 256 KB of which 8 KB used by boot loader
SRAM 8 KB
EEPROM 4 KB
Clock Speed 16 MHz
                                      Table 2.1 features of arduino mega board
       
The Arduino Mega 2560 is a microcontroller board based on the ATmega2560. It has 54 digital input/output pins (of which 14 can be used as PWM outputs), 16 analog inputs, 4 UARTs (hardware serial ports), a 16 MHz crystal oscillator, a USB connection, a power jack, an ICSP header, and a reset button. It contains everything needed to support the microcontroller; simply connect it to a computer with a USB cable or power it with an AC-to-DC adapter or battery to get started. The Mega is compatible with most shields designed for the Arduino Duemilanove or Diecimila.

The Arduino Mega2560 can be powered via the USB connection or with an external power supply. The power source is selected automatically. External (non-USB) power can come either from an AC-to-DC adapter (wall-wart) or battery. The adapter can be connected by plugging a 2.1mm center-positive plug into the board's power jack. Leads from a battery can be inserted in the Gnd and VIN pin headers of the POWER connector.

The board can operate on an external supply of 6 to 20 volts. If supplied with less than 7V, however, the 5V pin may supply less than five volts and the board may be unstable. If using more than 12V, the voltage regulator may overheat and damage the board. The recommended range is 7 to 12 volts.


The power pins are as follows:
1. VIN. The input voltage to the Arduino board when it's using an external power source (as opposed to 5 volts from the USB connection or other regulated power source). You can supply voltage through this pin, or, if supplying voltage via the power jack, access it through this pin.
2. 5V. the regulated power supply used to power the microcontroller and other components on the board. This can come either from VIN via an on-board regulator, or be supplied by USB or another regulated 5V supply.
3. 3V3. A 3.3 volt supply generated by the on-board regulator. Maximum current draw is 50 mA.  GND. Ground pins.

The ATmega2560 has 256 KB of flash memory for storing code (of which 8 KB is used for the boot loader), 8 KB of SRAM and 4 KB of EEPROM.

Each of the 54 digital pins on the Mega can be used as an input or output, using pin Mode (), digitalWrite (), and digitalRead () functions. They operate at 5 volts. Each pin can provide or receive a maximum of 40 mA and has an internal pull-up resistor (disconnected by default) of 20-50 ohms. The Mega2560 has 16 analog inputs, each of which provides 10 bits of resolution (i.e. 1024 different values). By default they measure from ground to 5 volts, though is it possible to change the upper end of their range using the AREF pin and analog Reference () function.

Thursday 22 December 2016

Arduino compatible audio playback board

 AUDIO PLAYBACK BOARD - aPR33A3


                         

FEATURES

1. Operating Voltage Range: 3V ~ 6.5V
2. Single Chip, High Quality Audio/Voice Recording & Playback Solution
3. No External ICs Required
4. Minimum External Components
5. User Friendly, Easy to Use Operation
6. Programming & Development Systems Not Required
7. 170/ 340/ 680 sec. Voice Recording Length in aPR33A1/aPR33A2/aPR33A3
8. Powerful 16-Bits Digital Audio Processor.
9. Non-volatile Flash Memory Technology
10. No Battery Backup Required
11. External Reset pin.
12. Powerful Power Management Unit
13. Very Low Standby Current: 1uA
14. Low Power-Down Current: 15uA
15. Supports Power-Down Mode for Power Saving
16. Built-in Audio-Recording Microphone Amplifier
17. No External OPAMP or BJT Required
18. Easy to PCB layout
19. Configurable analog interface
20. Differential-ended MIC pre-amp for Low Noise
21. High Quality Line Receiver
22. High Quality Analog to Digital and PWM module
23. Resolution up to 16-bits
24. Simple And Direct User Interface

The aPR33A series are powerful audio processor along with high performance audio analog-to-digital converters (ADCs) and digital-to-analog converters (DACs). The aPR33A series are a fully integrated solution offering high performance and unparalleled integration with analog input, digital processing and analog output functionality. The aPR33A series incorporates all the functionality required to perform demanding audio/voice applications. High quality audio/voice systems with lower bill-of-material costs can be implemented with the aPR33A series because of its integrated analog data converters and full suite of quality-enhancing features such as sample-rate convertor.

The aPR33A series C2.0 is specially designed for simple key trigger, user can record and playback the message averagely for 1, 2, 4 or 8 voice message(s) by switch, It is suitable in simple interface or need to limit the length of single message, e.g. toys, leave messages system, answering machine etc. Meanwhile, this mode provides the power-management system. Users can let the chip enter power-down mode when unused. It can effectively reduce electric current consuming to 15uA and increase the using time in any projects powered by batteries.

Arduino and its features

ARDUINO – AN INTRODUCTION
Arduino is an open-source prototyping platform based on easy-to-use hardware and software.

Arduino boards are able to read inputs in the form of
1.Sensor data
2.Push buttons
3. Twitter message etc …
And can output in the form of
1.Twitter notification
2.Glow an LED
3.Turn on a motor


WHY ARDUINO?
Inexpensive
Cross-platform
Simple, clear programming environment
Open source and extensible software
Open source and extensible hardware

Coding languages for arduino
C
C++
C#
Java
Arduino using frameworks
.net


Digital pins-- Use these pins with digitalRead(), digitalWrite(), and     analogWrite(). analogWrite() works only on the pins with the PWM symbol.

Pin 13 LED --The only actuator built-in to your board. Besides being a handy target for your first blink sketch, this LED is very useful for debugging.

Power LED Indicates that your Genuino is receiving power. Useful for debugging.

ATmega microcontroller-- The heart of your board.

Analog input- Use these pins with analogRead().
GND and 5V pins-- Use these pins to provide +5V power and ground to your circuits.

Power connector-- This is how you power your Genuino when it’s not plugged into a USB port for power. Can accept voltages between 7-12V.

TX and RX LEDs --These LEDs indicate communication between your Genuino and your computer. Expect them to flicker rapidly during sketch upload as well as during serial communication. Useful for debugging.

USB port-- Used for powering your Genuino Uno, uploading your sketches to your Genuino, and for communicating with your Genuino sketch (via Serial. println() etc.).

Reset button --Resets the ATmega microcontroller

Friday 16 December 2016

example of arduion code in java language

public class Blink extends JArduino {

public Blink(String port) {
    super(port);
}

@Override
protected void setup() {
    // initialize the digital pin as an output.
    // Pin 13 has an LED connected on most Arduino boards:
    pinMode(DigitalPin.PIN_12, PinMode.OUTPUT);
}

@Override
protected void loop() {
    // set the LED on
    digitalWrite(DigitalPin.PIN_12, DigitalState.HIGH);
    delay(1000); // wait for a second
    // set the LED off
    digitalWrite(DigitalPin.PIN_12, DigitalState.LOW);
    delay(1000); // wait for a second
}

public static void main(String[] args) {
    String serialPort;
    if (args.length == 1) {
        serialPort = args[0];
    } else {
        serialPort = Serial4JArduino.selectSerialPort();
    }
    JArduino arduino = new Blink(serialPort);
    arduino.runArduinoProcess();
}

}

programming languages for arduino

The official languages that are recommended for arduino are C and C++. However arduino will also respond for the following languages

1. C#
2. Python
3. Ada
4. Java
5. Pascal

However the GCC-AVR compiler can be extended to support other languages. If you want to interact with arduino with any other language, You can write your own compiler too.