Загрузка видео...

Не удалось загрузить видео

На главную

Haven't seen any demos of using vibe coding to prototype gadgets like this So I made one. Everything here is generated with code Parts of the code and logic can even be reused on a Raspberry Pi to build the real thing Some tips ↓

117,792 просмотров • 3 месяцев назад •via X (Twitter)

Комментарии: 60

Фото профиля Dilum Sanjaya
Dilum Sanjaya3 месяцев назад

The idea came to me while I was playing around with my electronic circuit app. What if, instead of generating just the circuit, you could generate the entire device🤔

Фото профиля Dilum Sanjaya
Dilum Sanjaya3 месяцев назад

You can start with a sketch, or even something as simple as "give me a device with a few buttons," then progressively refine it. You can also start from an image, but don't expect the first result to match it perfectly. there are some limits.

Фото профиля Dilum Sanjaya
Dilum Sanjaya3 месяцев назад

You're probably not going to get a polished result like this from the first prompt, and that's actually a good thing if you want to explore different ideas. By default, the model tends to use Three.js primitives, which aren't very polished. You can ask it to use things like lathe geometries, extrude geometries, or even custom geometries, but those require significantly more tokens to generate and maintain. I usually get the overall shape and interactions working first, then spend the tokens on refining the design

Фото профиля Dilum Sanjaya
Dilum Sanjaya3 месяцев назад

There's still a limit to what you can achieve, even with custom geometries, especially when you're vibe coding. If you're not familiar with Three.js geometries, it's worth browsing the examples to get a feel for what's practical. The same applies to materials. You can ask the model to make a part look like metal, wood, plastic, or glass, but there are limits to how realistic it can get

Фото профиля Dilum Sanjaya
Dilum Sanjaya3 месяцев назад

Another token saving tip: if you just need to tweak a position or rotation slightly, don't ask the model to make tiny adjustments over and over. Instead, ask it to add a slider so you can fine tune the value yourself, then tell the model the final value once you're happy with it.

Фото профиля Dilum Sanjaya
Dilum Sanjaya3 месяцев назад

Another thing I've been experimenting with is converting frontend code into hardware code. For example, you could build an app that displays LED patterns, then ask the model to convert that logic into Arduino code. If you have some basic electronics knowledge, it's actually a practical workflow.

Фото профиля Dilum Sanjaya
Dilum Sanjaya3 месяцев назад

In this demo, the screen is rendered using a canvas texture. The same rendering logic can be reused on a Raspberry Pi with very few changes. Arduino display libraries like Adafruit GFX are more limited, but you can still reuse a surprising amount of the underlying logic

Фото профиля robot 2.0
robot 2.03 месяцев назад

you got a very special sense for aesthetic

Фото профиля Dilum Sanjaya
Dilum Sanjaya3 месяцев назад

thanks robot!

Фото профиля Nick Venturi
Nick Venturi3 месяцев назад

vibe coding actual hardware is how we accidentally build a sentient toaster

Фото профиля Dilum Sanjaya
Dilum Sanjaya3 месяцев назад

@nickventuri 😂

Фото профиля Gavin Purcell
Gavin Purcell3 месяцев назад

whoa this is very cool

Фото профиля Dilum Sanjaya
Dilum Sanjaya3 месяцев назад

thanks Gavin!

Фото профиля SolomanNB
SolomanNB3 месяцев назад

Whoa, vibe coding actually works for gadgets. Impressed.

Фото профиля Steve Lauda
Steve Lauda3 месяцев назад

dudeee, amazing!

Фото профиля Dilum Sanjaya
Dilum Sanjaya3 месяцев назад

thanks Steve!

Фото профиля Joshua Abrams
Joshua Abrams3 месяцев назад

Dope

Фото профиля Dilum Sanjaya
Dilum Sanjaya3 месяцев назад

thanks Joshua

Фото профиля Joshua Guo
Joshua Guo3 месяцев назад

Whoa!

Фото профиля Dilum Sanjaya
Dilum Sanjaya3 месяцев назад

thanks Joshua

Фото профиля 吧啦(格林版)
吧啦(格林版)3 месяцев назад

that's really cool

Фото профиля JaimeOrtega
JaimeOrtega3 месяцев назад

Looks great. Tbh modeling a device shell is probably the last thing that feels hard to automate by now.

Фото профиля aha七表哥
aha七表哥3 месяцев назад

Light hardware products will have a strong market

Фото профиля lalo 🐧
lalo 🐧3 месяцев назад

rad

Фото профиля Dilum Sanjaya
Dilum Sanjaya3 месяцев назад

thanks lalo

Фото профиля 🐥Karl Ross ❤️🌈 SLSL
🐥Karl Ross ❤️🌈 SLSL3 месяцев назад

Really cool thanks for sharing

Фото профиля Dilum Sanjaya
Dilum Sanjaya3 месяцев назад

thanks!

Фото профиля Marc
Marc3 месяцев назад

Super interesting. Will be great if you post the process , so other builders can creat their own gadgets !!!

Фото профиля CryptoPatrick
CryptoPatrick3 месяцев назад

Looks amazing! Wish I had this level of skill.

