Page 1 of 1

Esp32-arduino-fuel gauge

Posted: Tue Jul 30, 2019 12:32 pm
by electronics_diy
Hello everyone.
I am a newbie member and i would like you to help me with a simple but difficult project
I have made a little plan on the attachments to show you what i want to do. Please if anyone knows how to start tell me

Re: Esp32-arduino-fuel gauge

Posted: Mon Aug 05, 2019 5:49 am
by electronics_diy
No one knows??????

Re: Esp32-arduino-fuel gauge

Posted: Mon Aug 05, 2019 9:36 am
by bobtidey
I think you need to say a little bit more about where you think you need help.

Like

1) Hardware interfacing
2) Basic development environment set up
3) Basic software development to set up and periodically read gauge
4) Web development (assuming that is a phone display) or
4) Local display onto screen

In principle this is fairly straightforward.

Basic loop to read analog value and convert into a fuel % variable.
If a phone app then an Access point based web server responding to browser requests to refresh display
Web code to display results in phone

If this is your first ESP project then you should take a step by step approach.

Get basic development environment set up and simple sketch working (like LED blink)
Simple loop to read analogue value and send value out on serial port. Use a potentiometer to simulate fuel gauge
Add Access point and simple web page to display analogue value as text
Enhance web side to refresh and use graphics etc.

Re: Esp32-arduino-fuel gauge

Posted: Mon Aug 05, 2019 10:48 am
by swargir
Hi.
I would do so. I use Arduino IDE/Platformio
1) For ESP32 example. https://github.com/nkolban/ESP32_BLE_Ar ... BLE_server
In it, add a cyclic reading of the analog inputs. Depends on what indicator from the bike will be connected through (max 3.3v voltage. divider is needed)
https://randomnerdtutorials.com/esp32-a ... duino-ide/
2) For Android, it is written by hand. For esp32 test at the development stage, BLE Scanner is suitable.