<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/transforming-a-disposable-vape-into-a-functional-web-server-x3azrkosw" -->

---
title: Transforming a Disposable Vape into a Functional Web Server
description: A creative hardware project successfully repurposed a disposable vape&#x27;s PY32F002B microcontroller (24MHz ARM Cortex-M0+, 24KB flash, 3KB RAM) into a functional...
canonical: https://daily.dev/posts/transforming-a-disposable-vape-into-a-functional-web-server-x3azrkosw
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Transforming a Disposable Vape into a Functional Web Server | daily.dev
og:description: A creative hardware project successfully repurposed a disposable vape&#x27;s PY32F002B microcontroller (24MHz ARM Cortex-M0+, 24KB flash, 3KB RAM) into a functional...
og:url: https://daily.dev/posts/transforming-a-disposable-vape-into-a-functional-web-server-x3azrkosw
og:image: https://api.daily.dev/og/posts/x3AzrkOsw.png
og:image:alt: Transforming a Disposable Vape into a Functional Web Server
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Transforming a Disposable Vape into a Functional Web Server

**[Collections](https://daily.dev/sources/collections)** · 1 min read · 278 upvotes · 27 comments

## Summary

A creative hardware project successfully repurposed a disposable vape's PY32F002B microcontroller (24MHz ARM Cortex-M0+, 24KB flash, 3KB RAM) into a functional web server. Using semihosting communication, SLIP protocol for networking, and the uIP TCP/IP stack, the project achieved 20ms ping times and 160ms page load times through careful optimization including ring buffers. This demonstrates the potential of transforming resource-constrained everyday electronics into versatile computing devices.

## Content

In an inventive foray into hardware repurposing, a project has successfully transformed the microcontroller of a disposable vape into a functioning web server. This creative use of the PY32F002B microcontroller, which features a 24MHz ARM Cortex-M0+, 24KB of flash memory, and 3KB of RAM, showcases the potential of resource-constrained devices.

The implementation hinges on using semihosting as the communication method combined with the SLIP protocol for networking. For handling TCP/IP functionality, the uIP stack is employed, allowing this modest chip to serve web content efficiently. Initial trials faced performance hurdles; however, with methodical optimizations, including the use of ring buffers, the server attained impressive operational metrics, with ping times reduced to 20ms and page load times to 160ms.

Despite these limited resources, the project successfully turns a seemingly single-use device into a capable web server, illustrating the possibilities inherent in creative hardware projects and low-level network programming. This endeavor highlights the intriguing potential of transforming everyday electronics into versatile tools, furthering the pursuit of innovation in electronics and networking.

## Community discussion

Top comments from developers on daily.dev.

**@devmandan** · 82 upvotes

> "What flavour is that?"
> "Firefox"

**@martincerny** · 15 upvotes

> That is one of the coolest things I saw this week.
> Good job!

**@itsjavi** · 14 upvotes

> the real Vaporware

**@akaco** · 9 upvotes

> Read on https://bogdanthegeek.github.io/blog/projects/vapeserver/

**@ar0m** · 8 upvotes

> Well, it only gonna host page from 1990, limit by it ram size LOL

## Similar posts on daily.dev

- [This Website Runs on Disposable Vape](https://daily.dev/posts/this-website-runs-on-disposable-vape-qtepq9bqh) · 80 LEVEL · 48 upvotes · 1 comments
- [The 8-bit Web Server](https://daily.dev/posts/the-8-bit-web-server-d7yunltjw) · Hackaday · 0 upvotes · 0 comments
- [Hosting a website on an 8-bit microcontroller. \(Maurycy's blog\)](https://daily.dev/posts/hosting-a-website-on-an-8-bit-microcontroller-maurycy-s-blog--muxqqbdbi) · Hacker News · 0 upvotes · 0 comments

---

Tags: [#embedded](https://daily.dev/tags/embedded), [#hardware](https://daily.dev/tags/hardware), [#networking](https://daily.dev/tags/networking)

[View this post on daily.dev](https://daily.dev/posts/transforming-a-disposable-vape-into-a-functional-web-server-x3azrkosw)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Transforming a Disposable Vape into a Functional Web Server","url":"https://daily.dev/posts/transforming-a-disposable-vape-into-a-functional-web-server-x3azrkosw","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/transforming-a-disposable-vape-into-a-functional-web-server-x3azrkosw"},"datePublished":"2025-09-15T07:49:38.183Z","dateModified":"2026-03-15T03:33:40.430Z","description":"A creative hardware project successfully repurposed a disposable vape's PY32F002B microcontroller (24MHz ARM Cortex-M0+, 24KB flash, 3KB RAM) into a functional...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/0cab53d780efad6d9d6b6703f406e6a7?_a=AQAEulh","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/0cab53d780efad6d9d6b6703f406e6a7?_a=AQAEulh","isAccessibleForFree":true,"articleSection":"Collections","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Collections","logo":"https://media.daily.dev/image/upload/s--fk_6ycEi--/f_auto,q_auto/v1780996001/logos/collections?_a=BAMAMiWQ0","url":"https://daily.dev/sources/collections"},"commentCount":27,"discussionUrl":"https://daily.dev/posts/transforming-a-disposable-vape-into-a-functional-web-server-x3azrkosw","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":278},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":27}],"keywords":"embedded,hardware,networking","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Collections","item":"https://daily.dev/sources/collections"},{"@type":"ListItem","position":3,"name":"Transforming a Disposable Vape into a Functional Web Server"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/transforming-a-disposable-vape-into-a-functional-web-server-x3azrkosw","comment":[{"@type":"Comment","text":"“What flavour is that?”\n“Firefox”","datePublished":"2025-09-16T11:36:49.465Z","url":"https://daily.dev/posts/x3AzrkOsw#c-rSdRQz133","author":{"@type":"Person","name":"Daniel","url":"https://daily.dev/devmandan","image":"https://media.daily.dev/image/upload/s--ypn2TBF9--/f_auto/v1786619820/avatars/avatar_qDApMJOupymFKtjAmmtB4?_a=BAMAMicg0"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":82}},{"@type":"Comment","text":"That is one of the coolest things I saw this week.\nGood job!","datePublished":"2025-09-25T10:02:47.322Z","url":"https://daily.dev/posts/x3AzrkOsw#c-PQls2xQxa","author":{"@type":"Person","name":"Martin Černý","url":"https://daily.dev/martincerny","image":"https://lh3.googleusercontent.com/a/AGNmyxaRHXyliwx0nDCiO4SAvvI6hhgQuvhATgps5Iv9=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":15}},{"@type":"Comment","text":"the real Vaporware","datePublished":"2025-09-30T20:04:54.230Z","url":"https://daily.dev/posts/x3AzrkOsw#c-tsYGKrQyj","author":{"@type":"Person","name":"Javier","url":"https://daily.dev/itsjavi","image":"https://media.daily.dev/image/upload/s--Lhs9VFvX--/f_auto/v1711531445/avatars/avatar_L28cJws79VJWZec5RBvoy"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":14}},{"@type":"Comment","text":"Read on https://bogdanthegeek.github.io/blog/projects/vapeserver/","datePublished":"2025-09-29T23:44:11.503Z","url":"https://daily.dev/posts/x3AzrkOsw#c-COO0cmj7P","author":{"@type":"Person","name":"Amirreza Ya","url":"https://daily.dev/akaco","image":"https://media.daily.dev/image/upload/s--7uqYlzdL--/f_auto/v1748485891/avatars/avatar_tFvD61fcl?_a=BAMClqUq0"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":9}},{"@type":"Comment","text":"Well, it only gonna host page from 1990, limit by it ram size LOL","datePublished":"2025-09-25T00:44:45.475Z","url":"https://daily.dev/posts/x3AzrkOsw#c-x2An5OFCw","author":{"@type":"Person","name":"ar0m","url":"https://daily.dev/ar0m","image":"https://media.daily.dev/image/upload/s--P4lqY0l5--/f_auto/v1725843026/avatars/avatar_rWZOrL7aN8EfLSLFAQQon"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":8}}]}
```

