Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

How to Use T-Deer Pro Mini LoRa Atmega328P: Examples, Pinouts, and Specs

Image of T-Deer Pro Mini LoRa  Atmega328PDesign with T-Deer Pro Mini LoRa Atmega328P in Cirkit Designer

Introduction

The T-Deer Pro Mini LoRa Atmega328P by LILYGO® is a compact microcontroller board that integrates the power of the ATmega328P processor with LoRa (Long Range) wireless communication capabilities. This board is ideal for Internet of Things (IoT) projects, remote sensor networks, and any application requiring long-range, low-power wireless communication.

Explore Projects Built with T-Deer Pro Mini LoRa Atmega328P

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Battery-Powered Environmental Monitoring System with Data Logging and GPS Tracking: A project utilizing T-Deer Pro Mini LoRa  Atmega328P in a practical application
Battery-Powered Environmental Monitoring System with Data Logging and GPS Tracking

This circuit features a T-Deer Pro Mini LoRa Atmega328P microcontroller as its central processing unit, interfacing with various sensors including a BMP280 for atmospheric pressure, an Adafruit VEML6075 UV sensor, a GPS NEO 6M module for location tracking, and an ENS160+AHT21 for environmental sensing. Data logging is handled by a SparkFun OpenLog, and a Step Up Boost converter is used to step up the voltage from a 3.7V battery to 5V required by the ESP32-CAM module. The circuit includes a buzzer for audible alerts and a rocker switch to control power flow, with the microcontroller coordinating sensor data acquisition and communication tasks.

Open Project in Cirkit Designer
Image of Environmental Sensing and Data Logging System with GPS and Wi-Fi/LoRa Connectivity: A project utilizing T-Deer Pro Mini LoRa  Atmega328P in a practical application
Environmental Sensing and Data Logging System with GPS and Wi-Fi/LoRa Connectivity

This circuit features a T-Deer Pro Mini LoRa Atmega328P microcontroller connected to various sensors (BMP280, Adafruit VEML6075 UV Sensor, ENS160+AHT21, GPS NEO 6M) and a SparkFun OpenLog for data logging. A step-up boost converter raises the voltage from a 3.7V battery to 5V to power an ESP32-CAM module. The circuit includes a buzzer for alerts and a rocker switch to control power flow, with all components sharing a common ground.

Open Project in Cirkit Designer

Common Applications and Use Cases

Technical Specifications

Key Technical Details

Pin Configuration and Descriptions

Pin Number Function Description
1 Reset Reset pin, active low
2-13 Digital I/O Digital input/output pins
14 Analog In 0 Analog input pin 0
15 Analog In 1 Analog input pin 1
... ... ...
19 Analog In 5 Analog input pin 5
20 AREF Analog reference voltage for the ADC
21 GND Ground
22 A6 (D4) Additional analog input (not on DIP package)
23 A7 (D5) Additional analog input (not on DIP package)
24 3.3V 3.3V power supply pin
25 RST Reset pin for LoRa module
26 NSS SPI Chip Select for LoRa module
27 MOSI SPI Data Input for LoRa module
28 MISO SPI Data Output for LoRa module
29 SCK SPI Clock for LoRa module
30 GND Ground for LoRa module
31 3.3V 3.3V power supply for LoRa module
32 DIO0 Digital I/O for LoRa module (interrupt)
33 DIO1 Digital I/O for LoRa module (interrupt)

Usage Instructions

How to Use the Component in a Circuit

  1. Powering the Board: Connect a power source within the specified input voltage range to the RAW pin for voltage regulation or directly to the VCC pin if the power supply is already regulated to 3.3V.
  2. Programming the Board: Use an FTDI programmer or equivalent to upload sketches via the RX and TX pins. Ensure the board is set to 3.3V to match the operating voltage of the T-Deer Pro Mini.
  3. Connecting LoRa Antenna: Attach an appropriate antenna to the LoRa module's antenna connector to ensure proper communication range and signal integrity.
  4. Interfacing with Sensors/Actuators: Utilize the digital and analog pins to connect various sensors and actuators, following the pin configuration table.

Important Considerations and Best Practices

Troubleshooting and FAQs

Common Issues Users Might Face

Solutions and Tips for Troubleshooting

FAQs

Example Code for Arduino UNO

#include <SPI.h>
#include <LoRa.h>

// Define the pins used by the LoRa module
#define SS 10
#define RST 9
#define DI0 2

void setup() {
  Serial.begin(9600);
  while (!Serial);

  Serial.println("LoRa Sender");

  // Initialize LoRa module
  LoRa.setPins(SS, RST, DI0);
  
  if (!LoRa.begin(868E6)) { // Set frequency to 868 MHz
    Serial.println("Starting LoRa failed!");
    while (1);
  }
}

void loop() {
  Serial.print("Sending packet: ");
  Serial.println(counter);

  // Send a message to indicate which packet number is being sent
  LoRa.beginPacket();
  LoRa.print("hello ");
  LoRa.print(counter);
  LoRa.endPacket();

  counter++;

  delay(5000); // Wait for 5 seconds before sending the next packet
}

This example code is for a simple LoRa sender. Ensure that the pin definitions match the connections on your T-Deer Pro Mini LoRa board. Adjust the frequency according to your regional standards and the board's specifications.