Skip to content

Simple C projects for lpc1769 microcontroller from NXP. Code developed with MCUXpresso.

License

Notifications You must be signed in to change notification settings

nicola-masarone/lpc1769-projects

Repository files navigation

lpc1769-projects.

Simple projects for lpc1769 microcontroller from NXP.

Each folder beginning with lpc1769 contains a separate project, with a description either for software or for hardware.

Please note that two folders (/lpc_board_nxp_lpcxpresso_1769 and /lpc_chip_175x_6x) contain proprietary software from NXP, as described in their LICENSE files. This software is needed to compile projects in other folders.

  • LED in sequence with variable speed. The experience involves the use of 8 LEDs to be switched on in sequence with adjustable speed, based on the pressure of a button. The skills acquired at the end of this practical include the use of GPIO in input and output, with interrupt management on the input. The system timer is also used with relative management of the interruption for the switching speed of the LEDs.
  • 7-segment display management. The tutorial provides instructions for driving a 7-segment display consisting of two side-by-side digits. The acquired skills will allow to use this simple output device as a data visualization tool for a subsequent exercise.
  • Signal acquisition with ADC. The practical allows the student to develop the skills for the acquisition of a voltage signal by means of an analog-digital converter (ADC), with visualization of the value on a 7-segment display.
  • Rotary encoder. In this tutorial the rotary encoder (rotary switch) is used to study the operation of the QEI (Quadrature Encoder Interface) present in the LPC1769 microcontroller. The project provides for the reuse of what is already known from the 7-segment display management for the data display section.
  • PWM color LED driving. With this practical, students learn to manage an RGB-type color LED using the PWM control to adjust the intensity of the colors, thus modifying the resulting hue.
  • Liquid crystal display. In this project, the piloting technique of a liquid crystal display (LCD) is presented. We will study how the display segments are switched on by writing a test program for automatic counting from the value 0 to the value 1999.
  • Ultrasonic sensor. This project allows the use of the HC-SR04 ultrasonic module to create a distance meter with data display on LCD.
  • Humidity and temperature sensor. Using an integrated temperature and humidity sensor, a measurement system of environmental parameters is created. The measurement value is reported on an LCD with update every two seconds, based on the liquid crystal display project.
  • Project with MAX7300 I/O expander from Maxim. Useful devices to have many input/output pins by engaging only two I2C pins of the microcontroller
  • Traffic light project. The project provides for a very simple management of the lights on the intersection, with the possibility of two times for vehicles (A and B) and one time for pedestrians (P).
  • Buzzer project. A very simple circuit for driving a buzzer. The PWM signal management allows the volume and frequency of the sound to be changed.
  • Servomotor test. The project presents a solution for driving a Hitec servomotor. The type of command used involves the use of a PWM channel of the microcontroller and a power supply dedicated to the servomotor. The result obtained is a slow rotation of the servomotor clockwise, with a quick return to the starting position and subsequent repetition of the movement.
  • Manual control of servomotors. The project provides a first solution to the control of several servomotors (6), through the use of potentiometers as input devices to control the desired positions. The system includes a separate power supply for the servomotors and a development board for the LPC1769 microcontroller. By mounting the servomotors on a suitable mechanical structure it is possible to carry out the manual control of an artificial arm with 6 degrees of freedom.
  • Constant speed stepper motor. In this simple project a constant speed movement (with alternating rotation) is realized for a small size bipolar stepper motor. The control electronics include the use of the LPC1769 microcontroller and a power driver.
  • Variable speed stepper motor. The project represents the evolution of the previous constant speed stepper motor with identical hardware while firmware has been modified for motor speed management. In this version the speed profile provides a trapezoidal course, with constant and predetermined acceleration and deceleration.