Page 1
LGT8F Microcontroller ebook Microcontroller LGT8F328P Type 3...
Page 2
Areas of application Education and teaching: Use in schools, universities and training institutions to teach the basics of electronics, programming and embedded systems. Research and development: Use in research and development projects to create prototypes and experiments in the fields of electronics and computer science. Prototype development: Use in the development and testing of new electronic circuits and devices.
Page 3
consult a doctor. Caution: Keep the product out of the reach of children and pets to avoid accidental contact and swallowing of small parts. Note: Store the product in a safe, closed container when not in use. Attention: Avoid contact of the product with food and drinks.
LGT8F Microcontroller Table of Contents Introduction Specifications Features Communication Interfaces Power Pins Power Limitations Voltage Input Limits Voltage limits on I/O pins Current Output Limits Installation of Arduino IDE Additional Setup Blink example...
LGT8F Microcontroller Introduction The microcontroller board is a great device intended for electronics learning or prototyping and learning programming. A microcontroller board is actually a microcontroller, but assembled in a way that you don’t need extra components with it. If you use a single microcontroller, you will need to build a stable DC power supply, an external programmer, a reset circuit, and many other things.
LGT8F Microcontroller Specifications Processor LGT8F328P-QFN32 USB to serial bridge CH340 SRAM Flash size 32KB (boot occupies 1K, analogue eeprom occupies 2K) EEPROM 1 - 8KB (shared with flash) Voltage range on Vin pin(and DC Jack) 7-12V DC Number of digital IOs...
LGT8F Microcontroller Features This Microcontroller Board features the main microcontroller LGT8F328P with 16MHz external quartz oscillator and an internal 32MHz oscillator, you can choose between them in the Arduino IDE. It uses the CH340 chip to make communication like the USART serial interface but via USB.
Page 8
LGT8F Microcontroller AZ-Delivery Microcontroller Board features DC voltage regulators for both +5V and +3.3V. The external DC power supply can be connected to the DC Power jack on board with voltage in range from 7V up to 12V, and voltage regulators...
Page 9
LGT8F Microcontroller This Microcontroller Board is built in a way that separates digital I/O pins from analog input pins. So there are 8 analog input pins, and separated 14 digital I/O pins. 6 of 14 digital I/O pins can be used as PWM outputs (Pulse Width Modulation).
Page 10
LGT8F Microcontroller Digital I/O pins 0 and 1 are connected to receive and transmit lines of USART serial interface respectively. These digital I/O pins cannot be used as digital inputs or outputs, because Serial Interface is used every time a new program is uploaded into this microcontroller board.
Page 11
LGT8F Microcontroller This handy board provides another 3 extra 4 pin male header connectors. The connectors are shown on the image below:...
LGT8F Microcontroller Communication Interfaces Digital I/O pins D0 and D1 have alternative functions. They are connected to receive and transmit lines of serial interface. There are two more communication interfaces supported by the microcontroller, Serial Peripheral Interface - SPI and Inter-Integrated Circuit interface - I2C (or TWI - Two Wire Interface).
LGT8F Microcontroller Power Pins Power pin header from right to left: VIN - This is voltage input pin, it server as another external power supply for main microcontroller when it is not powered by USB port GND - GrouND, 0V GND 5V - voltage output, +5V 3.3V - voltage output, +3.3V...
LGT8F Microcontroller Power Limitations Voltage Input Limits Input power: to power this Microcontroller Board, either plug it in to a USB port, or use input voltage source from DC power jack or via Power pins header going to VIN pin.
LGT8F Microcontroller Current Output Limits Total maximum current draw from these Boards when powered from a USB port is 500mA. These Boards have a resettable polyfuse that protects your computer’s USB ports from shorts and overcurrent. Total maximum current draw when powered via external power supply is 1A.
LGT8F Microcontroller Installation of Arduino IDE Download the latest version of Arduino IDE here: https://www.arduino.cc/en/software After starting the Arduino IDE installation file “arduino-ide_2.0.0_Windows_64bit.exe” the licence conditions of the software must be read and accepted.
Page 17
LGT8F Microcontroller In the next step, different options can be selected for installation. Finally, the destination folder must be specified. The installation requires approx. 500MB of free disk space. Click on "Install" to start the installation.
Page 18
LGT8F Microcontroller After successful installation, the installation programme can be terminated via the "Finish" button.
Windows/Mac or Linux and can be chosen depending on which one is used. Drivers can be downloaded from the following link. Next, install support for the LGT8F platform, open Arduino IDE and go to: File > Preferences, and find Additional URLs field.
Page 20
OK button. Open Arduino IDE again and go to: Tools > Board > Boards Manager When new window opens, type AZ-Delivery in the search box and install the board called AZ-Delivery LGT8F, as shown on the following image: To select the Microcontroller, go to: Tools >...
Page 21
LGT8F Microcontroller To upload the sketch code to the microcontroller board, first select the port on which you connected the board. Go to: Tools > Port > {port name}0...
LGT8F Microcontroller Blink example And now the programming can start. Arduino IDE comes with many prewritten sketch examples, which can be used. Here the BLINK sketch example is used. Go to File > Examples > 01.Basics > Blink. A new window with new sketch example will open...
Page 23
LGT8F Microcontroller What this sketch does is turn ON an on-board LED connected to the digital I/O pin 13 (D13), for one second, and then turn it OFF for one second. This turning on and off is called blinking, thus this sketch name. When programming is done, compile the code and upload it to your Microcontroller Board by pressing the upload button.
Page 24
Internet. If you are looking for the high-quality products for Arduino and Raspberry Pi, AZ-Delivery Vertriebs GmbH is the right place for you. You will receive numerous application examples, complete installation instructions, eBooks, libraries and support from our technical experts.
Need help?
Do you have a question about the LGT8F and is the answer not in the manual?
Questions and answers