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)
DS18B20 single temperature sensor (l152)
Name of the project l152_ds18b20_single Description The project query a single DS18B20 Dallas temperature sensor over a 1-wire bus. If the sensor is present, the temperature and it's ID will be shown on a 2x16 LCD. If not, error messages will be displayed on the second row of the LCD. Code snippet (initial code, project … Continue reading DS18B20 single temperature sensor (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)
LCD4 Hello World example (L152)
Name of the project l152_lcd4_hello Description The project will display text and numbers on a 2x16 alphanumeric LCD. Code snippet (initial code, project structure and VSCode files generated by VPC) uint8_t s[6]; const uint8_t sr[] = "Hello World!"; int main(void){ /* local variables */ uint8_t i = 0; uint8_t counter = 0; /* mandatory system … Continue reading LCD4 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)
VPC version 3 released!
Finally! VPC looks decent now. - It comes with a full featured "Clock Setup" window of which settings are reflected in the generated code; - Also provided some blink examples, using various clock sources at various frequencies - all blink examples should toggle the LED at 500ms interval. More examples to come - the old … Continue reading VPC version 3 released!
Final version of "Clock setup" window mockup
This is the final version and I think it contains all the elements required to set the frequencies of the STM32L1 clocks regarding to the Nucleo board hardware. I'll work hard to make it functional, but it will depend on my health and time.But now something is obvious: if I want to keep the resolution … Continue reading Final version of "Clock setup" window mockup
Big bug fixed: pll settings
The PLL settings were way off. And that may be the reason why my onewire library didn't worked (is my next test to be done after this fix). Code was committed to the repository.Edited:In the future (version 3?), the clock window configuration will allow much more flexibility - at least, at the CubeMX level. But … Continue reading Big bug fixed: pll settings