Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use mbed NXP LPC1768: Examples, Pinouts, and Specs

Image of mbed NXP LPC1768
Cirkit Designer LogoDesign with mbed NXP LPC1768 in Cirkit Designer

Introduction

The mbed NXP LPC1768 is a powerful microcontroller development board designed for rapid prototyping and development of embedded systems. It is based on the NXP LPC1768 microcontroller, which features an ARM Cortex-M3 core running at up to 100 MHz. This board is ideal for developers looking to create applications with advanced connectivity, real-time control, and peripheral integration.

Explore Projects Built with mbed NXP LPC1768

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
STM32F4-Based Multi-Sensor GPS Tracking System
Image of Phase 1 fc: A project utilizing mbed NXP LPC1768 in a practical application
This circuit integrates an STM32F4 microcontroller with a GPS module (NEO 6M), an accelerometer and gyroscope (MPU-6050), a barometric pressure sensor (BMP280), and a compass (HMC5883L). The microcontroller communicates with the sensors via I2C and the GPS module via UART, enabling it to gather and process environmental and positional data.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered Health Monitoring System with Nucleo WB55RG and OLED Display
Image of Pulsefex: A project utilizing mbed NXP LPC1768 in a practical application
This circuit is a multi-sensor data acquisition system that uses a Nucleo WB55RG microcontroller to interface with a digital temperature sensor (TMP102), a pulse oximeter and heart-rate sensor (MAX30102), and a 0.96" OLED display via I2C. Additionally, it includes a Sim800l module for GSM communication, powered by a 3.7V LiPo battery.
Cirkit Designer LogoOpen Project in Cirkit Designer
STM32 and ESP8266 Nodemcu Based Smart Lock System with LCD and Keypad
Image of ot_t: A project utilizing mbed NXP LPC1768 in a practical application
This circuit functions as a secure door lock system with a user interface. The STM32 Nucleo microcontroller is connected to a keypad for input, an LCD for display, and a servo motor to actuate the lock mechanism. It communicates with an ESP8266 module to receive an OTP (One-Time Password) for unlocking, and uses LEDs to indicate lock status.
Cirkit Designer LogoOpen Project in Cirkit Designer
Solar-Powered STM32-Based Automation System with Matrix Keypad and RTC
Image of soloar cleaner : A project utilizing mbed NXP LPC1768 in a practical application
This circuit features an STM32F103C8T6 microcontroller interfaced with a membrane matrix keypad for input, an RTC DS3231 for real-time clock functionality, and a 16x2 I2C LCD for display. It controls four 12V geared motors through two MD20 CYTRON motor drivers, with the motor power supplied by a 12V battery regulated by a buck converter. The battery is charged via a solar panel connected through a solar charge controller, ensuring a renewable energy source for the system.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with mbed NXP LPC1768

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 Phase 1 fc: A project utilizing mbed NXP LPC1768 in a practical application
STM32F4-Based Multi-Sensor GPS Tracking System
This circuit integrates an STM32F4 microcontroller with a GPS module (NEO 6M), an accelerometer and gyroscope (MPU-6050), a barometric pressure sensor (BMP280), and a compass (HMC5883L). The microcontroller communicates with the sensors via I2C and the GPS module via UART, enabling it to gather and process environmental and positional data.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Pulsefex: A project utilizing mbed NXP LPC1768 in a practical application
Battery-Powered Health Monitoring System with Nucleo WB55RG and OLED Display
This circuit is a multi-sensor data acquisition system that uses a Nucleo WB55RG microcontroller to interface with a digital temperature sensor (TMP102), a pulse oximeter and heart-rate sensor (MAX30102), and a 0.96" OLED display via I2C. Additionally, it includes a Sim800l module for GSM communication, powered by a 3.7V LiPo battery.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of ot_t: A project utilizing mbed NXP LPC1768 in a practical application
STM32 and ESP8266 Nodemcu Based Smart Lock System with LCD and Keypad
This circuit functions as a secure door lock system with a user interface. The STM32 Nucleo microcontroller is connected to a keypad for input, an LCD for display, and a servo motor to actuate the lock mechanism. It communicates with an ESP8266 module to receive an OTP (One-Time Password) for unlocking, and uses LEDs to indicate lock status.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of soloar cleaner : A project utilizing mbed NXP LPC1768 in a practical application
Solar-Powered STM32-Based Automation System with Matrix Keypad and RTC
This circuit features an STM32F103C8T6 microcontroller interfaced with a membrane matrix keypad for input, an RTC DS3231 for real-time clock functionality, and a 16x2 I2C LCD for display. It controls four 12V geared motors through two MD20 CYTRON motor drivers, with the motor power supplied by a 12V battery regulated by a buck converter. The battery is charged via a solar panel connected through a solar charge controller, ensuring a renewable energy source for the system.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Internet of Things (IoT) devices
  • Robotics and automation systems
  • Data acquisition and processing
  • Prototyping for industrial control systems
  • Educational projects and embedded systems learning

