r/ClaudeCode • • 2h ago

Help/Question Can Claude Code build an entire IoT project from scratch if I provide a detailed prompt?

I'm fairly new to Claude Code, and I've recently set it up using the FreeLLM API repo from GitHub.

I'm currently working on an MCA IoT mini project, which is a Smart QR Code-Based Door Locking System. The idea is to build a system for an apartment with 10 flats and one common entrance.

The project involves multiple software modules, including:

/- A time-limited, one-time-use QR code generation system.

Separate accounts for all 10 flat owners.

/-A visitor QR scanning and verification system using ESP32-CAM.

/-A backend using Python Flask to handle authentication and QR validation.

/-Flat-owner approval for visitor entry.

/-Automatic QR expiration and prevention of QR reuse.

/-Door unlocking through a relay when verification is successful.

/-An admin dashboard to manage the system.

/-Since I'm still learning programming and don't have much experience building projects of this scale, I wanted to ask:

Can Claude Code build this entire project from scratch if I give it a detailed prompt explaining all the requirements?

Can it create the frontend, backend, database, and hardware integration code?

Can it guide me through the entire development process, including setting up the environment, installing dependencies, connecting the ESP32-CAM, and testing each module?

Is it capable of debugging errors and modifying the code when something doesn't work?

Would using the FreeLLM API setup affect its ability to handle a project this large? Are there limitations I should be aware of?

I'm not expecting it to magically build everything perfectly with one prompt. I'm willing to work step by step and test things along the way.

I mainly want to know whether Claude Code can act as a coding assistant throughout the development of this project, even if I'm a beginner, or whether I should consider a different approach.

Would appreciate advice from people who have used Claude Code for similar projects!

0 Upvotes

16 comments sorted by

•

u/AutoModerator 2h ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

5

u/DougBTW 2h ago

The answer is always yes. Now how good it comes out all depends on your research, discussion, brainstorming, planning, and how much testing & fixing you’re willing to put it. Worst case, you learn how to use ai better than most people. Eventually, halfway through, you’ll stumble across harness engineering and more advanced ai stuff and that opens many doors. Yes ai isn’t perfect, but this is a crazy time we’re living in.

1

u/PadyEos 33m ago edited 27m ago

You seem to have limited knowledge. And this a hardware security system.

If you have any hardware capable of accessing the internet, even if you would disable it through software. If it's not air gapped or hardware level disconnected from the internet DO NOT BUILD THIS YOURSELF. ClaudeCode or not.

I won't even go into attacks possible on the local network for someone with physical access.

Specialists building smart locks often botch the job and make the locks much less secure than dumb ones. You are not even a specialist in this.

Edit: If access gets blocked by accident, firefighters, emergency personnel can't enter or people can't exit you will be buried in lawsuits or worse. You could contribute to someone dying and go to jail for manslaughter.

Edit 2: I worked in healthcare software. Buying a professional system and installing it professionally is not just about the monetary value but also protecting yourself from risks, including legal ones.

1

u/DetectiveIll3641 22m ago

I get what u r saying but let me clarify this project is not being deployed or a serious project but rather only for marks

1

u/GfxJG 2h ago

I mean, it *can*, but holy shit would I not trust my home security with a vibecoded project. Unless you're already an experienced developer who's truly using it as an assistant, but even then I'd be hesitant.

1

u/DetectiveIll3641 2h ago

It's not like serious serious project but for marks 😭

1

u/PadyEos 24m ago

If it's for marks it's meant for you to learn. Building it with Claude will defeat the purpose of going to school. Just drop out at that point.

1

u/yopla 2h ago

Knowing the quality of most IOT device i'd trust Claude over an of the shelf connected lock.

2

u/ClemensLode Senior Developer 1h ago

Can you fly from Europe to Australia without ever adjusting the direction? Yes, if you provide the exact angle.

1

u/SouthernFruit8768 18m ago

lmao true. Best example ever!

1

u/amargolin 2h ago

yes for the code, no for trusting it with a door lock on the first pass. what i'd do: build one module at a time, write the tests before the code, then try to break each one on purpose. for yours:

  1. an expired qr must be rejected
  2. the same qr scanned twice must fail the second time
  3. a qr issued for flat 3 must not open anything for flat 4

if you can't make those fail by tampering with the input, you don't know they work yet. the esp32-cam part it can only guide, you have to run that on the real hardware and paste the errors back.

1

u/CandidSystem6155 2h ago

One thing to decide yourself and put in the prompt, because it won't pick it for you: what the relay does when the ESP32-CAM loses Wi-Fi or can't reach the Flask server. On a small vehicle key we made the firmware never lock on its own when the link drops, since a flaky link shouldn't stop the motor mid-ride. A door is the other way round, so you'd want it to stay locked offline and have a physical key or button as the fallback. Write that down as a rule early, then ask for a test that unplugs the router and checks the relay state.

1

u/mettavestor 1h ago

You can get closer than pasting errors back though. Install arduino-cli and Claude can flash the ESP32 and read the serial monitor itself, so it sees the crash instead of you relaying it.

And most of those tests don't need the board at all. Have it write a fake scanner script that sends QR codes to the Flask server, so expired, reused and wrong-flat codes all get tested on the laptop before the camera's even needs to be plugged in.

1

u/Lost-Air1265 32m ago

Sure but vibe coding a tool without proper knowledge that you will use to secure your apartments sees like a pretty stupid idea. But hey, go ahead.

1

u/caderoux Senior Developer 14m ago

Yes, but I'm not sure what you mean by a "detailed prompt". If you mean that you alone write a complete specification up front and get a complete workable system with no further interaction, that's definitely not true at this scale. The likelihood of that happening is effectively zero. That's a smaller version of a moonshot and it's simply not going to happen. Your design up front will have defects and the implementation will build on those defects as well as its own.

If you engage in a development process of interactively and iteratively building and refining a system, you can build almost anything and you can build it with high quality the more you inspect and probe. And I question the value of detailed prompts. For decades we have known that big up front design has drawbacks in some domains and many "agile" methodologies have arisen to allow iterative development. Components of successful agile methodologies include building the simplest thing that could possibly work, building automated verifications (often called tests, which is a misnomer) first. (Test-driven-development with red-green-refactor). And including a strong (actual) testing component which still really needs a lot of human interaction - probing the weak points of the system. LLM development will build on what your system does as you are building (it is important to have it memorialize everything in either documents or workitems/issues). And it will often suggest and ask questions of you to clarify behavior.

But ultimately, it is still weak at really replacing the actual testing process (which is really probing and exploring how well the system covers expectations, and uncovering unforeseen expeectations and requirements).

This is why I prefer not to call them "tests" in test-driven development. Because it's not real testing. It's just verification of your known assumptions. It's not actually probing or testing the system.

In any case, welcome to systems engineering!

0

u/Tricky-Scientist-498 1h ago

2 weeks ago it would be possible with Opus5.5 and a half shitty prompt because Opus did really care and notified you about some mismatch, potential issue or bug it found. Today it also doable but prepare a lot of patience.