This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:iot-open:practical:hardware:ittgroup:atmel [2024/04/16 10:52] – 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, | ||
| - | ====== Controller module ATmega2561 v1.x ====== | + | {{ :: |
| + | |||
| + | |||
| + | ===== Hardware reference | ||
| The main module is a controller development board (controller board) equipped with the AVR ATmega2561 microcontroller. In addition to the microcontroller, | The main module is a controller development board (controller board) equipped with the AVR ATmega2561 microcontroller. In addition to the microcontroller, | ||
| Line 20: | Line 25: | ||
| * Automatic power switch USB or external power supply | * Automatic power switch USB or external power supply | ||
| * Built-in voltage stabilizer, with 5 V and 3,3 V output | * Built-in voltage stabilizer, with 5 V and 3,3 V output | ||
| - | [{{ : | ||
| - | The module is equipped with a AC/DC rectifier circuit and a LDO voltage stabilizer (with low dropout) -an external feeder with voltage stabilization is not needed. | + | <figure atmega2561> |
| - | The module can be powered with a step down transformer with an output voltage which is greater than 6 volts and lower than 15 volts. In order to reduce power losses it is recommended to use power supply between 6-9V. | + | {{ : |
| - | All ATmega2561 signals are available on three connectors on the edge of the board. Connectors pin assignment is described in the next part of this instruction. It includes full descriptions of ATmega2561 pins and their alternative functions. The module | + | < |
| - | To the seventh pin of port B (named as PB7) the status LED (described as PB7 on the board) is connected. This LED can be used as a status indicator of application software. Low state on PB7 pin causes the status LED to be lit. | + | </ |
| - | The module is equipped with SD memory card slot, where it can be used as a standard microSD memory card. The memory card is connected to the microcontroller via the ISP interface and can be used to store data where data must be maintained even if the power supply is removed. | + | |
| - | [{{: | + | ==== Connector Pins and Functions ==== |
| + | All ATmega2561 signals are available on three connectors | ||
| - | ===== Connector Pins and Functions ===== | ||
| {{: | {{: | ||
| Line 47: | Line 50: | ||
| |11|PF3|ADC3|ADC Input Channel 3| | |11|PF3|ADC3|ADC Input Channel 3| | ||
| |12|GND|-|GND | | |12|GND|-|GND | | ||
| - | |||
| - | < | ||
| {{: | {{: | ||
| Line 111: | Line 112: | ||
| - | ===== User Interface module | + | ==== 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, alphanumeric LCD outputs | + | 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: | Module features: | ||
| Line 120: | Line 121: | ||
| * 7-segment indicator; | * 7-segment indicator; | ||
| * Graphical LCD; | * Graphical LCD; | ||
| - | * Alphanumeric LCD connector; | ||
| * Buzzer; | * Buzzer; | ||
| + | <figure ui> | ||
| {{: | {{: | ||
| + | < | ||
| + | </ | ||
| - | ===== Electrical connections ===== | ||
| - | User Interface module is connected to Controller module to ports PA/PC/PG, which includes the 8-pin ports PA and PC and 6-pin port PG. | ||
| - | User Interface module is equipped with three buttons S1, S2, S3 which are connected to ports PC0, PC1, PC2 accordingly. The other end of buttons are connected through | + | === Electrical connections === |
| + | The User Interface module is connected to the Controller module | ||
| - | [{{ : | + | 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 |
| - | ~~CL~~ | + | <figure ui_s> |
| + | {{ : | ||
| + | < | ||
| + | </ | ||
| - | User Interface module is equipped with 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. | ||
| - | |||
| - | [{{ : | ||
| ~~CL~~ | ~~CL~~ | ||
| - | The graphical LCD display on the module is connected to port PA. In parallel | + | The User Interface |
| - | [{{: | + | <figure ui_7> |
| + | {{ :examples:digi:digi_io_7seg_schematics_v51.png? | ||
| + | < | ||
| + | </ | ||
| ~~CL~~ | ~~CL~~ | ||
| - | The buzzer | + | The graphical LCD display on the module |
| + | |||
| + | <figure ui_lcd> | ||
| + | {{: | ||
| + | < | ||
| + | </ | ||
| - | [{{ : | ||
| - | < | ||
| - | ====== Combo module | + | ==== Combo module ==== |
| - | Combo module is used in this remote Laboratory to power the motors and connect external sensors. | + | The combo module is used in this remote Laboratory to power the motors and connect external sensors. |
| - | Combo module | + | The combo module |
| * 4 x DC motors | * 4 x DC motors | ||
| * 1 x Stepper | * 1 x Stepper | ||
| Line 162: | Line 170: | ||
| \\ | \\ | ||
| - | Connect following sensors: | + | Connect |
| * 4 x analog | * 4 x analog | ||
| * 4 x digital | * 4 x digital | ||
| * 2 x coder | * 2 x coder | ||
| - | * 8x digital inputs | + | * 8x digital inputs |
| \\ | \\ | ||
| \\ | \\ | ||
| - | Use the following communication interfaces: | + | <figure combo> |
| - | * UART (3,3 or 5 V ) | + | {{:kit: |
| - | * ZigBee | + | < |
| + | </figure> | ||
| - | [{{: | ||
| + | === Electrical connections === | ||
| - | ===== 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' |
| - | Combo board is connected with controller using PA-PB-PC-PD-PE-PF ports. DC and stepper motor feeds come from external power cord, servo motors feed comes trough 5V voltage regulator also from external power cord. Motors power circuit is separated from controller' | ||
| + | === DC motors === | ||
| - | ===== DC motors | + | DC motors |
| - | DC motors is 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. Combo board uses {{:datasheets:datasheet_h_sild_bd6226fp.pdf|bd6226fp}} H-bridge to control dc motors. It's possible to manipulate some other device, what can be controlled digitally and it's current is smaller than 1 A and voltage does not exceed 18 V, beside dc motor with DC pins (Piezoelectric generator, relay etc). | + | <figure combo_m> |
| + | {{:en:iot-open: | ||
| + | < | ||
| + | </ | ||
| - | [{{: | ||
| ~~CL~~ | ~~CL~~ | ||
| Line 199: | Line 210: | ||
| - | ==== Stepper motor ==== | + | === Stepper motor === |
| - | [{{:et:hardware:homelab:steper2.png?580|Stepper connection scheme | + | <figure combo_s> |
| + | {{:en: | ||
| + | < | ||
| + | </ | ||
| ~~CL~~ | ~~CL~~ | ||
| - | ==== Servomotor | + | === Servomotor === |
| - | Servo 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 2 servomotors at once. Signal pins on the Combo module | + | 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 |
| + | |||
| + | <figure combo_se> | ||
| + | {{: | ||
| + | < | ||
| + | </ | ||
| - | [{{: | ||
| ~~CL~~ | ~~CL~~ | ||
| Line 213: | Line 232: | ||
| | PB5(OC1A) | PWM1 | Top | | | PB5(OC1A) | PWM1 | Top | | ||
| | PB6(OC1B) | PWM2 | Bottom | | | PB6(OC1B) | PWM2 | Bottom | | ||
| - | |||
| - | |||
| - | ===== Sensors ===== | ||
| - | |||
| - | ==== ADC sensor inputs ==== | ||
| - | Combo module has 4 ADC input pins, every ADC input pin forms a group with //Vcc// (+5 V) and ground which is marked as //GND//, that makes them ideal to use to connect analog sensors. | ||
| - | |||
| - | [{{: | ||
| - | |||
| - | ~~CL~~ | ||
| - | |||
| - | ^ AVR pin ^ Signal ^ Socket ^ | ||
| - | | PF0(ADC0) | ADC0 | Top | | ||
| - | | PF1(ADC1) | ADC1 | Bottom | | ||
| - | | PF2(ADC2) | ADC2 | Top | | ||
| - | | PF3(ADC3) | ADC3 | Bottom | | ||
| - | |||
| - | ==== Digital inputs ==== | ||
| - | Combo module has 4 groups of pins where to connect digital sensors. Every group consist of +5 V also called //Vcc//, ground also called //GND// and signal pin. | ||
| - | |||
| - | [{{: | ||
| - | ~~CL~~ | ||
| - | |||
| - | ^ AVR pin ^ Signal ^ Socket ^ | ||
| - | | PE2(XCK0/ | ||
| - | | PE3(OC3A/ | ||
| - | | PE4(OC3B/ | ||
| - | | PE5(OC3C/ | ||
| - | |||
| - | ===== Digital serial input ===== | ||
| - | Combo module has with 8 input pins parallel in serial out shift register 74HC/ | ||
| - | |||
| - | [{{: | ||
| - | |||
| - | ~~CL~~ | ||
| - | |||
| - | ^ AVR pin ^ Signal ^ | ||
| - | | PA7(AD7) | Q7 | | ||
| - | | PC7(A15) | CP | | ||
| - | | PA6(AD6) | PL | | ||
| - | | GND | CE | | ||
| - | |||
| - | ==== Coder ==== | ||
| - | |||
| - | [{{: | ||
| - | ~~CL~~ | ||
| - | |||
| - | ^ AVR pin ^ Signal ^ | ||
| - | | PE6 | Coder 1 | | ||
| - | | PE7 | Coder 2 | | ||