Hosting A Website On A Disposable Vape

For the past years people have been collecting disposable vapes primarily for their lithium-ion batteries, but as these disposable vapes have begun to incorporate more elaborate electronics, these too have become an interesting target for reusability. To prove the point of how capable these electronics have become, [BogdanTheGeek] decided to turn one of these vapes into a webserver, appropriately called the vapeserver.

While tearing apart some of the fancier adult pacifiers, [Bogdan] discovered that a number of them feature Puya MCUs, which is a name that some of our esteemed readers may recognize from ‘cheapest MCU’ articles. The target vape has a Puya PY32F002B MCU, which comes with a Cortex-M0+ core at 24 MHz, 3 kB SRAM and 24 kB of Flash. All of which now counts as ‘disposable’ in 2025, it would appear.

Even with a fairly perky MCU, running a webserver with these specs would seem to be a fool’s errand. Getting around the limited hardware involved using the uIP TCP/IP stack, and using SLIP (Serial Line Internet Protocol), along with semihosting to create a serial device that the OS can use like one would a modem and create a visible IP address with the webserver.

The URL to the vapeserver is contained in the article and on the GitHub project page, but out of respect for not melting it down with an unintended DDoS, it isn’t linked here. You are of course totally free to replicate the effort on a disposable adult pacifier of your choice, or other compatible MCU.

