PCF8583 RTC examples (L152)

Name of the projects l152_pcf8583_watch_lcdl152_pcf8583_watch_lcd_sw_i2c Description The projects shows on a 2x16 LCD the current hour and date that are read from a PCF8583 RTC IC connected on hardware or software I2C. Code snippet (initial code, project structure and VSCode files generated by VPC): uint8_t s[4]; // buffer used for conversions int main(void) { /* … Continue reading PCF8583 RTC examples (L152)

DS18B20 multiple temperature sensors (l152)

Name of the project l152_ds18b20_multiple Description The project query two DS18B20 Dallas temperature sensors over a 1-wire bus, using their own unique ID's (see here how to get the ID of a sensor). If the sensors are present, the temperatures are shown on the first row of a 2×16 LCD. If not, error messages will … Continue reading DS18B20 multiple temperature sensors (l152)

MAX44009 LUX sensor examples (L152)

Name of the projects l152_max44009_hw_i2cl152_max44009_sw_i2c Description The projects send data to a PC via a serial connection from a LUX light sensor that is read via a hardware or software I2C. Code snippet (initial code, project structure and VSCode files generated by VPC - only one project presented here): char t32_buff[25]; const uint8_t str1[] = … Continue reading MAX44009 LUX sensor examples (L152)

UART Hello World example (L152)

Name of the project l152_uart_hello Description The project will sent the "Hello World!" phrase via serial at every 1000 milliseconds at a speed of 19200 bps. Code snippet (initial code, project structure and VSCode files generated by VPC): const uint8_t str[] = "Hello World!\r\n"; int main(void){ /* local variables */ /* mandatory system initializations */ … Continue reading UART Hello World example (L152)

User button example (L152)

Name of the project l152_user_button Description Based on an ST.Microelectronics example, the application change the blinking frequency of the LED when pressing the user button (blue) on the Nucleo-L152RE board. Code snippet (initial code, project structure and VSCode files generated by VPC): uint8_t speed = 0; void EXTI15_10_IRQHandler(void){ // Here would be the B1 pin … Continue reading User button example (L152)