Luc Paquin
Published © CC BY

Project #29 - DFRobot - ESP32-P4 - Mk32

Project #29 - DFRobot - ESP32-P4 - Mk32

BeginnerFull instructions provided1 hour48
Project #29 - DFRobot - ESP32-P4 - Mk32

Things used in this project

Hardware components

DFRobot FireBeetle 2 ESP32-P4
×1
USB Battery Pack
×1
DFRobot USB 3.1 Cable A to C
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Fritzing

Code

DL2508Mk01p.ino

Arduino
/****** Don Luc Electronics © ******
Software Version Information
Project #29 - DFRobot - ESP32-P4 - Mk32
29-32
DL2509Mk01p.ino
DL2509Mk01
1 x FireBeetle 2 ESP32-P4 AI
1 x USB Battery Pack
1 x USB 3.1 Cable A to C
*/

// Include the Library Code
// EEPROM Library to Read and Write EEPROM
// with Unique ID for Unit
#include "EEPROM.h"

// LED
int led = 3;

// EEPROM Unique ID Information
#define EEPROM_SIZE 64
String uid = "";

// Software Version Information
String sver = "25-12";

void loop() {

  // LED
  digitalWrite(led,HIGH);
  
  // Delay 3 Second
  delay(3000);

  // LED
  digitalWrite(led,LOW);

  // Delay 3 Second
  delay( 3000 );

}

getEEPROM.ino

Arduino
// EEPROM
// isUID EEPROM Unique ID
void isUID() {
  
  // Is Unit ID
  uid = "";
  for (int x = 0; x < 7; x++)
  {
    uid = uid + char(EEPROM.read(x));
  }

}

setup.ino

Arduino
// Setup
void setup()
{
 
  // Delay
  delay( 100 );

  // EEPROM Size
  EEPROM.begin(EEPROM_SIZE);
  
  // EEPROM Unique ID
  isUID();

  // Delay
  delay(100);

  // LED
  pinMode(led,OUTPUT);
    
  // Delay 1 Second
  delay( 1000 );

}

Credits

Luc Paquin
44 projects • 4 followers
Teacher, Instructor, E-Mentor, R&D and Consulting -Programming Language -Microcontrollers -IoT -Robotics -Machine Learning -AI -Sensors

Comments