#156
HTML-код
- Опубликовано: 11 сен 2024
- 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...
Seriously, folks, see all this information with full colour pictures, step-by-step instructions and much more on my GitHub:
github.com/Ral...
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/Ral...
But the final device is Nano sized, and a drop-in pin replacement
github.com/Ral...
Or you can have a Pro-Micro sized device that will require a USB-to-Serial adapter to program.
github.com/Ral...
The 6 simple steps to get a LGT8F328P-based board running at 32 MHz are listed on my GitHub.
github.com/Ral...
6 Simple Steps to get a LGT8F328P-based board running at 32MHz
*1 Download the LogicGreen zipped resources here*
github.com/LGT...
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/Ral...
*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 RUclips word count so head on over to my GitHub to complete the process!
github.com/Ral...
-----------------------------------------------------------------------------------------------------------
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...
*KEYES Open Source LGT8F328P Control Module Development Board*
www.banggood.c...
*AliExpress Nano/pro Micro replacements*
LGT8F328P LQFP32 replaces NANO V3.0 HT42B534 chip
s.click.aliexpr...
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/LGT...
*LGT8F328P Schematic (also copy on my GitHub)*
www.electrodra...
*Chinese Documentation for what it's worth*
www.logicgreen....
English version of similar family of chips on my GitHub
*Top 10,000 Prime Numbers*
www.di-mgt.com...
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:
------------------------------------------------------------------
/ ralphbacon
ralphbacon.blog
github.com/Ral...
------------------------------------------------------------------