The mbed LPC1768 is a microcontroller board built around the NXP LPC1768 chip, which features a 32-bit ARM Cortex-M3 core. It is designed for rapid prototyping and development, making it an excellent choice for engineers, hobbyists, and students. The board provides built-in USB support, Ethernet connectivity, and a wide range of I/O options, enabling it to handle diverse embedded applications. Its compact design and compatibility with the mbed online development environment make it a versatile and user-friendly platform.
The mbed LPC1768 offers a robust set of features and specifications, making it suitable for a variety of applications.
The mbed LPC1768 has a 40-pin DIP form factor. Below is a summary of the pin configuration:
Pin | Name | Description |
---|---|---|
1 | VOUT | 3.3V output |
2 | GND | Ground |
3 | p5 | Digital I/O or ADC input (AIN0) |
4 | p6 | Digital I/O or ADC input (AIN1) |
5 | p7 | Digital I/O or ADC input (AIN2) |
6 | p8 | Digital I/O or ADC input (AIN3) |
7 | p9 | Digital I/O or ADC input (AIN4) |
8 | p10 | Digital I/O or ADC input (AIN5) |
9 | p11 | Digital I/O or UART TX |
10 | p12 | Digital I/O or UART RX |
... | ... | ... |
39 | VIN | Power input (4.5V to 9V) |
40 | USB | USB power and communication |
For a complete pinout diagram, refer to the official mbed LPC1768 datasheet.
Powering the Board:
Programming the Board:
Connecting Peripherals:
The mbed LPC1768 can be programmed using the mbed online compiler. Below is an example of blinking an LED connected to pin p21
:
#include "mbed.h"
// Define an LED object connected to pin p21
DigitalOut led(p21);
int main() {
while (true) {
led = 1; // Turn the LED on
wait(0.5); // Wait for 500 ms
led = 0; // Turn the LED off
wait(0.5); // Wait for 500 ms
}
}
p21
with the pin number where your LED is connected.wait()
function introduces a delay in seconds.The board is not recognized by the computer:
Code does not run after uploading:
Ethernet connection is not working:
Analog readings are inaccurate:
Can I use the mbed LPC1768 with Arduino IDE?
No, the mbed LPC1768 is not directly compatible with the Arduino IDE. Use the mbed online compiler or other ARM-compatible development tools.
What is the maximum current output of the GPIO pins?
Each GPIO pin can source or sink up to 4 mA. For higher currents, use external drivers.
Can I power the board with a LiPo battery?
Yes, as long as the voltage is within the 4.5V to 9V range. Use a voltage regulator if necessary.
Is the mbed LPC1768 suitable for low-power applications?
Yes, the ARM Cortex-M3 core supports low-power modes, but additional optimization may be required in your code.
This concludes the documentation for the mbed LPC1768. For further details, refer to the official mbed documentation and datasheets.