Technical Specifications

The mbed NXP LPC1768 offers a wide range of features and capabilities. Below are its key technical specifications:

Specification Details
Microcontroller NXP LPC1768
Core ARM Cortex-M3
Clock Speed 100 MHz
Flash Memory 512 KB
RAM 64 KB
GPIO Pins 40
Analog Inputs 6 (12-bit ADC)
Analog Outputs 1 (10-bit DAC)
Communication Interfaces UART, SPI, I2C, CAN, Ethernet, USB
Power Supply 4.5V to 9V (via VIN) or 5V (via USB)
Dimensions 54 mm x 26 mm
Operating Temperature -40°C to +85°C

Pin Configuration and Descriptions

The mbed NXP LPC1768 has a 40-pin DIP form factor. Below is a table summarizing the key pins and their functions:

Pin Name Description
1 VOUT 3.3V output voltage
2 GND Ground
3 p5 to p30 General-purpose I/O pins (GPIO)
4 p19, p20 I2C SDA and SCL
5 p9, p10 UART TX and RX
6 p11 to p13 SPI MOSI, MISO, and SCK
7 p15, p16 CAN TD and RD
8 p18 PWM output
9 p17 Analog output (DAC)
10 p15 to p20 Analog inputs (ADC)
11 USB USB interface for programming and communication
12 Ethernet Ethernet interface pins

Usage Instructions

How to Use the mbed NXP LPC1768 in a Circuit

  1. Powering the Board:

    • Connect the board to a computer via the USB port for power and programming.
    • Alternatively, supply 4.5V to 9V to the VIN pin for standalone operation.
  2. Programming the Board:

    • Use the mbed online compiler or an offline IDE such as Keil µVision or Arm Mbed Studio.
    • Drag and drop the compiled binary file onto the board, which appears as a USB mass storage device.
  3. Connecting Peripherals:

    • Use the GPIO pins for digital input/output.
    • Connect sensors to the ADC pins for analog input.
    • Use the UART, SPI, or I2C interfaces for communication with other devices.
  4. Running the Program:

    • Once the binary file is uploaded, the board will automatically reset and execute the program.

Important Considerations and Best Practices

  • Ensure the power supply voltage does not exceed the recommended range to avoid damaging the board.
  • Use pull-up or pull-down resistors for GPIO pins when necessary to ensure stable operation.
  • Avoid connecting high-current loads directly to the GPIO pins; use external drivers or relays.
  • For Ethernet applications, ensure proper grounding and shielding to minimize noise.

Example Code for Arduino UNO Integration

The mbed NXP LPC1768 can communicate with an Arduino UNO via UART. Below is an example code snippet for the LPC1768:

#include "mbed.h"

// Initialize UART communication
Serial pc(USBTX, USBRX); // USBTX and USBRX are default TX and RX pins
Serial arduino(p9, p10); // p9 = TX, p10 = RX for Arduino communication

int main() {
    pc.printf("mbed LPC1768 UART Example\n");
    arduino.printf("Hello from LPC1768!\n");

    while (true) {
        if (arduino.readable()) {
            char c = arduino.getc(); // Read data from Arduino
            pc.putc(c);             // Send data to PC via USB
        }
    }
}

On the Arduino UNO, you can use the following code to communicate with the LPC1768:

void setup() {
    Serial.begin(9600); // Initialize UART communication
}

void loop() {
    if (Serial.available()) {
        char c = Serial.read(); // Read data from LPC1768
        Serial.print(c);        // Echo data back to LPC1768
    }
    delay(100);
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. The board is not recognized by the computer:

    • Ensure the USB cable is functional and properly connected.
    • Try a different USB port or reinstall the USB drivers.
  2. Program does not run after uploading:

    • Verify that the binary file is compiled for the LPC1768 target.
    • Check for errors in the code and ensure the correct pins are used.
  3. Analog readings are unstable:

    • Use proper decoupling capacitors near the ADC pins.
    • Ensure the input signal is within the ADC voltage range (0V to 3.3V).
  4. Ethernet connection is not working:

    • Verify the Ethernet cable and network configuration.
    • Check the MAC and IP address settings in the code.

FAQs

Q: Can I power the board using a battery?
A: Yes, you can power the board using a 4.5V to 9V battery connected to the VIN pin.

Q: Is the mbed NXP LPC1768 compatible with Arduino shields?
A: No, the LPC1768 does not have the same pin layout as Arduino boards, but you can use jumper wires to connect shields manually.

Q: Can I use the mbed LPC1768 for real-time applications?
A: Yes, the ARM Cortex-M3 core supports real-time operations with its interrupt handling and deterministic behavior.

Q: How do I reset the board?
A: Press the reset button located on the board to restart the program.