background image

protocol in the micro-controller. There are

four

UART modules from

UART3

to

UART0

in ATmega2560. The TX and RX pins of

UART3:1

are present on this header. The TX and

RX pins of

UART0

is not made available on the board. Apart from using these pins as TX

and RX pins of UART module, they also have certain alternative functions, the details of

the same is shown in Figure

4

This header also has two pins of VCC i.e. 5V and GND

each.

2.1.13 SPI header

This header is a group of pins of ATmega2560 that can be used as Bus pins for

Serial

Peripheral Interface (SPI)

protocol in the micro-controller. The

MISO

or

PB3

are two

names of the same pin of micro-controller. Similarly,

MOSI

or

PB2

and

SCK

or

PB1

are

two names of the same pin of micro-controller. The other name for the

Slave Select

pin

SS0

is

PB2

. There is only one Slave Select pin available in ATmega2560, but for interfac-

ing multiple devices via SPI protocol, one can configure any GPIO pin as Slave Select.

We have provided one such GPIO pin

PJ7

and named it as

SS1

. Apart from using these

pins as Bus pins of SPI, they also have certain alternative functions, the details of the

same is shown in Figure

4

This header also has two pins of VCC i.e. 5V and GND each.

2.1.14 PWM header

This header is a group of pins of ATmega2560 that can be used as

Output Compare

or

Pulse Width Modulation (PWM)

pins for the Timers in the micro-controller. There

are

two 8-bit

Timers,

Timer 0

and

2

and

four 16-bit

Timers,

Timer 1

,

3

,

4

and

5

in AT-

mega2560.

8-bit

Timers have

two

PWM Channels named as

OCnA

and

OCnB

where

n

stands for Timer number and will be of value

0

and

2

.

16-bit

Timers have

four

PWM

Channels named as

OCnA

,

OCnB

and

OCnC

where

n

stands for Timer number and will

be of value

1

,

3

,

4

and

5

. Total

14

PWM Channels available on this header, they are:

OC0A

,

OC0B

,

OC1A

,

OC1B

,

OC1C

,

OC2A

,

OC2B

,

OC3A

,

OC4A

,

OC4B

,

OC4C

,

OC5A

,

OC5B

and

OC5C

. The PWM channel

OC0A

and

OC1C

are two names of the same pin of

micro-controller. The PWM channels

OC3B

and

OC3C

are not present on this header,

since they have other alternate functions which are given more priority. These chan-

nels

OC0A

and

OC1C

can be found in Figure

4

The

x

in the header name

OCn(A/B/C)

stands for Timer number and ranges from

5

to

0

. Apart from using these pins as Output

Compare or PWM channel, they also have certain alternative functions, the details of

the same is shown in Figure

4

This header also has two pins of VCC i.e. 5V and GND

each. Also, the

RESET

pin of ATmega2560 is available on this header.

2.1.15 ESP32 GPIO header

This is divided into

two

headers, each of

2 x 4

pins header. These are the pins of ESP32

and are named with their default functionality of GPIO. Apart from using these pins as

GPIO, they also have certain alternative functions, the details of the same is shown in

16

Summary of Contents for eYFi-Mega

Page 1: ...Hardware Manual for eYFi Mega Development Board Produced by e Yantra Team https e yantra org products eyfi mega Version 0 1 Dated December 14 2019...

Page 2: ...ut notice This document is provided as is with no warranties whatsoever includ ing any warranty or merchantability non infringement fitness for any particular purpose or any warranty otherwise arising...

Page 3: ...controller 10 2 1 3 16 MHz crystal 10 2 1 4 LEDs 11 2 1 5 Switches 12 2 1 6 ICSP connector 13 2 1 7 GPIO1 header 13 2 1 8 GPIO2 header 15 2 1 9 INTx header 15 2 1 10 ADCx header 15 2 1 11 I2C header...

Page 4: ...C Flashing Boot loader on ESP32 25 3...

Page 5: ...udio 7 23 7 Fuse settings to be done 23 8 All OK message after programming the Fuses 24 List of Tables 1 Specifications of eYFi Mega development board 7 2 Functional Diagram of eYFi Mega 9 3 Partition...

