Notifications
Clear all

Arduino Nano Code Help

3 Posts
2 Users
1 Likes
247 Views
(@icespirit)
Member
Joined: 5 months ago
Posts: 5
Topic starter  

Hallo everyone.

I am an electronics enthusiast and I am not good at coding,Can someone help me write code?

 

My Plan Introduction

I plan to make an oil reminder device in my spare time,It is installed inside the motorcycle dashboard,Obtaining signals from traditional mechanical odometers.

Further description,Using Arduino nano as motherboard,GC9A01 is used for displaying,The IR module is used to obtain data from traditional odometers,DS3231 is used for time display and time storage after power off,Two buttons, one for time setting and adjustment, and the other for oil reset and one-way odometer reset

I hope the content displayed in GC9A01 is as shown in the following figure

The oil life display is from 0 kilometers to 2000 kilometers

The 0 kilometer position is displayed in green, while the red display shows 1500-2000 kilometers

The one-way mileage display and oil display share the same button, which is KEY2,A single trigger of KEY2 can reset the one-way mileage display to zero, and holding down the KEY2 button for a long time can reset the oil display to zero,The mileage data and oil data are saved to NANO's EEPROM, which can be automatically stored after turning off the power and read from the EEPROM after the second startup

 

KEY1 button for digital clock adjustment,Press and hold KEY1 for a long time to activate the time adjustment program, and the digital clock will flash,Intermittently pressing KEY1 is used to adjust the minute setting, and the time display format is in a 12 hour format for easy adjustment,Automatically save settings after successful setup

 

The above is my plan and functional description. If you have any better ideas, please let me know. Thank you for your help

 

 

 

 

 

 

 

 


   
Quote
(@dronebot-workshop)
Workshop Guru Admin
Joined: 5 years ago
Posts: 1084
 

An interesting project. So is the IR sensor giving you one pulse per revolution? And has it proven rugged enough to withstand the normal use of the motorcycle?

It's quite ingenious actually, I like it!

😎

Bill

"Never trust a computer you can’t throw out a window." — Steve Wozniak


   
ReplyQuote
(@icespirit)
Member
Joined: 5 months ago
Posts: 5
Topic starter  

@dronebot-workshop Thanks.Infrared sensor 140 pulses (mechanical turntable, 140 turns), odometer displays 1000 meters


   
Inst-Tech reacted
ReplyQuote