An improved ATMega328P with this cheap clone Logic Green LGT8F328P running at 32MHz (eventually)
$8 off your first order at LCSC Electronics with lcsc.com/?href=ralphsbacon&source=referral
Seriously, folks, see all this information with full colour pictures, step-by-step instructions and much more on my GitHub:
github.com/RalphBacon/LGT8F328P-Arduino-Clone-Chip-ATMega328P
Links to *all products* at the bottom of this description
So we're looking at the 32MHz Nano-sized drop-in replacement but I'm using a different sized development board just for ease of use in the video. My device looks like this (and well worth it for experimenting with)
github.com/RalphBacon/LGT8F328P-Arduino-Clone-Chip-ATMega328P/blob/master/images/LGT8F328P%20Development%20Board.JPG
But the final device is Nano sized, and a drop-in pin replacement
github.com/RalphBacon/LGT8F328P-Arduino-Clone-Chip-ATMega328P/blob/master/images/Nano-sized%20LGTf8328P.JPG
Or you can have a Pro-Micro sized device that will require a USB-to-Serial adapter to program.
github.com/RalphBacon/LGT8F328P-Arduino-Clone-Chip-ATMega328P/blob/master/images/proMicro%20sized%20LGT8F328P.JPG
The 6 simple steps to get a LGT8F328P-based board running at 32 MHz are listed on my GitHub.
github.com/RalphBacon/LGT8F328P-Arduino-Clone-Chip-ATMega328P
6 Simple Steps to get a LGT8F328P-based board running at 32MHz
**1 Download the LogicGreen zipped resources here**
github.com/LGTMCU/Larduino_HSP
There's a copy of this zipped folder on my GitHub
**2 Extract the download (unzip it)**
and move the unzipped LGT/avr folder to under the *hardware* folder in your Arduino sketch folder. If you do not have a _hardware_ folder in your Arduino Sketches folder, just create one.
Your structure should look like this:
github.com/RalphBacon/LGT8F328P-Arduino-Clone-Chip-ATMega328P/blob/master/images/FolderStructure.JPG
**3 Replace the boards.txt**
In the Hardware - LGT - AVR folder **delete the boards.txt**.
Then copy the boards.txt in this GitHub there in place of the one you just deleted. Easier than trying to edit it!
### Testing
-----------------------------------------------------------------------------------------------------------
Oh no! I've exceeded my RU-vid word count so head on over to my GitHub to complete the process!
github.com/RalphBacon/LGT8F328P-Arduino-Clone-Chip-ATMega328P
-----------------------------------------------------------------------------------------------------------
What's this GUID then?
Each LGT8F328P has a unique GUID (serial number) built in. Useful for encrypting things.
To retrieve the number (it's read-only) do this in your sketch setup():
uint32_t guid = *(uint32_t*)&GUID0;
To display that number in its intended **HEX format** do this:
Serial.println(guid, HEX);
Simples, right?
======================================
LINKS LINKS LINKS LINKS
======================================
Please visit my sponsor who made this video possible!
$8 off your first order at LCSC Electronics with lcsc.com/?href=ralphsbacon&source=referral
**KEYES Open Source LGT8F328P Control Module Development Board**
www.banggood.com/KEYES-Open-Source-LGT8F328P-Control-Module-Development-Board-For-Arduino-p-1400916.html?p=FQ040729393382015118&
**AliExpress Nano/pro Micro replacements**
LGT8F328P LQFP32 replaces NANO V3.0 HT42B534 chip
s.click.aliexpress.com/e/cEAUGf6s
This seller has both variants (SOP20 & LQFP32) but look around there are other sellers too!
**Logic Green's GitHub for the support files (also on my GitHub)**
github.com/LGTMCU/Larduino_HSP
**LGT8F328P Schematic (also copy on my GitHub)**
www.electrodragon.com/w/images/a/ac/SN0124_LARDUINO_UNO_V2_20140613.jpg
**Chinese Documentation for what it's worth**
www.logicgreen.io/upload/lgt8fx8p/LGT8FX8P_databook_v1.0.4.pdf
English version of similar family of chips on my GitHub
**Top 10,000 Prime Numbers**
www.di-mgt.com.au/primes10000.txt
If you like this video please give it a thumbs up, share it and if you're not already subscribed please consider doing so and joining me on my Arduinite journey
My channel and blog and GitHub are here:
------------------------------------------------------------------
ru-vid.com
ralphbacon.blog
github.com/RalphBacon/LGT8F328P-Arduino-Clone-Chip-ATMega328P
------------------------------------------------------------------
2 авг 2019