You are on page 1of 21

R-tist &

I Sky Technolog ies

Input Devices

Embeded system

Output Devices

` ` `

It is an open source hardware. The arduino program done on arduino IDE board. Crystal oscillation is of 16 MHz follow the path of minimum error with acurate maxi. Efficiency. Microcontroller need only squar wave form that that is why we need capacitor with crystal oscillator. It also reduce noise.

Hardware The Arduino or other clone boards Based on the Atmel AVR series Controllers

Software The Arduino IDE. Based on win AVR (C compiler for AVR Microcontrollers)

` `

Swarms of robots are effective:


They can perform tasks that one expensive robot cannot.

Swarms are robust:


Even if some robots fail, the swarm can still achieve the task.

Scenario: Unmanned Aerial Vehicles Cooperate To Detect Targets

Inter-Integrated Circuit( generically referred to as "two-wire interface) is a multi-master serial singleended computer bus invented by Philips that is used to attach low-speed peripherals to a motherboard, embedded system, or cellphone or other electronics. IC uses only two bidirectional open-drain lines, Serial Data Line (SDA) and Serial Clock (SCL), pulled up with resistors. Typical voltages used are +5 V or +3.3 V although systems with other voltages are permitted.

The interintegrated circuit (I 2 C) bus is designed for short-range communication between chips in the same system using a software addressing system. It requires only two signal wires and operates like a simplified local area network. The I 2 C slave chips are attached to a two-wire bus, which is pulled up to logic 1 when idle. Passive slave devices have their register or location addresses determined by a combination of external input address code pins and fixed internal decoding. If several memory devices are connected to the bus, they can be mapped into a continuous address space. The master sends data in 8-bit blocks, with a synchronous clock pulse alongside each bit. As for SPI, the clock is derived from the instruction clock, up to 5 MHz at the maximum clock rate of 20 MHz. To send a data byte, the master first sends a control code to set up the transfer, then the 8-bit or 10-bit address code, and finally the data. Each byte has a start and acknowledge bit, and each byte must be acknowledged before the next is sent, to improve reliability.

master

Slave 1

Slave 2

5 volt scl sda

How to use arduino IDE

Select Board

Tool

Select serial port

cotrol panel -> device manager -> unknown serial port->right click on unknown serial port->update dreiver from computer -> Give the path of pin drive then next-> see your port no is showing or not if not repeat the process.

Q-: Make a program using pin D11, D12 and D13 blink LED in the manner of aeroplane light you see in night.

int sen1=11; int sen2=12; int sen13=13; void setup() { // initialize the digital pin as an output. // Pin 13 has an LED connected on most Arduino boards: pinMode(11, OUTPUT); pinMode(12, OUTPUT); pinMode(13, OUTPUT); } void loop() { digitalWrite(11, HIGH); digitalWrite(12, LOW); digitalWrite(13, LOW); delay(1000);

digitalWrite(12, HIGH); digitalWrite(13, LOW); digitalWrite(11,LOW); delay(1000); digitalWrite(11, LOW); digitalWrite(12, LOW); digitalWrite(13, HIGH); delay(1000); digitalWrite(11, HIGH); digitalWrite(12, HIGH); digitalWrite(13, HIGH); delay(1000); digitalWrite(11, LOW); digitalWrite(12, LOW); digitalWrite(13, LOW); delay(1000); }

Make a program using bit D11,D12 and D13 to show binary counting by blinking led.

You might also like