Tested on both controller boards: stm32f103c8 and stm32f401cc
https://youtu.be/sdPBp5OQmUE
Hello,
We have modified the code and simulation, removed the errors and tested the code.
We are uploading the main.c & hex files here on drive. Use STM32F103C8 controller and the main.c file, generate the code and use the simulation.
Code link: https://drive.google.com/drive/folders/1svNKabVrowzOiPqEwKuRAe3GlyzJvUKC?usp=sharing
In this video we have interfaced keypad, LCD and stepper motor with stm32 controller. We control the door operations by entering the password using the keypad. The door opens only when correct password is entered. Door opens for some time, let the person enters and then closes back. The door opening and closing are controlled by stepper motor. The simple interface can be used in many projects.
To support our channel please donate on PayPal: https://www.paypal.me/ajimet
Join our telegram channel: https://t.me/STM32controller
If you enjoy the video, Like share and subscribe.
For project queries, Whatsapp on 9665001206
Keep spreading the knowledge.
Hello,
We have modified the code and simulation, removed the errors and tested the code.
We are uploading the main.c & hex files here on drive. Use STM32F103C8 controller and the main.c file, generate the code and use the simulation.
Code link: https://drive.google.com/drive/folders/1svNKabVrowzOiPqEwKuRAe3GlyzJvUKC?usp=sharing
In this video we have interfaced keypad, LCD and stepper motor with stm32 controller. We control the door operations by entering the password using the keypad. The door opens only when correct password is entered. Door opens for some time, let the person enters and then closes back. The door opening and closing are controlled by stepper motor. The simple interface can be used in many projects.
To support our channel please donate on PayPal: https://www.paypal.me/ajimet
Join our telegram channel: https://t.me/STM32controller
If you enjoy the video, Like share and subscribe.
For project queries, Whatsapp on 9665001206
Keep spreading the knowledge.
PayPal.Me
Pay Ajinkya Metange using PayPal.Me
Go to PayPal.Me/ajimet and enter the amount. It's safer and more secure. Don't have a PayPal account? No problem.
We are interfacing the AT24C512 EEPROM device with STM32F103 controller. The simulation shows the expected results. In this tutorial, we have demonstrated the write and erase functionality for EEPROM device. We have used GPIOs to replicate the I2C protocol.
Hope you enjoy the video.
For project queries, mail us on STMetaTronics@gmail.com
or whatsapp us on +919665001206
Join our telegram channel: stmetatronics
link: https://t.me/STM32controller
https://youtu.be/sUhxf2IFfpI
Hope you enjoy the video.
For project queries, mail us on STMetaTronics@gmail.com
or whatsapp us on +919665001206
Join our telegram channel: stmetatronics
link: https://t.me/STM32controller
https://youtu.be/sUhxf2IFfpI
Telegram
Stm32 tutorials
Different sensors interface with STM32 controller. Simulation files, codes and output files provided. Output videos are uploaded for each YouTube video. Some cool tricks are made available which are rarely told. Let's create some magic...
In this video, we are interfacing the AT24C512 EEPROM Ic with STM32F103C8 controller. The Erase and write functionalities are explained in the previous video (https://youtu.be/sUhxf2IFfpI). In this video, we are simulating the read operation. So we are reading from one memory location and copying the same data to another memory location. To copy the data from one location we need both read and write operations. Thus demonstrating both Read and Write operations for EEPROM.
We are using the bit banging technique for replicating the I2C protocol. We are using GPIOs as I2C lines. So if you are using any other GPIO apart from GPIO0 and GPIO1, then you ll have to modify the code.
Hope you enjoy the video.
For project queries, mail us on STMetaTronics@gmail.com
or whatsapp us on +919665001206
Join our telegram channel: stmetatronics
link: https://t.me/STM32controller
Notes:
The device id is 0xA0 for this simulation. You can change it according to your device.
Files:
https://drive.google.com/drive/folders/1JWKx9qd47MS2KHQeVyO-fFt61h0aUrjU?usp=sharing
Copy the .c file in src folder
Copy the .h file in inc folder
We are using the bit banging technique for replicating the I2C protocol. We are using GPIOs as I2C lines. So if you are using any other GPIO apart from GPIO0 and GPIO1, then you ll have to modify the code.
Hope you enjoy the video.
For project queries, mail us on STMetaTronics@gmail.com
or whatsapp us on +919665001206
Join our telegram channel: stmetatronics
link: https://t.me/STM32controller
Notes:
The device id is 0xA0 for this simulation. You can change it according to your device.
Files:
https://drive.google.com/drive/folders/1JWKx9qd47MS2KHQeVyO-fFt61h0aUrjU?usp=sharing
Copy the .c file in src folder
Copy the .h file in inc folder
YouTube
EEPROM interface with STM32F103 controller | STM32 Interfacing | Simulation | I2C protocol | AT24cxx
We are interfacing the AT24C512 EEPROM device with STM32F103 controller. The simulation shows the expected results. In this tutorial, we have demonstrated the write and erase functionality for EEPROM device. We have used GPIOs to replicate the I2C protocol.…
Which Opic you want next?
Final Results
10%
EEPROM use with example project
33%
Bootloader
57%
Electric vehicle charging system
Use this proteus version. All simulations and projects are tested on this version.
Forwarded from Ajju
Proteus Professional v8.16 SP3 Build 36097 + Patch.zip
649.4 MB
Proteus_8.16 ver
The STM32 will monitor the status of the flash memory (e.g., by checking the device's "busy" flag) and handle any error conditions (e.g., write protection).
Optional feedback can be provided via LEDs or a seven-segment display to indicate the success of operations (write, read, erase).
Proteus Simulation Setup:
STM32 Configuration: The STM32 microcontroller will be programmed to initialize the SPI interface, send commands to the flash memory, and handle interrupts (if needed).
Flash Memory Model: The serial flash memory will be modeled in Proteus, connected to the STM32 via the SPI bus.
Peripherals: You may include an LED or LCD display to show the status of operations or errors.
Code Development: The firmware for the STM32 microcontroller will be written in C using STM32CubeIDE or similar IDEs. The code will use the HAL (Hardware Abstraction Layer) libraries to manage SPI communication and control the flash memory.
Steps for Implementation:
Design the Circuit in Proteus:
Place STM32 microcontroller, serial flash memory, and other components (LEDs, power supply, etc.) on the schematic.
Wire the SPI interface (MOSI, MISO, SCK, CS) between STM32 and the flash memory.
Write the Firmware Code:
Initialize the SPI peripheral.
Implement functions for writing, reading, and erasing flash memory.
Add error handling and feedback (optional LEDs or display).
Simulate the Circuit:
Load the compiled firmware into the STM32 in Proteus.
Simulate the circuit to verify correct operation: data reading and writing to the flash memory.
Testing and Debugging:
Test all possible operations, such as writing data, reading data, and erasing sectors.
Verify if the flash memory stores data persistently and handles operations without errors.
Expected Outcomes:
Successful interfacing between the STM32 microcontroller and the external SPI flash memory.
Ability to write and read data from the serial flash memory.
Proper handling of flash memory operations such as erasing and writing.
Visual indication of operations via LEDs or an LCD display.
Applications:
Embedded systems where large amounts of data need to be stored externally (e.g., data logging, firmware storage).
Systems requiring fast access to non-volatile memory.
Development of memory management routines in embedded applications.
Optional feedback can be provided via LEDs or a seven-segment display to indicate the success of operations (write, read, erase).
Proteus Simulation Setup:
STM32 Configuration: The STM32 microcontroller will be programmed to initialize the SPI interface, send commands to the flash memory, and handle interrupts (if needed).
Flash Memory Model: The serial flash memory will be modeled in Proteus, connected to the STM32 via the SPI bus.
Peripherals: You may include an LED or LCD display to show the status of operations or errors.
Code Development: The firmware for the STM32 microcontroller will be written in C using STM32CubeIDE or similar IDEs. The code will use the HAL (Hardware Abstraction Layer) libraries to manage SPI communication and control the flash memory.
Steps for Implementation:
Design the Circuit in Proteus:
Place STM32 microcontroller, serial flash memory, and other components (LEDs, power supply, etc.) on the schematic.
Wire the SPI interface (MOSI, MISO, SCK, CS) between STM32 and the flash memory.
Write the Firmware Code:
Initialize the SPI peripheral.
Implement functions for writing, reading, and erasing flash memory.
Add error handling and feedback (optional LEDs or display).
Simulate the Circuit:
Load the compiled firmware into the STM32 in Proteus.
Simulate the circuit to verify correct operation: data reading and writing to the flash memory.
Testing and Debugging:
Test all possible operations, such as writing data, reading data, and erasing sectors.
Verify if the flash memory stores data persistently and handles operations without errors.
Expected Outcomes:
Successful interfacing between the STM32 microcontroller and the external SPI flash memory.
Ability to write and read data from the serial flash memory.
Proper handling of flash memory operations such as erasing and writing.
Visual indication of operations via LEDs or an LCD display.
Applications:
Embedded systems where large amounts of data need to be stored externally (e.g., data logging, firmware storage).
Systems requiring fast access to non-volatile memory.
Development of memory management routines in embedded applications.
Hello,
So in the last video SPI memory interface, there a small bug. Whenever we are going to write data the at Page boundary, the next data should get written at new page. Instead it was getting written into the start of the same page. So, we have made some code changes to handle the same issue. Now with new code, we can write the data anywhere from any address in flash.
https://youtu.be/X_JqWNXr_yY
So in the last video SPI memory interface, there a small bug. Whenever we are going to write data the at Page boundary, the next data should get written at new page. Instead it was getting written into the start of the same page. So, we have made some code changes to handle the same issue. Now with new code, we can write the data anywhere from any address in flash.
https://youtu.be/X_JqWNXr_yY
The code will be made public on Wednesday. Please stay tuned.
Contact me on +919665001206 if you require hardware or simulation