Kilka dni temu OpenAI wprowadziło nowy generator obrazków, który potrafi tworzyć naprawdę dobre grafiki, jak również łączyć zdjęcia oraz przerabiać je na wybrany styl. Same wyniki są moim zdaniem imponujące, ale mnie bardziej zainteresowało zastosowanie tego generatora w elektronice - czy jest on w stanie wygenerować jakiś sensowny schemat?
Generator jest normalnie zintegrowany z ChatGPT - po prostu odbywam rozmowe w chacie a AI generuje obraz. Co ciekawe, kilka takich obrazków można wygenerować nawet za darmo. Darmowe konta mają dostęp do tego generatora, ale ilość użyć jest ograniczona.
Jeszcze tylko uwaga - ze względu na jakość schematów, pozwoliłem sobie do nich dopisać czerwoną czcionką komentarz, to mój komentarz, AI tego nie wygenerowało.
Zaczynamy zabawę. Rozmowy po angielsku, gdyż chcę jak najbardziej ułatwić AI pracę.
Zasilacz
Najprostszy zasilacz, nawet nie impulsowy. Czysta klasyka. Jeden z pierwszych układów od których ja zacząłem zabawę.
user napisał:
Draw power supply schematic: 60Hz transformer, full bridge rectifier, capacitor, then 7805 and 7812
ai napisał:
Here's a power supply schematic based on your specifications:
Specifications:
Input: 60Hz AC from a transformer
Rectification: Full bridge rectifier
Smoothing: Capacitor filter
Regulation: 7805 (5V) and 7812 (12V)
Schematic Breakdown:
Transformer: Steps down AC voltage
Bridge Rectifier: Converts AC to pulsating DC
Capacitor (Filter): Smooths the DC output
Voltage Regulators (7805 & 7812): Provides regulated 5V and 12V
I'll generate a schematic image for you.
![]()
Utworzono obraz
Here is the power supply schematic you requested. Let me know if you need any modifications.
Podłączenie stabilizatorów przeczy logice... chociaż, może to moja wina? W prompcie podałem złą kolejność.
user napisał:
Why did you connect 7812 to the output of 7805? Do you think it will work correctly?
ai napisał:
You're right to question that—7812 should not be connected to the output of 7805.
Correct Design:
The 7812 requires an input voltage higher than 12V to regulate properly (typically at least 14V).
The 7805 regulates down to 5V, which is too low for 7812 to function correctly.
Instead, both 7805 and 7812 should be powered from the rectified and filtered DC voltage, directly after the capacitor.
Would you like me to redraw the schematic correctly?
user napisał:
Yes, please
ai napisał:
user napisał:
So you're saying everything necessary is connected there?
ai napisał:
Double-checking the schematic:
Transformer: Steps down AC voltage ✅
Bridge Rectifier: Converts AC to pulsating DC ✅
Smoothing Capacitor: Filters DC voltage ✅
7812 & 7805 Regulators:
7812 is powered from the rectified DC (~15-18V) ✅
7805 is powered from the same rectified DC, not from 7812 ✅
Capacitors at Regulator Inputs/Outputs: Needed for stability ❓
Can you confirm if small decoupling capacitors (e.g., 0.1µF and 1µF) are present at the input and output of both regulators? If not, they should be added to prevent oscillations.
Nieco lepiej, ale drobne błędy zostały.
user napisał:
I can add capacitors, but is full bridge rectifier connected entirely?
ai napisał:
Good question! The full bridge rectifier should have the following correct connections:
AC input: Two terminals from the transformer secondary connect to the AC inputs (~) of the bridge rectifier.
DC output:
The positive output (+) goes to the smoothing capacitor and then to the regulators.
The negative output (-) is the ground (GND) for the entire circuit.
If any of these connections are missing or reversed, the circuit won't work properly.
Double-check that:
✅ Both AC terminals from the transformer are connected to the rectifier.
✅ The rectifier’s + output goes to the capacitor and regulators.
✅ The rectifier’s - output is GND for everything.
If anything looks off, I can modify the schematic again!
Model tekstowy wie jak podłączyć, ale z obrazkami jest wciąż kłopot. Ciekawe.
LED blinker
Miganie diodą LED, wraz z namiarem na rozwiązanie. W sieci powinno być tego pełno, ale czy AI to zna?
user napisał:
Can you draw a schematic of simplest LED blinker ( Astable Multivibrator) ?
ai napisał:
Dwa tranzystory są, ale te podłączenie diody LED to czysty absurd.
user napisał:
So how will LED behave on the schematic you've shown? Will it blink or not?
ai napisał:
Yes, the LED in the schematic will blink. The circuit shown is an Astable Multivibrator, which continuously switches between two states without requiring an external trigger. Here’s how it works:
Initial State: When powered on, one transistor (say Q1) turns on slightly faster than the other due to minor component variations. This causes the capacitor connected to its base to discharge, turning it fully on while the other transistor (Q2) remains off.
Charge and Discharge Cycle: The capacitors (C1 and C2) alternately charge and discharge through the base resistors, switching the transistors on and off in an alternating manner.
LED Blinking: The LED is placed in series with one of the transistors. When that transistor turns on, current flows, and the LED lights up. When it turns off, the LED turns off as well. Since the circuit oscillates, the LED blinks continuously.
The blinking speed depends on the capacitor and resistor values. A larger capacitor or resistor increases the time delay, making the LED blink slower, and vice versa.
Would you like me to calculate an approximate blinking rate based on typical component values?
user napisał:
The LED on schematic is connected directly to power supply.
ai napisał:
You're absolutely right! If the LED is directly connected to the power supply without being in series with the switching transistors, it will not blink—it will simply stay on continuously as long as power is supplied.
For the LED to blink, it needs to be placed in the collector circuit of one of the transistors, so that it turns on and off as the transistor switches states.
Would you like me to modify the schematic so the LED properly blinks?
user napisał:
Yes, please
ai napisał:
Co tu się stało? Absurd.
user napisał:
Are both ends of LED connected?
ai napisał:
Good catch! If both ends of the LED are not correctly connected—meaning if there's no proper current path—it won't light up or blink at all.
Can you check if:
One end of the LED is connected to the collector of a transistor?
The other end is connected to the power supply (with a current-limiting resistor) or ground?
If the LED is floating (i.e., not completing the circuit), it won't work. Would you like me to correct the schematic again to ensure the LED is properly wired?
user napisał:
Yes, please
ai napisał:
Te sterowanie bramką...
Filtr PI
Teraz coś bardzo prostego, kilka elementów, tu pewnie AI sobie poradzi.
user napisał:
Can you draw schematic of a PI filter?
ai napisał:
Tutaj mu się udało.
Przekaźnik
Teraz podchwytliwe pytanie - czy użyje tranzystora?
user napisał:
can you draw schematic how to connect relay correctly to arduino pin (how to steer it)?
ai napisał:
Tego się nie spodziewałem! Ale i tak... nie jest to zbyt poprawnie. RX i TX?
user napisał:
No, I want a schematic, not a drawing. A relay element, gpio pin, and other required elements. 5V rail. Ground.
ai napisał:
Ok, użył tranzystora, ale nie tak jak trzeba... deja vu sytuacji z miganiem diodą.
ESP i zmiana firmware
Niby dość prosta kwestia, 5 sygnałów, GPIO0 na masę, RX, TX i zasilanie... sprawdźmy.
user napisał:
Draw schematic showing how to connect USB to UART converter to ESP12 module for flashing.
ai napisał:
Prawie, ale miesza.
user napisał:
So UART RXD has to be grounded?
ai napisał:
No, UART RXD should not be grounded. It needs to be connected to the TXD pin of the ESP-12 module. Similarly, the TXD pin of the UART adapter connects to the RXD pin of the ESP-12. Grounding RXD would prevent communication.
To enter flash mode, you typically need:
GPIO0 to GND (to enter bootloader mode)
GPIO15 to GND
CH_PD/EN to 3.3V
VCC to 3.3V
GND to GND
Did the diagram help clarify the connections?
user napisał:
Update the diagram to follow what you've said.
ai napisał:
Tylko troszkę lepiej.
user napisał:
So you're saying that I need to connect GPIO0 to TXD/RXD?
ai napisał:
No, GPIO0 should not be connected to TXD or RXD. It needs to be grounded (connected to GND) when you want to flash the ESP-12.
Here’s the proper setup for flashing:
GPIO0 to GND (to enter bootloader mode)
TXD on USB-to-UART to RXD on ESP-12
RXD on USB-to-UART to TXD on ESP-12
GND on USB-to-UART to GND on ESP-12
VCC on USB-to-UART to VCC on ESP-12 (3.3V)
CH_PD/EN to 3.3V
GPIO15 to GND
When done flashing, disconnect GPIO0 from GND to boot normally.
Let me know if anything's still unclear!
Znowu to samo - model tekstowy niby "wie" jak podłączyć, ale obrazki się gubią.
Podsumowanie
Bieżący generator obrazków od OpenAI zasadniczo schematów nie umie rysować, ale i tak uważam go za krok do przodu względem tego, co było wcześniej. Generowane grafiki przypominają mi teksty tworzone przez GPT2 i starsze modele, czyli niby coś AI próbuje składać poprawnie, na pierwszy rzut oka (z daleka) wygląda prawie-poprawnie, ale naprawdę sensu nie ma. Wydaje mi się, że tworzenie lepszych schematów to kwestia czasu. Sam rozwój OpenAI śledziłem jeszcze zanim "to stało się modne" i podobieństwo tych schematów do tekstów z pierwszych GPT jest bardzo mocne.
Dodatkowo mocno widać, że sam model językowy mniej więcej "wie" co chce narysować, ale moduł od grafiki wysiada i nie jest aż tak dobrze wyuczony. Pewnie jak potrenują generator obrazków na większej ilości grafik z dobrymi opisami, to moduł tekstowy będzie w stanie go odpowiednio wysterować i rezultaty będą lepsze.
Ale to tylko moje zdanie, jak Wy myślicie? Czy za rok, dwa, lub pięć AI zrobi lepsze schematy? Już zapowiadam - sprawdzimy...
Oczywiście sytuacja wygląda całkiem inaczej w kontekście grafik nie związanych z elektroniką - w ich przypadku jestem pod bardzo wielkim wrażeniem, więc też zapraszam do testowania ChatGPT w innych aspektach niż schematy. Ich generator obrazków jest w stanie zrobić w sekundy to, co zajęłoby grafikowi z Photoshopem całe godziny...
Fajne? Ranking DIY Pomogłem? Kup mi kawę.