3336 views|8 replies

60

Posts

1

Resources
The OP
 

Bicycle computer based on GD32E231C8T6 [Copy link]

 

Bicycle computer based on GD32E231C8T6

1. Introduction

This design is based on the GD32E231C8T6 bicycle computer. GD32E231C8T6 is a fully functional single-chip microcomputer based on the ARM Cortex-M23 core design launched by GigaDevice. It has rich on-chip resources and can support the development of complex consumer electronic products with single-chip dinners. This design mainly uses GD32E231C8T6 on-chip timer2, I2C1, SPI1, EXIT1 interrupt and other resources. External OLED, Hall sensor, Giga Device's SPI nor Flash, TI's Li charger, LED, KEY, Nuvoton's codec NAU8822 and other peripherals.

2. System Block Diagram

  1. Functional description and analysis of each part
  • Giga Device's SPI nor Flash: used to store mileage and other information
  • OLED: used to display information such as speed and mileage
  • Hall Sensor: used to count the number of rotations of the bicycle wheel. A magnet is installed on the wheel, and the Hall is installed at the corresponding position of the magnet. When the two are close to each other, the level will become low, and when they are separated, the level will become high. This triggers an external interrupt, and the number of rotations is counted in the IO interrupt for subsequent speed and mileage calculations. In this design, timer2 generates a 1-second interrupt, and the speed is calculated based on the number of rotations collected per second and the wheel circumference. The corresponding 1-second mileage is added to the total mileage and written to the SPI nor flash.
  • Charger: used for charging management of lithium batteries
  • Buck: Provides 3.3V power to the system
  • Boost: boost to 10V to power the OLED backlight
  • Crystal: Provides clock signal for GD32E231C8T6
  • G sensor & NAU8822: Not used yet, used for bicycle motion detection and warning sound digital-to-analog conversion driver
  1. Demo Video



5. Source code

6. Summary

Due to work reasons, after completing the schematic, PCB, material purchase, and patch completion, and writing some test code, I worked overtime on the project and had no time to make this small code table.

I spent the weekend debugging and formed a small version, which is barely passable, but I am a little regretful. I will be busy in the next few months. After the company project is completed, I will continue to improve this code and share it with you. In addition, if you have good suggestions, you can put forward them and learn from each other. Thank you!

Additional content (2019-6-20 23:16):

GD32E231C8T6_Bike.zip

28.47 KB, downloads: 36

源码

This post is from GD32 MCU

Latest reply

Sorry for the late reply, that's ok~   Details Published on 2019-7-2 15:15
 

824

Posts

190

Resources
2
 

OP, please submit the word document of your work when you have time.

This post is from GD32 MCU
Add and join groups EEWorld service account EEWorld subscription account Automotive development circle
 
Personal signature在路上……

EEworld 有你有我
 
 

23

Posts

0

Resources
3
 

I turned in the word document, and the host is the best!

This post is from GD32 MCU

Comments

I want to say that you are everywhere, and you are an expert in helping people, haha!  Details Published on 2019-6-20 21:48
 
 
 

60

Posts

1

Resources
4
 
lightxixi posted on 2019-6-18 09:49 OP, please submit the word document of your work when you have time
, and submit it in the evening
This post is from GD32 MCU

Comments

Warm reminder: Submit the document, hehe  Details Published on 2019-6-20 21:49
 
 
 

824

Posts

190

Resources
5
 
BigLEO posted on 2019-6-18 11:17 I submitted the word document. The OP is the best!

I want to say that you are everywhere, and you are an expert in helping people, haha!

This post is from GD32 MCU
Add and join groups EEWorld service account EEWorld subscription account Automotive development circle
 
Personal signature在路上……

EEworld 有你有我
 
 

824

Posts

190

Resources
6
 
xujinxi posted on 2019-6-18 12:42, submit it in the evening

Warm reminder: Submit the document, hehe

This post is from GD32 MCU
Add and join groups EEWorld service account EEWorld subscription account Automotive development circle
 
Personal signature在路上……

EEworld 有你有我
 
 

60

Posts

1

Resources
7
 

Supplementary word document

基于GD32E231C8T6的自行车码表.docx

1.1 MB, downloads: 23

word文档

This post is from GD32 MCU
 
 
 

60

Posts

1

Resources
8
 
lightxixi posted on 2019-6-20 21:49 Warm reminder: Submit the document, hehe

Look, I replied on the 7th floor. Is this operation OK?

This post is from GD32 MCU

Comments

Sorry for the late reply, that's ok~  Details Published on 2019-7-2 15:15
 
 
 

824

Posts

190

Resources
9
 
xujinxi posted on 2019-6-20 23:04 You see I replied on the 7th floor, is this operation OK?

Sorry for the late reply, that's ok~

This post is from GD32 MCU
Add and join groups EEWorld service account EEWorld subscription account Automotive development circle
 
Personal signature在路上……

EEworld 有你有我
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list