MrMoto .Psycho
MrMoto .Psycho
  • 16
  • 9 517
Arduino Nano, simple LED Gas Gauge
It took a few hours to figure this out, I have been trying to get an Arduino
to read a fuel sending unit in a car gas tank.
then a simple LED display or OLED, I have a few.
It suddenly came to me, a single line of code fixes it.
The problem is how to get a analog pin set to read a voltage, to read
resistance to ground instead.
First thought was to make a Voltage Divider, looking online it seems to be
the most popular choice.
So I tried it to, and melted a sending unit when it tried to read empty tank.
(at 0 ohm when empty)
At least it was on my desk, not in my gas tank!
The solution turned out to be just use PULLUP resister!
I didn't know it could be done with a analog pin.
Just one line of code set it free....
Переглядів: 44

Відео

for Delane, please forgive my poor spelling
Переглядів 143 роки тому
for Delane, please forgive my poor spelling
Dear Mr Google..... Maps
Переглядів 13 роки тому
I have tried a few times to remedy a few errors in Google Maps. A few were fixed, but this one persists. This will be my fourth try, hope it works.
WooHoo! took you long enough.
Переглядів 13 роки тому
the very best of happily ever afters!
1950 Willys L161 Lightning, first start. Will it run?
Переглядів 1303 роки тому
Bought this motor for $40 on FB. It's out a a boat, so gotta be one of the 1950 leftover stock they sold to a boat builder. being in a boat, it is in beautiful shape inside, great oil pressure, prolly has less than 5-6 thousand miles run time. 😎👌 Still needs tuning, haven't even set timing yet, gotta get water flowing first so it won't overheat.
Hyundai turn signal fast blink! FIX problem
Переглядів 5 тис.3 роки тому
2013 Hyundai Elantra turn signal blinks fast and dim, sounds like a bad ground. forums all say bend tabs to tighten connections, but that doesn't always work. This is what works for me. A person could also hot glue a small bit of fine sandpaper around the tip of a Qtip to reach inside without taking it apart. 🤯
How to make your vote actually be counted in Washington State.
Переглядів 94 роки тому
after watching this, it will seem obvious.
Our new place! 😎👍❣
Переглядів 844 роки тому
A quick tour of our place.
To the Moon Alice! Welcome to the Harvest Moon.
Переглядів 54 роки тому
Local bar in our new hometown 😎👍
MD Building Products REVIEW Wall Base self adhesive
Переглядів 3,5 тис.4 роки тому
Why I will never use this stuff again.
144 LED taillight bulbs
Переглядів 195 років тому
Got these bulbs from eBay, they are nice and bright... But everything nice comes with a price...
1 Sativa baby shower
Переглядів 15 років тому
1 Sativa baby shower
3 Sativa baby shower
Переглядів 45 років тому
3 Sativa baby shower
2 Sativa baby shower
Переглядів 25 років тому
2 Sativa baby shower
Filling the pool!
Переглядів 75 років тому
Filling the pool!
BLACK DEATH
Переглядів 5587 років тому
BLACK DEATH

КОМЕНТАРІ

  • @think-about-it-777
    @think-about-it-777 9 місяців тому

    yeah that stuff is trash. I just got ripped off as well for like 200 ft. it does not stick to the wall, it leaves ripples, it's a mess, We even tried using a heat gun and hot glue which just made a bigger mess. thankfully we tested this on one wall first. that company deserves to be sued for using our wallets as a trash can

  • @IreneGrimn-wc6ke
    @IreneGrimn-wc6ke Рік тому

    So much simpler than what I tried that didn't work.

  • @IreneGrimn-wc6ke
    @IreneGrimn-wc6ke Рік тому

    Just gave it a try, works good. Thanks, I be lookin for that for quite a wile

  • @3Dfinger
    @3Dfinger Рік тому

    hey thats pretty slick im going to try that to low quality video makes it hard to read beef it up next time

    • @CornHolePoker
      @CornHolePoker Рік тому

      Sorry about the fuzzy video, I uploaded it at HD 1280x720 but it shows up at 480 at best.

  • @mobilesale5293
    @mobilesale5293 Рік тому

    Wow! So simple, Ive been trying to make it work for years. You make it look so easy. How come you dont say anything?

    • @CornHolePoker
      @CornHolePoker Рік тому

      For some reason, almost anything I post with my voice in it, gets deleted within minutes. I have no idea why, no cussing, no name calling, nothing like that, just helpful DIYs. Maybe I sound like a singer who patented their voice or something dumb like that.

  • @CornHolePoker
    @CornHolePoker Рік тому

    The code is super easy, just use the AnalogReadSerial example code. add the simple line pinMode(A0, INPUT_PULLUP); in the setup. when loaded and running, open Serial Monitor, the readings should be in the lower half...ish... of the 0 - 1023, run sending unit from lowest to highest point, or oil pressure sensor, or temp sensor. Just add a few lumps of code to light up each LED, or use map to convert, or change to PWM and run servo for needle. I plan to use GM x27-168 style steppers, soon as I figure them out.

  • @CornHolePoker
    @CornHolePoker 4 роки тому

    Remember, a 'hand picked ,person of integrity' (hand picked by who?) opens every envelope, unfolds ballot, has a few moments to scan every one. With some practice, this switcheroo can be done in less than a second. Also, every 100 switched, is 200 in opposite favor. 100 taken away, is 100 added to other, making 200 deficit.

  • @rockyfish3115
    @rockyfish3115 6 років тому

    Coke works to

    • @philzambo
      @philzambo 6 років тому

      A Mercedes mechanic told me that too, I thought he was joking?