cancel
Showing results for 
Search instead for 
Did you mean: 

7-segment, Alarm control, Temperature sensor by STM32F0xx

Md Mubdiul Hasan
Associate III
Posted on September 09, 2016 at 04:32

Dear All,

Could you kindly help me to find some example code for 7 segment or alarm control ?

Thanks in advance.
3 REPLIES 3
Walid FTITI_O
Senior II
Posted on September 09, 2016 at 16:32

Hi hasan.md_mubdiul,

The foollowing examples in

http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-embedded-software/stm32cubef0.html

may helps you :

* ''ADC_Temperature sensor'' which is available at this path (Low level example): STM32Cube_FW_F0_V1.6.0\Projects\STM32F072RB-Nucleo\Examples_LL\ADC\ADC_TemperatureSensor

*''RTC_alarm'' : at this path (project available for many hardware projects :(

 STM32Cube_FW_F0_V1.6.0\Projects\STM32F072B-Discovery\Examples\RTC\RTC_Alarm

For more information about STM32CubeF0 firmware chech this application note

http://www.st.com/content/ccc/resource/technical/document/application_note/group0/75/1e/68/3e/bd/8d/41/a1/DM00210690/files/DM00210690.pdf/jcr:content/translations/en.DM00210690.pdf

-Hannibal-

Md Mubdiul Hasan
Associate III
Posted on September 12, 2016 at 03:17

Dear Sir,

Thank you for your kind response and the directed program library.

In fact, I am developing a rice chips maker which has a control board with main MCU STM32F070RF-T6.

Whole circuit works in following steps.

1. Step-1, a) LED, 7-segment will reset.

                b) System entering the stand by status.

2.Step-2, a) Set Temparature push button,

               b) Set operating time button.

               c)Set Temprature reading bbutton.

3. Step-3,a)  7-segment value for Temprature value.

                b) After reaching a fixed temparature, warm up alarm LED and

                  Buzzer will   sound for 10 seconds.

               c)Alarm can be off by pushing alarm button.

4. Step-4, a)During burn action, the 7-segment will show the remaining time to burn.(Decending order)

                   b) After it finished, the burn alarm LED beeps for 10 sec.

                  c) Alarm can be OFF by alarm button.

                 d)This action can be cancelled by push button.

5. Step-5, a) Up and down arrow button can be change the heating temparature value.

  

I have generated some code by STM32cubeMX.

Kindly, give me your best suggestion or send me same type code to understand and apply.

Md Mubdiul Hasan
Associate III
Posted on September 26, 2016 at 09:50

Do you want me to apply this idea?

http://embedded-lab.com/blog/stm32s-internal-rtc/

Let me know soon.