Фото профиля Dilum Sanjaya
Dilum Sanjaya3 месяцев назад

thanks

Фото профиля Olimpo
Olimpo3 месяцев назад

This is amazing. Did you upload the 3D model from somewhere else?

Фото профиля Dilum Sanjaya
Dilum Sanjaya3 месяцев назад

thanks. there are no 3D models. everything is generated with code

Фото профиля Makaroni
Makaroni3 месяцев назад

the gap between 'I have an idea' and 'here's a working prototype' just collapsed wild that the bottleneck is now just ur imagination fr 🔥

Фото профиля 𝑫𝒂𝒏𝒊𝒆𝒍 𝑺𝒄𝒐𝒕𝒕 𝑴𝒂𝒕𝒕𝒉𝒆𝒘𝒔 🇦🇺
𝑫𝒂𝒏𝒊𝒆𝒍 𝑺𝒄𝒐𝒕𝒕 𝑴𝒂𝒕𝒕𝒉𝒆𝒘𝒔 🇦🇺3 месяцев назад

That is a great idea and if you add telemetry you can get people to play with it then report their opinions about the UI interactions, so you get what they think and how they actually interacted with the virtual prototype. The one thing to be very careful about is manufacturability, a killer feature that costs a lot to fabricate will smash your profit margins, and if it is key to how the product works/looks then it is hard to remove it or modify it greatly.

Фото профиля Adel Bucetta
Adel Bucetta3 месяцев назад

haven't seen anyone talk about how vibe coding changes not just design, but also manufacturing flows. being able to iterate prototypes in days instead of weeks could disrupt whole industries

Фото профиля Jones Wang
Jones Wang3 месяцев назад

超酷 我超喜歡

Фото профиля Dilum Sanjaya
Dilum Sanjaya3 месяцев назад

謝謝

Фото профиля zack
zack3 месяцев назад

Great work! the 3d model use any image-to-3D AI, or entirely from prompts?

Фото профиля Dilum Sanjaya
Dilum Sanjaya3 месяцев назад

thanks! nope, there are no 3D models. everything is generated with code

Фото профиля Rugova
Rugova2 месяцев назад

how do you get the best out of three.js capabilities, in final output of various models that the models generate?

Фото профиля Dilum Sanjaya
Dilum Sanjaya2 месяцев назад

It’s mostly about knowing how far you can push a model, and that comes with experience from playing around with different models. For example, in this demo, most models will give you a pretty bad lighting setup after the first prompt. But I know I can polish it with consecutive prompts, even with an older model like Gemini. Geometry is a bit different. Most models still struggle with certain complex geometries, so I’m pretty picky about which model I use for those parts. That knowledge mostly comes from doing simple tests with different models and seeing where each one does well or struggles. So basically, even before I start, I already have a vague idea of the best result I can realistically get from a model. From there, it’s mostly about pushing it toward that result through iteration.

Фото профиля Rugova
Rugova2 месяцев назад

I read this article about you Amazing job!

Фото профиля Dilum Sanjaya
Dilum Sanjaya2 месяцев назад

@aliuagon_ awesome! haven't seen it before, thanks for the share

Фото профиля Artem Andreenko
Artem Andreenko3 месяцев назад

great results!

Фото профиля Dilum Sanjaya
Dilum Sanjaya3 месяцев назад

thanks

Фото профиля Lee Hayward
Lee Hayward3 месяцев назад

That looks sick, as the kids say!

Фото профиля Dilum Sanjaya
Dilum Sanjaya3 месяцев назад

thanks

Фото профиля Joshua Park
Joshua Park3 месяцев назад

@dlfpdl check this out!

Фото профиля Kevin Khachariya
Kevin Khachariya3 месяцев назад

This is crazy. Leading to this from that circuit board idea is amazing. You sir are a nice role model for me to vibe code potentially good ideas.

Фото профиля Dilum Sanjaya
Dilum Sanjaya3 месяцев назад

thanks Kevin

Фото профиля Matheus Lima
Matheus Lima3 месяцев назад

nem sei o que é, mas quero um. Esse molde funcionará bem num projeto meu💡

Фото профиля Kamal The Qrios
Kamal The Qrios3 месяцев назад

The idea of full prototypes like this can be used in animations and games. Curious, did you try to get the BOM for this and try to run it on a API to get the available parts online to match it. It can be a fun exercise.

Фото профиля Arthur Siu
Arthur Siu3 месяцев назад

Nice work!

Фото профиля Dilum Sanjaya
Dilum Sanjaya3 месяцев назад

thanks Arthur

Фото профиля Paul
Paul3 месяцев назад

Love it!!

Фото профиля Dilum Sanjaya
Dilum Sanjaya3 месяцев назад

thanks Paul

Фото профиля kobez
kobez3 месяцев назад

This is so fun

Фото профиля Sebastian Buzdugan
Sebastian Buzdugan3 месяцев назад

i've seen raspberry pi reuse break on pin timing even when the demo logic looked clean

Фото профиля Aabis
Aabis3 месяцев назад

this is amazing

Фото профиля Clawbeans
Clawbeans3 месяцев назад

Cool!!

Похожие видео