The 1947 - Present Chevrolet & GMC Truck Message Board Network







Register or Log In To remove these advertisements.

Go Back   The 1947 - Present Chevrolet & GMC Truck Message Board Network > Welcome and Discussion > General Discussion

Web 67-72chevytrucks.com


Reply
 
Thread Tools Display Modes
Old 07-29-2018, 10:44 AM   #1
davepl
Registered User
 
davepl's Avatar
 
Join Date: Aug 2006
Location: Redmond, WA
Posts: 6,332
Dave's Neck, Compressor, Electronics

Feel free to move this to OT, but I'm following up on two topics we were discussing briefly here so thought I'd follow up here!

First, my neck - if you recall, I blew out my C6/C7 spinal disc. Completely ruptured it, the goo came out, bone on bone with the nerve pinched between. Not pretty, and no painkillers. But it's been almost TWO MONTHS now and I'm at least 90% healed up, maybe more. So a month laying flat on my back and then another one taking it easy and healing, and here I am!

That gave me a lot of time to learn electronics, so starting with a thread and some advice here, I undertook to learn basic digital electronics (breadboards, chips, ohm's law, etc) because I was a software guy with no hardware knowledge!

So, I took an ESP32-WROOM chip and built a compressor controller. My initial plan was to "soft-start" the compressor, but it turns out that's not always a great idea. So I just stuck with monitoring pressure and temperature and runtime and so on. So it only runs when I'm in the shop, won't run forever in case of a leak, and so on. But it's all about the learning, not for any practical purpose.

I used an Autex auto pressure sensor (like you'd use for EFI fuel pressure) to monitor the line pressures.

I got pretty much done but wanted to do more, so I added a web interface to my air compressor controller project so you can monitor/control the compressor via the Internet. Because the world needs Internet-connected air compressors! If I can figure out how to add the blockchain, I could have a serious valuation!

On days where I'm actively working on the project, it's up and live at:

http://1969pontiac.com:99/

But since its a breadboard with a mess of wires, I don't leave it running unattended when I'm not out there!

Anyway, I wrote/adapted an async web server to run on port 80, which serves web requests both for static files out of the onboard flash memory and also for a RESTful api that lets this page (or anyone) query the current pressure, temp, etc. The page is written with jquery and jquery UI and uses SVG graphics to render the gauges, no images.

As for the "why", it's just for learning. Serving a web page crosses a lot of boundaries - you connect to wifi, connect to the internet, set the clock from NTP, manage multiple TCP connections, serve files from the SPIFFS flash... jquery, jqueryui, javascript, json, svg, html5, and meanwhile, the chip's ADCs are reading the live pressures and temperatures. Pretty much everything gets involved except the Bluetooth!

Remember that there's no linux or windows on this thing - no operating system at all. Just bare metal. You and the chip, like the olden' days!
Attached Images
  
__________________
1970 GMC Sierra Grande Custom Camper - Built, not Bought
1969 Pontiac 2+2 427/390 4-speed Coupe
1969 Pontiac 2+2 427/390 4-speed Convertible
davepl is offline   Reply With Quote
Old 07-29-2018, 11:38 AM   #2
ncpetersc
Registered User
 
ncpetersc's Avatar
 
Join Date: Jun 2018
Location: Fuquay-Varina, NC (Just outside of Raleigh)
Posts: 237
Re: Dave's Neck, Compressor, Electronics

Cool project, and glad you are almost completely healed up! That had to hurt!
ncpetersc is offline   Reply With Quote
Old 07-29-2018, 12:51 PM   #3
weq92f
Registered User
 
Join Date: Oct 2016
Location: Dallas Texas
Posts: 2,875
Re: Dave's Neck, Compressor, Electronics

Neat! Hitting your URL now it must be serving up a static page as it's the same one you showed at the beginning of the thread:

155 psi
77 F
ON 30

No... wait, that's not a static page. It's reading from the chip...

What gives?

-klb
__________________
67 C10 fleet fuel injected '70 402, 700r4, 3.73 posi
07 335 sport turbo 6sp
94 Trans Am GT LT1 6sp posi -- sold after 22yrs
99 540 sport V8 6sp -- sold
73 240z L24 4sp -- given to friend
68 C10 step 350/350 3.73 open -- sold
weq92f is offline   Reply With Quote
Old 09-18-2018, 09:26 AM   #4
davepl
Registered User
 
davepl's Avatar
 
Join Date: Aug 2006
Location: Redmond, WA
Posts: 6,332
Re: Dave's Neck, Compressor, Electronics

Here's my next project, a single-chip stereo spectrum analyzer. Sorry for the random update, I figure one post every couple weeks won't distract too much, and I'll be back under my truck in a couple of weeks I think! Six procedures later but mostly healed...

https://www.youtube.com/watch?v=c6xa...ature=youtu.be
__________________
1970 GMC Sierra Grande Custom Camper - Built, not Bought
1969 Pontiac 2+2 427/390 4-speed Coupe
1969 Pontiac 2+2 427/390 4-speed Convertible
davepl is offline   Reply With Quote
Old 09-18-2018, 09:27 AM   #5
davepl
Registered User
 
davepl's Avatar
 
Join Date: Aug 2006
Location: Redmond, WA
Posts: 6,332
Re: Dave's Neck, Compressor, Electronics

Quote:
Originally Posted by weq92f View Post
Neat! Hitting your URL now it must be serving up a static page as it's the same one you showed at the beginning of the thread:

155 psi
77 F
ON 30

No... wait, that's not a static page. It's reading from the chip...

What gives?

-klb
It wasn't a static page, it was a live page connected to the real compressor and everything, it was just not my -main- 240V compressor. I hooked it up to a small Cradftsman and left that run a few days, so you were able to monitor it while it was still up!

The page would update every second by doing a POST request back to the server for JSON data to update the text, whatever that's called (restful updating?)
__________________
1970 GMC Sierra Grande Custom Camper - Built, not Bought
1969 Pontiac 2+2 427/390 4-speed Coupe
1969 Pontiac 2+2 427/390 4-speed Convertible
davepl is offline   Reply With Quote
Old 09-18-2018, 10:39 AM   #6
weq92f
Registered User
 
Join Date: Oct 2016
Location: Dallas Texas
Posts: 2,875
Re: Dave's Neck, Compressor, Electronics

Back in the 80s, I had one of those under my dash in my '68 step. It was an equalizer as part of the sound system but it had a mode where it would do that as a display. Very cool back then and still sorta cool today too!

-klb

Quote:
Originally Posted by davepl View Post
Here's my next project, a single-chip stereo spectrum analyzer. Sorry for the random update, I figure one post every couple weeks won't distract too much, and I'll be back under my truck in a couple of weeks I think! Six procedures later but mostly healed...

https://www.youtube.com/watch?v=c6xa...ature=youtu.be
__________________
67 C10 fleet fuel injected '70 402, 700r4, 3.73 posi
07 335 sport turbo 6sp
94 Trans Am GT LT1 6sp posi -- sold after 22yrs
99 540 sport V8 6sp -- sold
73 240z L24 4sp -- given to friend
68 C10 step 350/350 3.73 open -- sold
weq92f is offline   Reply With Quote
Old 09-18-2018, 10:25 PM   #7
Husker
Registered User
 
Husker's Avatar
 
Join Date: Dec 1999
Location: Mid NE USA
Posts: 2,209
Re: Dave's Neck, Compressor, Electronics

Good that you are healing. Cool compressor gadget.
Ron
__________________
Member #111
68 C-10 Daily Driver
70 4x4 Project
76 Jeep CJ-5

Help Support the Board:

http://67-72chevytrucks.com/vboard/payments.php


He who knows nothing is closer to the truth than he whose mind is filled with falsehoods and errors.
Thomas Jefferson
Husker is offline   Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:35 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright 1997-2022 67-72chevytrucks.com