53 thoughts on “Hosting A Website On A Disposable Vape

  1. Hariharasubrahmanian Shrikumar designed an itty-bitty cheap web server in 1999: The World’s Smallest Web Server?

    It is the size of a match head and it costs less than $1. The single chip computer runs an iPic web-server and is claimed to be the tiniest implementation of a TCP/IP stack and an HTTP 1.0 web-server.

    The chip is a PIC 12C509A, running at 4MHz the CPU, with 256 bytes of memory, serial port interface circuitry and clock oscillator. The TCP/IP stack is implemented on a small 8-pin low- power microcontroller using 512 words of program ROM. Its inventor says that if iPic can fit in a PIC, it can fit in just about anything.

      1. Well, no, there isn’t, there’s plenty of examples on far less powerful 8 bit microcontrollers, some even using ISA Ethernet cards and implementing TCP/IP

  2. my buddy goes through three of these things a week. I know the original author doesn’t want to advertise a tobacco product by revealing the name of the manufacture, but if anyone knows or recognizes from the pic can you shoot me an email so I can get him to save the brand that can be used the letter k then saunders0324@gmail.com thank you!

    1. It doesn’t, but people will pay a higher price if it does.

      Marketing proves the invisible hand of the market is not rational.

      1. How, when people don’t even know it’s in there?

        Very little of marketing actually does anything other than cost money. That’s just the marketing agencies selling bunk – after all, marketing only needs to work to the extent of the primary customer, which is the company that wants to advertise itself. Whether it actually influences consumer behavior is a secondary concern.

        1. Vapers, on the mod scene, have had microcontrollers for at least a decade and even OLED displays to allow users to configure the devices for different coils, liquids, temperatures etc. etc.

          The cheap, nearly disposable vapes use chips which are single digit pennies each and add a few blingy features like flashy lights, charge indication, some count up the number and duration of ‘hits’ to give percentage used so they’re not entirely useless (no, I don’t vape or smoke, I just collect street lithium and now microcontrollers when I see them).

    2. And if it did need a uC, wouldn’t something in the 8051 class be sufficient?

      This is how we’re going to get sentient toasters with an attitude problem.

    3. Recent disposable vaping devices have an LCD display to show remaining battery and e-liquid; some even have addressable LEDs and animation effects. For these features, you need an MCU.In more expensive models, you can even adjust the coil current.”

      1. THIS. I have extensively messed with these, having teen neighbors that throw them over the fence when they are done. Watching the evolution, it makes a lot of sense to do it like that and have the uC handle the power, heating element, display, and extra leds thrown in. The main hobble with these is the limited storage. I lucked out and found one with a cloned broadcomm chip which let me hit the display frame and unravel a lot from there. I totally fried a few too apparently being attiny kinda clones with fuses but whatever it is just me playing with garbage lol. There was another that i found had a curl listing for whatever reason but when I scanned the url it was a dumpload for an iot bulb lol. I think they just use whatever they get their hands on for cheap. It is fascinating from a tinkering standpoint but also frustrating dealing with clones of clones and some chips they found in a bin next to a Mogwai cage lol. I will say AI is an absolute beast at figuring out possible base chip and what they will respond to, saving hours of whitepage multitabbed madness lol.

          1. Apparently not. Hackaday keeps removing my replies. Sorry but I guess you will just have to figure it out on your own. The limited ram really makes it difficult to do much of anything outside of a MUD with 2 users. Good luck!

          2. Run the above through AI and ask “Talking about chips found in vapes. So how would AI do what’s described?” The rest is some suggestions.

          3. You basically play 20 questions with the AI. Given some piece of evidence, it can narrow down the list of possibilities and suggest some course of action. If that works, then the list gets shorter.

            For example, I just pretended that my calculator was damaged, half the display doesn’t work, and the model number was scuffed off, and ran through a number of input options to determine that it’s an fx-82ES.

          4. I’ll see if this one stays. You act like you want to build one with AI. Then ask it about some current models to compare to. Then you throw the rope over the wall and have it scan asian forums for other known parts on the board. It is surprisingly good sometimes at finding things on chip broker sites etc and seems to gear its probablility marks around that. For figuring out the clones thing, there are 5 big “Mordor” style factories that shit all of these things out. You find the proper chip and then ask AI for cheaper alternatives. You can even ask it to find a clone with more onboard ram etc but but but it is by its nature a cheap clone and its specs are not probably true or reliable which was something AI ironically warned me of lol. Start with Jason’s blog on his adventures to get an overview. Oh and it takes a fair amount of luck with AI on the prompts as probably anyone can attest to. Sometimes it nails a prompt first try and other times it drowns itself in a sea of possibilities…

    4. To run the display. Why a vape needs a display is another question, and of course the main question is why vape?

      The fancier ones let you set custom parameters & profiles for whatever reason, so you need a uC for that.

      1. On what grounds?

        I dislike the government targeting of tobacco/vape/nicotine companies. Yes they are bad, yes they can cause issues. So can drinking, you don’t see progressively higher taxes on those.

        And the absurd “Think of the children,” as they ban flavors in tobacco/vape/nicotine! Meanwhile if you want Rootbeer, Vanilla, Whipped Cream, or any of hundreds of flavors of Vodka its just a trip to the liqueur store.

        1. No progressive taxes on alcohol? Well that is a thing in EU!
          We have plans to increase alcohol tax every couple of years. Of course this is country dependent.

          1. It’s a curious thing, seeing how easy it is to make alcohol, that people still keep paying those taxes. If you’re paying ten euros a pint, like in some Nordic country, you’d think that people would skip the pub and just drink their own booze.

            Maybe they do?

        2. Not because smoking is unhealthy or whatver, I don’t care.

          But throwing away at least a lipo cell which was charged ONE TIME ist utter bullshit. Lots of countries have laws against unnecessary e-waste. I really wonder how these thing could even start to sell here in germany…

          They have one good aspect, though (aside free street lihium from these douche flutes): They are good to shut down idiots ranting about evil EVs that have their lithium mined by poor children somwhere in the jungle. Ranting while sucking on their disposable smoking pacifier…

          1. The cells in those things are often as good as disposable, because they’re made extremely cheaply. I wouldn’t trust them to charge safely – for instance, who says they even bothered mixing the right additives to prevent dendrite formation?

  3. WTF are these?
    I have been collecting and salvaging disposable vapes for a decade.
    I even went around to the local bars and convinced them to set up a highly visible box for patrons to drop their used vapes in. (It helped that there has been at least 1 parking lot fire here caused by a discarded vape being run over)

    I have never seen one with a pcb in it.

    They are usually just a battery, a bit of Nichrome wire, and either a reed switch or a microphone+switch.

    1. There’s 3 types. The basic ones you’ve been finding (those have the biggest cells), USB-C rechargeable (but not refillable) ones where the small battery gets charged a few times before getting tossed, and ones like here that have some sort of display to show charge level or whatever, and these are often refillable via “juice pods’.

      Like everything else the high end models (some which take dual 18600’s!) have lots of useless bells & whistles & configuration setting, hence the controller. The pods have magnets and pogo pins, for God’s sake.

      I found a bunch of chunky cylindrical rechargeable ones, so I put in bigger batteries (where the juice pod goes) and 3D printed some shapes to make night lights. One model I find a lot of can take 2 x 18450 cells so I make power banks out of them.

      As DJ Boi mentioned, you need to trigger the air sensor to make any circuitry work, but they usually shut off after a few seconds. You can add a button to check charge state etc but usually you’ll only be using it as a charge module.

      Terrible useless wasteful crap, but hey, free batteries!

  4. the year is 2035 and each one has its own ai chatbot and internet connection…

    im gen z and have no intention of touching those things.

  5. Not mentioning the brand feels more like hoarding the free supply of boards and less like protecting us from advertising the manufacturer.

Leave a Reply to SheffCancel reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.