Adsense HTML/JavaScript

Showing posts with label Arduino_Core_STM32. Show all posts
Showing posts with label Arduino_Core_STM32. Show all posts

Monday, August 17, 2020

STM32F411CEU6 + SSD1306 I2C OLED

 

This video show 0.96 inch 128x64 OLED with SSD1306 I2C driver, drive by STM32F411CEU6 minimum development board, STM32F411CEU6 minimum development board + SSD1306 I2C OLED, using stm32duino/Arduino_Core_STM32 on Arduino IDE using ssd1306 library.

To install stm32duino/Arduino_Core_STM32 on Arduino IDE/Windows 10 and program STM32F411CEU6 minimum development board, read the post HERE.

Then:

- Install ssd1306 library in Arduino IDE Library Manager.

- Open Examples > ssd1306 > demos > ssd1306_demo

- Connect the SSD1306 I2C OLED to STM32F411CEU6 minimum development board following the comments in the demo code.


STM32F411	SSD1306 I2C OLED
----------------------------
3V3			VCC
GND			GND
B7			SDA
B6			SCL


Sunday, June 28, 2020

STM32F411CEU6 minimum development board, and install stm32duino/Arduino_Core_STM32 on Arduino IDE/Windows 10.

Just received a STM32F411CEU6 minimum development board:



claimed:
STM32F411 Development Board
- Frequency up to 100 MHz
- Up to 512 Kbytes of Flash memory
- 128 Kbytes of SRAM

Information available at https://pan.baidu.com/s/1MDfunchq5IWM3hQ6MRw18A with access code: xbc9

But I'm outside China Mainland, so I cannot access Baidu cloud storage!


Test with stm32duino/Arduino_Core_STM32 on Arduino IDE/Windows 10

This board used DFU to upload program, so have to install STM32CubeProgrammer first.

Visit https://www.st.com/en/development-tools/stm32cubeprog.html, follow the steps to install STM32CubeProgrammer.

Then add the path of bin directory of installed STM32CubeProgrammer to your system PATH.




Install stm32duino/Arduino_Core_STM32, this repo adds the support of STM32 MCU in Arduino IDE.

To install Arduino_Core_STM32, open Arduino IDE.

Click Menu > File > Preferences, add the following URL to Additional Boards Manager URLs:
https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json


> Tools > Board: STM32 Boards (slected from submenu) > Generic STM32F4 series

> Tools > select submenu of Board part number > BlackPill F411CE

> Tools > Upload method > STM32CubeProgrammer (DFU)

Load the example Blink

Now press the buttons on the board to enter DFU mode.
> Press and hold the button BOOT0
> Preess and release the button RST
> Release the button BOOT0

The LED D3 will OFF.

Now you can verify and upload the program to the board.

Done. Now the LED D3 will start to blink.


remark:
Before trying BlackPill F411CE, I tried board part number of Generic F411CE. Success to verify and upload, but the LED not turn on.



Next: 

Related: