This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en:iot-open:practical:hardware:ittgroup:atmel [2024/04/16 08:47] – created raivo.sell | en:iot-open:practical:hardware:ittgroup:atmel [2025/09/02 08:36] (current) – raivo.sell | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| + | |||
| + | ===== Introduction ===== | ||
| + | Each laboratory node is equipped with an ATmega2561 chip. Several peripherals, | ||
| + | |||
| + | {{ :: | ||
| + | |||
| + | |||
| + | ===== Hardware reference ===== | ||
| + | The main module is a controller development board (controller board) equipped with the AVR ATmega2561 microcontroller. In addition to the microcontroller, | ||
| + | |||
| + | * ATmega2561-16AU microcontroller | ||
| + | * 8-channel 10-bit A/D converter | ||
| + | * 256 kB Flash memory (program memory) | ||
| + | * 4kB EEPROM memory (data memory) | ||
| + | * 6 channel programmable PWM | ||
| + | * Integrated JTAG programmer (based on FTDI2232) | ||
| + | * 14,7456 MHz clock | ||
| + | * Ethernet module with RJ45 connector | ||
| + | * SD memory card slot | ||
| + | * Status LED (PB7)and Power LED | ||
| + | * Programmable button (PC2) and reset button | ||
| + | * All Atmega signals available on three connectors (1: ports D, B, E; 2: ports G, C, A; 3: port F with ADC I/O lines) | ||
| + | * 2,1 mm power socket | ||
| + | * Automatic power switch USB or external power supply | ||
| + | * Built-in voltage stabilizer, with 5 V and 3,3 V output | ||
| + | |||
| + | <figure atmega2561> | ||
| + | {{ : | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | ==== Connector Pins and Functions ==== | ||
| + | All ATmega2561 signals are available on three connectors on the edge of the board. | ||
| + | |||
| + | |||
| + | {{: | ||
| + | ~~CL~~ | ||
| + | ^Nr^Pin^Alternative function / Description^^ | ||
| + | |1|VCC|- | ||
| + | |2|GND|- | ||
| + | |3|REF|AREF|Analog Reference Voltage For ADC | | ||
| + | |4|GND|- | ||
| + | |5|PF0|ADC0|ADC Input Channel 0 | | ||
| + | |6|GND|-|GND | | ||
| + | |7|PF1|ADC1|ADC Input Channel 1 | | ||
| + | |8|GND|-|GND | | ||
| + | |9|PF2|ADC2|ADC Input Channel 2 | | ||
| + | |10|GND|-|GND | | ||
| + | |11|PF3|ADC3|ADC Input Channel 3| | ||
| + | |12|GND|-|GND | | ||
| + | |||
| + | {{: | ||
| + | ~~CL~~ | ||
| + | ^Nr^Pin^Alternative function / Description^^ | ||
| + | |1 |PD7|T2 | ||
| + | |2 |PD6|T1 | ||
| + | |3 |PD5|XCK1 | ||
| + | |4 |PD4|IC1 | ||
| + | |5 |PD3|INT3/ | ||
| + | |6 |PD2|INT2/ | ||
| + | |7 |PD1|INT1/ | ||
| + | |8 |PD0|INT0/ | ||
| + | |9 |VCC|- | ||
| + | |10|GND|- | ||
| + | |11|PB7|OC0A/ | ||
| + | |12|PB6|OC1B/ | ||
| + | |13|PB5|OC1A/ | ||
| + | |14|PB4|OC2A/ | ||
| + | |15|PB3|MISO/ | ||
| + | |16|PB2|MOSI/ | ||
| + | |17|PB1|SCK/ | ||
| + | |18|PB0|SS/ | ||
| + | |19|PE7|INT7/ | ||
| + | |20|PE6|INT6/ | ||
| + | |21|PE5|INT5/ | ||
| + | |22|PE4|INT4/ | ||
| + | |23|PE3|AIN1/ | ||
| + | |24|PE2|AIN0/ | ||
| + | |25|PE1|PDO/ | ||
| + | |26|PE0|PDI/ | ||
| + | |||
| + | {{: | ||
| + | ~~CL~~ | ||
| + | ^Nr^Pin^Alternative function / Description^^ | ||
| + | |1 |GND|- | ||
| + | |2 |VCC|- | ||
| + | |3 |PA0|AD0|External memory interface address and data bit 0 | | ||
| + | |4 |PA1|AD1|External memory interface address and data bit 1 | | ||
| + | |5 |PA2|AD2|External memory interface address and data bit 2 | | ||
| + | |6 |PA3|AD3|External memory interface address and data bit 3 | | ||
| + | |7 |PA4|AD4|External memory interface address and data bit 4 | | ||
| + | |8 |PA5|AD5|External memory interface address and data bit 5 | | ||
| + | |9 |PA6|AD6|External memory interface address and data bit 6 | | ||
| + | |10|PA7|AD7|External memory interface address and data bit 7 | | ||
| + | |11|PG4|TOSC1|RTC Oscillator Timer/ | ||
| + | |12|PG5|OC0B|Output Compare and PWM Output B for Timer/ | ||
| + | |13|PG2|ALE|Address Latch Enable to external memory | ||
| + | |14|PG3|TOSC2|RTC Oscillator Timer/ | ||
| + | |15|PC6|A14|External Memory interface address bit 14 | | ||
| + | |16|PC7|A15|External Memory interface address bit 15 | | ||
| + | |17|PC4|A12|External Memory interface address bit 12 | | ||
| + | |18|PC5|A13|External Memory interface address bit 13 | | ||
| + | |19|PC2|A10|External Memory interface address bit 10 | | ||
| + | |20|PC3|A11|External Memory interface address bit 11 | | ||
| + | |21|PC0|A8 |External Memory interface address bit 8 | | ||
| + | |22|PC1|A9 |External Memory interface address bit 9 | | ||
| + | |23|PG0|WR |Write strobe to external memory | ||
| + | |24|PG1|RD |Read strobe to external memory | ||
| + | |25|GND|- | ||
| + | |26|3V3|- | ||
| + | |||
| + | |||
| + | ==== User Interface module ==== | ||
| + | |||
| + | The User Interface module is designed for simple tasks and basic process control. Module has three push-buttons and three LEDs, which can be used as digital inputs and outputs of microcontroller. Additionally to simple LEDs the module is equipped with 7-segment indicator, graphical LCD display and a buzzer. User Interface module is handy to use along with other modules enabling to control the output device behavior, like motors and display the sensor readings. | ||
| + | |||
| + | Module features: | ||
| + | * Three LEDs: green, yellow and red; | ||
| + | * Three push-buttons; | ||
| + | * 7-segment indicator; | ||
| + | * Graphical LCD; | ||
| + | * Buzzer; | ||
| + | |||
| + | <figure ui> | ||
| + | {{: | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | |||
| + | === Electrical connections === | ||
| + | The User Interface module is connected to the Controller module to ports PA/PC/PG, which includes the 8-pin ports PA and PC and the 6-pin port PG. | ||
| + | |||
| + | The User Interface module is equipped with three buttons, S1, S2, and S3, which are connected to ports PC0, PC1, and PC2, respectively. The other ends of the buttons are connected through the resistors to ground (logical 0). LED1, LED2, and LED3 on the module are connected to the ports PC3, PC4, and PC5, respectively. The anodes of LEDs are connected to the supply (logical 1). | ||
| + | |||
| + | <figure ui_s> | ||
| + | {{ : | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | |||
| + | ~~CL~~ | ||
| + | |||
| + | The User Interface module is equipped with a 7-segment indicator, which is connected to the microcontroller ports through the driver A6275. Driver data bus (S-IN) is connected to pin PC6, clock signal (CLK) to the pin PC7, and latch signal (LATCH) to pin PG2. | ||
| + | |||
| + | <figure ui_7> | ||
| + | {{ : | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | ~~CL~~ | ||
| + | |||
| + | The graphical LCD display on the module is connected to port PA. LCD's background lighting can be logically controlled by the software. | ||
| + | |||
| + | <figure ui_lcd> | ||
| + | {{: | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | |||
| + | ==== Combo module ==== | ||
| + | |||
| + | The combo module is used in this remote Laboratory to power the motors and connect external sensors. | ||
| + | |||
| + | The combo module can drive the following motors: | ||
| + | * 4 x DC motors | ||
| + | * 1 x Stepper | ||
| + | * 2 x Servomotor | ||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | Connect the following sensors: | ||
| + | * 4 x analog | ||
| + | * 4 x digital | ||
| + | * 2 x coder | ||
| + | * 8x digital inputs through a parallel-to-serial converter | ||
| + | |||
| + | \\ | ||
| + | \\ | ||
| + | |||
| + | <figure combo> | ||
| + | {{: | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | === Electrical connections === | ||
| + | |||
| + | The combo board is connected with the controller using PA-PB-PC-PD-PE-PF ports. DC and stepper motor feeds come from an external power cord; the servo motor feed comes through a 5V voltage regulator, also from an external power cord. The motor' | ||
| + | |||
| + | |||
| + | === DC motors === | ||
| + | |||
| + | DC motors are connected to the DC group of pins. Every pair of pins can control 1 DC motor, thus it's possible to manipulate 4 DC motors. The combo board uses {{: | ||
| + | |||
| + | <figure combo_m> | ||
| + | {{: | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | |||
| + | ~~CL~~ | ||
| + | |||
| + | ^ AVR pin ^ Signal ^ AVR pin ^ Signal ^ | ||
| + | | PB4 | Motor 1 A | PD6 | Motor 3 A | | ||
| + | | PB7 | Motor 1 B | PD7 | Motor 3 B | | ||
| + | | PD0 | Motor 2 A | PD4 | Motor 4 A | | ||
| + | | PD1 | Motor 2 B | PD5 | Motor 4 B | | ||
| + | |||
| + | |||
| + | === Stepper motor === | ||
| + | <figure combo_s> | ||
| + | {{: | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | |||
| + | ~~CL~~ | ||
| + | === Servomotor === | ||
| + | The servo motor is connected to //Servo// group of pins. Ground wire is connected to the GND pin, which is the pin nearest to the board edge. It's possible to use two servomotors at once. Signal pins on the Combo module are directly connected to the controller' | ||
| + | |||
| + | <figure combo_se> | ||
| + | {{: | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | |||
| + | ~~CL~~ | ||
| + | |||
| + | ^ AVR pin ^ Signal ^ Socket ^ | ||
| + | | PB5(OC1A) | PWM1 | Top | | ||
| + | | PB6(OC1B) | PWM2 | Bottom | | ||