What is ChatGPT and can ChatGPT write code for makers?
We’re sure you've already heard about ChatGPT these days. It's only been out for about two months but it's taking the world by storm with its amazing and powerful function.ChatGPT even scares people with its human-like abilities and sensitive responses. It's already been a disrupter in fields such as education and publishing and is also capable of writing code for makers.
What is ChatGPT?
Chat GPT - the Generative Pre-trained Transformer is an AI chatbot developed by OpenAI and released on November 30, 2022. It mimics many human abilities while built on top of OpenAI's GPT-3 family of large language models with the current version of GPT-3.5. It has been fine-tuned using both supervised and reinforcement learning techniques. The AI bot functions by producing text responses based on human-user input, like questions and statements. Compared to other renowned social platforms like Instagram which has already done a good job in short-time cost for gaining around, ChatGPT just took 5 days to take by storm.
What is OPENAI?
As an artificial intelligence research laboratory, OpenAI consists of OpenAI LP, a for-profit corporation, and OpenAI Inc., the non-profit parent company.
As stated in the company's mission statement, it seeks to develop artificial intelligence for humanity's benefit and has released various software, with its research tending to focus on reinforcement learning.
Who owns OPENAI ChatGPT?
OpenAI, established in 2015, is an organization that is dedicated to the advancement of artificial intelligence with several funding members including Sam Altman(the OpenAI-current CEO & the former president of technology accelerator Y Combinator), Elon Musk(the founder of Tesla), Reid Hoffman(the co-founder of LinkedIn), Jessica Livingston(the founding partner of Y Combinator), Peter Thiel( the co-founder of PayPal and also one among Facebook's first investors)
In February 2018, Musk stepped down from the OpenAI board to prevent any potential future conflict with Telsa, which is the priority of his work at the time. However, his remaining sponsor for the company has been confirmed in a statement released by OpenAI.
OpenAI, which used to be funded as a non-profit company now has moved its way to “capped-profit”. It procured investments from Microsoft which thus has signaled it will invest 10 billion dollars in ChatGPT, which is expected to be integrated with Microsoft Office and Bing search engine products.
What is ChatGPT for?
With ChatGPT users can write letters and articles, create original jokes, write poetry and music lyrics, explain complex topics, create multi-language content, and even write, debug, and explain code. It is also a good tool for makers to run hardware projects.
How does ChatGPT work?
The ChatGPT user interface is straightforward, it usually contains 2 parts: the “prompt”, in which part you ask the bot a question or make a statement to it, and the “bot response”. Working as an auto-regressive language model, ChatGPT uses deep learning, and neural networks to create human-like speech, and GPT-3.5 is using supervised and reinforcement learning. The workflow for ChatGPT is as follows:
- Collect demonstration data and train a supervised policy. (Train with human examples)
- Collect comparison data and train a reward model. (Get feedback and learn from it)
- Optimize a policy against the reward model using the PPO reinforcement learning algorithm. (Use feedback to improve the model)
Coding with ChatGPT
Making ChatGPT write codes for you is easy, makers can type the request in the “prompt”, accordingly, ChatGPT will give them the corresponding produced code scripts, and the results will differ by the machine learning process it has operated.
Except for writing codes, ChatGPT can also help DIY electronic engineers and developers correct the codes and serve as a powerful assistant for open-source programs.
Here are some simple coding examples we have operated with ChatGPT.
Writing code for an ESP32 WIFI Scanner
The steps are as follows:
- Type:” Write code for an ESP32 WIFI scanner” in the prompt box:
- The response area will give you the responding Arduino IDE sample code, check the sample code to see if there are some grammar mistakes, you perhaps need to modify it according to your specific requests.
3. Copy the codes and run them on your ESP32 wifi scanner programs.
- The ESP32 WIFI scanner runs successfully.
ChatGPT Code Correction
- Type “Correct the following code:” and then press the “shift + enter” keys to go down a new line, then paste the prepared codes with grammar mistakes in the ChatGPT typing box:
2. The code pasted on the box was pre-embedded with the grammar mistake “potPin1”, the correct code should be with “potPin”. Now we have sent this to ChatGPT to see how it works, and ChatGPT successfully corrected this word to the right one “potPin”. So ChatGPT is a wonderful tool for DIY electronics makers and programmers to fix up some code mistakes.
ChatGPT “forget” like a human?
As well as these above, ChatGPT is even featuring some human-brain traits, it can even forget some right codes it produced before and produces some wrong codes.
ChatGPT is compatible with many hardware
ChatGPT can work so well with many hardware like open-source Arduino Uno, ESP32 module, DHT22 Temp&Humid sensors, etc. It helps create codes to run programs of PWM LED dimmer, MicroPython web server, etc. It’s so strong and ushers in a new era for coding.
ChatGPT Still Cannot Replace Human
Although ChatGPT can generate functional code, it is not a substitute for hands-on practice and learning. The generated codes should be reviewed and implemented on their own to help users solidify their understanding of the concepts and algorithms used. It is always recommended that users test and debug the code before using it in production.
Although ChatGPT is likely to replace some coding work like writing simple functions or boilerplate code, it cannot supersede programmers and engineers, said Abhishek Gupta, the founder and principal researcher at the Montreal AI Ethics Institute.
Programmers do more than only coding. "It takes skill to be a programmer -- to be able to structure a program, follow the logic, and generate something greater than the sum of its parts," said Zazueta.
“ChatGPT could pave the way for new job titles， prompt engineering, for example, will become an in-demand skill set in the AI era,” Zazueta suggested, by learning principles and techniques for writing model inputs, engineers will take less energy to get the best results from AI chatbots.
"You have to have the right incantation in place that triggers what you want from it," he said.
ChatGPT, the rising AI chatbot will boost demand for software developers proficient in data science, GlobalData's Dunlap said. For instance, programmers and engineers can establish programs using data science platforms and languages such as Go and Python.
Learning about the latest tech news about maker industry is so interesting and can deepen insight for your maker knowledge, Elecrow aims to provide you all-inclusive and latest industry knowledge about maker and tech field, there are also some great services Elecrow can provide for tech geeks, makers, hardware programmers, etc.
Elecrow is a one-stop solution platform providing services to tech geeks and makers around the world, including PCB assembly, PCB manufacturing, and component sourcing. Elecrow can provide makers and electronics enthusiasts with the electronic parts they need to complete their projects.
Elecrow has strong supply chain sources and can provide you with a variety of components with high-quality and competitively priced components through multiple channels. From the resistor, capacitor, inductor, diode and triode, rectifier bridge, and IC to any type of connector, shell, wire/cable, and button, Elecrow can help you source them all. The service is designed to save you money and time so that you can concentrate on your work and not worry about sourcing issues.