====== Controller module ATxmega128A1U v1.x ====== The main module of the HomeLab is a controller development board (controller board) equipped with a new generation of Atmel ATxmega128A1U USB-enabled microcontroller. In addition to the microcontroller, the board consists of several peripherals, voltage stabilizer, connectors, SD memory card slot. The controller board has the following features: * ATxmega128A1U microcontroller * 128 kB //flash//-memory (program memory) * 2 kB //EEPROM//-memory * 8 kB //SRAM//-memory (data memory) * 2 x 8-channel 12-bit 2 MHz analog-digital converter(ADC) * 2 x 2-channel digital-analog converter (DAC) * 8 x 16-bit timer * Hardware USB 2.0 //Full speed// * 8 x UART interface * 4 x SPI interface (max. 16 MHz) * 4 x I2C/TWI interface * External interrupt on each pin. * 16 MHz clock, 32 MHz Operating frequency * Micro SD memory card slot * Programmable status LED (PQ2) and power LED * Programmable button S0 (PQ3) and reset (//reset//) button * USB indicator LED (PQ0), USB power indicator LED (PQ1) * Grouped AVR pins (1: ports C, D, E; 2: ports K, J, H; 3: ports A, B, F, Q) * 2,1 mm power socket * Automatic power switch (USB or external power supply) * Built-in voltage stabilizer, with 3,3 V output * Mini USB connection to program the microcontroller and to communicate with the computer [{{ :kit:controller:kontroller_iii.png?400 |Robotic HomeLab Controller module}}] The module is equipped with a LDO voltage stabilizer (with low dropout). The module can be powered with a step down transformer with an output voltage which is greater than 6 volts and lower than 14 volts. In order to reduce power losses it is recommended to use power supply between 6-9V. The power LED signalizes a connected feed. The power LED must be lit, when connecting to the power. If it does not illuminate, the cause may be an inadequate power supply or a short circuited Controller module or a short circuit in other connected devices. Controller is equipped with fuses. If overcurrent occurs, the fuse blow and protect the most expensive components. Fuses can be changed, but it is recommended to do an experienced electronics experts. Fuses are small SMD components, and the user is difficult to replace them. The microcontroller can be programmed over USB, through the bootloader. To enter the bootloader, press and hold the button S0 on the Controller module, and then reset the controller. The Controller module is equipped with a status LED, which is connected to the microcontroller pin PQ2. The status LED will light up, if the pin is set to low (logical 0). It is good to use as a simple indicator. Another LED is connected to the pin PQ0, but it is reserved for the USB connection, and the programmatic management is not recommended. Pin PQ1 is connected through the voltage divider to USB power. This pin can be used to read, if the USB cable is connected to the Controller module or not. 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. /* ===== Ühenduspesade viigud ja nende funktsioonid ===== {{:kit:xPort1.png?400 |}} ~~CL~~ ^Nr^Viik^Funktsioon ^Kirjeldus^ |1|GND|- |Maa | |2|GND|- |Maa | |3|PA0|AREF/ADC0 |ADC võrdluspinge sisend/ADC sisendkanal 0| |4|PA1|ADC1 |ADC sisendkanal 1 | |5|PA2|ADC2/DAC0A |ADC sisendkanal 2/Digital analoog muundur A kanal 0 | |6|PA3|ADC3/DAC1A |ADC sisendkanal 3/Digital analoog muundur A kanal 1 | |7|PA4|ADC4 |ADC sisendkanal 4 | |8|PA5|ADC5 |ADC sisendkanal 5 | |9|PA6|ADC6 |ADC sisendkanal 6 | |10|PA7|ADC7 |ADC sisendkanal 7 | |11|PB0|ADC8 |ADC sisendkanal 8 | |12|PB1|ADC9 |ADC sisendkanal 9 | |13|PB2|ADC10/DAC0B |ADC sisendkanal 10/Digital analoog muundur B kanal 0 | |14|PB3|ADC11/DAC1B |ADC sisendkanal 11/Digital analoog muundur B kanal 1 | |15|PB4|ADC12 |ADC sisendkanal 12 | |16|PB5|ADC13 |ADC sisendkanal 13 | |17|PB6|ADC14 |ADC sisendkanal 14 | |18|PB7|ADC15 |ADC sisendkanal 15 | |19|PF2|OC0C/RXD0 |Taimeri F0 väljundviik / PortF UART0 | |20|PF3|OC0D/TXD0 |Taimeri F0 väljundviik / PortF UART0 | |21|PF0|OC0A/SDA |Taimeri F0 väljundviik / PortF I2C andme siin| |22|PF1|OC0B/SCL |Taimeri F0 väljundviik / PortF I2C kella siin| |23|PQ0|- |GPIO | |24|PQ1|- |GPIO | |25|VCC|- |+3.3V | |26|VCC|- |+3.3V | {{:kit:xPort2.png?400 |}} ~~CL~~ ^Nr^Viik^Funktsioon ^Kirjeldus^ |1 |PC0|OC0A/SDA |Taimeri C0 väljundviik / PortC I2C andme siin| |2 |PC1|OC0B/SCL |Taimeri C0 väljundviik / PortC I2C kella siin| |3 |PC2|OC0C/RXD0 |Taimeri C0 väljundviik / PortC UART0 | |4 |PC3|OC0D/TXD0 |Taimeri C0 väljundviik / PortC UART0 | |5 |PC4|OC1A/SS |Taimeri C1 väljundviik / PortC SPI | |6 |PC5|OC1B/MOSI |Taimeri C1 väljundviik / PortC SPI | |7 |PC6|RXD1/MISO |PortC UART1 / PortC SPI | |8 |PC7|TXD1/SCK |PortC UART1 / PortC SPI | |9 |PD0|OC0A/SDA |Taimeri D0 väljundviik / PortD I2C andme siin| |10|PD1|OC0B/SCL |Taimeri D0 väljundviik / PortD I2C kella siin| |11|PD2|OC0C/RXD0 |Taimeri D0 väljundviik / PortD UART0 | |12|PD3|OC0D/TXD0 |Taimeri D0 väljundviik / PortD UART0 | |13|PD4|OC1A/SS |Taimeri D1 väljundviik / PortD SPI | |14|PD5|OC1B/MOSI |Taimeri D1 väljundviik / PortD SPI | |15|PE0|OC0A/SDA |Taimeri E0 väljundviik / PortE I2C andme siin| |16|PE1|OC0B/SCL |Taimeri E0 väljundviik / PortE I2C kella siin| |17|PE2|OC0C/RXD0 |Taimeri E0 väljundviik / PortE UART0 | |18|PE3|OC0D/TXD0 |Taimeri E0 väljundviik / PortE UART0 | |19|PE4|OC1A/SS |Taimeri E1 väljundviik / PortE SPI | |20|PE5|OC1B/MOSI |Taimeri E1 väljundviik / PortE SPI | |21|PE6|RXD1/MISO |PortE UART1 / PortE SPI | |22|PE7|TXD1/SCK |PortE UART1 / PortE SPI | |23|GND|- |Maa| |24|VCC|- |+3.3V| |25|VDD|- |+Sisendpinge| |26|VDD|- |+Sisendpinge| {{:kit:xPort3.png?400 |}} ~~CL~~ ^Nr^Viik^Funktsioon ^Kirjeldus^ |1 |PK6|- |GPIO| |2 |PK7|- |GPIO| |3 |PK4|- |GPIO| |4 |PK5|- |GPIO| |5 |PK2|- |GPIO| |6 |PK3|- |GPIO| |7 |PK0|- |GPIO| |8 |PK1|- |GPIO| |9 |PJ6|- |GPIO| |10|PJ7|- |GPIO| |11|PJ4|- |GPIO| |12|PJ5|- |GPIO| |13|PJ2|- |GPIO| |14|PJ3|- |GPIO| |15|PJ0|- |GPIO| |16|PJ1|- |GPIO| |17|PH6|- |GPIO| |18|PH7|- |GPIO| |19|PH4|- |GPIO| |20|PH5|- |GPIO| |21|PH2|- |GPIO| |22|PH3|- |GPIO| |23|PH0|- |GPIO| |24|PH1|- |GPIO| |25|GND|- |Maa| |26|VCC|- |+3.3V| */ ===== Connecting ===== When connecting the controller module with other modules or devices, you must first make sure that the controller module power supply is not connected. Modules and devices must be connected to each other with care. It is important not to use excessive force, wrong handling may damage the module. For programming and to power with low currency (less than 500mA) you must only connect the controller module with a PC using an USB port. If you are using modules that need to use a greater current than 500 mA, you must use a separate power source. If a controller module is connected to a separate power source, then the module automatically does not use USB a power supply.