Page 6: ...various combinations of performance power consumption and features The eYFi Mega board does not require any specialized hardware for programming as it comes with pre installed bootloader file thus the...

Page 7: ...tware Connect the eYFi Mega board to a PC with a USB micro B plug to USB A plug cable through USB connector to power the board The red LEDs AVR_ON and ESP_ON should light up The RGB LED should light u...

Page 8: ...reeRTOS Both micro controllers are capable of running FreeRTOS ESP32 runs FreeRTOS out of the box Arduino Programming Language Both micro controllers can be programmed using Arduino Programming Langua...

Page 9: ...f eYFi Mega The eYFi Mega board includes ATmega2560 and ESP32 micro controllers and a range of useful peripheral features as the block diagram in Figure 2 This chapter describes how these peripherals...

Page 10: ...M header 2 INTx header 15 EXT_PWR header 3 ADCx header 16 S3 switch 4 I2C header 17 3 3 V header 5 GPIO1 header 18 S1 switch 6 USER_SW push button 19 TX LED and RX LED 7 16 MHz crystal 20 ESP32 GPIO h...

Page 11: ...Wi Fi BT BLE MCU module that targets a wide variety of applications ranging from low power sensor networks to the most de manding tasks such as voice encoding music streaming and MP3 decoding It has...

Page 12: ...is important to know the different states in which your board is These states are indicated by this LED Below is the description of different LED patterns associated with different states of the board...

Page 13: ...of ESP32 respectively Through this connection one can send and receive any data between ATmega2560 and ESP32 If S2 is switched to right side the connection between ATmega2560 and ESP32 breaks Note Mak...

Page 14: ...In Circuit Serial Programming or ISP In System Program ming header of ATmega2560 For more details about ISP and boot loader refer to Sec tion 2 1 1 The ICSP connector pins are shown in Figure 4 Note...

Page 15: ...Figure 4 eYFi Mega Pinout Diagram for ATmega2560 14...

Page 16: ...s two pins of VCC i e 5V and GND each 2 1 10 ADCx header This header is a group of pins of ATmega2560 that can be used as analog inputs or chan nels for the Analog to Digital Converter ADC inside the...

Page 17: ...sed as Output Compare or Pulse Width Modulation PWM pins for the Timers in the micro controller There are two 8 bit Timers Timer 0 and 2 and four 16 bit Timers Timer 1 3 4 and 5 in AT mega2560 8 bit T...

Page 18: ...This is a Micro USB port where a USB micro B plug to USB A plug cable can be con nected to the PC It can be used to flash the firmware on ATmega2560 or ESP32 via wired connection Also one can connect...

Page 19: ...Figure 5 eYFi Mega Pinout Diagram for ESP32 18...

Page 20: ...r This header is a group of pins where the eYFi Mega board can be powered by an External DC Supply These pins are divide into VIN and GND each having four pins The positive terminal of External DC Sup...

Page 21: ...om sites default files documentation esp32 wroom 32_datasheet_en pdf 3 Espressif IoT Development Framework ESP IDF Programming Guide available at https docs espressif com projects esp idf en stable in...

Page 22: ...Appendices A Revision History Table 7 Revision History of the document Date Version Release notes December 14 2019 v0 1 First release of the document 21...

Page 23: ...section on eYFi Mega page link https e yantra org products eyfi mega 2 Connect the USB A Male to B Male cable to the PC and Atmel AVRISP mkII 3 Connect the 6 pin AVR ISP FRC cable of Atmel AVRISP mkII...

Page 24: ...Apply 11 Click on Read to read the Device Signature 12 Check whether the Device Signature value is 0x1E9801 and the Target Voltage is around 5V 13 Go to Fuses and select the Fuse settings as shown in...

Page 25: ...8 Make sure the options Erase device before programming and Verify flash device after programming are selected 19 Select the Boot loader firmware downloaded under the Flash 256 KB section and press Pr...

Page 26: ...ESP32 refer the Section Flashing eYFi Mega ESP32 Bootloader in the Software Manual of eYFi Mega development board 2 To upload the Partition Table of ESP32 refer the Section Flashing eYFi Mega ESP32 P...

Reviews: